RJVB / lnxports

A "local port repository" for use with MacPorts on Linux, overriding ports from the main repository.
4 stars 1 forks source link

We need `help2man` fixed for Linux #14

Closed barracuda156 closed 2 weeks ago

barracuda156 commented 2 weeks ago
--->  Attempting to fetch help2man-1.49.3.tar.xz from https://artfiles.org/gnu.org/help2man
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  223k  100  223k    0     0  60093      0  0:00:03  0:00:03 --:--:-- 60092
--->  Verifying checksums for help2man
--->  Checksumming help2man-1.49.3.tar.xz
--->  Extracting help2man
--->  Extracting help2man-1.49.3.tar.xz
--->  Patching Makefile.in: s|-shared|-bundle -L/opt/local/lib -Wl,--enable-new-dtags -Wl,-rpath,/opt/local/lib |
--->  Configuring help2man
checking for perl... /opt/local/bin/perl5.30
checking for module Locale::gettext... yes
checking for msgfmt... /opt/local/bin/msgfmt
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to enable C11 features... none needed
checking for library containing dlsym... none required
checking for library containing bindtextdomain... none required
checking for a BSD-compatible install... /usr/bin/install -c
checking for makeinfo... ./build-aux//missing makeinfo
checking for install-info... ./build-aux//missing install-info
checking for msgmerge... /opt/local/bin/msgmerge
checking for xgettext... /opt/local/bin/xgettext
checking for po4a-updatepo... ./build-aux//missing po4a-updatepo
checking for po4a-translate... ./build-aux//missing po4a-translate
configure: creating ./config.status
config.status: creating Makefile
--->  Building help2man
make: Entering directory '/opt/local/var/macports/build/_home_svacchanda_powerpc-ports_textproc_help2man/help2man/work/help2man-1.49.3'
/opt/local/bin/perl5.30 help2man.PL --with-gettext
/usr/bin/gcc    -o bindtextdomain.so -fPIC -bundle -L/opt/local/lib -Wl,--enable-new-dtags -Wl,-rpath,/opt/local/lib  bindtextdomain.c 
gcc: error: unrecognized command-line option ?-bundle?
make: *** [Makefile:149: bindtextdomain.so] Error 1
make: *** Waiting for unfinished jobs....
Extracting help2man (with variable substitutions)
make: Leaving directory '/opt/local/var/macports/build/_home_svacchanda_powerpc-ports_textproc_help2man/help2man/work/help2man-1.49.3'
Command failed:  cd "/opt/local/var/macports/build/_home_svacchanda_powerpc-ports_textproc_help2man/help2man/work/help2man-1.49.3" && /usr/bin/make -j4 -w all 
Exit code: 2
Error: Failed to build help2man: command execution failed

And with clang:

--->  Building help2man
make: Entering directory '/opt/local/var/macports/build/_home_svacchanda_powerpc-ports_textproc_help2man/help2man/work/help2man-1.49.3'
/opt/local/bin/perl5.30 help2man.PL --with-gettext
/usr/bin/clang    -o bindtextdomain.so -fPIC -bundle -L/opt/local/lib -Wl,--enable-new-dtags -Wl,-rpath,/opt/local/lib  bindtextdomain.c 
clang-14: warning: argument unused during compilation: '-bundle' [-Wunused-command-line-argument]
Extracting help2man (with variable substitutions)
/usr/bin/riscv64-pine64-linux-ld: /usr/bin/../lib/Scrt1.o: in function `_start':
/usr/src/debug/glibc/2.35-r0/git/csu/../sysdeps/riscv/start.S:50: undefined reference to `main'
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:149: bindtextdomain.so] Error 1
make: Leaving directory '/opt/local/var/macports/build/_home_svacchanda_powerpc-ports_textproc_help2man/help2man/work/help2man-1.49.3'
Command failed:  cd "/opt/local/var/macports/build/_home_svacchanda_powerpc-ports_textproc_help2man/help2man/work/help2man-1.49.3" && /usr/bin/make -j4 -w all 
Exit code: 2
Error: Failed to build help2man: command execution failed
Error: See /opt/local/var/macports/logs/_home_svacchanda_powerpc-ports_textproc_help2man/help2man/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port help2man failed
RJVB commented 2 weeks ago

Sorry, not one of my ports. You're welcome to fix the upstream port and file a PR, or else install the corresponding host package and port -n install help2man +fromHost . I created the +fromHost variant for exactly this kind of situation.

barracuda156 commented 2 weeks ago

@RJVB Looks like it is MacPorts breaking it for Linux LOL Yeah, I will fix it on my end.

RJVB commented 2 weeks ago

MacPorts is aptly named ...

You could of course also do an upstream PR with the if/else platform expressions that fix this. It wouldn't be the 1st port to have those after all.