Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/zip/files/
Date: Wed, 03 Jan 2018 23:27:33
Message-Id: 1515022043.d0fd3f425b6dd4d7fe71943967996ab6ab223021.floppym@gentoo
1 commit: d0fd3f425b6dd4d7fe71943967996ab6ab223021
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Jan 2 10:22:12 2018 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 3 23:27:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0fd3f42
7
8 app-arch/zip: remove unused patches
9
10 .../zip/files/zip-2.3-unix_configure-pic.patch | 12 ---
11 app-arch/zip/files/zip-2.31-exec-stack.patch | 20 -----
12 app-arch/zip/files/zip-2.32-build.patch | 89 ----------------------
13 3 files changed, 121 deletions(-)
14
15 diff --git a/app-arch/zip/files/zip-2.3-unix_configure-pic.patch b/app-arch/zip/files/zip-2.3-unix_configure-pic.patch
16 deleted file mode 100644
17 index 45b137b0ed8..00000000000
18 --- a/app-arch/zip/files/zip-2.3-unix_configure-pic.patch
19 +++ /dev/null
20 @@ -1,12 +0,0 @@
21 ---- unix/configure.orig 2004-09-28 06:45:33.000000000 +0000
22 -+++ unix/configure 2004-09-28 06:54:53.000000000 +0000
23 -@@ -29,6 +29,9 @@
24 -
25 - echo Check if we can use asm code
26 - OBJA=""
27 -+piclib="$(echo | $CPP -dM $CFLAGS - | grep -i __pic__)"
28 -+echo "Checking if compiler wants to create pic code"
29 -+[ "$piclib" == "" ] && \
30 - if eval "$CPP match.S > _match.s 2>/dev/null"; then
31 - if test ! -s _match.s || grep error < _match.s > /dev/null; then
32 - :
33
34 diff --git a/app-arch/zip/files/zip-2.31-exec-stack.patch b/app-arch/zip/files/zip-2.31-exec-stack.patch
35 deleted file mode 100644
36 index d3efbd902cb..00000000000
37 --- a/app-arch/zip/files/zip-2.31-exec-stack.patch
38 +++ /dev/null
39 @@ -1,20 +0,0 @@
40 ---- zip-2.31/crc_i386.S
41 -+++ zip-2.31/crc_i386.S
42 -@@ -238,3 +238,7 @@
43 - #endif /* i386 || _i386 || _I386 || __i386 */
44 -
45 - #endif /* !USE_ZLIB */
46 -+
47 -+#ifdef __ELF__
48 -+.section .note.GNU-stack,"",@progbits
49 -+#endif
50 ---- zip-2.31/match.S
51 -+++ zip-2.31/match.S
52 -@@ -405,3 +405,7 @@
53 - #endif /* i386 || _I386 || _i386 || __i386 */
54 -
55 - #endif /* !USE_ZLIB */
56 -+
57 -+#ifdef __ELF__
58 -+.section .note.GNU-stack,"",@progbits
59 -+#endif
60
61 diff --git a/app-arch/zip/files/zip-2.32-build.patch b/app-arch/zip/files/zip-2.32-build.patch
62 deleted file mode 100644
63 index 61a2bae34b3..00000000000
64 --- a/app-arch/zip/files/zip-2.32-build.patch
65 +++ /dev/null
66 @@ -1,89 +0,0 @@
67 -respect build environment settings
68 -
69 ---- zip/unix/Makefile
70 -+++ zip/unix/Makefile
71 -@@ -12,15 +12,15 @@
72 -
73 - list: all
74 -
75 --MAKE = make -f unix/Makefile
76 -+MAKE := $(MAKE) -f unix/Makefile
77 - SHELL = /bin/sh
78 - LN = ln -s
79 -
80 - # (to use the Gnu compiler, change cc to gcc in CC)
81 --CC = cc
82 -+CC ?= gcc
83 - BIND = $(CC)
84 - AS = $(CC) -c
85 --CPP = /lib/cpp
86 -+CPP ?= $(CC)
87 - EXE =
88 -
89 - # probably can change this to 'install' if you have it
90 -@@ -47,7 +47,7 @@
91 - # LFLAGS1 flags after output file spec, before obj file list
92 - # LFLAGS2 flags after obj file list (libraries, etc)
93 - CFLAGS_NOOPT = -I. -DUNIX $(LOCAL_ZIP)
94 --CFLAGS = -O2 $(CFLAGS_NOOPT)
95 -+CFLAGS ?= -O2 $(CFLAGS_NOOPT)
96 - LFLAGS1 =
97 - LFLAGS2 = -s
98 -
99 ---- zip/unix/configure
100 -+++ zip/unix/configure
101 -@@ -13,52 +13,13 @@
102 -
103 - CC=${1-cc}
104 --CFLAGS=${2-"-I. -DUNIX"}
105 --LFLAGS1=""
106 -+CFLAGS="${2--I. -DUNIX} ${CFLAGS} ${CPPFLAGS}"
107 -+LFLAGS1="${LDFLAGS}"
108 - LN="ln -s"
109 --echo "Check C compiler type (optimization option)"
110 --cat > conftest.c << _EOF_
111 --int main()
112 --{
113 --#ifndef __SUNPRO_C
114 -- bad code
115 --#endif
116 -- return 0;
117 --}
118 --_EOF_
119 --$CC $CFLAGS -c conftest.c > /dev/null 2>/dev/null
120 --if test $? -eq 0; then
121 -- echo ' Sun C (-xO3)'
122 -- CFLAGS="${CFLAGS} -xO3"
123 --else
124 -- cat > conftest.c << _EOF_
125 --int main()
126 --{
127 --#ifndef __DECC
128 -- bad code
129 --#endif
130 -- return 0;
131 --}
132 --_EOF_
133 -- $CC $CFLAGS -c conftest.c > /dev/null 2>/dev/null
134 -- if test $? -eq 0; then
135 -- echo ' DEC C (-O3)'
136 -- CFLAGS="${CFLAGS} -O3"
137 -- else
138 -- echo ' Other (gcc?) (-O2)'
139 -- CFLAGS="${CFLAGS} -O2"
140 -- fi
141 --fi
142 -
143 - echo Check for the C preprocessor
144 - # on SVR4, cc -E does not produce correct assembler files. Need /lib/cpp.
145 - CPP="${CC} -E"
146 - # solaris as(1) needs -P, maybe others as well ?
147 --[ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P"
148 --[ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp
149 --[ -f /lib/cpp ] && CPP=/lib/cpp
150 --[ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp
151 --[ -f /xenix ] && CPP="${CC} -E"
152 --[ -f /lynx.os ] && CPP="${CC} -E"
153 -
154 - echo "#include <stdio.h>" > conftest.c
155 - $CPP conftest.c >/dev/null 2>/dev/null || CPP="${CC} -E"