1 |
maksbotan 13/07/30 07:31:20 |
2 |
|
3 |
Added: |
4 |
autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch |
5 |
autofs-5.0.7-parallel-make.patch |
6 |
autofs-5.0.7-libtirpc-link.patch |
7 |
Log: |
8 |
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. |
9 |
|
10 |
(Portage version: 2.1.13.1/cvs/Linux x86_64, signed Manifest commit with key F8DBDADE) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 net-fs/autofs/files/autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/files/autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/files/autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch |
19 |
=================================================================== |
20 |
--- a/Makefile.conf.in |
21 |
+++ b/Makefile.conf.in |
22 |
@@ -100,3 +100,6 @@ initdir = @initdir@ |
23 |
|
24 |
# Location of systemd unit files |
25 |
systemddir = @systemddir@ |
26 |
+ |
27 |
+# Use the compiler determined by configure |
28 |
+CC := @CC@ |
29 |
--- a/Makefile.rules |
30 |
+++ b/Makefile.rules |
31 |
@@ -16,44 +16,30 @@ INSTALLROOT = $(DESTDIR) |
32 |
AUTOFS_LIB = ../lib/autofs.a |
33 |
|
34 |
# Compilers, linkers and flags |
35 |
-# The STRIP defined here *must not* remove any dynamic-loading symbols |
36 |
- |
37 |
ifdef DMALLOCLIB |
38 |
DEBUG=1 |
39 |
endif |
40 |
|
41 |
ifdef DEBUG |
42 |
CFLAGS ?= -g -Wall -DDEBUG |
43 |
-LDFLAGS = -g |
44 |
-STRIP = : |
45 |
else |
46 |
-ifdef DONTSTRIP |
47 |
CFLAGS ?= -O2 -g |
48 |
-LDFLAGS = -g |
49 |
-STRIP = : |
50 |
-else |
51 |
-CFLAGS ?= -O2 -Wall |
52 |
-LDFLAGS = -s |
53 |
-STRIP = strip --strip-debug |
54 |
-endif |
55 |
endif |
56 |
+AUTOFS_LDFLAGS = -g |
57 |
|
58 |
-CC = gcc |
59 |
-CXX = g++ |
60 |
CXXFLAGS = $(CFLAGS) |
61 |
LD = ld |
62 |
SOLDFLAGS = -shared |
63 |
|
64 |
CFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64 |
65 |
-LDFLAGS += -lpthread |
66 |
|
67 |
ifdef TIRPCLIB |
68 |
CFLAGS += -I/usr/include/tirpc |
69 |
-LDFLAGS += $(TIRPCLIB) |
70 |
+AUTOFS_LDFLAGS += $(TIRPCLIB) |
71 |
endif |
72 |
|
73 |
ifdef DMALLOCLIB |
74 |
-LDFLAGS += $(DMALLOCLIB) |
75 |
+AUTOFS_LDFLAGS += $(DMALLOCLIB) |
76 |
endif |
77 |
|
78 |
ifdef SASL |
79 |
@@ -71,5 +57,4 @@ endif |
80 |
$(CC) $(CFLAGS) -S $< |
81 |
|
82 |
.c.so: |
83 |
- $(CC) $(SOLDFLAGS) $(CFLAGS) -o $*.so $< $(AUTOFS_LIB) $(DMALLOCLIB) $(LIBNSL) |
84 |
- $(STRIP) $*.so |
85 |
+ $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) -o $*.so $< $(AUTOFS_LIB) $(DMALLOCLIB) $(LIBNSL) |
86 |
--- a/configure.in |
87 |
+++ b/configure.in |
88 |
@@ -183,7 +183,7 @@ AC_ARG_WITH(hesiod, |
89 |
: Search for Hesiod in normal directory path |
90 |
else |
91 |
: Search for Hesiod in specific directory |
92 |
- LDFLAGS="$LDFLAGS -L${withval}/lib" |
93 |
+ LDFLAGS="$LDFLAGS -Wl,--no-as-needed -L${withval}/lib" |
94 |
LIBHESIOD="-L${withval}/lib" |
95 |
HESIOD_FLAGS="-I${withval}/include" |
96 |
fi |
97 |
--- a/daemon/Makefile |
98 |
+++ b/daemon/Makefile |
99 |
@@ -20,7 +20,7 @@ CFLAGS += -DAUTOFS_FIFO_DIR=\"$(autofsfi |
100 |
CFLAGS += -DAUTOFS_FLAG_DIR=\"$(autofsflagdir)\" |
101 |
CFLAGS += -DVERSION_STRING=\"$(version)\" |
102 |
LDFLAGS += -rdynamic |
103 |
-LIBS = -ldl |
104 |
+LIBS += -ldl -lpthread |
105 |
|
106 |
ifeq ($(LDAP), 1) |
107 |
CFLAGS += $(XML_FLAGS) |
108 |
@@ -30,8 +30,7 @@ endif |
109 |
all: automount |
110 |
|
111 |
automount: $(OBJS) $(AUTOFS_LIB) |
112 |
- $(CC) $(LDFLAGS) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS) |
113 |
- $(STRIP) automount |
114 |
+ $(CC) $(AUTOFS_LDFLAGS) $(DAEMON_LDFLAGS) $(LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS) |
115 |
|
116 |
clean: |
117 |
rm -f *.o *.s *~ automount |
118 |
--- a/lib/Makefile |
119 |
+++ b/lib/Makefile |
120 |
@@ -41,14 +41,12 @@ mount_clnt.c: mount.h |
121 |
|
122 |
mount_clnt.o: mount_clnt.c |
123 |
$(CC) $(CFLAGS) -o mount_clnt.o -c mount_clnt.c |
124 |
- $(STRIP) mount_clnt.o |
125 |
|
126 |
mount_xdr.c: mount.h |
127 |
$(RPCGEN) -c -o mount_xdr.c mount.x |
128 |
|
129 |
mount_xdr.o: mount_xdr.c |
130 |
$(CC) $(CFLAGS) -Wno-unused-variable -o mount_xdr.o -c mount_xdr.c |
131 |
- $(STRIP) mount_xdr.o |
132 |
|
133 |
master_tok.c: master_tok.l |
134 |
$(LEX) -o$@ -Pmaster_ $? |
135 |
--- a/modules/Makefile |
136 |
+++ b/modules/Makefile |
137 |
@@ -87,9 +87,8 @@ endif |
138 |
# Ad hoc compilation rules for modules which need auxilliary libraries |
139 |
# |
140 |
lookup_hesiod.so: lookup_hesiod.c |
141 |
- $(CC) $(SOLDFLAGS) $(CFLAGS) $(HESIOD_FLAGS) -o lookup_hesiod.so \ |
142 |
+ $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) $(HESIOD_FLAGS) -o lookup_hesiod.so \ |
143 |
lookup_hesiod.c $(AUTOFS_LIB) $(LIBHESIOD) $(LIBRESOLV) |
144 |
- $(STRIP) lookup_hesiod.so |
145 |
|
146 |
cyrus-sasl.o: cyrus-sasl.c |
147 |
$(CC) $(CFLAGS) $(LDAP_FLAGS) -c $< |
148 |
@@ -98,13 +97,10 @@ cyrus-sasl-extern.o: cyrus-sasl-extern.c |
149 |
$(CC) $(CFLAGS) $(LDAP_FLAGS) -c $< |
150 |
|
151 |
lookup_ldap.so: lookup_ldap.c dclist.o base64.o $(SASL_OBJ) |
152 |
- $(CC) $(SOLDFLAGS) $(CFLAGS) $(LDAP_FLAGS) -o lookup_ldap.so \ |
153 |
+ $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) $(LDAP_FLAGS) -o lookup_ldap.so \ |
154 |
lookup_ldap.c dclist.o base64.o $(SASL_OBJ) \ |
155 |
$(AUTOFS_LIB) $(LIBLDAP) $(LIBRESOLV) |
156 |
- $(STRIP) lookup_ldap.so |
157 |
|
158 |
mount_nfs.so: mount_nfs.c replicated.o |
159 |
- $(CC) $(SOLDFLAGS) $(CFLAGS) -o mount_nfs.so \ |
160 |
+ $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) -o mount_nfs.so \ |
161 |
mount_nfs.c replicated.o $(AUTOFS_LIB) $(LIBNSL) |
162 |
- $(STRIP) mount_nfs.so |
163 |
- |
164 |
|
165 |
|
166 |
|
167 |
1.1 net-fs/autofs/files/autofs-5.0.7-parallel-make.patch |
168 |
|
169 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/files/autofs-5.0.7-parallel-make.patch?rev=1.1&view=markup |
170 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/files/autofs-5.0.7-parallel-make.patch?rev=1.1&content-type=text/plain |
171 |
|
172 |
Index: autofs-5.0.7-parallel-make.patch |
173 |
=================================================================== |
174 |
From ed85b855e1bcdb814b3dca7f6c768b86e6353fe7 Mon Sep 17 00:00:00 2001 |
175 |
From: "Lan Yixun (dlan)" <dennis.yxun@×××××.com> |
176 |
Date: Thu, 25 Jul 2013 10:04:23 +0800 |
177 |
Subject: [PATCH] fix occasional build error when enable parallel compiling |
178 |
|
179 |
the problem here we pass "-jX" ( X> 1) to "make", and "rpc_subs.c" |
180 |
occasionally fail to compile due to it can't find "mount.h", |
181 |
the root cause it that "mount.h" haven't generated by that time, |
182 |
add this patch should fix this problem. |
183 |
to make rpc_subs.o explicitly depend on "mount.h". |
184 |
|
185 |
--- |
186 |
error message: |
187 |
|
188 |
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -D_REENTRANT |
189 |
-D_FILE_OFFSET_BITS=64 -I/usr/include/tirp c -D_REENTRANT |
190 |
-D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I../include -fPIC |
191 |
-D_GNU_SOURCE -DAUTOFS_MA P_DIR=\"/etc/autofs\" |
192 |
-DAUTOFS_CONF_DIR=\"/etc/conf.d\" -c rpc_subs.c |
193 |
rpc_subs.c:46:19: fatal error: mount.h: No such file or directory |
194 |
#include "mount.h" |
195 |
^ |
196 |
compilation terminated. |
197 |
make[1]: *** [rpc_subs.o] Error 1 |
198 |
make[1]: *** Waiting for unfinished |
199 |
jobs.... |
200 |
|
201 |
Signed-off-by: Lan Yixun (dlan) <dennis.yxun@×××××.com> |
202 |
--- |
203 |
lib/Makefile | 2 ++ |
204 |
1 file changed, 2 insertions(+) |
205 |
|
206 |
diff --git a/lib/Makefile b/lib/Makefile |
207 |
index 5418009..314779b 100644 |
208 |
--- a/lib/Makefile |
209 |
+++ b/lib/Makefile |
210 |
@@ -70,6 +70,8 @@ nss_tok.o: nss_tok.c nss_parse.tab.h |
211 |
|
212 |
nss_parse.tab.o: nss_parse.tab.c nss_parse.tab.h |
213 |
|
214 |
+rpc_subs.o: mount.h |
215 |
+ |
216 |
install: all |
217 |
|
218 |
clean: |
219 |
-- |
220 |
1.8.3.2 |
221 |
|
222 |
|
223 |
|
224 |
|
225 |
1.1 net-fs/autofs/files/autofs-5.0.7-libtirpc-link.patch |
226 |
|
227 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/files/autofs-5.0.7-libtirpc-link.patch?rev=1.1&view=markup |
228 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/files/autofs-5.0.7-libtirpc-link.patch?rev=1.1&content-type=text/plain |
229 |
|
230 |
Index: autofs-5.0.7-libtirpc-link.patch |
231 |
=================================================================== |
232 |
diff --git a/modules/Makefile b/modules/Makefile |
233 |
index 4ecbd6a..6a17540 100644 |
234 |
--- a/modules/Makefile |
235 |
+++ b/modules/Makefile |
236 |
@@ -114,4 +114,4 @@ lookup_ldap.so: lookup_ldap.c dclist.o base64.o $(SASL_OBJ) |
237 |
|
238 |
mount_nfs.so: mount_nfs.c replicated.o |
239 |
$(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) -o mount_nfs.so \ |
240 |
- mount_nfs.c replicated.o $(AUTOFS_LIB) $(LIBNSL) |
241 |
+ mount_nfs.c replicated.o $(AUTOFS_LIB) $(LIBNSL) $(TIRPCLIB) |