Gentoo Archives: gentoo-commits

From: "Victor Ostorga (vostorga)" <vostorga@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-portage/deltup/files: deltup-0.4.4-asneeded.patch bzip2-1.0.2-makefile-CFLAGS.patch deltup-0.4.4-CFLAGS.patch bzip2-1.0.3-makefile-CFLAGS.patch
Date: Sun, 02 Aug 2009 15:42:27
Message-Id: E1MXdCb-0003gc-IZ@stork.gentoo.org
1 vostorga 09/08/02 15:42:25
2
3 Modified: bzip2-1.0.2-makefile-CFLAGS.patch
4 Added: deltup-0.4.4-asneeded.patch
5 deltup-0.4.4-CFLAGS.patch
6 bzip2-1.0.3-makefile-CFLAGS.patch
7 Log:
8 Respecting CFLAGS and LDFLAGS, fixing build with --as-needed. Patch thanks to Zeev Tarantov, bugs #240121 #246916 #246189
9 (Portage version: 2.1.6.13/cvs/Linux i686)
10
11 Revision Changes Path
12 1.2 app-portage/deltup/files/bzip2-1.0.2-makefile-CFLAGS.patch
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/deltup/files/bzip2-1.0.2-makefile-CFLAGS.patch?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/deltup/files/bzip2-1.0.2-makefile-CFLAGS.patch?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/deltup/files/bzip2-1.0.2-makefile-CFLAGS.patch?r1=1.1&r2=1.2
17
18 Index: bzip2-1.0.2-makefile-CFLAGS.patch
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-portage/deltup/files/bzip2-1.0.2-makefile-CFLAGS.patch,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- bzip2-1.0.2-makefile-CFLAGS.patch 28 Apr 2005 10:03:18 -0000 1.1
25 +++ bzip2-1.0.2-makefile-CFLAGS.patch 2 Aug 2009 15:42:25 -0000 1.2
26 @@ -1,6 +1,13 @@
27 ---- Makefile.orig 2004-12-26 16:30:06.354116536 -0500
28 -+++ Makefile 2004-12-26 16:32:13.617769520 -0500
29 -@@ -9,7 +9,7 @@
30 +diff -NrU5 bzip2-1.0.2.original/Makefile bzip2-1.0.2/Makefile
31 +--- bzip2-1.0.2.original/Makefile 2002-01-25 17:34:53.000000000 -0600
32 ++++ bzip2-1.0.2/Makefile 2009-08-02 13:26:37.000000000 -0600
33 +@@ -3,15 +3,14 @@
34 +
35 + # To assist in cross-compiling
36 + CC=gcc
37 + AR=ar
38 + RANLIB=ranlib
39 +-LDFLAGS=
40
41 # Suitably paranoid flags to avoid bugs in gcc-2.7
42 BIGFILES=-D_FILE_OFFSET_BITS=64
43 @@ -9,14 +16,94 @@
44
45 # Where you want it installed when you do 'make install'
46 PREFIX=/usr
47 ---- Makefile-libbz2_so.orig 2004-12-26 16:32:23.972195408 -0500
48 -+++ Makefile-libbz2_so 2004-12-26 16:32:34.835543928 -0500
49 -@@ -9,7 +9,7 @@
50 +
51 +
52 +@@ -102,27 +101,27 @@
53 + sample1.rb2 sample2.rb2 sample3.rb2 \
54 + sample1.tst sample2.tst sample3.tst
55 +
56 + blocksort.o: blocksort.c
57 + @cat words0
58 +- $(CC) $(CFLAGS) -c blocksort.c
59 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c blocksort.c
60 + huffman.o: huffman.c
61 +- $(CC) $(CFLAGS) -c huffman.c
62 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c huffman.c
63 + crctable.o: crctable.c
64 +- $(CC) $(CFLAGS) -c crctable.c
65 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c crctable.c
66 + randtable.o: randtable.c
67 +- $(CC) $(CFLAGS) -c randtable.c
68 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c randtable.c
69 + compress.o: compress.c
70 +- $(CC) $(CFLAGS) -c compress.c
71 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c compress.c
72 + decompress.o: decompress.c
73 +- $(CC) $(CFLAGS) -c decompress.c
74 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c decompress.c
75 + bzlib.o: bzlib.c
76 +- $(CC) $(CFLAGS) -c bzlib.c
77 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c bzlib.c
78 + bzip2.o: bzip2.c
79 +- $(CC) $(CFLAGS) -c bzip2.c
80 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c bzip2.c
81 + bzip2recover.o: bzip2recover.c
82 +- $(CC) $(CFLAGS) -c bzip2recover.c
83 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c bzip2recover.c
84 +
85 + DISTNAME=bzip2-1.0.2
86 + tarfile:
87 + rm -f $(DISTNAME)
88 + ln -sf . $(DISTNAME)
89 +diff -NrU5 bzip2-1.0.2.original/Makefile-libbz2_so bzip2-1.0.2/Makefile-libbz2_so
90 +--- bzip2-1.0.2.original/Makefile-libbz2_so 2001-12-29 20:15:59.000000000 -0600
91 ++++ bzip2-1.0.2/Makefile-libbz2_so 2009-08-02 13:11:24.000000000 -0600
92 +@@ -7,38 +7,38 @@
93 + # important info about building the library like this.
94 +
95 SHELL=/bin/sh
96 CC=gcc
97 BIGFILES=-D_FILE_OFFSET_BITS=64
98 -CFLAGS=-fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
99 -+CFLAGS+=-fpic -fPIC -Wall -Winline -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
100 ++CFLAGS+=-fpic -fPIC -Wall -Winline -fno-strength-reduce $(BIGFILES)
101
102 OBJS= blocksort.o \
103 huffman.o \
104 + crctable.o \
105 + randtable.o \
106 + compress.o \
107 + decompress.o \
108 + bzlib.o
109 +
110 + all: $(OBJS)
111 +- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.2 $(OBJS)
112 +- $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.2
113 ++ $(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.2 $(OBJS)
114 ++ $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.2
115 + rm -f libbz2.so.1.0
116 + ln -s libbz2.so.1.0.2 libbz2.so.1.0
117 +
118 + clean:
119 + rm -f $(OBJS) bzip2.o libbz2.so.1.0.2 libbz2.so.1.0 bzip2-shared
120 +
121 + blocksort.o: blocksort.c
122 +- $(CC) $(CFLAGS) -c blocksort.c
123 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c blocksort.c
124 + huffman.o: huffman.c
125 +- $(CC) $(CFLAGS) -c huffman.c
126 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c huffman.c
127 + crctable.o: crctable.c
128 +- $(CC) $(CFLAGS) -c crctable.c
129 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c crctable.c
130 + randtable.o: randtable.c
131 +- $(CC) $(CFLAGS) -c randtable.c
132 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c randtable.c
133 + compress.o: compress.c
134 +- $(CC) $(CFLAGS) -c compress.c
135 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c compress.c
136 + decompress.o: decompress.c
137 +- $(CC) $(CFLAGS) -c decompress.c
138 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c decompress.c
139 + bzlib.o: bzlib.c
140 +- $(CC) $(CFLAGS) -c bzlib.c
141 ++ $(CC) $(CFLAGS) $(LDFLAGS) -c bzlib.c
142
143
144
145 1.1 app-portage/deltup/files/deltup-0.4.4-asneeded.patch
146
147 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/deltup/files/deltup-0.4.4-asneeded.patch?rev=1.1&view=markup
148 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/deltup/files/deltup-0.4.4-asneeded.patch?rev=1.1&content-type=text/plain
149
150 Index: deltup-0.4.4-asneeded.patch
151 ===================================================================
152 diff -NrU5 deltup-0.4.4.original/Makefile deltup-0.4.4/Makefile
153 --- deltup-0.4.4.original/Makefile 2009-08-02 15:38:27.000000000 -0600
154 +++ deltup-0.4.4/Makefile 2009-08-02 15:38:37.000000000 -0600
155 @@ -3,11 +3,11 @@
156 BINDIR=$(PREFIX)/bin
157
158 CXX = g++
159
160 objfiles=bpatch.o bzip2.o file.o system.o tmpstore.o deltup.o
161 -libs=-lstdc++ -lz -lbz2 -lssl
162 +libs=-lstdc++ -lz -lbz2 -lcrypto
163
164 #edelta: edelta.cpp deltup
165 # gcc edelta.cpp ${CXXFLAGS} -o edelta
166 %.o : %.cpp
167 $(CXX) $(CFLAGS) $(LDFLAGS) -c $< -o $@ -g #-Wall -pedantic #-DFIXED_FRAMERATE
168
169
170
171 1.1 app-portage/deltup/files/deltup-0.4.4-CFLAGS.patch
172
173 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/deltup/files/deltup-0.4.4-CFLAGS.patch?rev=1.1&view=markup
174 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/deltup/files/deltup-0.4.4-CFLAGS.patch?rev=1.1&content-type=text/plain
175
176 Index: deltup-0.4.4-CFLAGS.patch
177 ===================================================================
178 diff -NrU5 deltup-0.4.4.original/Makefile deltup-0.4.4/Makefile
179 --- deltup-0.4.4.original/Makefile 2009-08-02 13:41:03.000000000 -0600
180 +++ deltup-0.4.4/Makefile 2009-08-02 15:29:10.000000000 -0600
181 @@ -1,26 +1,26 @@
182 DESTDIR=
183 PREFIX=/usr
184 BINDIR=$(PREFIX)/bin
185
186 -CC = g++
187 +CXX = g++
188
189 objfiles=bpatch.o bzip2.o file.o system.o tmpstore.o deltup.o
190 libs=-lstdc++ -lz -lbz2 -lssl
191
192 #edelta: edelta.cpp deltup
193 # gcc edelta.cpp ${CXXFLAGS} -o edelta
194 %.o : %.cpp
195 - ${CC} -c $< -o $@ -g #-Wall -pedantic #-DFIXED_FRAMERATE
196 + $(CXX) $(CFLAGS) $(LDFLAGS) -c $< -o $@ -g #-Wall -pedantic #-DFIXED_FRAMERATE
197
198 all: deltup
199
200 depend:
201 - gcc -MM *.cpp > .depend
202 + $(CXX) -MM *.cpp > .depend
203
204 deltup: $(objfiles)
205 - ${CC} $(objfiles) ${CXXFLAGS} -o deltup $(libs)
206 + $(CXX) $(objfiles) $(CFLAGS) $(LDFLAGS) -o deltup $(libs)
207
208 install: deltup
209 mkdir -p $(DESTDIR)$(BINDIR)
210 install -m 755 deltup $(DESTDIR)$(BINDIR)
211
212
213
214
215 1.1 app-portage/deltup/files/bzip2-1.0.3-makefile-CFLAGS.patch
216
217 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/deltup/files/bzip2-1.0.3-makefile-CFLAGS.patch?rev=1.1&view=markup
218 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/deltup/files/bzip2-1.0.3-makefile-CFLAGS.patch?rev=1.1&content-type=text/plain
219
220 Index: bzip2-1.0.3-makefile-CFLAGS.patch
221 ===================================================================
222 diff -NrU5 bzip2-1.0.3.original/Makefile bzip2-1.0.3/Makefile
223 --- bzip2-1.0.3.original/Makefile 2009-08-02 13:31:08.000000000 -0600
224 +++ bzip2-1.0.3/Makefile 2009-08-02 13:38:59.000000000 -0600
225 @@ -3,14 +3,14 @@
226
227 # To assist in cross-compiling
228 CC=gcc
229 AR=ar
230 RANLIB=ranlib
231 -LDFLAGS=
232 +#LDFLAGS=
233
234 BIGFILES=-D_FILE_OFFSET_BITS=64
235 -CFLAGS=-Wall -Winline -O -g $(BIGFILES)
236 +CFLAGS+=-Wall -Winline -O -g $(BIGFILES)
237
238 # Where you want it installed when you do 'make install'
239 PREFIX=/usr
240
241
242 @@ -100,27 +100,27 @@
243 sample1.rb2 sample2.rb2 sample3.rb2 \
244 sample1.tst sample2.tst sample3.tst
245
246 blocksort.o: blocksort.c
247 @cat words0
248 - $(CC) $(CFLAGS) -c blocksort.c
249 + $(CC) $(CFLAGS) $(LDFLAGS) -c blocksort.c
250 huffman.o: huffman.c
251 - $(CC) $(CFLAGS) -c huffman.c
252 + $(CC) $(CFLAGS) $(LDFLAGS) -c huffman.c
253 crctable.o: crctable.c
254 - $(CC) $(CFLAGS) -c crctable.c
255 + $(CC) $(CFLAGS) $(LDFLAGS) -c crctable.c
256 randtable.o: randtable.c
257 - $(CC) $(CFLAGS) -c randtable.c
258 + $(CC) $(CFLAGS) $(LDFLAGS) -c randtable.c
259 compress.o: compress.c
260 - $(CC) $(CFLAGS) -c compress.c
261 + $(CC) $(CFLAGS) $(LDFLAGS) -c compress.c
262 decompress.o: decompress.c
263 - $(CC) $(CFLAGS) -c decompress.c
264 + $(CC) $(CFLAGS) $(LDFLAGS) -c decompress.c
265 bzlib.o: bzlib.c
266 - $(CC) $(CFLAGS) -c bzlib.c
267 + $(CC) $(CFLAGS) $(LDFLAGS) -c bzlib.c
268 bzip2.o: bzip2.c
269 - $(CC) $(CFLAGS) -c bzip2.c
270 + $(CC) $(CFLAGS) $(LDFLAGS) -c bzip2.c
271 bzip2recover.o: bzip2recover.c
272 - $(CC) $(CFLAGS) -c bzip2recover.c
273 + $(CC) $(CFLAGS) $(LDFLAGS) -c bzip2recover.c
274
275
276 distclean: clean
277 rm -f manual.ps manual.html manual.pdf