Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gnuconfig/, sys-devel/gnuconfig/files/99999999/
Date: Thu, 12 Sep 2019 03:26:00
Message-Id: 1568258684.9841d1b2fda2865dc9e36a8b4402cc5d9338744c.vapier@gentoo
1 commit: 9841d1b2fda2865dc9e36a8b4402cc5d9338744c
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 8 22:17:21 2019 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 12 03:24:44 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9841d1b2
7
8 sys-devel/gnuconfig: rebase onto latest upstream git
9
10 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
11
12 .../0001-add-ps2-targets-to-config.sub.patch | 64 ++++++++++++++++++++++
13 .../0002-Add-x32-support-to-config.guess.patch | 18 +++---
14 .../0002-add-ps2-targets-to-config.sub.patch | 59 --------------------
15 sys-devel/gnuconfig/gnuconfig-99999999.ebuild | 9 +--
16 4 files changed, 78 insertions(+), 72 deletions(-)
17
18 diff --git a/sys-devel/gnuconfig/files/99999999/0001-add-ps2-targets-to-config.sub.patch b/sys-devel/gnuconfig/files/99999999/0001-add-ps2-targets-to-config.sub.patch
19 new file mode 100644
20 index 00000000000..83c259b2b1e
21 --- /dev/null
22 +++ b/sys-devel/gnuconfig/files/99999999/0001-add-ps2-targets-to-config.sub.patch
23 @@ -0,0 +1,64 @@
24 +From d5899b457d3215db991761e57aa4e091e4b24f28 Mon Sep 17 00:00:00 2001
25 +From: Mike Frysinger <vapier@g.o>
26 +Date: Thu, 9 Oct 2008 15:51:35 -0400
27 +Subject: [PATCH] add ps2 targets to config.sub
28 +
29 +We no longer carry the "ps2" target as that conflicts with the long
30 +standing shortcut for the i386-ibm-aix target.
31 +---
32 + config.sub | 25 +++++++++++++++++++++++--
33 + 1 file changed, 23 insertions(+), 2 deletions(-)
34 +
35 +diff --git a/config.sub b/config.sub
36 +index a318a4686850..837d23369163 100755
37 +--- a/config.sub
38 ++++ b/config.sub
39 +@@ -810,6 +810,27 @@ case $basic_machine in
40 + vendor=atari
41 + os=mint
42 + ;;
43 ++ mipsEE* | ee)
44 ++ cpu=mips64r5900el
45 ++ vendor=scei
46 ++ case $os in
47 ++ linux*)
48 ++ ;;
49 ++ *)
50 ++ os=elf
51 ++ ;;
52 ++ esac
53 ++ ;;
54 ++ iop)
55 ++ cpu=mipsel
56 ++ vendor=scei
57 ++ os=irx
58 ++ ;;
59 ++ dvp)
60 ++ cpu=dvp
61 ++ vendor=scei
62 ++ os=elf
63 ++ ;;
64 + news-3600 | risc-news)
65 + cpu=mips
66 + vendor=sony
67 +@@ -1172,7 +1193,7 @@ case $cpu-$vendor in
68 + | bfin | bpf | bs2000 \
69 + | c[123]* | c30 | [cjt]90 | c4x \
70 + | c8051 | clipper | craynv | csky | cydra \
71 +- | d10v | d30v | dlx | dsp16xx \
72 ++ | d10v | d30v | dlx | dsp16xx | dvp \
73 + | e2k | elxsi | epiphany \
74 + | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
75 + | h8300 | h8500 \
76 +@@ -1359,7 +1380,7 @@ case $os in
77 + | uxpv* | beos* | mpeix* | udk* | moxiebox* \
78 + | interix* | uwin* | mks* | rhapsody* | darwin* \
79 + | openstep* | oskit* | conix* | pw32* | nonstopux* \
80 +- | storm-chaos* | tops10* | tenex* | tops20* | its* \
81 ++ | storm-chaos* | tops10* | tenex* | tops20* | its* | irx* \
82 + | os2* | vos* | palmos* | uclinux* | nucleus* \
83 + | morphos* | superux* | rtmk* | windiss* \
84 + | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
85 +--
86 +2.19.1
87 +
88
89 diff --git a/sys-devel/gnuconfig/files/99999999/0002-Add-x32-support-to-config.guess.patch b/sys-devel/gnuconfig/files/99999999/0002-Add-x32-support-to-config.guess.patch
90 index 2c69f57878e..5a696d1c4b4 100644
91 --- a/sys-devel/gnuconfig/files/99999999/0002-Add-x32-support-to-config.guess.patch
92 +++ b/sys-devel/gnuconfig/files/99999999/0002-Add-x32-support-to-config.guess.patch
93 @@ -1,4 +1,4 @@
94 -From 8474d78c459f4ec8f8930094faeaacb2b77bf68f Mon Sep 17 00:00:00 2001
95 +From 42ebd93d96cd060141e37d9d6601ca1e7d21040d Mon Sep 17 00:00:00 2001
96 From: "H.J. Lu" <hongjiu.lu@×××××.com>
97 Date: Fri, 20 Dec 2013 14:36:01 -0500
98 Subject: [PATCH] Add x32 support to config.guess
99 @@ -16,15 +16,15 @@ URL: http://gcc.gnu.org/ml/gcc-patches/2012-08/msg01083.html
100 1 file changed, 12 insertions(+), 1 deletion(-)
101
102 diff --git a/config.guess b/config.guess
103 -index fddac42..17a4f70 100755
104 +index 97ad0733304d..92f16126465f 100755
105 --- a/config.guess
106 +++ b/config.guess
107 -@@ -1038,7 +1038,18 @@ EOF
108 - echo ${UNAME_MACHINE}-dec-linux-${LIBC}
109 +@@ -1090,7 +1090,18 @@ EOF
110 + echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
111 exit ;;
112 x86_64:Linux:*:*)
113 -- echo ${UNAME_MACHINE}-pc-linux-${LIBC}
114 -+ eval $set_cc_for_build
115 +- echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
116 ++ set_cc_for_build
117 + X86_64_ABI=
118 + # If there is a compiler, see if it is configured for 32-bit objects.
119 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
120 @@ -35,10 +35,10 @@ index fddac42..17a4f70 100755
121 + X86_64_ABI=x32
122 + fi
123 + fi
124 -+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}${X86_64_ABI}
125 ++ echo "$UNAME_MACHINE"-pc-linux-"$LIBC$X86_64_ABI"
126 exit ;;
127 xtensa*:Linux:*:*)
128 - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
129 + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
130 --
131 -2.4.4
132 +2.19.1
133
134
135 diff --git a/sys-devel/gnuconfig/files/99999999/0002-add-ps2-targets-to-config.sub.patch b/sys-devel/gnuconfig/files/99999999/0002-add-ps2-targets-to-config.sub.patch
136 deleted file mode 100644
137 index 88e43cd8ac2..00000000000
138 --- a/sys-devel/gnuconfig/files/99999999/0002-add-ps2-targets-to-config.sub.patch
139 +++ /dev/null
140 @@ -1,59 +0,0 @@
141 -From 582f9caf95b3ccf36e6248be3b5b414546b0a03e Mon Sep 17 00:00:00 2001
142 -From: Mike Frysinger <vapier@g.o>
143 -Date: Thu, 9 Oct 2008 15:51:35 -0400
144 -Subject: [PATCH] add ps2 targets to config.sub
145 -
146 ----
147 - config.sub | 22 ++++++++++++++++++++--
148 - 1 file changed, 20 insertions(+), 2 deletions(-)
149 -
150 -diff --git a/config.sub b/config.sub
151 -index 88307c1..7ee2b4c 100755
152 ---- a/config.sub
153 -+++ b/config.sub
154 -@@ -258,7 +258,7 @@ case $basic_machine in
155 - | be32 | be64 \
156 - | bfin \
157 - | c4x | c8051 | clipper \
158 -- | d10v | d30v | dlx | dsp16xx \
159 -+ | d10v | d30v | dlx | dsp16xx | dvp \
160 - | e2k | epiphany \
161 - | fido | fr30 | frv | ft32 \
162 - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
163 -@@ -823,6 +823,24 @@ case $basic_machine in
164 - basic_machine=m68k-atari
165 - os=-mint
166 - ;;
167 -+ mipsEE* | ee | ps2)
168 -+ basic_machine=mips64r5900el-scei
169 -+ case $os in
170 -+ -linux*)
171 -+ ;;
172 -+ *)
173 -+ os=-elf
174 -+ ;;
175 -+ esac
176 -+ ;;
177 -+ iop)
178 -+ basic_machine=mipsel-scei
179 -+ os=-irx
180 -+ ;;
181 -+ dvp)
182 -+ basic_machine=dvp-scei
183 -+ os=-elf
184 -+ ;;
185 - mips3*-*)
186 - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
187 - ;;
188 -@@ -1389,7 +1407,7 @@ case $os in
189 - | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
190 - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
191 - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
192 -- | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
193 -+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \
194 - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
195 - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
196 - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
197 ---
198 -2.3.1
199 -
200
201 diff --git a/sys-devel/gnuconfig/gnuconfig-99999999.ebuild b/sys-devel/gnuconfig/gnuconfig-99999999.ebuild
202 index 387ba6cac9a..c7e0faa0146 100644
203 --- a/sys-devel/gnuconfig/gnuconfig-99999999.ebuild
204 +++ b/sys-devel/gnuconfig/gnuconfig-99999999.ebuild
205 @@ -1,7 +1,7 @@
206 # Copyright 1999-2019 Gentoo Authors
207 # Distributed under the terms of the GNU General Public License v2
208
209 -EAPI="5"
210 +EAPI="6"
211
212 inherit eutils
213 if [[ ${PV} == "99999999" ]] ; then
214 @@ -31,9 +31,9 @@ maint_pkg_create() {
215 cp "${FILESDIR}"/${PV}/*.patch . || die
216
217 local tar="${T}/gnuconfig-${ver}.tar.bz2"
218 - tar -jcf ${tar} ./* || die "creating tar failed"
219 + tar -jcf "${tar}" ./* || die "creating tar failed"
220 einfo "Packaged tar now available:"
221 - einfo "$(du -b ${tar})"
222 + einfo "$(du -b "${tar}")"
223 }
224
225 src_unpack() {
226 @@ -46,7 +46,8 @@ src_unpack() {
227 }
228
229 src_prepare() {
230 - epatch "${S}"/*.patch
231 + default
232 + eapply "${S}"/*.patch
233 use elibc_uclibc && sed -i 's:linux-gnu:linux-uclibc:' testsuite/config-guess.data #180637
234 }