Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/
Date: Tue, 31 Mar 2020 07:02:58
Message-Id: 1585638148.ae8fe4521b047d71437f98218ff595715f41cfc9.slyfox@gentoo
1 commit: ae8fe4521b047d71437f98218ff595715f41cfc9
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 31 07:02:28 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 31 07:02:28 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae8fe452
7
8 sys-libs/newlib: drop old, bug #713284
9
10 Bug: https://bugs.gentoo.org/713284
11 Package-Manager: Portage-2.3.96, Repoman-2.3.22
12 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
13
14 sys-libs/newlib/Manifest | 3 -
15 sys-libs/newlib/newlib-2.2.0.ebuild | 81 ---------------------
16 sys-libs/newlib/newlib-2.5.0.ebuild | 139 -----------------------------------
17 sys-libs/newlib/newlib-3.1.0.ebuild | 141 ------------------------------------
18 4 files changed, 364 deletions(-)
19
20 diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
21 index ac2c4dc6a96..12a1c1b3017 100644
22 --- a/sys-libs/newlib/Manifest
23 +++ b/sys-libs/newlib/Manifest
24 @@ -1,4 +1 @@
25 -DIST newlib-2.2.0.tar.gz 16521910 BLAKE2B 530290c8f219774885e3c408889b7f58bbeefe5c092f004c9ad61de8642b725df1f8fd2a00760ebde814e5bf379ae0320a589d2318113f371a733c5abaca2ba7 SHA512 ab9161f16845367c823b6709e3c5708969f29f05c77edb1cf969ff4202f358648f1e55080974599dcefed2fbced4694dc73748596e76c1aa37c50cddff6e4be3
26 -DIST newlib-2.5.0.tar.gz 17912392 BLAKE2B bc89491758d59f3529c72308e963c5b3e39044d6d586ef3814cc19cf55aee33948656c544df7dfcbe3915105e7373f53d7b2baf96b9b8147e3af780c1d08e670 SHA512 4c99e8dfcb4a7ad0769b9e173ff06628d82e4993ef87d3adf9d6b5578626b14de81b4b3c5f0673ddbb49dc9f3d3628f9f8d4432dcded91f5cd3d27b7d44343cd
27 -DIST newlib-3.1.0.tar.gz 17958952 BLAKE2B 3a84ae81fc07e442a4ed3da7a78e7ede34cc7e24b5d1c66a12624ed808e5f85f134751fcea0e4ce9eb39df287a582821f751a8610a088c149895b5e38eb06989 SHA512 efc4c3ab7153387780d141386bca5d3e20c9d25ae3e6b87cf94c8df9d301ce5926dacdff9bd33aeb9781559d933c3d0ae77f4e5b46120d90792f75dbfde702c7
28 DIST newlib-3.3.0.tar.gz 18361083 BLAKE2B bdc81427955d0a2f550bf2973ca82c0b8b55aa170565cdf1cfe8ac926257fad6d3e860ce7b2e286949ab21be2677378b5b6d3c743c05fe8aa6df8a8c34a16945 SHA512 2f0c6666487520e1a0af0b6935431f85d2359e27ded0d01d02567d0d1c6479f2f0e6bbc60405e88e46b92c2a18780a01a60fc9281f7e311cfd40b8d5881d629c
29
30 diff --git a/sys-libs/newlib/newlib-2.2.0.ebuild b/sys-libs/newlib/newlib-2.2.0.ebuild
31 deleted file mode 100644
32 index 324973fcfa5..00000000000
33 --- a/sys-libs/newlib/newlib-2.2.0.ebuild
34 +++ /dev/null
35 @@ -1,81 +0,0 @@
36 -# Copyright 1999-2020 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI="4"
40 -
41 -inherit flag-o-matic toolchain-funcs eutils
42 -
43 -if [[ ${PV} == "9999" ]] ; then
44 - EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git"
45 - inherit git-r3
46 -else
47 - SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz"
48 - KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
49 -fi
50 -
51 -export CBUILD=${CBUILD:-${CHOST}}
52 -export CTARGET=${CTARGET:-${CHOST}}
53 -if [[ ${CTARGET} == ${CHOST} ]] ; then
54 - if [[ ${CATEGORY} == cross-* ]] ; then
55 - export CTARGET=${CATEGORY#cross-}
56 - fi
57 -fi
58 -
59 -DESCRIPTION="Newlib is a C library intended for use on embedded systems"
60 -HOMEPAGE="https://sourceware.org/newlib/"
61 -
62 -LICENSE="NEWLIB LIBGLOSS GPL-2"
63 -SLOT="0"
64 -IUSE="nls threads unicode headers-only"
65 -RESTRICT="strip"
66 -
67 -# Handle the SLOT changes. #497344
68 -RDEPEND="!<${CATEGORY}/${PN}-2.1.0"
69 -
70 -NEWLIBBUILD="${WORKDIR}/build"
71 -
72 -pkg_setup() {
73 - # Reject newlib-on-glibc type installs
74 - if [[ ${CTARGET} == ${CHOST} ]] ; then
75 - case ${CHOST} in
76 - *-newlib|*-elf) ;;
77 - *) die "Use sys-devel/crossdev to build a newlib toolchain" ;;
78 - esac
79 - fi
80 -}
81 -
82 -src_prepare() {
83 - epatch_user
84 -}
85 -
86 -src_configure() {
87 - # we should fix this ...
88 - unset LDFLAGS
89 - CHOST=${CTARGET} strip-unsupported-flags
90 -
91 - local myconf=""
92 - [[ ${CTARGET} == "spu" ]] \
93 - && myconf="${myconf} --disable-newlib-multithread" \
94 - || myconf="${myconf} $(use_enable threads newlib-multithread)"
95 -
96 - mkdir -p "${NEWLIBBUILD}"
97 - cd "${NEWLIBBUILD}"
98 -
99 - ECONF_SOURCE=${S} \
100 - econf \
101 - $(use_enable unicode newlib-mb) \
102 - $(use_enable nls) \
103 - ${myconf}
104 -}
105 -
106 -src_compile() {
107 - emake -C "${NEWLIBBUILD}"
108 -}
109 -
110 -src_install() {
111 - cd "${NEWLIBBUILD}"
112 - emake -j1 DESTDIR="${D}" install
113 - # minor hack to keep things clean
114 - rm -fR "${D}"/usr/share/info
115 - rm -fR "${D}"/usr/info
116 -}
117
118 diff --git a/sys-libs/newlib/newlib-2.5.0.ebuild b/sys-libs/newlib/newlib-2.5.0.ebuild
119 deleted file mode 100644
120 index f2b9ba72e10..00000000000
121 --- a/sys-libs/newlib/newlib-2.5.0.ebuild
122 +++ /dev/null
123 @@ -1,139 +0,0 @@
124 -# Copyright 1999-2020 Gentoo Authors
125 -# Distributed under the terms of the GNU General Public License v2
126 -
127 -EAPI="6"
128 -
129 -inherit flag-o-matic toolchain-funcs
130 -
131 -if [[ ${PV} == "9999" ]] ; then
132 - EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git"
133 - inherit git-r3
134 -else
135 - SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz"
136 - if [[ ${PV} != *.201[5-9]???? ]] ; then
137 - KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
138 - fi
139 -fi
140 -
141 -export CBUILD=${CBUILD:-${CHOST}}
142 -export CTARGET=${CTARGET:-${CHOST}}
143 -if [[ ${CTARGET} == ${CHOST} ]] ; then
144 - if [[ ${CATEGORY} == cross-* ]] ; then
145 - export CTARGET=${CATEGORY#cross-}
146 - fi
147 -fi
148 -
149 -DESCRIPTION="Newlib is a C library intended for use on embedded systems"
150 -HOMEPAGE="https://sourceware.org/newlib/"
151 -
152 -LICENSE="NEWLIB LIBGLOSS GPL-2"
153 -SLOT="0"
154 -IUSE="nls threads unicode headers-only nano"
155 -RESTRICT="strip"
156 -
157 -NEWLIBBUILD="${WORKDIR}/build"
158 -NEWLIBNANOBUILD="${WORKDIR}/build.nano"
159 -NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
160 -
161 -CFLAGS_FULL="-ffunction-sections -fdata-sections"
162 -CFLAGS_NANO="-Os -ffunction-sections -fdata-sections"
163 -
164 -pkg_setup() {
165 - # Reject newlib-on-glibc type installs
166 - if [[ ${CTARGET} == ${CHOST} ]] ; then
167 - case ${CHOST} in
168 - *-newlib|*-elf) ;;
169 - *) die "Use sys-devel/crossdev to build a newlib toolchain" ;;
170 - esac
171 - fi
172 -}
173 -
174 -src_configure() {
175 - # we should fix this ...
176 - unset LDFLAGS
177 - CHOST=${CTARGET} strip-unsupported-flags
178 - CCASFLAGS_ORIG="${CCASFLAGS}"
179 - CFLAGS_ORIG="${CFLAGS}"
180 -
181 - local myconf=(
182 - # Disable legacy syscall stub code in newlib. These have been
183 - # moved to libgloss for a long time now, so the code in newlib
184 - # itself just gets in the way.
185 - --disable-newlib-supplied-syscalls
186 - )
187 - [[ ${CTARGET} == "spu" ]] \
188 - && myconf+=( --disable-newlib-multithread ) \
189 - || myconf+=( $(use_enable threads newlib-multithread) )
190 -
191 - mkdir -p "${NEWLIBBUILD}"
192 - cd "${NEWLIBBUILD}"
193 -
194 - export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
195 - export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}"
196 - ECONF_SOURCE=${S} \
197 - econf \
198 - $(use_enable unicode newlib-mb) \
199 - $(use_enable nls) \
200 - "${myconf[@]}"
201 -
202 - # Build newlib-nano beside newlib (original)
203 - # Based on https://tracker.debian.org/media/packages/n/newlib/rules-2.1.0%2Bgit20140818.1a8323b-2
204 - if use nano ; then
205 - mkdir -p "${NEWLIBNANOBUILD}" || die
206 - cd "${NEWLIBNANOBUILD}" || die
207 - export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_NANO}"
208 - export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_NANO}"
209 - ECONF_SOURCE=${S} \
210 - econf \
211 - $(use_enable unicode newlib-mb) \
212 - $(use_enable nls) \
213 - --enable-newlib-reent-small \
214 - --disable-newlib-fvwrite-in-streamio \
215 - --disable-newlib-fseek-optimization \
216 - --disable-newlib-wide-orient \
217 - --enable-newlib-nano-malloc \
218 - --disable-newlib-unbuf-stream-opt \
219 - --enable-lite-exit \
220 - --enable-newlib-global-atexit \
221 - --enable-newlib-nano-formatted-io \
222 - ${myconf}
223 - fi
224 -}
225 -
226 -src_compile() {
227 - export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
228 - export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}"
229 - emake -C "${NEWLIBBUILD}"
230 -
231 - if use nano ; then
232 - export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_NANO}"
233 - export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_NANO}"
234 - emake -C "${NEWLIBNANOBUILD}"
235 - fi
236 -}
237 -
238 -src_install() {
239 - cd "${NEWLIBBUILD}" || die
240 - emake -j1 DESTDIR="${D}" install
241 -
242 - if use nano ; then
243 - cd "${NEWLIBNANOBUILD}" || die
244 - emake -j1 DESTDIR="${NEWLIBNANOTMPINSTALL}" install
245 - # Rename nano lib* files to lib*_nano and move to the real ${D}
246 - local nanolibfiles=""
247 - nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex ".*/lib\(c\|g\|rdimon\)\.a" -print)
248 - for f in ${nanolibfiles}; do
249 - local l="${f##${NEWLIBNANOTMPINSTALL}}"
250 - mv -v "${f}" "${D}/${l%%\.a}_nano.a" || die
251 - done
252 -
253 - # Move newlib-nano's version of newlib.h to newlib-nano/newlib.h
254 - mkdir -p "${D}/usr/${CTARGET}/include/newlib-nano" || die
255 - mv "${NEWLIBNANOTMPINSTALL}/usr/${CTARGET}/include/newlib.h" \
256 - "${D}/usr/${CTARGET}/include/newlib-nano/newlib.h" || die
257 - fi
258 -
259 - # minor hack to keep things clean
260 - rm -rf "${D}"/usr/share/info || die
261 - rm -rf "${D}"/usr/info || die
262 -}
263
264 diff --git a/sys-libs/newlib/newlib-3.1.0.ebuild b/sys-libs/newlib/newlib-3.1.0.ebuild
265 deleted file mode 100644
266 index db1a3fad9cf..00000000000
267 --- a/sys-libs/newlib/newlib-3.1.0.ebuild
268 +++ /dev/null
269 @@ -1,141 +0,0 @@
270 -# Copyright 1999-2020 Gentoo Authors
271 -# Distributed under the terms of the GNU General Public License v2
272 -
273 -EAPI="7"
274 -
275 -inherit flag-o-matic toolchain-funcs
276 -
277 -if [[ ${PV} == "9999" ]] ; then
278 - EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git"
279 - inherit git-r3
280 -else
281 - SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz"
282 - KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
283 -fi
284 -
285 -export CBUILD=${CBUILD:-${CHOST}}
286 -export CTARGET=${CTARGET:-${CHOST}}
287 -if [[ ${CTARGET} == ${CHOST} ]] ; then
288 - if [[ ${CATEGORY} == cross-* ]] ; then
289 - export CTARGET=${CATEGORY#cross-}
290 - fi
291 -fi
292 -
293 -DESCRIPTION="Newlib is a C library intended for use on embedded systems"
294 -HOMEPAGE="https://sourceware.org/newlib/"
295 -
296 -LICENSE="NEWLIB LIBGLOSS GPL-2"
297 -SLOT="0"
298 -IUSE="nls threads unicode headers-only nano"
299 -RESTRICT="strip"
300 -
301 -NEWLIBBUILD="${WORKDIR}/build"
302 -NEWLIBNANOBUILD="${WORKDIR}/build.nano"
303 -NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
304 -
305 -# Adding -U_FORTIFY_SOURCE to counter the effect of Gentoo's
306 -# auto-addition of _FORTIFY_SOURCE at gcc site: bug #656018#c4
307 -# Currently newlib can't be built itself when _FORTIFY_SOURCE
308 -# is set.
309 -CFLAGS_FULL="-ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
310 -CFLAGS_NANO="-Os -ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
311 -
312 -pkg_setup() {
313 - # Reject newlib-on-glibc type installs
314 - if [[ ${CTARGET} == ${CHOST} ]] ; then
315 - case ${CHOST} in
316 - *-newlib|*-elf) ;;
317 - *) die "Use sys-devel/crossdev to build a newlib toolchain" ;;
318 - esac
319 - fi
320 -}
321 -
322 -src_configure() {
323 - # we should fix this ...
324 - unset LDFLAGS
325 - CHOST=${CTARGET} strip-unsupported-flags
326 - CCASFLAGS_ORIG="${CCASFLAGS}"
327 - CFLAGS_ORIG="${CFLAGS}"
328 -
329 - local myconf=(
330 - # Disable legacy syscall stub code in newlib. These have been
331 - # moved to libgloss for a long time now, so the code in newlib
332 - # itself just gets in the way.
333 - --disable-newlib-supplied-syscalls
334 - )
335 - [[ ${CTARGET} == "spu" ]] \
336 - && myconf+=( --disable-newlib-multithread ) \
337 - || myconf+=( $(use_enable threads newlib-multithread) )
338 -
339 - mkdir -p "${NEWLIBBUILD}"
340 - cd "${NEWLIBBUILD}"
341 -
342 - export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
343 - export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}"
344 - ECONF_SOURCE=${S} \
345 - econf \
346 - $(use_enable unicode newlib-mb) \
347 - $(use_enable nls) \
348 - "${myconf[@]}"
349 -
350 - # Build newlib-nano beside newlib (original)
351 - # Based on https://tracker.debian.org/media/packages/n/newlib/rules-2.1.0%2Bgit20140818.1a8323b-2
352 - if use nano ; then
353 - mkdir -p "${NEWLIBNANOBUILD}" || die
354 - cd "${NEWLIBNANOBUILD}" || die
355 - export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_NANO}"
356 - export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_NANO}"
357 - ECONF_SOURCE=${S} \
358 - econf \
359 - $(use_enable unicode newlib-mb) \
360 - $(use_enable nls) \
361 - --enable-newlib-reent-small \
362 - --disable-newlib-fvwrite-in-streamio \
363 - --disable-newlib-fseek-optimization \
364 - --disable-newlib-wide-orient \
365 - --enable-newlib-nano-malloc \
366 - --disable-newlib-unbuf-stream-opt \
367 - --enable-lite-exit \
368 - --enable-newlib-global-atexit \
369 - --enable-newlib-nano-formatted-io \
370 - ${myconf}
371 - fi
372 -}
373 -
374 -src_compile() {
375 - export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
376 - export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}"
377 - emake -C "${NEWLIBBUILD}"
378 -
379 - if use nano ; then
380 - export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_NANO}"
381 - export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_NANO}"
382 - emake -C "${NEWLIBNANOBUILD}"
383 - fi
384 -}
385 -
386 -src_install() {
387 - cd "${NEWLIBBUILD}" || die
388 - emake -j1 DESTDIR="${D}" install
389 -
390 - if use nano ; then
391 - cd "${NEWLIBNANOBUILD}" || die
392 - emake -j1 DESTDIR="${NEWLIBNANOTMPINSTALL}" install
393 - # Rename nano lib* files to lib*_nano and move to the real ${D}
394 - local nanolibfiles=""
395 - nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex ".*/lib\(c\|g\|rdimon\)\.a" -print)
396 - for f in ${nanolibfiles}; do
397 - local l="${f##${NEWLIBNANOTMPINSTALL}}"
398 - mv -v "${f}" "${D}/${l%%\.a}_nano.a" || die
399 - done
400 -
401 - # Move newlib-nano's version of newlib.h to newlib-nano/newlib.h
402 - mkdir -p "${D}/usr/${CTARGET}/include/newlib-nano" || die
403 - mv "${NEWLIBNANOTMPINSTALL}/usr/${CTARGET}/include/newlib.h" \
404 - "${D}/usr/${CTARGET}/include/newlib-nano/newlib.h" || die
405 - fi
406 -
407 - # minor hack to keep things clean
408 - rm -rf "${D}"/usr/share/info || die
409 - rm -rf "${D}"/usr/info || die
410 -}