pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/libarchive/files libarchive: Fix bootstrap b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d35388619cdf
branches:  trunk
changeset: 448735:d35388619cdf
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sat Mar 13 19:34:11 2021 +0000

description:
libarchive: Fix bootstrap build under Haiku OS/x86_64 R1/beta2

Haiku OS R1/beta2 provides readpassphrase.h header file and
readpassphrase function in libbsd library.
And libarchive's configure script detects readpassphrase.h
and does not detect readpassphrase function.
In this case, libarchive try to use readpassphrase.h and
build and use internal readpassphrase inplementation.
readpassphrase.h defines readpassphrase function as non-static
and the internal implemantation is static.
This inconsistency breaks bootstrap pkgsrc under Haiku OS/x86_64 R1/beta2.

Add -lbsd to LIBS in Haiku OS case to fix the build and bootstrap.

diffstat:

 archivers/libarchive/files/configure |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 0ded343f496e -r d35388619cdf archivers/libarchive/files/configure
--- a/archivers/libarchive/files/configure      Sat Mar 13 15:25:07 2021 +0000
+++ b/archivers/libarchive/files/configure      Sat Mar 13 19:34:11 2021 +0000
@@ -10285,6 +10285,7 @@
     haiku*)
       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
       link_all_deplibs=yes
+      LIBS="-lbsd $LIBS"
       ;;
 
     os2*)



Home | Main Index | Thread Index | Old Index