diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2019-03-01 23:44:12 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2019-03-02 08:59:47 +0100 |
commit | d26b7f6e82486c7fe02690ce5706b0660867c70b (patch) | |
tree | a0974c296e6fafc1ae78b443247ec50cd48347ac /source/a/infozip/unzip-patches/unzip-6.0-bzip2-configure.patch | |
parent | 2c09649cb63357808c79c8c6734f986fd5a0d2aa (diff) | |
download | current-d26b7f6e82486c7fe02690ce5706b0660867c70b.tar.gz current-d26b7f6e82486c7fe02690ce5706b0660867c70b.tar.xz |
Fri Mar 1 23:44:12 UTC 201920190301234412
a/eudev-3.2.7-x86_64-2.txz: Rebuilt.
Don't require kvm group.
Diffstat (limited to 'source/a/infozip/unzip-patches/unzip-6.0-bzip2-configure.patch')
-rw-r--r-- | source/a/infozip/unzip-patches/unzip-6.0-bzip2-configure.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/source/a/infozip/unzip-patches/unzip-6.0-bzip2-configure.patch b/source/a/infozip/unzip-patches/unzip-6.0-bzip2-configure.patch new file mode 100644 index 000000000..b99bb4e44 --- /dev/null +++ b/source/a/infozip/unzip-patches/unzip-6.0-bzip2-configure.patch @@ -0,0 +1,30 @@ +diff -up unzip60/unix/configure.bzip2-configure unzip60/unix/configure +--- unzip60/unix/configure.bzip2-configure 2009-04-16 21:25:12.000000000 +0200 ++++ unzip60/unix/configure 2009-11-18 11:22:14.598389194 +0100 +@@ -640,7 +640,24 @@ else + D_USE_BZ2="-DUSE_BZIP2" + L_BZ2="${BZLF} -lbz2" + else +- echo "-- bzip2 sources not found - no bzip2 support" ++ echo " Check if OS already has bzip2 library installed" ++ cat > conftest.c << _EOF_ ++#include "bzlib.h" ++int main() ++{ ++ bz_stream strm; ++ BZ2_bzCompressEnd(&strm); ++ return 0; ++} ++_EOF_ ++ $CC $CFLAGS -o conftest conftest.c -lbz2 > /dev/null 2>/dev/null ++ if test $? -eq 0; then ++ echo "-- OS supports bzip2 - linking in bzip2" ++ D_USE_BZ2="-DUSE_BZIP2" ++ L_BZ2="${BZLF} -lbz2" ++ else ++ echo "-- Either bzlib.h or libbz2.a not found - no bzip2" ++ fi + fi + fi + +
\ No newline at end of file |