diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2013-07-30 07:31:20 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2013-07-30 07:31:20 +0000 |
commit | bc3d3cc7a829f3b1349a3dc1671de13059d39b18 (patch) | |
tree | d5fb0d97a49a8bf4b8b912fc7c40f952a25f363a /net-fs/autofs/files | |
parent | Remove old. (diff) | |
download | gentoo-2-bc3d3cc7a829f3b1349a3dc1671de13059d39b18.tar.gz gentoo-2-bc3d3cc7a829f3b1349a3dc1671de13059d39b18.tar.bz2 gentoo-2-bc3d3cc7a829f3b1349a3dc1671de13059d39b18.zip |
1) fix broken libtirpc link error, bug #464120 2) fix occational parallel build error 3) fix duplicated user_patch 4) fix dmalloc deps. Thanks to Dennis 'dlan' Lan.
(Portage version: 2.1.13.1/cvs/Linux x86_64, signed Manifest commit with key F8DBDADE)
Diffstat (limited to 'net-fs/autofs/files')
3 files changed, 202 insertions, 0 deletions
diff --git a/net-fs/autofs/files/autofs-5.0.7-libtirpc-link.patch b/net-fs/autofs/files/autofs-5.0.7-libtirpc-link.patch new file mode 100644 index 000000000000..92143f1d3066 --- /dev/null +++ b/net-fs/autofs/files/autofs-5.0.7-libtirpc-link.patch @@ -0,0 +1,10 @@ +diff --git a/modules/Makefile b/modules/Makefile +index 4ecbd6a..6a17540 100644 +--- a/modules/Makefile ++++ b/modules/Makefile +@@ -114,4 +114,4 @@ lookup_ldap.so: lookup_ldap.c dclist.o base64.o $(SASL_OBJ) + + mount_nfs.so: mount_nfs.c replicated.o + $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) -o mount_nfs.so \ +- mount_nfs.c replicated.o $(AUTOFS_LIB) $(LIBNSL) ++ mount_nfs.c replicated.o $(AUTOFS_LIB) $(LIBNSL) $(TIRPCLIB) diff --git a/net-fs/autofs/files/autofs-5.0.7-parallel-make.patch b/net-fs/autofs/files/autofs-5.0.7-parallel-make.patch new file mode 100644 index 000000000000..f510f8fa2015 --- /dev/null +++ b/net-fs/autofs/files/autofs-5.0.7-parallel-make.patch @@ -0,0 +1,48 @@ +From ed85b855e1bcdb814b3dca7f6c768b86e6353fe7 Mon Sep 17 00:00:00 2001 +From: "Lan Yixun (dlan)" <dennis.yxun@gmail.com> +Date: Thu, 25 Jul 2013 10:04:23 +0800 +Subject: [PATCH] fix occasional build error when enable parallel compiling + +the problem here we pass "-jX" ( X> 1) to "make", and "rpc_subs.c" +occasionally fail to compile due to it can't find "mount.h", +the root cause it that "mount.h" haven't generated by that time, +add this patch should fix this problem. +to make rpc_subs.o explicitly depend on "mount.h". + +--- +error message: + +x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -D_REENTRANT +-D_FILE_OFFSET_BITS=64 -I/usr/include/tirp c -D_REENTRANT +-D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I../include -fPIC +-D_GNU_SOURCE -DAUTOFS_MA P_DIR=\"/etc/autofs\" +-DAUTOFS_CONF_DIR=\"/etc/conf.d\" -c rpc_subs.c +rpc_subs.c:46:19: fatal error: mount.h: No such file or directory + #include "mount.h" + ^ +compilation terminated. +make[1]: *** [rpc_subs.o] Error 1 +make[1]: *** Waiting for unfinished +jobs.... + +Signed-off-by: Lan Yixun (dlan) <dennis.yxun@gmail.com> +--- + lib/Makefile | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/lib/Makefile b/lib/Makefile +index 5418009..314779b 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -70,6 +70,8 @@ nss_tok.o: nss_tok.c nss_parse.tab.h + + nss_parse.tab.o: nss_parse.tab.c nss_parse.tab.h + ++rpc_subs.o: mount.h ++ + install: all + + clean: +-- +1.8.3.2 + diff --git a/net-fs/autofs/files/autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch b/net-fs/autofs/files/autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch new file mode 100644 index 000000000000..c12d4bbe2b17 --- /dev/null +++ b/net-fs/autofs/files/autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch @@ -0,0 +1,144 @@ +--- a/Makefile.conf.in ++++ b/Makefile.conf.in +@@ -100,3 +100,6 @@ initdir = @initdir@ + + # Location of systemd unit files + systemddir = @systemddir@ ++ ++# Use the compiler determined by configure ++CC := @CC@ +--- a/Makefile.rules ++++ b/Makefile.rules +@@ -16,44 +16,30 @@ INSTALLROOT = $(DESTDIR) + AUTOFS_LIB = ../lib/autofs.a + + # Compilers, linkers and flags +-# The STRIP defined here *must not* remove any dynamic-loading symbols +- + ifdef DMALLOCLIB + DEBUG=1 + endif + + ifdef DEBUG + CFLAGS ?= -g -Wall -DDEBUG +-LDFLAGS = -g +-STRIP = : + else +-ifdef DONTSTRIP + CFLAGS ?= -O2 -g +-LDFLAGS = -g +-STRIP = : +-else +-CFLAGS ?= -O2 -Wall +-LDFLAGS = -s +-STRIP = strip --strip-debug +-endif + endif ++AUTOFS_LDFLAGS = -g + +-CC = gcc +-CXX = g++ + CXXFLAGS = $(CFLAGS) + LD = ld + SOLDFLAGS = -shared + + CFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64 +-LDFLAGS += -lpthread + + ifdef TIRPCLIB + CFLAGS += -I/usr/include/tirpc +-LDFLAGS += $(TIRPCLIB) ++AUTOFS_LDFLAGS += $(TIRPCLIB) + endif + + ifdef DMALLOCLIB +-LDFLAGS += $(DMALLOCLIB) ++AUTOFS_LDFLAGS += $(DMALLOCLIB) + endif + + ifdef SASL +@@ -71,5 +57,4 @@ endif + $(CC) $(CFLAGS) -S $< + + .c.so: +- $(CC) $(SOLDFLAGS) $(CFLAGS) -o $*.so $< $(AUTOFS_LIB) $(DMALLOCLIB) $(LIBNSL) +- $(STRIP) $*.so ++ $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) -o $*.so $< $(AUTOFS_LIB) $(DMALLOCLIB) $(LIBNSL) +--- a/configure.in ++++ b/configure.in +@@ -183,7 +183,7 @@ AC_ARG_WITH(hesiod, + : Search for Hesiod in normal directory path + else + : Search for Hesiod in specific directory +- LDFLAGS="$LDFLAGS -L${withval}/lib" ++ LDFLAGS="$LDFLAGS -Wl,--no-as-needed -L${withval}/lib" + LIBHESIOD="-L${withval}/lib" + HESIOD_FLAGS="-I${withval}/include" + fi +--- a/daemon/Makefile ++++ b/daemon/Makefile +@@ -20,7 +20,7 @@ CFLAGS += -DAUTOFS_FIFO_DIR=\"$(autofsfi + CFLAGS += -DAUTOFS_FLAG_DIR=\"$(autofsflagdir)\" + CFLAGS += -DVERSION_STRING=\"$(version)\" + LDFLAGS += -rdynamic +-LIBS = -ldl ++LIBS += -ldl -lpthread + + ifeq ($(LDAP), 1) + CFLAGS += $(XML_FLAGS) +@@ -30,8 +30,7 @@ endif + all: automount + + automount: $(OBJS) $(AUTOFS_LIB) +- $(CC) $(LDFLAGS) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS) +- $(STRIP) automount ++ $(CC) $(AUTOFS_LDFLAGS) $(DAEMON_LDFLAGS) $(LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS) + + clean: + rm -f *.o *.s *~ automount +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -41,14 +41,12 @@ mount_clnt.c: mount.h + + mount_clnt.o: mount_clnt.c + $(CC) $(CFLAGS) -o mount_clnt.o -c mount_clnt.c +- $(STRIP) mount_clnt.o + + mount_xdr.c: mount.h + $(RPCGEN) -c -o mount_xdr.c mount.x + + mount_xdr.o: mount_xdr.c + $(CC) $(CFLAGS) -Wno-unused-variable -o mount_xdr.o -c mount_xdr.c +- $(STRIP) mount_xdr.o + + master_tok.c: master_tok.l + $(LEX) -o$@ -Pmaster_ $? +--- a/modules/Makefile ++++ b/modules/Makefile +@@ -87,9 +87,8 @@ endif + # Ad hoc compilation rules for modules which need auxilliary libraries + # + lookup_hesiod.so: lookup_hesiod.c +- $(CC) $(SOLDFLAGS) $(CFLAGS) $(HESIOD_FLAGS) -o lookup_hesiod.so \ ++ $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) $(HESIOD_FLAGS) -o lookup_hesiod.so \ + lookup_hesiod.c $(AUTOFS_LIB) $(LIBHESIOD) $(LIBRESOLV) +- $(STRIP) lookup_hesiod.so + + cyrus-sasl.o: cyrus-sasl.c + $(CC) $(CFLAGS) $(LDAP_FLAGS) -c $< +@@ -98,13 +97,10 @@ cyrus-sasl-extern.o: cyrus-sasl-extern.c + $(CC) $(CFLAGS) $(LDAP_FLAGS) -c $< + + lookup_ldap.so: lookup_ldap.c dclist.o base64.o $(SASL_OBJ) +- $(CC) $(SOLDFLAGS) $(CFLAGS) $(LDAP_FLAGS) -o lookup_ldap.so \ ++ $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) $(LDAP_FLAGS) -o lookup_ldap.so \ + lookup_ldap.c dclist.o base64.o $(SASL_OBJ) \ + $(AUTOFS_LIB) $(LIBLDAP) $(LIBRESOLV) +- $(STRIP) lookup_ldap.so + + mount_nfs.so: mount_nfs.c replicated.o +- $(CC) $(SOLDFLAGS) $(CFLAGS) -o mount_nfs.so \ ++ $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) -o mount_nfs.so \ + mount_nfs.c replicated.o $(AUTOFS_LIB) $(LIBNSL) +- $(STRIP) mount_nfs.so +- |