pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[patch] archivers/unzip: -DNO_LCHMOD for Linux, too
Hi,
building archivers/unzip on Linux (Ubuntu 14.04 64bit) succeeds, but
produces the following warning:
...
gcc -o unzip -Lbzip2 unzip.o crc32.o crypt.o envargs.o explode.o extract.o fileio.o globals.o inflate.o list.o match.o process.o ttyio.o ubz2err.o unreduce.o unshrink.o zipinfo.o unix.o -s -L/opt/pkgsrc/lib -Wl,--enable-new-dtags,-R/opt/pkgsrc/lib -lz
unix.o: In function `set_symlnk_attribs':
=> unix.c:(.text+0x1840): warning: lchmod is not implemented and will always fail
...
The Makefile already sets
CPPFLAGS+= -DNO_LCHMOD
for several case of OPSYS.
The attached patch adds Linux to this list.
Regards
Matthias
--- Makefile.orig 2015-11-11 17:17:32.022693464 +0100
+++ Makefile 2015-11-13 18:18:12.691777064 +0100
@@ -33,6 +33,7 @@
${OPSYS} == "Cygwin" || \
(${OPSYS} == "Darwin" && !empty(OS_VERSION:M[01234678].*))) || \
${OS_VARIANT} == "SCOOSR5" || \
+ ${OPSYS} == "Linux" || \
${OPSYS} == "Bitrig"
CPPFLAGS+= -DNO_LCHMOD
.endif
Home |
Main Index |
Thread Index |
Old Index