GNU bug report logs -
#72235
build failure on FreeBSD and NetBSD
Previous Next
Reported by: Bruno Haible <bruno <at> clisp.org>
Date: Sun, 21 Jul 2024 18:14:02 UTC
Severity: normal
Done: Jim Meyering <jim <at> meyering.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72235 in the body.
You can then email your comments to 72235 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-diffutils <at> gnu.org
:
bug#72235
; Package
diffutils
.
(Sun, 21 Jul 2024 18:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Bruno Haible <bruno <at> clisp.org>
:
New bug report received and forwarded. Copy sent to
bug-diffutils <at> gnu.org
.
(Sun, 21 Jul 2024 18:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On FreeBSD 14.0 and NetBSD 10.0, a build fails after sources have been modified:
$ touch src/cmp.c
$ ./configure
$ make V=1
...
base=`expr cmp.1 : '\(.*\).1'` && test -x ../src/$base && (echo '[NAME]' && sed 's@/\* *@@; s/-/\\-/;s/^GNU //; q' ../src/$base.c) | PATH="../src:$PATH" ./help2man -i - -i ./$base.x -S 'diffutils 2024-05-21' $base > cmp.1-t && mv cmp.1-t cmp.1
/bin/sh: ./help2man: not found
*** Error code 127
Stop.
make[1]: stopped in /home/bruno/diffutils-2024-07-21/man
*** Error code 1
The reason is that on FreeBSD, perl is at /usr/local/bin/perl, not /usr/bin/perl.
Likewise, on NetBSD, perl is at /usr/pkg/bin/perl, not /usr/bin/perl.
And likewise, on Guix, the only binary in /usr/bin is /usr/bin/env.
The attached patch fixes it. "use warnings" instead of option '-w' is
recommended per https://stackoverflow.com/questions/12554179/ ; it avoids
the use of /usr/bin/env's option '-S' which is unportable (not specified
by POSIX).
[0001-build-Fix-use-of-perl-on-Guix-FreeBSD-NetBSD.patch (text/x-patch, attachment)]
Reply sent
to
Jim Meyering <jim <at> meyering.net>
:
You have taken responsibility.
(Mon, 22 Jul 2024 15:29:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Bruno Haible <bruno <at> clisp.org>
:
bug acknowledged by developer.
(Mon, 22 Jul 2024 15:29:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 72235-done <at> debbugs.gnu.org (full text, mbox):
On Sun, Jul 21, 2024 at 11:14 AM Bruno Haible <bruno <at> clisp.org> wrote:
> On FreeBSD 14.0 and NetBSD 10.0, a build fails after sources have been modified:
>
> $ touch src/cmp.c
> $ ./configure
> $ make V=1
> ...
> base=`expr cmp.1 : '\(.*\).1'` && test -x ../src/$base && (echo '[NAME]' && sed 's@/\* *@@; s/-/\\-/;s/^GNU //; q' ../src/$base.c) | PATH="../src:$PATH" ./help2man -i - -i ./$base.x -S 'diffutils 2024-05-21' $base > cmp.1-t && mv cmp.1-t cmp.1
> /bin/sh: ./help2man: not found
> *** Error code 127
>
> Stop.
> make[1]: stopped in /home/bruno/diffutils-2024-07-21/man
> *** Error code 1
>
>
> The reason is that on FreeBSD, perl is at /usr/local/bin/perl, not /usr/bin/perl.
> Likewise, on NetBSD, perl is at /usr/pkg/bin/perl, not /usr/bin/perl.
> And likewise, on Guix, the only binary in /usr/bin is /usr/bin/env.
>
> The attached patch fixes it. "use warnings" instead of option '-w' is
> recommended per https://stackoverflow.com/questions/12554179/ ; it avoids
> the use of /usr/bin/env's option '-S' which is unportable (not specified
> by POSIX).
Thanks. I have pushed that.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 20 Aug 2024 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 99 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.