[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2024-02-23 Thread Sam James
commit: c0a9d51b7b95bfbcefde3cfc6c1e6fefe2137cd7
Author: Sam James  gentoo  org>
AuthorDate: Fri Feb 23 17:41:41 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Feb 23 17:41:49 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0a9d51b

sys-libs/newlib: add 4.4.0.20231231

Signed-off-by: Sam James  gentoo.org>

 sys-libs/newlib/Manifest| 1 +
 .../newlib/{newlib-.ebuild => newlib-4.4.0.20231231.ebuild} | 6 +++---
 sys-libs/newlib/newlib-.ebuild  | 6 +++---
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index ecab6584c5f8..5797ec3a58bd 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1,3 +1,4 @@
 DIST newlib-4.1.0.tar.gz 18648429 BLAKE2B 
c4d4d734bceeacf05b75d450d4316392d266812f98f99cd3f9f0926ac9848e1dc145361827d1d6951edfe5f109923c982d9f284f927ffc5fd5e5edaf8be6
 SHA512 
6a24b64bb8136e4cd9d21b8720a36f87a34397fd952520af66903e183455c5cf19bb0ee4607c12a05d139c6c59382263383cb62c461a839f969d23d3bc4b1d34
 DIST newlib-4.2.0.20211231.tar.gz 18921589 BLAKE2B 
fb85a368d082e2b9005d5d295d6854eb7d0e351cfade6516e6a06b18656d9139d7629f55a6d5f63337c6bce511a2373e797bed96847f19941b26cacfb1c8d3bc
 SHA512 
0c3efd7b74a6b8457a717cbb6aa6c5ff268eeaba375535465c6bd6502c3d32b54a9bc3ba7f2c6990f78e29152eee2f62acb39b674d24f9ddf440374a1ec9d2e8
 DIST newlib-4.3.0.20230120.tar.gz 8832922 BLAKE2B 
b5493f25e44049f4e1222698894e7e67756928062e05f5d16bcd52b2221e5c04a80a9e0cbc3fc6e92d67fe6b3813e06b6d3a6d39e8742e02b8f13ff84d809de1
 SHA512 
4a06309d36c2255fef8fc8f2d133cafa850f1ed2eddfb27b5d45f5d16af69e0fca829a0b4c9b34af4ed3a28c6fcc929761e0ee823a4229f35c2853d432b5e7ef
+DIST newlib-4.4.0.20231231.tar.gz 9022406 BLAKE2B 
1df810c7776aa1fe2806682509ab45df642f5e80d6069b7c6ca513b3d820440fc73abdf7505d1f3149d0a07f0c5558a48620d2824f1698c2f1df5f6473105eb4
 SHA512 
ea3baa0b7c9175aae024f0b7d272be092ef2c07483239a99329203e18a44bc23093d29e0ffcbe14bc591f610f0829eacd646cabb06d1c34aa23239cb1b814b46

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-4.4.0.20231231.ebuild
similarity index 97%
copy from sys-libs/newlib/newlib-.ebuild
copy to sys-libs/newlib/newlib-4.4.0.20231231.ebuild
index d14c58291626..d29d3f10e0d1 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-4.4.0.20231231.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI="8"
 
 inherit flag-o-matic toolchain-funcs
 
@@ -9,7 +9,7 @@ if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
inherit git-r3
 else
-   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
+   SRC_URI="https://sourceware.org/pub/newlib/${P}.tar.gz;
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
 fi
 

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index d14c58291626..d29d3f10e0d1 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI="8"
 
 inherit flag-o-matic toolchain-funcs
 
@@ -9,7 +9,7 @@ if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
inherit git-r3
 else
-   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
+   SRC_URI="https://sourceware.org/pub/newlib/${P}.tar.gz;
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
 fi
 



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2023-08-07 Thread Sam James
commit: cb9e19b74479f5282704933a57882d6a9dd26a7f
Author: Sam James  gentoo  org>
AuthorDate: Tue Aug  8 05:35:38 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Aug  8 05:35:59 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb9e19b7

sys-libs/newlib: pass --disable-dependency-tracking

We already do this for gdb/binutils/gcc. Do the same here.

Signed-off-by: Sam James  gentoo.org>

 sys-libs/newlib/newlib-4.3.0.20230120-r2.ebuild | 1 +
 sys-libs/newlib/newlib-.ebuild  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sys-libs/newlib/newlib-4.3.0.20230120-r2.ebuild 
b/sys-libs/newlib/newlib-4.3.0.20230120-r2.ebuild
index 942c2fe4601b..2436fa048633 100644
--- a/sys-libs/newlib/newlib-4.3.0.20230120-r2.ebuild
+++ b/sys-libs/newlib/newlib-4.3.0.20230120-r2.ebuild
@@ -70,6 +70,7 @@ src_configure() {
local myconf=(
# The top-level configure doesn't utilize this flag, but 
subdirs do,
# so autodetection for econf doesn't work.  Add ourselves.
+   --disable-dependency-tracking
--disable-silent-rules
# Disable legacy syscall stub code in newlib.  These have been
# moved to libgloss for a long time now, so the code in newlib

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 21ce7e99de7c..d14c58291626 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -69,6 +69,7 @@ src_configure() {
local myconf=(
# The top-level configure doesn't utilize this flag, but 
subdirs do,
# so autodetection for econf doesn't work.  Add ourselves.
+   --disable-dependency-tracking
--disable-silent-rules
# Disable legacy syscall stub code in newlib.  These have been
# moved to libgloss for a long time now, so the code in newlib



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/, sys-libs/newlib/files/

2023-06-16 Thread Sam James
commit: 1d2ff0e8d3c0e012ed57743adb869797782f1a26
Author: Sam James  gentoo  org>
AuthorDate: Sat Jun 17 02:58:40 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jun 17 02:58:41 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d2ff0e8

sys-libs/newlib: backport arm setjmp fix

It looked like a new upstream release/snapshot was going to be made so I'd
forgot about it, but got reminded of this today, so let's backport the patch.

Closes: https://bugs.gentoo.org/891589
Signed-off-by: Sam James  gentoo.org>

 ...0120-libc-arm-setjmp-gcc-backwards-compat.patch |  57 
 sys-libs/newlib/newlib-4.3.0.20230120-r2.ebuild| 154 +
 2 files changed, 211 insertions(+)

diff --git 
a/sys-libs/newlib/files/newlib-4.3.0.20230120-libc-arm-setjmp-gcc-backwards-compat.patch
 
b/sys-libs/newlib/files/newlib-4.3.0.20230120-libc-arm-setjmp-gcc-backwards-compat.patch
new file mode 100644
index ..3eab820db787
--- /dev/null
+++ 
b/sys-libs/newlib/files/newlib-4.3.0.20230120-libc-arm-setjmp-gcc-backwards-compat.patch
@@ -0,0 +1,57 @@
+https://bugs.gentoo.org/891589
+https://sourceware.org/pipermail/newlib/2022/020035.html
+https://sourceware.org/git/?p=newlib-cygwin.git;a=commit;h=c6e601de84ea9f2be2b026c609cc3c1fe82a3103
+
+From c6e601de84ea9f2be2b026c609cc3c1fe82a3103 Mon Sep 17 00:00:00 2001
+From: "Victor L. Do Nascimento" 
+Date: Fri, 3 Feb 2023 11:15:26 +
+Subject: [PATCH] libc: arm: Implement setjmp GCC backwards compatibility.
+
+When compiling Newlib for arm targets with GCC 12.1 onward, the
+passing of architecture extension information to the assembler is
+automatic, making the use of .fpu and .arch_extension directives
+in assembly files redundant.
+
+With older versions of GCC, however, these directives must be
+hard-coded into the `arm/setjmp.S' file to allow the assembly of
+instructions concerning the storage and subsequent reloading of the
+floating point registers to/from the jump buffer, respectively.
+
+This patch conditionally adds the `.fpu vfpxd' and `.arch_extension
+mve' directives based on compile-time preprocessor macros concerning
+GCC version and target architectural features, such that both the
+assembly and linking of setjmp.S succeeds for older versions of
+Newlib.
+--- a/newlib/libc/machine/arm/setjmp.S
 b/newlib/libc/machine/arm/setjmp.S
+@@ -64,6 +64,28 @@
+ 
+   .syntax unified
+ 
++/*  GCC 12.1 and later will tell the assembler exactly which floating
++point (or MVE) unit is required and we don't want to override
++that.  Conversely, older versions of the compiler don't pass this
++information so we need to enable the VFP version that is most
++appropriate.  The choice here should support all suitable VFP
++versions that the older toolchains can handle.  */
++#if __GNUC__ && __GNUC__ < 12
++/*  Ensure that FPU instructions are correctly compiled and, likewise,
++the appropriate build attributes are added to the resulting object
++file.  Check whether the MVE extension is present and whether
++we have support for hardware floating point-operations.  VFPxd
++covers all the cases we need in this file for hardware
++floating-point and should be compatible with all required FPUs
++that we need to support.  */
++# if __ARM_FP
++  .fpu vfpxd
++# endif
++# if __ARM_FEATURE_MVE
++  .arch_extension mve
++# endif
++#endif
++
+ #if __ARM_ARCH_ISA_THUMB == 1 && !__ARM_ARCH_ISA_ARM
+ /* ARMv6-M-like has to be implemented in Thumb mode.  */
+ 
+-- 
+2.39.3

diff --git a/sys-libs/newlib/newlib-4.3.0.20230120-r2.ebuild 
b/sys-libs/newlib/newlib-4.3.0.20230120-r2.ebuild
new file mode 100644
index ..942c2fe4601b
--- /dev/null
+++ b/sys-libs/newlib/newlib-4.3.0.20230120-r2.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit flag-o-matic toolchain-funcs
+
+if [[ ${PV} == "" ]] ; then
+   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
+   inherit git-r3
+else
+   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
+   KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
+fi
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+   if [[ ${CATEGORY} == cross-* ]] ; then
+   export CTARGET=${CATEGORY#cross-}
+   fi
+fi
+
+DESCRIPTION="Newlib is a C library intended for use on embedded systems"
+HOMEPAGE="https://sourceware.org/newlib/;
+
+LICENSE="NEWLIB LIBGLOSS GPL-2"
+SLOT="0"
+IUSE="nls threads unicode headers-only nano"
+RESTRICT="strip"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-3.3.0-no-nano-cxx.patch
+   "${FILESDIR}"/${P}-libc-arm-setjmp-gcc-backwards-compat.patch
+)
+
+NEWLIBBUILD="${WORKDIR}/build"
+NEWLIBNANOBUILD="${WORKDIR}/build.nano"
+NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
+

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2023-03-08 Thread Sam James
commit: 4f45d911ab3fccbf139b004c9576c4cab305de18
Author: Sam James  gentoo  org>
AuthorDate: Thu Mar  9 01:02:20 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar  9 01:02:20 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f45d911

sys-libs/newlib: fix passing args to econf

Closes: https://bugs.gentoo.org/892766
Thanks-to: Gabriel Marcano  yahoo.com>
Signed-off-by: Sam James  gentoo.org>

 sys-libs/newlib/{newlib-4.1.0-r1.ebuild => newlib-4.1.0-r2.ebuild}| 4 ++--
 .../{newlib-4.2.0.20211231.ebuild => newlib-4.2.0.20211231-r1.ebuild} | 4 ++--
 .../{newlib-4.3.0.20230120.ebuild => newlib-4.3.0.20230120-r1.ebuild} | 2 +-
 sys-libs/newlib/newlib-.ebuild| 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sys-libs/newlib/newlib-4.1.0-r1.ebuild 
b/sys-libs/newlib/newlib-4.1.0-r2.ebuild
similarity index 98%
rename from sys-libs/newlib/newlib-4.1.0-r1.ebuild
rename to sys-libs/newlib/newlib-4.1.0-r2.ebuild
index a6ad7b9c65d1..52f5c0cbde67 100644
--- a/sys-libs/newlib/newlib-4.1.0-r1.ebuild
+++ b/sys-libs/newlib/newlib-4.1.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -111,7 +111,7 @@ src_configure() {
--enable-lite-exit \
--enable-newlib-global-atexit \
--enable-newlib-nano-formatted-io \
-   ${myconf}
+   "${myconf[@]}"
fi
 }
 

diff --git a/sys-libs/newlib/newlib-4.2.0.20211231.ebuild 
b/sys-libs/newlib/newlib-4.2.0.20211231-r1.ebuild
similarity index 98%
rename from sys-libs/newlib/newlib-4.2.0.20211231.ebuild
rename to sys-libs/newlib/newlib-4.2.0.20211231-r1.ebuild
index 39e03d098e4d..17fd43c36734 100644
--- a/sys-libs/newlib/newlib-4.2.0.20211231.ebuild
+++ b/sys-libs/newlib/newlib-4.2.0.20211231-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -111,7 +111,7 @@ src_configure() {
--enable-lite-exit \
--enable-newlib-global-atexit \
--enable-newlib-nano-formatted-io \
-   ${myconf}
+   "${myconf[@]}"
fi
 }
 

diff --git a/sys-libs/newlib/newlib-4.3.0.20230120.ebuild 
b/sys-libs/newlib/newlib-4.3.0.20230120-r1.ebuild
similarity index 99%
rename from sys-libs/newlib/newlib-4.3.0.20230120.ebuild
rename to sys-libs/newlib/newlib-4.3.0.20230120-r1.ebuild
index 5b16a3bf6787..21ce7e99de7c 100644
--- a/sys-libs/newlib/newlib-4.3.0.20230120.ebuild
+++ b/sys-libs/newlib/newlib-4.3.0.20230120-r1.ebuild
@@ -110,7 +110,7 @@ src_configure() {
--enable-lite-exit \
--enable-newlib-global-atexit \
--enable-newlib-nano-formatted-io \
-   ${myconf}
+   "${myconf[@]}"
fi
 }
 

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 5b16a3bf6787..21ce7e99de7c 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -110,7 +110,7 @@ src_configure() {
--enable-lite-exit \
--enable-newlib-global-atexit \
--enable-newlib-nano-formatted-io \
-   ${myconf}
+   "${myconf[@]}"
fi
 }
 



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2023-01-20 Thread Mike Frysinger
commit: b9f590f6d4b7c2fdba372fc5d2586042c565087d
Author: Mike Frysinger  gentoo  org>
AuthorDate: Fri Jan 20 23:53:01 2023 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Fri Jan 20 23:53:55 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9f590f6

sys-libs/newlib: allow parallel install again

The upstream build system has been heavily rewritten and shouldn't have
any parallel install bugs in it anymore.  If there are any left, they
should get fixed, so let's re enable parallel install.

Signed-off-by: Mike Frysinger  gentoo.org>

 sys-libs/newlib/newlib-4.3.0.20230120.ebuild | 4 ++--
 sys-libs/newlib/newlib-.ebuild   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys-libs/newlib/newlib-4.3.0.20230120.ebuild 
b/sys-libs/newlib/newlib-4.3.0.20230120.ebuild
index 83237271fd55..5b16a3bf6787 100644
--- a/sys-libs/newlib/newlib-4.3.0.20230120.ebuild
+++ b/sys-libs/newlib/newlib-4.3.0.20230120.ebuild
@@ -128,11 +128,11 @@ src_compile() {
 
 src_install() {
cd "${NEWLIBBUILD}" || die
-   emake -j1 DESTDIR="${D}" install
+   emake DESTDIR="${D}" install
 
if use nano ; then
cd "${NEWLIBNANOBUILD}" || die
-   emake -j1 DESTDIR="${NEWLIBNANOTMPINSTALL}" install
+   emake DESTDIR="${NEWLIBNANOTMPINSTALL}" install
# Rename nano lib* files to lib*_nano and move to the real ${D}
local nanolibfiles=""
nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex 
".*/lib\(c\|g\|m\|rdimon\|gloss\)\.a" -print)

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 83237271fd55..5b16a3bf6787 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -128,11 +128,11 @@ src_compile() {
 
 src_install() {
cd "${NEWLIBBUILD}" || die
-   emake -j1 DESTDIR="${D}" install
+   emake DESTDIR="${D}" install
 
if use nano ; then
cd "${NEWLIBNANOBUILD}" || die
-   emake -j1 DESTDIR="${NEWLIBNANOTMPINSTALL}" install
+   emake DESTDIR="${NEWLIBNANOTMPINSTALL}" install
# Rename nano lib* files to lib*_nano and move to the real ${D}
local nanolibfiles=""
nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex 
".*/lib\(c\|g\|m\|rdimon\|gloss\)\.a" -print)



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2023-01-20 Thread Mike Frysinger
commit: f14210c9169c7faac3497a000cb3a238e4422797
Author: Mike Frysinger  gentoo  org>
AuthorDate: Fri Jan 20 22:29:15 2023 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Fri Jan 20 22:29:34 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f14210c9

sys-libs/newlib: version bump to 4.3.0

Signed-off-by: Mike Frysinger  gentoo.org>

 sys-libs/newlib/Manifest |   1 +
 sys-libs/newlib/newlib-4.3.0.20230120.ebuild | 153 +++
 2 files changed, 154 insertions(+)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index 70c92629aba4..ecab6584c5f8 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1,2 +1,3 @@
 DIST newlib-4.1.0.tar.gz 18648429 BLAKE2B 
c4d4d734bceeacf05b75d450d4316392d266812f98f99cd3f9f0926ac9848e1dc145361827d1d6951edfe5f109923c982d9f284f927ffc5fd5e5edaf8be6
 SHA512 
6a24b64bb8136e4cd9d21b8720a36f87a34397fd952520af66903e183455c5cf19bb0ee4607c12a05d139c6c59382263383cb62c461a839f969d23d3bc4b1d34
 DIST newlib-4.2.0.20211231.tar.gz 18921589 BLAKE2B 
fb85a368d082e2b9005d5d295d6854eb7d0e351cfade6516e6a06b18656d9139d7629f55a6d5f63337c6bce511a2373e797bed96847f19941b26cacfb1c8d3bc
 SHA512 
0c3efd7b74a6b8457a717cbb6aa6c5ff268eeaba375535465c6bd6502c3d32b54a9bc3ba7f2c6990f78e29152eee2f62acb39b674d24f9ddf440374a1ec9d2e8
+DIST newlib-4.3.0.20230120.tar.gz 8832922 BLAKE2B 
b5493f25e44049f4e1222698894e7e67756928062e05f5d16bcd52b2221e5c04a80a9e0cbc3fc6e92d67fe6b3813e06b6d3a6d39e8742e02b8f13ff84d809de1
 SHA512 
4a06309d36c2255fef8fc8f2d133cafa850f1ed2eddfb27b5d45f5d16af69e0fca829a0b4c9b34af4ed3a28c6fcc929761e0ee823a4229f35c2853d432b5e7ef

diff --git a/sys-libs/newlib/newlib-4.3.0.20230120.ebuild 
b/sys-libs/newlib/newlib-4.3.0.20230120.ebuild
new file mode 100644
index ..83237271fd55
--- /dev/null
+++ b/sys-libs/newlib/newlib-4.3.0.20230120.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit flag-o-matic toolchain-funcs
+
+if [[ ${PV} == "" ]] ; then
+   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
+   inherit git-r3
+else
+   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
+   KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
+fi
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+   if [[ ${CATEGORY} == cross-* ]] ; then
+   export CTARGET=${CATEGORY#cross-}
+   fi
+fi
+
+DESCRIPTION="Newlib is a C library intended for use on embedded systems"
+HOMEPAGE="https://sourceware.org/newlib/;
+
+LICENSE="NEWLIB LIBGLOSS GPL-2"
+SLOT="0"
+IUSE="nls threads unicode headers-only nano"
+RESTRICT="strip"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-3.3.0-no-nano-cxx.patch
+)
+
+NEWLIBBUILD="${WORKDIR}/build"
+NEWLIBNANOBUILD="${WORKDIR}/build.nano"
+NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
+
+CFLAGS_FULL="-ffunction-sections -fdata-sections"
+CFLAGS_NANO="-Os -ffunction-sections -fdata-sections"
+
+pkg_setup() {
+   # Reject newlib-on-glibc type installs
+   if [[ ${CTARGET} == ${CHOST} ]] ; then
+   case ${CHOST} in
+   *-newlib|*-elf) ;;
+   *) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
+   esac
+   fi
+
+   case ${CTARGET} in
+   msp430*)
+   if ver_test $(gcc-version ${CTARGET}) -lt 10.1; then
+   # bug #717610
+   die "gcc for ${CTARGET} has to be 10.1 or above"
+   fi
+   ;;
+   esac
+}
+
+src_configure() {
+   # TODO: we should fix this
+   unset LDFLAGS
+   CHOST=${CTARGET} strip-unsupported-flags
+   CCASFLAGS_ORIG="${CCASFLAGS}"
+   CFLAGS_ORIG="${CFLAGS}"
+
+   local myconf=(
+   # The top-level configure doesn't utilize this flag, but 
subdirs do,
+   # so autodetection for econf doesn't work.  Add ourselves.
+   --disable-silent-rules
+   # Disable legacy syscall stub code in newlib.  These have been
+   # moved to libgloss for a long time now, so the code in newlib
+   # itself just gets in the way.
+   --disable-newlib-supplied-syscalls
+   )
+   [[ ${CTARGET} == "spu" ]] \
+   && myconf+=( --disable-newlib-multithread ) \
+   || myconf+=( $(use_enable threads newlib-multithread) )
+
+   mkdir -p "${NEWLIBBUILD}"
+   cd "${NEWLIBBUILD}"
+
+   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
+   export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}"
+   ECONF_SOURCE=${S} \
+   econf \
+   $(use_enable unicode newlib-mb) \
+   $(use_enable nls) \
+   "${myconf[@]}"
+
+   # Build 

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2023-01-20 Thread Mike Frysinger
commit: 745e649426e2a012146ec5058817d02c30730937
Author: Mike Frysinger  gentoo  org>
AuthorDate: Fri Jan 20 22:28:01 2023 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Fri Jan 20 22:29:34 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=745e6494

sys-libs/newlib: drop -U_FORTIFY_SOURCE workaround

The latest versions of newlib seem to build fine with this turned on,
so drop the hack to see if there are any latent issues to fix upstream.

Bug: https://bugs.gentoo.org/656018
Signed-off-by: Mike Frysinger  gentoo.org>

 sys-libs/newlib/newlib-.ebuild | 8 ++--
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 3b956c480a08..83237271fd55 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -37,12 +37,8 @@ NEWLIBBUILD="${WORKDIR}/build"
 NEWLIBNANOBUILD="${WORKDIR}/build.nano"
 NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
 
-# Adding -U_FORTIFY_SOURCE to counter the effect of Gentoo's
-# auto-addition of _FORTIFY_SOURCE at gcc site: bug #656018#c4
-# Currently newlib can't be built itself when _FORTIFY_SOURCE
-# is set.
-CFLAGS_FULL="-ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
-CFLAGS_NANO="-Os -ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
+CFLAGS_FULL="-ffunction-sections -fdata-sections"
+CFLAGS_NANO="-Os -ffunction-sections -fdata-sections"
 
 pkg_setup() {
# Reject newlib-on-glibc type installs



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2023-01-20 Thread Mike Frysinger
commit: 11ea6d1a440837222b22767b912b459aeb554901
Author: Mike Frysinger  gentoo  org>
AuthorDate: Fri Jan 20 22:26:18 2023 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Fri Jan 20 22:29:34 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11ea6d1a

sys-libs/newlib: disable verbose builds

The automatic probing of --disable-silent-rules doesn't work, so add
the flag manually.

Signed-off-by: Mike Frysinger  gentoo.org>

 sys-libs/newlib/newlib-.ebuild | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 39e03d098e4d..3b956c480a08 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -71,6 +71,9 @@ src_configure() {
CFLAGS_ORIG="${CFLAGS}"
 
local myconf=(
+   # The top-level configure doesn't utilize this flag, but 
subdirs do,
+   # so autodetection for econf doesn't work.  Add ourselves.
+   --disable-silent-rules
# Disable legacy syscall stub code in newlib.  These have been
# moved to libgloss for a long time now, so the code in newlib
# itself just gets in the way.



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2022-06-03 Thread Steve Arnold
commit: 7d4d0e4d56b4ae928be9eaf9ca0c41f4d871f48b
Author: Steve Arnold  gentoo  org>
AuthorDate: Fri Jun  3 18:48:51 2022 +
Commit: Steve Arnold  gentoo  org>
CommitDate: Fri Jun  3 18:49:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d4d0e4d

sys-libs/newlib: add libgloss to regex in 2 most recent versions

* required for some arm/riscv elf toolchains/targets

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Steve Arnold  gentoo.org>

 sys-libs/newlib/newlib-4.2.0.20211231.ebuild | 2 +-
 sys-libs/newlib/newlib-.ebuild   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-libs/newlib/newlib-4.2.0.20211231.ebuild 
b/sys-libs/newlib/newlib-4.2.0.20211231.ebuild
index 92cb0eb38425..39e03d098e4d 100644
--- a/sys-libs/newlib/newlib-4.2.0.20211231.ebuild
+++ b/sys-libs/newlib/newlib-4.2.0.20211231.ebuild
@@ -136,7 +136,7 @@ src_install() {
emake -j1 DESTDIR="${NEWLIBNANOTMPINSTALL}" install
# Rename nano lib* files to lib*_nano and move to the real ${D}
local nanolibfiles=""
-   nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex 
".*/lib\(c\|g\|m\|rdimon\)\.a" -print)
+   nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex 
".*/lib\(c\|g\|m\|rdimon\|gloss\)\.a" -print)
for f in ${nanolibfiles}; do
local l="${f##${NEWLIBNANOTMPINSTALL}}"
mv -v "${f}" "${D}/${l%%\.a}_nano.a" || die

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 92cb0eb38425..39e03d098e4d 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -136,7 +136,7 @@ src_install() {
emake -j1 DESTDIR="${NEWLIBNANOTMPINSTALL}" install
# Rename nano lib* files to lib*_nano and move to the real ${D}
local nanolibfiles=""
-   nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex 
".*/lib\(c\|g\|m\|rdimon\)\.a" -print)
+   nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex 
".*/lib\(c\|g\|m\|rdimon\|gloss\)\.a" -print)
for f in ${nanolibfiles}; do
local l="${f##${NEWLIBNANOTMPINSTALL}}"
mv -v "${f}" "${D}/${l%%\.a}_nano.a" || die



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2022-05-31 Thread Sam James
commit: eb0d76851e8d1c9ffba568763945888bd2fb9c2d
Author: Sam James  gentoo  org>
AuthorDate: Tue May 31 22:03:09 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue May 31 22:03:09 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb0d7685

sys-libs/newlib: fix installation on prefix

Closes: https://bugs.gentoo.org/848837
Thanks-to: Christian Ludwig  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 sys-libs/newlib/newlib-4.2.0.20211231.ebuild | 8 
 sys-libs/newlib/newlib-.ebuild   | 8 
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/sys-libs/newlib/newlib-4.2.0.20211231.ebuild 
b/sys-libs/newlib/newlib-4.2.0.20211231.ebuild
index a6ad7b9c65d1..92cb0eb38425 100644
--- a/sys-libs/newlib/newlib-4.2.0.20211231.ebuild
+++ b/sys-libs/newlib/newlib-4.2.0.20211231.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -143,9 +143,9 @@ src_install() {
done
 
# Move newlib-nano's version of newlib.h to newlib-nano/newlib.h
-   mkdir -p "${D}/usr/${CTARGET}/include/newlib-nano" || die
-   mv "${NEWLIBNANOTMPINSTALL}/usr/${CTARGET}/include/newlib.h" \
-   "${D}/usr/${CTARGET}/include/newlib-nano/newlib.h" || 
die
+   mkdir -p "${ED}/usr/${CTARGET}/include/newlib-nano" || die
+   mv 
"${NEWLIBNANOTMPINSTALL}/${EPREFIX}/usr/${CTARGET}/include/newlib.h" \
+   "${ED}/usr/${CTARGET}/include/newlib-nano/newlib.h" || 
die
fi
 
# minor hack to keep things clean

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index a6ad7b9c65d1..92cb0eb38425 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -143,9 +143,9 @@ src_install() {
done
 
# Move newlib-nano's version of newlib.h to newlib-nano/newlib.h
-   mkdir -p "${D}/usr/${CTARGET}/include/newlib-nano" || die
-   mv "${NEWLIBNANOTMPINSTALL}/usr/${CTARGET}/include/newlib.h" \
-   "${D}/usr/${CTARGET}/include/newlib-nano/newlib.h" || 
die
+   mkdir -p "${ED}/usr/${CTARGET}/include/newlib-nano" || die
+   mv 
"${NEWLIBNANOTMPINSTALL}/${EPREFIX}/usr/${CTARGET}/include/newlib.h" \
+   "${ED}/usr/${CTARGET}/include/newlib-nano/newlib.h" || 
die
fi
 
# minor hack to keep things clean



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2021-12-31 Thread Mike Frysinger
commit: 16f3b7b366ebca1d4eb583f87071fac2cca371ac
Author: Mike Frysinger  gentoo  org>
AuthorDate: Sat Jan  1 01:41:54 2022 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Sat Jan  1 01:42:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16f3b7b3

sys-libs/newlib: version bump to 4.2.0.20211231

Signed-off-by: Mike Frysinger  gentoo.org>

 sys-libs/newlib/Manifest |   1 +
 sys-libs/newlib/newlib-4.2.0.20211231.ebuild | 154 +++
 2 files changed, 155 insertions(+)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index 2b71d80eb9bc..70c92629aba4 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1 +1,2 @@
 DIST newlib-4.1.0.tar.gz 18648429 BLAKE2B 
c4d4d734bceeacf05b75d450d4316392d266812f98f99cd3f9f0926ac9848e1dc145361827d1d6951edfe5f109923c982d9f284f927ffc5fd5e5edaf8be6
 SHA512 
6a24b64bb8136e4cd9d21b8720a36f87a34397fd952520af66903e183455c5cf19bb0ee4607c12a05d139c6c59382263383cb62c461a839f969d23d3bc4b1d34
+DIST newlib-4.2.0.20211231.tar.gz 18921589 BLAKE2B 
fb85a368d082e2b9005d5d295d6854eb7d0e351cfade6516e6a06b18656d9139d7629f55a6d5f63337c6bce511a2373e797bed96847f19941b26cacfb1c8d3bc
 SHA512 
0c3efd7b74a6b8457a717cbb6aa6c5ff268eeaba375535465c6bd6502c3d32b54a9bc3ba7f2c6990f78e29152eee2f62acb39b674d24f9ddf440374a1ec9d2e8

diff --git a/sys-libs/newlib/newlib-4.2.0.20211231.ebuild 
b/sys-libs/newlib/newlib-4.2.0.20211231.ebuild
new file mode 100644
index ..a6ad7b9c65d1
--- /dev/null
+++ b/sys-libs/newlib/newlib-4.2.0.20211231.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit flag-o-matic toolchain-funcs
+
+if [[ ${PV} == "" ]] ; then
+   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
+   inherit git-r3
+else
+   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
+   KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
+fi
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+   if [[ ${CATEGORY} == cross-* ]] ; then
+   export CTARGET=${CATEGORY#cross-}
+   fi
+fi
+
+DESCRIPTION="Newlib is a C library intended for use on embedded systems"
+HOMEPAGE="https://sourceware.org/newlib/;
+
+LICENSE="NEWLIB LIBGLOSS GPL-2"
+SLOT="0"
+IUSE="nls threads unicode headers-only nano"
+RESTRICT="strip"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-3.3.0-no-nano-cxx.patch
+)
+
+NEWLIBBUILD="${WORKDIR}/build"
+NEWLIBNANOBUILD="${WORKDIR}/build.nano"
+NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
+
+# Adding -U_FORTIFY_SOURCE to counter the effect of Gentoo's
+# auto-addition of _FORTIFY_SOURCE at gcc site: bug #656018#c4
+# Currently newlib can't be built itself when _FORTIFY_SOURCE
+# is set.
+CFLAGS_FULL="-ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
+CFLAGS_NANO="-Os -ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
+
+pkg_setup() {
+   # Reject newlib-on-glibc type installs
+   if [[ ${CTARGET} == ${CHOST} ]] ; then
+   case ${CHOST} in
+   *-newlib|*-elf) ;;
+   *) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
+   esac
+   fi
+
+   case ${CTARGET} in
+   msp430*)
+   if ver_test $(gcc-version ${CTARGET}) -lt 10.1; then
+   # bug #717610
+   die "gcc for ${CTARGET} has to be 10.1 or above"
+   fi
+   ;;
+   esac
+}
+
+src_configure() {
+   # TODO: we should fix this
+   unset LDFLAGS
+   CHOST=${CTARGET} strip-unsupported-flags
+   CCASFLAGS_ORIG="${CCASFLAGS}"
+   CFLAGS_ORIG="${CFLAGS}"
+
+   local myconf=(
+   # Disable legacy syscall stub code in newlib.  These have been
+   # moved to libgloss for a long time now, so the code in newlib
+   # itself just gets in the way.
+   --disable-newlib-supplied-syscalls
+   )
+   [[ ${CTARGET} == "spu" ]] \
+   && myconf+=( --disable-newlib-multithread ) \
+   || myconf+=( $(use_enable threads newlib-multithread) )
+
+   mkdir -p "${NEWLIBBUILD}"
+   cd "${NEWLIBBUILD}"
+
+   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
+   export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}"
+   ECONF_SOURCE=${S} \
+   econf \
+   $(use_enable unicode newlib-mb) \
+   $(use_enable nls) \
+   "${myconf[@]}"
+
+   # Build newlib-nano beside newlib (original)
+   # Based on 
https://tracker.debian.org/media/packages/n/newlib/rules-2.1.0%2Bgit20140818.1a8323b-2
+   if use nano ; then
+   mkdir -p "${NEWLIBNANOBUILD}" || die
+   cd "${NEWLIBNANOBUILD}" || die
+  

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2021-11-23 Thread Mike Frysinger
commit: 49163da5ab88ef09af0f20ca9993a906b47ab194
Author: Mike Frysinger  gentoo  org>
AuthorDate: Wed Nov 24 03:10:22 2021 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Wed Nov 24 03:10:37 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49163da5

sys-libs/newlib: add amd64 & arm64 & riscv love

Signed-off-by: Mike Frysinger  gentoo.org>

 sys-libs/newlib/newlib-4.1.0-r1.ebuild | 2 +-
 sys-libs/newlib/newlib-.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-libs/newlib/newlib-4.1.0-r1.ebuild 
b/sys-libs/newlib/newlib-4.1.0-r1.ebuild
index a5ec41db3c45..a6ad7b9c65d1 100644
--- a/sys-libs/newlib/newlib-4.1.0-r1.ebuild
+++ b/sys-libs/newlib/newlib-4.1.0-r1.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == "" ]] ; then
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
-   KEYWORDS="~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
+   KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
 fi
 
 export CBUILD=${CBUILD:-${CHOST}}

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index a5ec41db3c45..a6ad7b9c65d1 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == "" ]] ; then
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
-   KEYWORDS="~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
+   KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
 fi
 
 export CBUILD=${CBUILD:-${CHOST}}



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2021-09-27 Thread Sam James
commit: 19945b3429e7c2eb89b66c7ee4e054aec66d7cfe
Author: Alexey Chernov <4ernov  gmail  com>
AuthorDate: Mon Aug 16 21:17:42 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Sep 28 01:45:15 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19945b34

sys-libs/newlib: fix `libm_nano.a` installation

Add `libm_nano.a` installation in case of `nano` USE flag on, as it's now 
required in `nano.specs` for RISC V targets, in particular.

See also:
riscv/riscv-newlib@f289cef6be67da67b2d97a47d6576fa7e6b4c858
riscv/riscv-gnu-toolchain@2922650dd095747b07d6ced1b746d1faae07a01c
Closes: https://github.com/gentoo/gentoo/pull/22007

Signed-off-by: Sam James  gentoo.org>

 sys-libs/newlib/{newlib-4.1.0.ebuild => newlib-4.1.0-r1.ebuild} | 4 ++--
 sys-libs/newlib/newlib-.ebuild  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys-libs/newlib/newlib-4.1.0.ebuild 
b/sys-libs/newlib/newlib-4.1.0-r1.ebuild
similarity index 98%
rename from sys-libs/newlib/newlib-4.1.0.ebuild
rename to sys-libs/newlib/newlib-4.1.0-r1.ebuild
index e16fd4c10b7..a5ec41db3c4 100644
--- a/sys-libs/newlib/newlib-4.1.0.ebuild
+++ b/sys-libs/newlib/newlib-4.1.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -136,7 +136,7 @@ src_install() {
emake -j1 DESTDIR="${NEWLIBNANOTMPINSTALL}" install
# Rename nano lib* files to lib*_nano and move to the real ${D}
local nanolibfiles=""
-   nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex 
".*/lib\(c\|g\|rdimon\)\.a" -print)
+   nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex 
".*/lib\(c\|g\|m\|rdimon\)\.a" -print)
for f in ${nanolibfiles}; do
local l="${f##${NEWLIBNANOTMPINSTALL}}"
mv -v "${f}" "${D}/${l%%\.a}_nano.a" || die

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index e16fd4c10b7..a5ec41db3c4 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -136,7 +136,7 @@ src_install() {
emake -j1 DESTDIR="${NEWLIBNANOTMPINSTALL}" install
# Rename nano lib* files to lib*_nano and move to the real ${D}
local nanolibfiles=""
-   nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex 
".*/lib\(c\|g\|rdimon\)\.a" -print)
+   nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex 
".*/lib\(c\|g\|m\|rdimon\)\.a" -print)
for f in ${nanolibfiles}; do
local l="${f##${NEWLIBNANOTMPINSTALL}}"
mv -v "${f}" "${D}/${l%%\.a}_nano.a" || die



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2021-03-06 Thread Sergei Trofimovich
commit: 5c22741a8324665e9caafb2b9342f9908945760a
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Mar  6 19:30:37 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Mar  6 19:31:07 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c22741a

sys-libs/newlib: drop old

Bug: https://bugs.gentoo.org/774471
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/Manifest   |   2 -
 sys-libs/newlib/newlib-3.3.0-r1.ebuild | 154 -
 sys-libs/newlib/newlib-3.3.0.ebuild| 150 
 sys-libs/newlib/newlib-4.0.0.ebuild| 154 -
 4 files changed, 460 deletions(-)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index e39da2e19a3..2b71d80eb9b 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1,3 +1 @@
-DIST newlib-3.3.0.tar.gz 18361083 BLAKE2B 
bdc81427955d0a2f550bf2973ca82c0b8b55aa170565cdf1cfe8ac926257fad6d3e860ce7b2e286949ab21be2677378b5b6d3c743c05fe8aa6df8a8c34a16945
 SHA512 
2f0c487520e1a0af0b6935431f85d2359e27ded0d01d02567d0d1c6479f2f0e6bbc60405e88e46b92c2a18780a01a60fc9281f7e311cfd40b8d5881d629c
-DIST newlib-4.0.0.tar.gz 18645966 BLAKE2B 
04dced199253f7ea725c1812c2083fd5664722bed645c5cc26567587f802119826ed6bb0372c53c9496110efdc6ee9ea0ec007885c00af885164bfd6b8280bad
 SHA512 
15786bdba2ea6252409b0e3a11046d6315c7629df3b0ee37f0aa2e119c3f356d04e4da6ad2b5dc90de218cc35008f144d7bc986f6b24d95e8868e1848a9ca970
 DIST newlib-4.1.0.tar.gz 18648429 BLAKE2B 
c4d4d734bceeacf05b75d450d4316392d266812f98f99cd3f9f0926ac9848e1dc145361827d1d6951edfe5f109923c982d9f284f927ffc5fd5e5edaf8be6
 SHA512 
6a24b64bb8136e4cd9d21b8720a36f87a34397fd952520af66903e183455c5cf19bb0ee4607c12a05d139c6c59382263383cb62c461a839f969d23d3bc4b1d34

diff --git a/sys-libs/newlib/newlib-3.3.0-r1.ebuild 
b/sys-libs/newlib/newlib-3.3.0-r1.ebuild
deleted file mode 100644
index bd8e3d1de3f..000
--- a/sys-libs/newlib/newlib-3.3.0-r1.ebuild
+++ /dev/null
@@ -1,154 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-inherit flag-o-matic toolchain-funcs
-
-if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
-   inherit git-r3
-else
-   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
-   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
-fi
-
-export CBUILD=${CBUILD:-${CHOST}}
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} ]] ; then
-   if [[ ${CATEGORY} == cross-* ]] ; then
-   export CTARGET=${CATEGORY#cross-}
-   fi
-fi
-
-DESCRIPTION="Newlib is a C library intended for use on embedded systems"
-HOMEPAGE="https://sourceware.org/newlib/;
-
-LICENSE="NEWLIB LIBGLOSS GPL-2"
-SLOT="0"
-IUSE="nls threads unicode headers-only nano"
-RESTRICT="strip"
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-3.3.0-no-nano-cxx.patch
-)
-
-NEWLIBBUILD="${WORKDIR}/build"
-NEWLIBNANOBUILD="${WORKDIR}/build.nano"
-NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
-
-# Adding -U_FORTIFY_SOURCE to counter the effect of Gentoo's
-# auto-addition of _FORTIFY_SOURCE at gcc site: bug #656018#c4
-# Currently newlib can't be built itself when _FORTIFY_SOURCE
-# is set.
-CFLAGS_FULL="-ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
-CFLAGS_NANO="-Os -ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
-
-pkg_setup() {
-   # Reject newlib-on-glibc type installs
-   if [[ ${CTARGET} == ${CHOST} ]] ; then
-   case ${CHOST} in
-   *-newlib|*-elf) ;;
-   *) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
-   esac
-   fi
-
-   case ${CTARGET} in
-   msp430*)
-   if ver_test $(gcc-version ${CTARGET}) -lt 10.1; then
-   # bug #717610
-   die "gcc for ${CTARGET} has to be 10.1 or above"
-   fi
-   ;;
-   esac
-}
-
-src_configure() {
-   # we should fix this ...
-   unset LDFLAGS
-   CHOST=${CTARGET} strip-unsupported-flags
-   CCASFLAGS_ORIG="${CCASFLAGS}"
-   CFLAGS_ORIG="${CFLAGS}"
-
-   local myconf=(
-   # Disable legacy syscall stub code in newlib.  These have been
-   # moved to libgloss for a long time now, so the code in newlib
-   # itself just gets in the way.
-   --disable-newlib-supplied-syscalls
-   )
-   [[ ${CTARGET} == "spu" ]] \
-   && myconf+=( --disable-newlib-multithread ) \
-   || myconf+=( $(use_enable threads newlib-multithread) )
-
-   mkdir -p "${NEWLIBBUILD}"
-   cd "${NEWLIBBUILD}"
-
-   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
-   export 

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2020-12-22 Thread Sergei Trofimovich
commit: 40b44dd285daf97a2c990749f493d5b6915fb63c
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Tue Dec 22 20:24:06 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Dec 22 20:24:38 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40b44dd2

sys-libs/newlib: bump up to 4.1.0

Reported-by: David Flogeras
Closes: https://bugs.gentoo.org/761241
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/Manifest|   1 +
 sys-libs/newlib/newlib-4.1.0.ebuild | 154 
 2 files changed, 155 insertions(+)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index d31d7c570f7..e39da2e19a3 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1,2 +1,3 @@
 DIST newlib-3.3.0.tar.gz 18361083 BLAKE2B 
bdc81427955d0a2f550bf2973ca82c0b8b55aa170565cdf1cfe8ac926257fad6d3e860ce7b2e286949ab21be2677378b5b6d3c743c05fe8aa6df8a8c34a16945
 SHA512 
2f0c487520e1a0af0b6935431f85d2359e27ded0d01d02567d0d1c6479f2f0e6bbc60405e88e46b92c2a18780a01a60fc9281f7e311cfd40b8d5881d629c
 DIST newlib-4.0.0.tar.gz 18645966 BLAKE2B 
04dced199253f7ea725c1812c2083fd5664722bed645c5cc26567587f802119826ed6bb0372c53c9496110efdc6ee9ea0ec007885c00af885164bfd6b8280bad
 SHA512 
15786bdba2ea6252409b0e3a11046d6315c7629df3b0ee37f0aa2e119c3f356d04e4da6ad2b5dc90de218cc35008f144d7bc986f6b24d95e8868e1848a9ca970
+DIST newlib-4.1.0.tar.gz 18648429 BLAKE2B 
c4d4d734bceeacf05b75d450d4316392d266812f98f99cd3f9f0926ac9848e1dc145361827d1d6951edfe5f109923c982d9f284f927ffc5fd5e5edaf8be6
 SHA512 
6a24b64bb8136e4cd9d21b8720a36f87a34397fd952520af66903e183455c5cf19bb0ee4607c12a05d139c6c59382263383cb62c461a839f969d23d3bc4b1d34

diff --git a/sys-libs/newlib/newlib-4.1.0.ebuild 
b/sys-libs/newlib/newlib-4.1.0.ebuild
new file mode 100644
index 000..e16fd4c10b7
--- /dev/null
+++ b/sys-libs/newlib/newlib-4.1.0.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit flag-o-matic toolchain-funcs
+
+if [[ ${PV} == "" ]] ; then
+   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
+   inherit git-r3
+else
+   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
+   KEYWORDS="~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
+fi
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+   if [[ ${CATEGORY} == cross-* ]] ; then
+   export CTARGET=${CATEGORY#cross-}
+   fi
+fi
+
+DESCRIPTION="Newlib is a C library intended for use on embedded systems"
+HOMEPAGE="https://sourceware.org/newlib/;
+
+LICENSE="NEWLIB LIBGLOSS GPL-2"
+SLOT="0"
+IUSE="nls threads unicode headers-only nano"
+RESTRICT="strip"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-3.3.0-no-nano-cxx.patch
+)
+
+NEWLIBBUILD="${WORKDIR}/build"
+NEWLIBNANOBUILD="${WORKDIR}/build.nano"
+NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
+
+# Adding -U_FORTIFY_SOURCE to counter the effect of Gentoo's
+# auto-addition of _FORTIFY_SOURCE at gcc site: bug #656018#c4
+# Currently newlib can't be built itself when _FORTIFY_SOURCE
+# is set.
+CFLAGS_FULL="-ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
+CFLAGS_NANO="-Os -ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
+
+pkg_setup() {
+   # Reject newlib-on-glibc type installs
+   if [[ ${CTARGET} == ${CHOST} ]] ; then
+   case ${CHOST} in
+   *-newlib|*-elf) ;;
+   *) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
+   esac
+   fi
+
+   case ${CTARGET} in
+   msp430*)
+   if ver_test $(gcc-version ${CTARGET}) -lt 10.1; then
+   # bug #717610
+   die "gcc for ${CTARGET} has to be 10.1 or above"
+   fi
+   ;;
+   esac
+}
+
+src_configure() {
+   # TODO: we should fix this
+   unset LDFLAGS
+   CHOST=${CTARGET} strip-unsupported-flags
+   CCASFLAGS_ORIG="${CCASFLAGS}"
+   CFLAGS_ORIG="${CFLAGS}"
+
+   local myconf=(
+   # Disable legacy syscall stub code in newlib.  These have been
+   # moved to libgloss for a long time now, so the code in newlib
+   # itself just gets in the way.
+   --disable-newlib-supplied-syscalls
+   )
+   [[ ${CTARGET} == "spu" ]] \
+   && myconf+=( --disable-newlib-multithread ) \
+   || myconf+=( $(use_enable threads newlib-multithread) )
+
+   mkdir -p "${NEWLIBBUILD}"
+   cd "${NEWLIBBUILD}"
+
+   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
+   export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}"
+   ECONF_SOURCE=${S} \
+   econf \
+   $(use_enable unicode newlib-mb) \
+

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2020-11-21 Thread Sergei Trofimovich
commit: 5ad5faf2394e901c193085abbb2a324b0d7ea7f1
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Nov 21 18:34:52 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Nov 21 18:35:48 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ad5faf2

sys-libs/newlib: bump up to 4.0.0

Reported-by: David Flogeras
Closes: https://bugs.gentoo.org/755410
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/Manifest| 1 +
 sys-libs/newlib/{newlib-.ebuild => newlib-4.0.0.ebuild} | 4 ++--
 sys-libs/newlib/newlib-.ebuild  | 4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index 12a1c1b3017..d31d7c570f7 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1 +1,2 @@
 DIST newlib-3.3.0.tar.gz 18361083 BLAKE2B 
bdc81427955d0a2f550bf2973ca82c0b8b55aa170565cdf1cfe8ac926257fad6d3e860ce7b2e286949ab21be2677378b5b6d3c743c05fe8aa6df8a8c34a16945
 SHA512 
2f0c487520e1a0af0b6935431f85d2359e27ded0d01d02567d0d1c6479f2f0e6bbc60405e88e46b92c2a18780a01a60fc9281f7e311cfd40b8d5881d629c
+DIST newlib-4.0.0.tar.gz 18645966 BLAKE2B 
04dced199253f7ea725c1812c2083fd5664722bed645c5cc26567587f802119826ed6bb0372c53c9496110efdc6ee9ea0ec007885c00af885164bfd6b8280bad
 SHA512 
15786bdba2ea6252409b0e3a11046d6315c7629df3b0ee37f0aa2e119c3f356d04e4da6ad2b5dc90de218cc35008f144d7bc986f6b24d95e8868e1848a9ca970

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-4.0.0.ebuild
similarity index 98%
copy from sys-libs/newlib/newlib-.ebuild
copy to sys-libs/newlib/newlib-4.0.0.ebuild
index bd8e3d1de3f..e16fd4c10b7 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-4.0.0.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == "" ]] ; then
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
-   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
+   KEYWORDS="~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
 fi
 
 export CBUILD=${CBUILD:-${CHOST}}
@@ -64,7 +64,7 @@ pkg_setup() {
 }
 
 src_configure() {
-   # we should fix this ...
+   # TODO: we should fix this
unset LDFLAGS
CHOST=${CTARGET} strip-unsupported-flags
CCASFLAGS_ORIG="${CCASFLAGS}"

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index bd8e3d1de3f..e16fd4c10b7 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == "" ]] ; then
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
-   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
+   KEYWORDS="~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
 fi
 
 export CBUILD=${CBUILD:-${CHOST}}
@@ -64,7 +64,7 @@ pkg_setup() {
 }
 
 src_configure() {
-   # we should fix this ...
+   # TODO: we should fix this
unset LDFLAGS
CHOST=${CTARGET} strip-unsupported-flags
CCASFLAGS_ORIG="${CCASFLAGS}"



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/, sys-libs/newlib/files/

2020-05-20 Thread Sergei Trofimovich
commit: 78cd431b62a02ca951200937750ec24d47a3185a
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Wed May 20 07:25:24 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed May 20 07:26:10 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78cd431b

sys-libs/newlib: don't use c++ _nano libs, bug #723756

Gentoo's and upstream gccs don't install _nano variants of stdc++ and supc++.

Let's not refer to them in nano specs of newlib until we do
(or better yet upstream does) have these libraries.

Reported-by: David Flogeras
Closes: https://bugs.gentoo.org/723756
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 .../newlib/files/newlib-3.3.0-no-nano-cxx.patch| 29 ++
 .../{newlib-.ebuild => newlib-3.3.0-r1.ebuild} |  4 +++
 sys-libs/newlib/newlib-.ebuild |  4 +++
 3 files changed, 37 insertions(+)

diff --git a/sys-libs/newlib/files/newlib-3.3.0-no-nano-cxx.patch 
b/sys-libs/newlib/files/newlib-3.3.0-no-nano-cxx.patch
new file mode 100644
index 000..58068ad2d22
--- /dev/null
+++ b/sys-libs/newlib/files/newlib-3.3.0-no-nano-cxx.patch
@@ -0,0 +1,29 @@
+Gentoo's and upstream gccs don't install _nano variants of stdc++ and supc++.
+
+Let's not refer to them in nano specs of newlib until we do
+(or better yet upstream does) have these libraries.
+
+Reported-by: David Flogeras
+Bug: https://bugs.gentoo.org/723756
+--- a/libgloss/arc/nano.specs
 b/libgloss/arc/nano.specs
+@@ -11,7 +11,7 @@
+ %(nano_link_gcc_c_sequence) --start-group %G %(nano_libc) %(nano_libgloss) 
--end-group
+ 
+ *link:
+-%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano) 
%:replace-outfile(-lstdc++ -lstdc++_nano) %:replace-outfile(-lsupc++ 
-lsupc++_nano)
++%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano)
+ 
+ *lib:
+ %{!shared:%{g*:-lg_nano} %{!p:%{!pg:-lc_nano}}%{p:-lc_p}%{pg:-lc_p}}
+--- a/libgloss/arm/elf-nano.specs
 b/libgloss/arm/elf-nano.specs
+@@ -15,7 +15,7 @@
+ %(nano_link_gcc_c_sequence) --start-group %G %(nano_libc) %(nano_libgloss) 
--end-group
+ 
+ *link:
+-%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano) 
%:replace-outfile(-lrdimon -lrdimon_nano) %:replace-outfile(-lstdc++ 
-lstdc++_nano) %:replace-outfile(-lsupc++ -lsupc++_nano)
++%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano) 
%:replace-outfile(-lrdimon -lrdimon_nano)
+ 
+ *lib:
+ %{!shared:%{g*:-lg_nano} %{!p:%{!pg:-lc_nano}}%{p:-lc_p}%{pg:-lc_p}}

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-3.3.0-r1.ebuild
similarity index 98%
copy from sys-libs/newlib/newlib-.ebuild
copy to sys-libs/newlib/newlib-3.3.0-r1.ebuild
index 6362c1259bd..bd8e3d1de3f 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-3.3.0-r1.ebuild
@@ -29,6 +29,10 @@ SLOT="0"
 IUSE="nls threads unicode headers-only nano"
 RESTRICT="strip"
 
+PATCHES=(
+   "${FILESDIR}"/${PN}-3.3.0-no-nano-cxx.patch
+)
+
 NEWLIBBUILD="${WORKDIR}/build"
 NEWLIBNANOBUILD="${WORKDIR}/build.nano"
 NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 6362c1259bd..bd8e3d1de3f 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -29,6 +29,10 @@ SLOT="0"
 IUSE="nls threads unicode headers-only nano"
 RESTRICT="strip"
 
+PATCHES=(
+   "${FILESDIR}"/${PN}-3.3.0-no-nano-cxx.patch
+)
+
 NEWLIBBUILD="${WORKDIR}/build"
 NEWLIBNANOBUILD="${WORKDIR}/build.nano"
 NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2020-05-17 Thread Sergei Trofimovich
commit: 30acdae94828f74ba9a4c0702bdb1d8aec447c0d
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun May 17 09:32:23 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun May 17 09:33:35 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30acdae9

sys-libs/newlib: allow gcc-10.1 for msp430-elf targets, bug #717610

Closes: https://bugs.gentoo.org/717610
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/newlib-3.3.0.ebuild | 6 --
 sys-libs/newlib/newlib-.ebuild  | 9 +
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/sys-libs/newlib/newlib-3.3.0.ebuild 
b/sys-libs/newlib/newlib-3.3.0.ebuild
index 95217157d87..6362c1259bd 100644
--- a/sys-libs/newlib/newlib-3.3.0.ebuild
+++ b/sys-libs/newlib/newlib-3.3.0.ebuild
@@ -51,8 +51,10 @@ pkg_setup() {
 
case ${CTARGET} in
msp430*)
-   # bug #717610
-   die "gcc on ${CTARGET} needs older newlib. Use 
newlib-3.1.0."
+   if ver_test $(gcc-version ${CTARGET}) -lt 10.1; then
+   # bug #717610
+   die "gcc for ${CTARGET} has to be 10.1 or above"
+   fi
;;
esac
 }

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index db1a3fad9cf..6362c1259bd 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -48,6 +48,15 @@ pkg_setup() {
*) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
esac
fi
+
+   case ${CTARGET} in
+   msp430*)
+   if ver_test $(gcc-version ${CTARGET}) -lt 10.1; then
+   # bug #717610
+   die "gcc for ${CTARGET} has to be 10.1 or above"
+   fi
+   ;;
+   esac
 }
 
 src_configure() {



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2020-05-17 Thread Sergei Trofimovich
commit: e7d448666bf391567ce16b2c394edbb753ad0386
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun May 17 09:33:19 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun May 17 09:33:35 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7d44866

sys-libs/newlib: drop old, bug #713284

Bug: https://bugs.gentoo.org/713284
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/Manifest|   1 -
 sys-libs/newlib/newlib-3.1.0.ebuild | 141 
 2 files changed, 142 deletions(-)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index a0726ef035a..12a1c1b3017 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1,2 +1 @@
-DIST newlib-3.1.0.tar.gz 17958952 BLAKE2B 
3a84ae81fc07e442a4ed3da7a78e7ede34cc7e24b5d1c66a12624ed808e5f85f134751fcea0e4ce9eb39df287a582821f751a8610a088c149895b5e38eb06989
 SHA512 
efc4c3ab7153387780d141386bca5d3e20c9d25ae3e6b87cf94c8df9d301ce5926dacdff9bd33aeb9781559d933c3d0ae77f4e5b46120d90792f75dbfde702c7
 DIST newlib-3.3.0.tar.gz 18361083 BLAKE2B 
bdc81427955d0a2f550bf2973ca82c0b8b55aa170565cdf1cfe8ac926257fad6d3e860ce7b2e286949ab21be2677378b5b6d3c743c05fe8aa6df8a8c34a16945
 SHA512 
2f0c487520e1a0af0b6935431f85d2359e27ded0d01d02567d0d1c6479f2f0e6bbc60405e88e46b92c2a18780a01a60fc9281f7e311cfd40b8d5881d629c

diff --git a/sys-libs/newlib/newlib-3.1.0.ebuild 
b/sys-libs/newlib/newlib-3.1.0.ebuild
deleted file mode 100644
index db1a3fad9cf..000
--- a/sys-libs/newlib/newlib-3.1.0.ebuild
+++ /dev/null
@@ -1,141 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-inherit flag-o-matic toolchain-funcs
-
-if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
-   inherit git-r3
-else
-   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
-   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
-fi
-
-export CBUILD=${CBUILD:-${CHOST}}
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} ]] ; then
-   if [[ ${CATEGORY} == cross-* ]] ; then
-   export CTARGET=${CATEGORY#cross-}
-   fi
-fi
-
-DESCRIPTION="Newlib is a C library intended for use on embedded systems"
-HOMEPAGE="https://sourceware.org/newlib/;
-
-LICENSE="NEWLIB LIBGLOSS GPL-2"
-SLOT="0"
-IUSE="nls threads unicode headers-only nano"
-RESTRICT="strip"
-
-NEWLIBBUILD="${WORKDIR}/build"
-NEWLIBNANOBUILD="${WORKDIR}/build.nano"
-NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
-
-# Adding -U_FORTIFY_SOURCE to counter the effect of Gentoo's
-# auto-addition of _FORTIFY_SOURCE at gcc site: bug #656018#c4
-# Currently newlib can't be built itself when _FORTIFY_SOURCE
-# is set.
-CFLAGS_FULL="-ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
-CFLAGS_NANO="-Os -ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
-
-pkg_setup() {
-   # Reject newlib-on-glibc type installs
-   if [[ ${CTARGET} == ${CHOST} ]] ; then
-   case ${CHOST} in
-   *-newlib|*-elf) ;;
-   *) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
-   esac
-   fi
-}
-
-src_configure() {
-   # we should fix this ...
-   unset LDFLAGS
-   CHOST=${CTARGET} strip-unsupported-flags
-   CCASFLAGS_ORIG="${CCASFLAGS}"
-   CFLAGS_ORIG="${CFLAGS}"
-
-   local myconf=(
-   # Disable legacy syscall stub code in newlib.  These have been
-   # moved to libgloss for a long time now, so the code in newlib
-   # itself just gets in the way.
-   --disable-newlib-supplied-syscalls
-   )
-   [[ ${CTARGET} == "spu" ]] \
-   && myconf+=( --disable-newlib-multithread ) \
-   || myconf+=( $(use_enable threads newlib-multithread) )
-
-   mkdir -p "${NEWLIBBUILD}"
-   cd "${NEWLIBBUILD}"
-
-   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
-   export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}"
-   ECONF_SOURCE=${S} \
-   econf \
-   $(use_enable unicode newlib-mb) \
-   $(use_enable nls) \
-   "${myconf[@]}"
-
-   # Build newlib-nano beside newlib (original)
-   # Based on 
https://tracker.debian.org/media/packages/n/newlib/rules-2.1.0%2Bgit20140818.1a8323b-2
-   if use nano ; then
-   mkdir -p "${NEWLIBNANOBUILD}" || die
-   cd "${NEWLIBNANOBUILD}" || die
-   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_NANO}"
-   export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_NANO}"
-   ECONF_SOURCE=${S} \
-   econf \
-   $(use_enable unicode newlib-mb) \
-   $(use_enable nls) \
-   --enable-newlib-reent-small \
-   

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2020-04-16 Thread Sergei Trofimovich
commit: 053e0364d33f0432ec0b168afa2067def74ef01d
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Apr 16 07:35:50 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Apr 16 07:43:00 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=053e0364

sys-libs/newlib: restore newlib-3.1.0 for msp430

newlib-3.3.0 is not compatible with any released gcc.
https://sourceware.org/legacy-ml/newlib/2019/msg00343.html

This partially reverts commit ae8fe4521b047d71437f98218ff595715f41cfc9.

Reported-by: tomtom69
Bug: https://bugs.gentoo.org/717610
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/Manifest|   1 +
 sys-libs/newlib/newlib-3.1.0.ebuild | 141 
 2 files changed, 142 insertions(+)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index 12a1c1b3017..a0726ef035a 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1 +1,2 @@
+DIST newlib-3.1.0.tar.gz 17958952 BLAKE2B 
3a84ae81fc07e442a4ed3da7a78e7ede34cc7e24b5d1c66a12624ed808e5f85f134751fcea0e4ce9eb39df287a582821f751a8610a088c149895b5e38eb06989
 SHA512 
efc4c3ab7153387780d141386bca5d3e20c9d25ae3e6b87cf94c8df9d301ce5926dacdff9bd33aeb9781559d933c3d0ae77f4e5b46120d90792f75dbfde702c7
 DIST newlib-3.3.0.tar.gz 18361083 BLAKE2B 
bdc81427955d0a2f550bf2973ca82c0b8b55aa170565cdf1cfe8ac926257fad6d3e860ce7b2e286949ab21be2677378b5b6d3c743c05fe8aa6df8a8c34a16945
 SHA512 
2f0c487520e1a0af0b6935431f85d2359e27ded0d01d02567d0d1c6479f2f0e6bbc60405e88e46b92c2a18780a01a60fc9281f7e311cfd40b8d5881d629c

diff --git a/sys-libs/newlib/newlib-3.1.0.ebuild 
b/sys-libs/newlib/newlib-3.1.0.ebuild
new file mode 100644
index 000..db1a3fad9cf
--- /dev/null
+++ b/sys-libs/newlib/newlib-3.1.0.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit flag-o-matic toolchain-funcs
+
+if [[ ${PV} == "" ]] ; then
+   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
+   inherit git-r3
+else
+   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
+   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
+fi
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+   if [[ ${CATEGORY} == cross-* ]] ; then
+   export CTARGET=${CATEGORY#cross-}
+   fi
+fi
+
+DESCRIPTION="Newlib is a C library intended for use on embedded systems"
+HOMEPAGE="https://sourceware.org/newlib/;
+
+LICENSE="NEWLIB LIBGLOSS GPL-2"
+SLOT="0"
+IUSE="nls threads unicode headers-only nano"
+RESTRICT="strip"
+
+NEWLIBBUILD="${WORKDIR}/build"
+NEWLIBNANOBUILD="${WORKDIR}/build.nano"
+NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
+
+# Adding -U_FORTIFY_SOURCE to counter the effect of Gentoo's
+# auto-addition of _FORTIFY_SOURCE at gcc site: bug #656018#c4
+# Currently newlib can't be built itself when _FORTIFY_SOURCE
+# is set.
+CFLAGS_FULL="-ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
+CFLAGS_NANO="-Os -ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
+
+pkg_setup() {
+   # Reject newlib-on-glibc type installs
+   if [[ ${CTARGET} == ${CHOST} ]] ; then
+   case ${CHOST} in
+   *-newlib|*-elf) ;;
+   *) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
+   esac
+   fi
+}
+
+src_configure() {
+   # we should fix this ...
+   unset LDFLAGS
+   CHOST=${CTARGET} strip-unsupported-flags
+   CCASFLAGS_ORIG="${CCASFLAGS}"
+   CFLAGS_ORIG="${CFLAGS}"
+
+   local myconf=(
+   # Disable legacy syscall stub code in newlib.  These have been
+   # moved to libgloss for a long time now, so the code in newlib
+   # itself just gets in the way.
+   --disable-newlib-supplied-syscalls
+   )
+   [[ ${CTARGET} == "spu" ]] \
+   && myconf+=( --disable-newlib-multithread ) \
+   || myconf+=( $(use_enable threads newlib-multithread) )
+
+   mkdir -p "${NEWLIBBUILD}"
+   cd "${NEWLIBBUILD}"
+
+   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
+   export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}"
+   ECONF_SOURCE=${S} \
+   econf \
+   $(use_enable unicode newlib-mb) \
+   $(use_enable nls) \
+   "${myconf[@]}"
+
+   # Build newlib-nano beside newlib (original)
+   # Based on 
https://tracker.debian.org/media/packages/n/newlib/rules-2.1.0%2Bgit20140818.1a8323b-2
+   if use nano ; then
+   mkdir -p "${NEWLIBNANOBUILD}" || die
+   cd "${NEWLIBNANOBUILD}" || die
+   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_NANO}"
+   export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_NANO}"
+   ECONF_SOURCE=${S} \
+   econf \
+  

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2020-04-16 Thread Sergei Trofimovich
commit: c53a6004192d8b595c7a7ad0b24e23ac2b922249
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Apr 16 07:42:33 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Apr 16 07:43:00 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c53a6004

sys-libs/newlib: add early error for msp430

Reported-by: tomtom69
Bug: https://bugs.gentoo.org/717610
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/newlib-3.3.0.ebuild | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/sys-libs/newlib/newlib-3.3.0.ebuild 
b/sys-libs/newlib/newlib-3.3.0.ebuild
index db1a3fad9cf..95217157d87 100644
--- a/sys-libs/newlib/newlib-3.3.0.ebuild
+++ b/sys-libs/newlib/newlib-3.3.0.ebuild
@@ -48,6 +48,13 @@ pkg_setup() {
*) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
esac
fi
+
+   case ${CTARGET} in
+   msp430*)
+   # bug #717610
+   die "gcc on ${CTARGET} needs older newlib. Use 
newlib-3.1.0."
+   ;;
+   esac
 }
 
 src_configure() {



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2020-03-31 Thread Sergei Trofimovich
commit: ae8fe4521b047d71437f98218ff595715f41cfc9
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Tue Mar 31 07:02:28 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Mar 31 07:02:28 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae8fe452

sys-libs/newlib: drop old, bug #713284

Bug: https://bugs.gentoo.org/713284
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/Manifest|   3 -
 sys-libs/newlib/newlib-2.2.0.ebuild |  81 -
 sys-libs/newlib/newlib-2.5.0.ebuild | 139 ---
 sys-libs/newlib/newlib-3.1.0.ebuild | 141 
 4 files changed, 364 deletions(-)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index ac2c4dc6a96..12a1c1b3017 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1,4 +1 @@
-DIST newlib-2.2.0.tar.gz 16521910 BLAKE2B 
530290c8f219774885e3c408889b7f58bbeefe5c092f004c9ad61de8642b725df1f8fd2a00760ebde814e5bf379ae0320a589d2318113f371a733c5abaca2ba7
 SHA512 
ab9161f16845367c823b6709e3c5708969f29f05c77edb1cf969ff4202f358648f1e55080974599dcefed2fbced4694dc73748596e76c1aa37c50cddff6e4be3
-DIST newlib-2.5.0.tar.gz 17912392 BLAKE2B 
bc89491758d59f3529c72308e963c5b3e39044d6d586ef3814cc19cf55aee33948656c544df7dfcbe3915105e7373f53d7b2baf96b9b8147e3af780c1d08e670
 SHA512 
4c99e8dfcb4a7ad0769b9e173ff06628d82e4993ef87d3adf9d6b5578626b14de81b4b3c5f0673ddbb49dc9f3d3628f9f8d4432dcded91f5cd3d27b7d44343cd
-DIST newlib-3.1.0.tar.gz 17958952 BLAKE2B 
3a84ae81fc07e442a4ed3da7a78e7ede34cc7e24b5d1c66a12624ed808e5f85f134751fcea0e4ce9eb39df287a582821f751a8610a088c149895b5e38eb06989
 SHA512 
efc4c3ab7153387780d141386bca5d3e20c9d25ae3e6b87cf94c8df9d301ce5926dacdff9bd33aeb9781559d933c3d0ae77f4e5b46120d90792f75dbfde702c7
 DIST newlib-3.3.0.tar.gz 18361083 BLAKE2B 
bdc81427955d0a2f550bf2973ca82c0b8b55aa170565cdf1cfe8ac926257fad6d3e860ce7b2e286949ab21be2677378b5b6d3c743c05fe8aa6df8a8c34a16945
 SHA512 
2f0c487520e1a0af0b6935431f85d2359e27ded0d01d02567d0d1c6479f2f0e6bbc60405e88e46b92c2a18780a01a60fc9281f7e311cfd40b8d5881d629c

diff --git a/sys-libs/newlib/newlib-2.2.0.ebuild 
b/sys-libs/newlib/newlib-2.2.0.ebuild
deleted file mode 100644
index 324973fcfa5..000
--- a/sys-libs/newlib/newlib-2.2.0.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="4"
-
-inherit flag-o-matic toolchain-funcs eutils
-
-if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
-   inherit git-r3
-else
-   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
-   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
-fi
-
-export CBUILD=${CBUILD:-${CHOST}}
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} ]] ; then
-   if [[ ${CATEGORY} == cross-* ]] ; then
-   export CTARGET=${CATEGORY#cross-}
-   fi
-fi
-
-DESCRIPTION="Newlib is a C library intended for use on embedded systems"
-HOMEPAGE="https://sourceware.org/newlib/;
-
-LICENSE="NEWLIB LIBGLOSS GPL-2"
-SLOT="0"
-IUSE="nls threads unicode headers-only"
-RESTRICT="strip"
-
-# Handle the SLOT changes. #497344
-RDEPEND="!<${CATEGORY}/${PN}-2.1.0"
-
-NEWLIBBUILD="${WORKDIR}/build"
-
-pkg_setup() {
-   # Reject newlib-on-glibc type installs
-   if [[ ${CTARGET} == ${CHOST} ]] ; then
-   case ${CHOST} in
-   *-newlib|*-elf) ;;
-   *) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
-   esac
-   fi
-}
-
-src_prepare() {
-   epatch_user
-}
-
-src_configure() {
-   # we should fix this ...
-   unset LDFLAGS
-   CHOST=${CTARGET} strip-unsupported-flags
-
-   local myconf=""
-   [[ ${CTARGET} == "spu" ]] \
-   && myconf="${myconf} --disable-newlib-multithread" \
-   || myconf="${myconf} $(use_enable threads newlib-multithread)"
-
-   mkdir -p "${NEWLIBBUILD}"
-   cd "${NEWLIBBUILD}"
-
-   ECONF_SOURCE=${S} \
-   econf \
-   $(use_enable unicode newlib-mb) \
-   $(use_enable nls) \
-   ${myconf}
-}
-
-src_compile() {
-   emake -C "${NEWLIBBUILD}"
-}
-
-src_install() {
-   cd "${NEWLIBBUILD}"
-   emake -j1 DESTDIR="${D}" install
-   # minor hack to keep things clean
-   rm -fR "${D}"/usr/share/info
-   rm -fR "${D}"/usr/info
-}

diff --git a/sys-libs/newlib/newlib-2.5.0.ebuild 
b/sys-libs/newlib/newlib-2.5.0.ebuild
deleted file mode 100644
index f2b9ba72e10..000
--- a/sys-libs/newlib/newlib-2.5.0.ebuild
+++ /dev/null
@@ -1,139 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-inherit flag-o-matic toolchain-funcs
-
-if [[ ${PV} == "" ]] ; then
-

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2020-03-31 Thread Sergei Trofimovich
commit: ed3befc9560963f41c7c8cc2c215c3ff0d8b4355
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Tue Mar 31 07:01:34 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Mar 31 07:01:34 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed3befc9

sys-libs/newlib: drop stable keywords, bug #713284

The package is only used to bootstrap embedded cross-compilers.
Stable keywords don't make much sense. Let users manage keywords
themselves.

Bug: https://bugs.gentoo.org/713284
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/newlib-2.2.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-libs/newlib/newlib-2.2.0.ebuild 
b/sys-libs/newlib/newlib-2.2.0.ebuild
index c75fa8872d7..324973fcfa5 100644
--- a/sys-libs/newlib/newlib-2.2.0.ebuild
+++ b/sys-libs/newlib/newlib-2.2.0.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} == "" ]] ; then
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
-   KEYWORDS="-* arm hppa m68k ~mips ppc ppc64 sparc x86"
+   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
 fi
 
 export CBUILD=${CBUILD:-${CHOST}}



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2020-03-16 Thread Sergei Trofimovich
commit: f6a74cb0d3cf9c515bfc37d61d6778772a94e7ab
Author: Arfrever Frehtes Taifersar Arahesis  Apache  Org>
AuthorDate: Mon Mar 16 19:00:08 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Mar 16 21:23:53 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6a74cb0

sys-libs/newlib: Use https:// for git repository.

Signed-off-by: Arfrever Frehtes Taifersar Arahesis  Apache.Org>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/newlib-2.2.0.ebuild | 4 ++--
 sys-libs/newlib/newlib-2.5.0.ebuild | 4 ++--
 sys-libs/newlib/newlib-3.1.0.ebuild | 4 ++--
 sys-libs/newlib/newlib-3.3.0.ebuild | 2 +-
 sys-libs/newlib/newlib-.ebuild  | 4 ++--
 5 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/sys-libs/newlib/newlib-2.2.0.ebuild 
b/sys-libs/newlib/newlib-2.2.0.ebuild
index 06ec36dcc2c..434c9cb4e2a 100644
--- a/sys-libs/newlib/newlib-2.2.0.ebuild
+++ b/sys-libs/newlib/newlib-2.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -6,7 +6,7 @@ EAPI="4"
 inherit flag-o-matic toolchain-funcs eutils
 
 if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
+   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;

diff --git a/sys-libs/newlib/newlib-2.5.0.ebuild 
b/sys-libs/newlib/newlib-2.5.0.ebuild
index 6575c24051a..bf7a456c81d 100644
--- a/sys-libs/newlib/newlib-2.5.0.ebuild
+++ b/sys-libs/newlib/newlib-2.5.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -6,7 +6,7 @@ EAPI="6"
 inherit flag-o-matic toolchain-funcs
 
 if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
+   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;

diff --git a/sys-libs/newlib/newlib-3.1.0.ebuild 
b/sys-libs/newlib/newlib-3.1.0.ebuild
index 3ff7308671d..345bb529dcd 100644
--- a/sys-libs/newlib/newlib-3.1.0.ebuild
+++ b/sys-libs/newlib/newlib-3.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -6,7 +6,7 @@ EAPI="7"
 inherit flag-o-matic toolchain-funcs
 
 if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
+   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;

diff --git a/sys-libs/newlib/newlib-3.3.0.ebuild 
b/sys-libs/newlib/newlib-3.3.0.ebuild
index b955419a1da..345bb529dcd 100644
--- a/sys-libs/newlib/newlib-3.3.0.ebuild
+++ b/sys-libs/newlib/newlib-3.3.0.ebuild
@@ -6,7 +6,7 @@ EAPI="7"
 inherit flag-o-matic toolchain-funcs
 
 if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
+   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 3ff7308671d..345bb529dcd 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -6,7 +6,7 @@ EAPI="7"
 inherit flag-o-matic toolchain-funcs
 
 if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
+   EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git;
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2020-03-05 Thread Sergei Trofimovich
commit: 1d7428bbf54aa06190af89c2090b96975703f273
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Mar  5 18:21:09 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Mar  5 18:21:22 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d7428bb

sys-libs/newlib: bump up to 3.3.0

Package-Manager: Portage-2.3.92, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/Manifest|   1 +
 sys-libs/newlib/newlib-3.3.0.ebuild | 141 
 2 files changed, 142 insertions(+)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index c1e9635145e..ac2c4dc6a96 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1,3 +1,4 @@
 DIST newlib-2.2.0.tar.gz 16521910 BLAKE2B 
530290c8f219774885e3c408889b7f58bbeefe5c092f004c9ad61de8642b725df1f8fd2a00760ebde814e5bf379ae0320a589d2318113f371a733c5abaca2ba7
 SHA512 
ab9161f16845367c823b6709e3c5708969f29f05c77edb1cf969ff4202f358648f1e55080974599dcefed2fbced4694dc73748596e76c1aa37c50cddff6e4be3
 DIST newlib-2.5.0.tar.gz 17912392 BLAKE2B 
bc89491758d59f3529c72308e963c5b3e39044d6d586ef3814cc19cf55aee33948656c544df7dfcbe3915105e7373f53d7b2baf96b9b8147e3af780c1d08e670
 SHA512 
4c99e8dfcb4a7ad0769b9e173ff06628d82e4993ef87d3adf9d6b5578626b14de81b4b3c5f0673ddbb49dc9f3d3628f9f8d4432dcded91f5cd3d27b7d44343cd
 DIST newlib-3.1.0.tar.gz 17958952 BLAKE2B 
3a84ae81fc07e442a4ed3da7a78e7ede34cc7e24b5d1c66a12624ed808e5f85f134751fcea0e4ce9eb39df287a582821f751a8610a088c149895b5e38eb06989
 SHA512 
efc4c3ab7153387780d141386bca5d3e20c9d25ae3e6b87cf94c8df9d301ce5926dacdff9bd33aeb9781559d933c3d0ae77f4e5b46120d90792f75dbfde702c7
+DIST newlib-3.3.0.tar.gz 18361083 BLAKE2B 
bdc81427955d0a2f550bf2973ca82c0b8b55aa170565cdf1cfe8ac926257fad6d3e860ce7b2e286949ab21be2677378b5b6d3c743c05fe8aa6df8a8c34a16945
 SHA512 
2f0c487520e1a0af0b6935431f85d2359e27ded0d01d02567d0d1c6479f2f0e6bbc60405e88e46b92c2a18780a01a60fc9281f7e311cfd40b8d5881d629c

diff --git a/sys-libs/newlib/newlib-3.3.0.ebuild 
b/sys-libs/newlib/newlib-3.3.0.ebuild
new file mode 100644
index 000..b955419a1da
--- /dev/null
+++ b/sys-libs/newlib/newlib-3.3.0.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit flag-o-matic toolchain-funcs
+
+if [[ ${PV} == "" ]] ; then
+   EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
+   inherit git-r3
+else
+   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
+   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
+fi
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+   if [[ ${CATEGORY} == cross-* ]] ; then
+   export CTARGET=${CATEGORY#cross-}
+   fi
+fi
+
+DESCRIPTION="Newlib is a C library intended for use on embedded systems"
+HOMEPAGE="https://sourceware.org/newlib/;
+
+LICENSE="NEWLIB LIBGLOSS GPL-2"
+SLOT="0"
+IUSE="nls threads unicode headers-only nano"
+RESTRICT="strip"
+
+NEWLIBBUILD="${WORKDIR}/build"
+NEWLIBNANOBUILD="${WORKDIR}/build.nano"
+NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
+
+# Adding -U_FORTIFY_SOURCE to counter the effect of Gentoo's
+# auto-addition of _FORTIFY_SOURCE at gcc site: bug #656018#c4
+# Currently newlib can't be built itself when _FORTIFY_SOURCE
+# is set.
+CFLAGS_FULL="-ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
+CFLAGS_NANO="-Os -ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
+
+pkg_setup() {
+   # Reject newlib-on-glibc type installs
+   if [[ ${CTARGET} == ${CHOST} ]] ; then
+   case ${CHOST} in
+   *-newlib|*-elf) ;;
+   *) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
+   esac
+   fi
+}
+
+src_configure() {
+   # we should fix this ...
+   unset LDFLAGS
+   CHOST=${CTARGET} strip-unsupported-flags
+   CCASFLAGS_ORIG="${CCASFLAGS}"
+   CFLAGS_ORIG="${CFLAGS}"
+
+   local myconf=(
+   # Disable legacy syscall stub code in newlib.  These have been
+   # moved to libgloss for a long time now, so the code in newlib
+   # itself just gets in the way.
+   --disable-newlib-supplied-syscalls
+   )
+   [[ ${CTARGET} == "spu" ]] \
+   && myconf+=( --disable-newlib-multithread ) \
+   || myconf+=( $(use_enable threads newlib-multithread) )
+
+   mkdir -p "${NEWLIBBUILD}"
+   cd "${NEWLIBBUILD}"
+
+   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
+   export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}"
+   ECONF_SOURCE=${S} \
+   econf \
+   $(use_enable unicode newlib-mb) \
+   $(use_enable nls) \
+   "${myconf[@]}"
+
+   # Build newlib-nano beside newlib (original)
+   # Based on 

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/files/

2019-11-29 Thread Aaron Bauman
commit: 67140bcb09f1f246059417391a6f2a5bd722c04b
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Mon Nov 25 12:44:24 2019 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Fri Nov 29 22:07:49 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67140bcb

sys-libs/newlib: remove unused patch(es)

Signed-off-by: Michael Mair-Keimberger  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/13760
Signed-off-by: Aaron Bauman  gentoo.org>

 .../newlib/files/newlib-2.1.0-msp430-destdir.patch | 41 --
 1 file changed, 41 deletions(-)

diff --git a/sys-libs/newlib/files/newlib-2.1.0-msp430-destdir.patch 
b/sys-libs/newlib/files/newlib-2.1.0-msp430-destdir.patch
deleted file mode 100644
index 38fa2643dce..000
--- a/sys-libs/newlib/files/newlib-2.1.0-msp430-destdir.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 0a7009c61811b4451ff6cccda24f42ab07142603 Mon Sep 17 00:00:00 2001
-From: DJ Delorie 
-Date: Thu, 23 Oct 2014 01:49:45 +
-Subject: [PATCH] 2014-10-22  Tim Harder   *
- msp430/Makefile.in: respect DESTDIR during install
-

- libgloss/ChangeLog  | 4 
- libgloss/msp430/Makefile.in | 6 --
- 2 files changed, 8 insertions(+), 2 deletions(-)
-
-2014-10-22  Tim Harder  
-
-   * msp430/Makefile.in: respect DESTDIR during install
-
-diff --git a/libgloss/msp430/Makefile.in b/libgloss/msp430/Makefile.in
-index d72051d..b9f5a6a 100644
 a/libgloss/msp430/Makefile.in
-+++ b/libgloss/msp430/Makefile.in
-@@ -12,6 +12,7 @@
- 
- # Makefile for libgloss/msp430.
- 
-+DESTDIR =
- VPATH = @srcdir@
- srcdir = @srcdir@
- objdir = .
-@@ -138,11 +139,11 @@
- 
- install: $(CRT) $(SIM_BSP) $(LIBNOSYS) $(LIB_CRT) $(SCRIPTS)
-   for c in $(CRT) $(SIM_BSP) $(LIBNOSYS) $(LIB_CRT); do \
--$(INSTALL_DATA) $$c $(tooldir)/lib${MULTISUBDIR}/$$c ;\
-+$(INSTALL_DATA) $$c $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$$c ;\
-   done
-   for c in $(SCRIPTS); do \
- b=`basename $$c`; \
--$(INSTALL_DATA) $$c $(tooldir)/lib${MULTISUBDIR}/$$b ;\
-+$(INSTALL_DATA) $$c $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$$b ;\
-   done
- 
- clean mostlyclean:



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2019-11-24 Thread Sergei Trofimovich
commit: 065d58d65972290d8b494bbb9052f13e1c96fe75
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Nov 24 11:37:36 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Nov 24 11:37:42 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=065d58d6

sys-libs/newlib: fux comment typo: s/conter/counter/

Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/newlib-3.1.0.ebuild | 2 +-
 sys-libs/newlib/newlib-.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-libs/newlib/newlib-3.1.0.ebuild 
b/sys-libs/newlib/newlib-3.1.0.ebuild
index 52ef720a87f..3ff7308671d 100644
--- a/sys-libs/newlib/newlib-3.1.0.ebuild
+++ b/sys-libs/newlib/newlib-3.1.0.ebuild
@@ -33,7 +33,7 @@ NEWLIBBUILD="${WORKDIR}/build"
 NEWLIBNANOBUILD="${WORKDIR}/build.nano"
 NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
 
-# Adding -U_FORTIFY_SOURCE to conter the effect of Gentoo's
+# Adding -U_FORTIFY_SOURCE to counter the effect of Gentoo's
 # auto-addition of _FORTIFY_SOURCE at gcc site: bug #656018#c4
 # Currently newlib can't be built itself when _FORTIFY_SOURCE
 # is set.

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 52ef720a87f..3ff7308671d 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -33,7 +33,7 @@ NEWLIBBUILD="${WORKDIR}/build"
 NEWLIBNANOBUILD="${WORKDIR}/build.nano"
 NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
 
-# Adding -U_FORTIFY_SOURCE to conter the effect of Gentoo's
+# Adding -U_FORTIFY_SOURCE to counter the effect of Gentoo's
 # auto-addition of _FORTIFY_SOURCE at gcc site: bug #656018#c4
 # Currently newlib can't be built itself when _FORTIFY_SOURCE
 # is set.



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2019-11-13 Thread Aaron Bauman
commit: 0d4af03a0c8cbe7e919eb2f97816c84bdbc9c58c
Author: Aaron Bauman  gentoo  org>
AuthorDate: Thu Nov 14 00:44:21 2019 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Thu Nov 14 00:44:21 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d4af03a

sys-libs/newlib: drop old EAPI

Signed-off-by: Aaron Bauman  gentoo.org>

 sys-libs/newlib/Manifest |  5 --
 sys-libs/newlib/newlib-2.0.0.ebuild  | 68 --
 sys-libs/newlib/newlib-2.1.0.ebuild  | 73 
 sys-libs/newlib/newlib-2.2.0.20150423.ebuild | 80 --
 sys-libs/newlib/newlib-2.3.0.20160104.ebuild | 80 --
 sys-libs/newlib/newlib-2.4.0.ebuild  | 85 
 6 files changed, 391 deletions(-)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index 53910d65b6f..c1e9635145e 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1,8 +1,3 @@
-DIST newlib-2.0.0.tar.gz 15868470 BLAKE2B 
07b38479aab6293ebeaef851b7153c61a23bac4a9738f0e6b4f4b7f0238dca4c0a32c9d2a6e9849286e6968cfbe779b6ff9442bf2cf9a2d50782d6cc3bc52e93
 SHA512 
539cc6e3854a52a7871a822e35563ff0dff7124b667fd9471150b9c56f556c0bcc526dfb5503aba5160a5fb61955a3d0876df639374727d2a444b08f90dbf233
-DIST newlib-2.1.0.tar.gz 16199705 BLAKE2B 
daa563f9f710b9556803eb4ecf1aad8e6917ce2aaa727facfa7a8dc1fe7f3ec6cd5111063eacd0a51464b8b3b303b95a628ec02319fa2289e0363ecea31a4882
 SHA512 
6770864f9307abb2401a4e48f286845d3a4afc30b2ac987da4b964a5485cc3823b32d06a0abf61528e93c4ad8a3a0aa3cc1ecd3b033850e6b2bde6d9bbc9a547
-DIST newlib-2.2.0.20150423.tar.gz 17485660 BLAKE2B 
4d5855aac6bff850356910f9e7f5f494483f25650f9bb366d2c643325bddfb743006fa73540b845ce4185bf4d776e68037348bb6a0e6865cec35fe10aae0b035
 SHA512 
0eecaf5dbf6caf0e0fca3697dfd70e5f60ecbc0a3365852586bc40a32bd535ef0936fa7fc68fceda3426cdb9b6259de12ed00303cadeea09d95b5f1a07022bae
 DIST newlib-2.2.0.tar.gz 16521910 BLAKE2B 
530290c8f219774885e3c408889b7f58bbeefe5c092f004c9ad61de8642b725df1f8fd2a00760ebde814e5bf379ae0320a589d2318113f371a733c5abaca2ba7
 SHA512 
ab9161f16845367c823b6709e3c5708969f29f05c77edb1cf969ff4202f358648f1e55080974599dcefed2fbced4694dc73748596e76c1aa37c50cddff6e4be3
-DIST newlib-2.3.0.20160104.tar.gz 17674117 BLAKE2B 
abdfd902e502da32862d8151bf11bd778548cc930bcd2e0e546f5b23c075d6448f3f85e7b4388d64fbf255a5f3b893ace6e13405115a7dc0e3ac5c8846722429
 SHA512 
d83ce298b1b72eabf92e4ec14af3afdf3122e34aff5e320295a398df077235a78aa87148895b441a4f7de3047815e7ce13ea06a06135dd86b69a200236514293
-DIST newlib-2.4.0.tar.gz 17574364 BLAKE2B 
d97be2fe2fe93629230a2b0b1dbf23b2062fab54921e658bae9438fb42a1af975d763f2643352b5dbc3027faffa76ff97170aed9f5d6fb33ae4c6d947f1b608b
 SHA512 
c60665e793dce2368a5baf23560beb50f641e1831854d702d1d7629fb6e9200cf814527f29796792a3d2dff81afee4255723df99ceb0732f99dd9580a17d2ac0
 DIST newlib-2.5.0.tar.gz 17912392 BLAKE2B 
bc89491758d59f3529c72308e963c5b3e39044d6d586ef3814cc19cf55aee33948656c544df7dfcbe3915105e7373f53d7b2baf96b9b8147e3af780c1d08e670
 SHA512 
4c99e8dfcb4a7ad0769b9e173ff06628d82e4993ef87d3adf9d6b5578626b14de81b4b3c5f0673ddbb49dc9f3d3628f9f8d4432dcded91f5cd3d27b7d44343cd
 DIST newlib-3.1.0.tar.gz 17958952 BLAKE2B 
3a84ae81fc07e442a4ed3da7a78e7ede34cc7e24b5d1c66a12624ed808e5f85f134751fcea0e4ce9eb39df287a582821f751a8610a088c149895b5e38eb06989
 SHA512 
efc4c3ab7153387780d141386bca5d3e20c9d25ae3e6b87cf94c8df9d301ce5926dacdff9bd33aeb9781559d933c3d0ae77f4e5b46120d90792f75dbfde702c7

diff --git a/sys-libs/newlib/newlib-2.0.0.ebuild 
b/sys-libs/newlib/newlib-2.0.0.ebuild
deleted file mode 100644
index 480700b42b4..000
--- a/sys-libs/newlib/newlib-2.0.0.ebuild
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="4"
-
-inherit flag-o-matic toolchain-funcs
-
-export CBUILD=${CBUILD:-${CHOST}}
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} ]] ; then
-   if [[ ${CATEGORY} == cross-* ]] ; then
-   export CTARGET=${CATEGORY#cross-}
-   fi
-fi
-
-DESCRIPTION="Newlib is a C library intended for use on embedded systems"
-HOMEPAGE="https://sourceware.org/newlib/;
-SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
-
-LICENSE="NEWLIB LIBGLOSS GPL-2"
-SLOT="0"
-KEYWORDS="-* arm hppa m68k ~mips ppc ppc64 sh sparc x86"
-IUSE="nls threads unicode headers-only"
-RESTRICT="strip"
-
-NEWLIBBUILD="${WORKDIR}/build"
-
-pkg_setup() {
-   # Reject newlib-on-glibc type installs
-   if [[ ${CTARGET} == ${CHOST} ]] ; then
-   case ${CHOST} in
-   *-newlib|*-elf) ;;
-   *) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
-   esac
-   fi
-}
-
-src_configure() {
-   # we should fix this ...
-   unset LDFLAGS
-   CHOST=${CTARGET} strip-unsupported-flags
-
-   local myconf=""
-   [[ ${CTARGET} == "spu" ]] \

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2019-10-23 Thread Sergei Trofimovich
commit: 25b326e873440a8bbb83a3734aeb6e839ef5d777
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Wed Oct 23 06:47:35 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Oct 23 06:48:45 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25b326e8

sys-libs/newlib: bump up to 3.1.0, bug #656018

Reported-by: David Flogeras
Closes: https://bugs.gentoo.org/656018
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/Manifest |  1 +
 .../newlib/{newlib-.ebuild => newlib-3.1.0.ebuild}   | 16 +---
 sys-libs/newlib/newlib-.ebuild   | 16 +---
 3 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index 8685b42c85a..53910d65b6f 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -5,3 +5,4 @@ DIST newlib-2.2.0.tar.gz 16521910 BLAKE2B 
530290c8f219774885e3c408889b7f58bbeefe
 DIST newlib-2.3.0.20160104.tar.gz 17674117 BLAKE2B 
abdfd902e502da32862d8151bf11bd778548cc930bcd2e0e546f5b23c075d6448f3f85e7b4388d64fbf255a5f3b893ace6e13405115a7dc0e3ac5c8846722429
 SHA512 
d83ce298b1b72eabf92e4ec14af3afdf3122e34aff5e320295a398df077235a78aa87148895b441a4f7de3047815e7ce13ea06a06135dd86b69a200236514293
 DIST newlib-2.4.0.tar.gz 17574364 BLAKE2B 
d97be2fe2fe93629230a2b0b1dbf23b2062fab54921e658bae9438fb42a1af975d763f2643352b5dbc3027faffa76ff97170aed9f5d6fb33ae4c6d947f1b608b
 SHA512 
c60665e793dce2368a5baf23560beb50f641e1831854d702d1d7629fb6e9200cf814527f29796792a3d2dff81afee4255723df99ceb0732f99dd9580a17d2ac0
 DIST newlib-2.5.0.tar.gz 17912392 BLAKE2B 
bc89491758d59f3529c72308e963c5b3e39044d6d586ef3814cc19cf55aee33948656c544df7dfcbe3915105e7373f53d7b2baf96b9b8147e3af780c1d08e670
 SHA512 
4c99e8dfcb4a7ad0769b9e173ff06628d82e4993ef87d3adf9d6b5578626b14de81b4b3c5f0673ddbb49dc9f3d3628f9f8d4432dcded91f5cd3d27b7d44343cd
+DIST newlib-3.1.0.tar.gz 17958952 BLAKE2B 
3a84ae81fc07e442a4ed3da7a78e7ede34cc7e24b5d1c66a12624ed808e5f85f134751fcea0e4ce9eb39df287a582821f751a8610a088c149895b5e38eb06989
 SHA512 
efc4c3ab7153387780d141386bca5d3e20c9d25ae3e6b87cf94c8df9d301ce5926dacdff9bd33aeb9781559d933c3d0ae77f4e5b46120d90792f75dbfde702c7

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-3.1.0.ebuild
similarity index 89%
copy from sys-libs/newlib/newlib-.ebuild
copy to sys-libs/newlib/newlib-3.1.0.ebuild
index 6575c24051a..52ef720a87f 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-3.1.0.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
+EAPI="7"
 
 inherit flag-o-matic toolchain-funcs
 
@@ -10,9 +10,7 @@ if [[ ${PV} == "" ]] ; then
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
-   if [[ ${PV} != *.201[5-9] ]] ; then
-   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
-   fi
+   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
 fi
 
 export CBUILD=${CBUILD:-${CHOST}}
@@ -35,8 +33,12 @@ NEWLIBBUILD="${WORKDIR}/build"
 NEWLIBNANOBUILD="${WORKDIR}/build.nano"
 NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
 
-CFLAGS_FULL="-ffunction-sections -fdata-sections"
-CFLAGS_NANO="-Os -ffunction-sections -fdata-sections"
+# Adding -U_FORTIFY_SOURCE to conter the effect of Gentoo's
+# auto-addition of _FORTIFY_SOURCE at gcc site: bug #656018#c4
+# Currently newlib can't be built itself when _FORTIFY_SOURCE
+# is set.
+CFLAGS_FULL="-ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
+CFLAGS_NANO="-Os -ffunction-sections -fdata-sections -U_FORTIFY_SOURCE"
 
 pkg_setup() {
# Reject newlib-on-glibc type installs

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 6575c24051a..52ef720a87f 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
+EAPI="7"
 
 inherit flag-o-matic toolchain-funcs
 
@@ -10,9 +10,7 @@ if [[ ${PV} == "" ]] ; then
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
-   if [[ ${PV} != *.201[5-9] ]] ; then
-   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
-   fi
+   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
 fi
 
 export CBUILD=${CBUILD:-${CHOST}}
@@ -35,8 +33,12 @@ NEWLIBBUILD="${WORKDIR}/build"
 NEWLIBNANOBUILD="${WORKDIR}/build.nano"
 NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
 
-CFLAGS_FULL="-ffunction-sections -fdata-sections"
-CFLAGS_NANO="-Os -ffunction-sections -fdata-sections"
+# Adding 

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2018-11-25 Thread Sergei Trofimovich
commit: 10b92cbbf831284ec9b9d8aeab93c8d1c9ddf4fe
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Nov 25 14:54:43 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Nov 25 15:13:19 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10b92cbb

sys-libs/newlib: drop comment mentioning prepallstrip()

The comment still manages to confuse people. Let's drop it.

Bug: https://bugs.gentoo.org/587298
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich  gentoo.org>

 sys-libs/newlib/newlib-2.0.0.ebuild  | 3 +--
 sys-libs/newlib/newlib-2.1.0.ebuild  | 3 +--
 sys-libs/newlib/newlib-2.2.0.20150423.ebuild | 3 +--
 sys-libs/newlib/newlib-2.2.0.ebuild  | 3 +--
 sys-libs/newlib/newlib-2.3.0.20160104.ebuild | 3 +--
 sys-libs/newlib/newlib-2.4.0.ebuild  | 3 +--
 sys-libs/newlib/newlib-2.5.0.ebuild  | 3 +--
 sys-libs/newlib/newlib-.ebuild   | 3 +--
 8 files changed, 8 insertions(+), 16 deletions(-)

diff --git a/sys-libs/newlib/newlib-2.0.0.ebuild 
b/sys-libs/newlib/newlib-2.0.0.ebuild
index 053d58f0248..480700b42b4 100644
--- a/sys-libs/newlib/newlib-2.0.0.ebuild
+++ b/sys-libs/newlib/newlib-2.0.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -62,7 +62,6 @@ src_compile() {
 src_install() {
cd "${NEWLIBBUILD}"
emake -j1 DESTDIR="${D}" install
-#  env -uRESTRICT CHOST=${CTARGET} prepallstrip
# minor hack to keep things clean
rm -fR "${D}"/usr/share/info
rm -fR "${D}"/usr/info

diff --git a/sys-libs/newlib/newlib-2.1.0.ebuild 
b/sys-libs/newlib/newlib-2.1.0.ebuild
index fdf7d10a2f6..5b7a8941d19 100644
--- a/sys-libs/newlib/newlib-2.1.0.ebuild
+++ b/sys-libs/newlib/newlib-2.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -67,7 +67,6 @@ src_compile() {
 src_install() {
cd "${NEWLIBBUILD}"
emake -j1 DESTDIR="${D}" install
-#  env -uRESTRICT CHOST=${CTARGET} prepallstrip
# minor hack to keep things clean
rm -fR "${D}"/usr/share/info
rm -fR "${D}"/usr/info

diff --git a/sys-libs/newlib/newlib-2.2.0.20150423.ebuild 
b/sys-libs/newlib/newlib-2.2.0.20150423.ebuild
index c851572aa12..b8982d522c9 100644
--- a/sys-libs/newlib/newlib-2.2.0.20150423.ebuild
+++ b/sys-libs/newlib/newlib-2.2.0.20150423.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -74,7 +74,6 @@ src_compile() {
 src_install() {
cd "${NEWLIBBUILD}"
emake -j1 DESTDIR="${D}" install
-#  env -uRESTRICT CHOST=${CTARGET} prepallstrip
# minor hack to keep things clean
rm -fR "${D}"/usr/share/info
rm -fR "${D}"/usr/info

diff --git a/sys-libs/newlib/newlib-2.2.0.ebuild 
b/sys-libs/newlib/newlib-2.2.0.ebuild
index a583773e935..06ec36dcc2c 100644
--- a/sys-libs/newlib/newlib-2.2.0.ebuild
+++ b/sys-libs/newlib/newlib-2.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -75,7 +75,6 @@ src_compile() {
 src_install() {
cd "${NEWLIBBUILD}"
emake -j1 DESTDIR="${D}" install
-#  env -uRESTRICT CHOST=${CTARGET} prepallstrip
# minor hack to keep things clean
rm -fR "${D}"/usr/share/info
rm -fR "${D}"/usr/info

diff --git a/sys-libs/newlib/newlib-2.3.0.20160104.ebuild 
b/sys-libs/newlib/newlib-2.3.0.20160104.ebuild
index 70750a91118..29a9d5b9594 100644
--- a/sys-libs/newlib/newlib-2.3.0.20160104.ebuild
+++ b/sys-libs/newlib/newlib-2.3.0.20160104.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -74,7 +74,6 @@ src_compile() {
 src_install() {
cd "${NEWLIBBUILD}"
emake -j1 DESTDIR="${D}" install
-#  env -uRESTRICT CHOST=${CTARGET} prepallstrip
# minor hack to keep things clean
rm -fR "${D}"/usr/share/info
rm -fR "${D}"/usr/info

diff --git a/sys-libs/newlib/newlib-2.4.0.ebuild 
b/sys-libs/newlib/newlib-2.4.0.ebuild
index 724e01a55fa..120357a4dca 100644
--- a/sys-libs/newlib/newlib-2.4.0.ebuild
+++ b/sys-libs/newlib/newlib-2.4.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -79,7 +79,6 @@ src_compile() {
 src_install() {
cd "${NEWLIBBUILD}"
emake -j1 DESTDIR="${D}" install
-#  env -uRESTRICT 

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2018-03-14 Thread Jason Zaman
commit: 791f828192341cfdbe896cd266b9e786ecb84e2e
Author: Jason Zaman  gentoo  org>
AuthorDate: Wed Mar 14 15:33:11 2018 +
Commit: Jason Zaman  gentoo  org>
CommitDate: Wed Mar 14 16:06:18 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=791f8281

sys-libs/newlib: Add support for newlib-nano

Closes: https://bugs.gentoo.org/532390
Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-libs/newlib/metadata.xml|  9 +++--
 sys-libs/newlib/newlib-2.5.0.ebuild | 66 ++---
 sys-libs/newlib/newlib-.ebuild  | 66 ++---
 3 files changed, 130 insertions(+), 11 deletions(-)

diff --git a/sys-libs/newlib/metadata.xml b/sys-libs/newlib/metadata.xml
index 5025963793d..b0a7c56f4a9 100644
--- a/sys-libs/newlib/metadata.xml
+++ b/sys-libs/newlib/metadata.xml
@@ -2,10 +2,13 @@
 http://www.gentoo.org/dtd/metadata.dtd;>
 
 
-lu_z...@gentoo.org
+   lu_z...@gentoo.org
 
 
-toolch...@gentoo.org
-Gentoo Toolchain Project
+   toolch...@gentoo.org
+   Gentoo Toolchain Project
 
+
+   Build additional newlib-nano library
+
 

diff --git a/sys-libs/newlib/newlib-2.5.0.ebuild 
b/sys-libs/newlib/newlib-2.5.0.ebuild
index 51c3318e202..e59c79299cb 100644
--- a/sys-libs/newlib/newlib-2.5.0.ebuild
+++ b/sys-libs/newlib/newlib-2.5.0.ebuild
@@ -28,10 +28,15 @@ HOMEPAGE="https://sourceware.org/newlib/;
 
 LICENSE="NEWLIB LIBGLOSS GPL-2"
 SLOT="0"
-IUSE="nls threads unicode headers-only"
+IUSE="nls threads unicode headers-only nano"
 RESTRICT="strip"
 
 NEWLIBBUILD="${WORKDIR}/build"
+NEWLIBNANOBUILD="${WORKDIR}/build.nano"
+NEWLIBNANOTMPINSTALL="${WORKDIR}/nano_tmp_install"
+
+CFLAGS_FULL="-ffunction-sections -fdata-sections"
+CFLAGS_NANO="-Os -ffunction-sections -fdata-sections"
 
 pkg_setup() {
# Reject newlib-on-glibc type installs
@@ -47,6 +52,8 @@ src_configure() {
# we should fix this ...
unset LDFLAGS
CHOST=${CTARGET} strip-unsupported-flags
+   CCASFLAGS_ORIG="${CCASFLAGS}"
+   CFLAGS_ORIG="${CFLAGS}"
 
local myconf=(
# Disable legacy syscall stub code in newlib.  These have been
@@ -61,22 +68,73 @@ src_configure() {
mkdir -p "${NEWLIBBUILD}"
cd "${NEWLIBBUILD}"
 
+   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
+   export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}"
ECONF_SOURCE=${S} \
econf \
$(use_enable unicode newlib-mb) \
$(use_enable nls) \
"${myconf[@]}"
+
+   # Build newlib-nano beside newlib (original)
+   # Based on 
https://tracker.debian.org/media/packages/n/newlib/rules-2.1.0%2Bgit20140818.1a8323b-2
+   if use nano ; then
+   mkdir -p "${NEWLIBNANOBUILD}" || die
+   cd "${NEWLIBNANOBUILD}" || die
+   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_NANO}"
+   export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_NANO}"
+   ECONF_SOURCE=${S} \
+   econf \
+   $(use_enable unicode newlib-mb) \
+   $(use_enable nls) \
+   --enable-newlib-reent-small \
+   --disable-newlib-fvwrite-in-streamio \
+   --disable-newlib-fseek-optimization \
+   --disable-newlib-wide-orient \
+   --enable-newlib-nano-malloc \
+   --disable-newlib-unbuf-stream-opt \
+   --enable-lite-exit \
+   --enable-newlib-global-atexit \
+   --enable-newlib-nano-formatted-io \
+   ${myconf}
+   fi
 }
 
 src_compile() {
+   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_FULL}"
+   export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_FULL}"
emake -C "${NEWLIBBUILD}"
+
+   if use nano ; then
+   export "CFLAGS_FOR_TARGET=${CFLAGS_ORIG} ${CFLAGS_NANO}"
+   export "CCASFLAGS=${CCASFLAGS_ORIG} ${CFLAGS_NANO}"
+   emake -C "${NEWLIBNANOBUILD}"
+   fi
 }
 
 src_install() {
-   cd "${NEWLIBBUILD}"
+   cd "${NEWLIBBUILD}" || die
emake -j1 DESTDIR="${D}" install
 #  env -uRESTRICT CHOST=${CTARGET} prepallstrip
+
+   if use nano ; then
+   cd "${NEWLIBNANOBUILD}" || die
+   emake -j1 DESTDIR="${NEWLIBNANOTMPINSTALL}" install
+   # Rename nano lib* files to lib*_nano and move to the real ${D}
+   local nanolibfiles=""
+   nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex 
".*/lib\(c\|g\|rdimon\)\.a" -print)
+   for f in ${nanolibfiles}; do
+   local l="${f##${NEWLIBNANOTMPINSTALL}}"
+   mv -v "${f}" "${D}/${l%%\.a}_nano.a" || die
+   done
+
+   # Move newlib-nano's version of newlib.h to newlib-nano/newlib.h
+   

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2018-01-07 Thread Sergei Trofimovich
commit: 7ebe9beefafa261f4f14d4e6f9171ffc1b9fda7e
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Jan  7 18:42:22 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Jan  7 19:39:44 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ebe9bee

sys-libs/newlib: Migrate CROSSCOMPILE_OPTS=headers-only -> USE=headers-only

CROSSCOMPILE_OPTS is a USE_EXPAND of a single item: headers-only.
Convert it to a global USE flag instead.

Mechanical ebuild rename done as:
$ sed -e 's@crosscompile_opts_headers-only@headers-only@g' \
-i $(git grep -l headers-only)

'headers-only' flag is used by crossdev to bootstrap stage1 compiler
before libc is available.

crossdev switched to USE=headers-only in =sys-devel/crossdev-20171230.

Bug: https://bugs.gentoo.org/642712
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 sys-libs/newlib/newlib-2.0.0.ebuild  | 4 ++--
 sys-libs/newlib/newlib-2.1.0.ebuild  | 4 ++--
 sys-libs/newlib/newlib-2.2.0.20150423.ebuild | 4 ++--
 sys-libs/newlib/newlib-2.2.0.ebuild  | 4 ++--
 sys-libs/newlib/newlib-2.3.0.20160104.ebuild | 4 ++--
 sys-libs/newlib/newlib-2.4.0.ebuild  | 4 ++--
 sys-libs/newlib/newlib-2.5.0.ebuild  | 4 ++--
 sys-libs/newlib/newlib-.ebuild   | 4 ++--
 8 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/sys-libs/newlib/newlib-2.0.0.ebuild 
b/sys-libs/newlib/newlib-2.0.0.ebuild
index 1e1ee8fed86..053d58f0248 100644
--- a/sys-libs/newlib/newlib-2.0.0.ebuild
+++ b/sys-libs/newlib/newlib-2.0.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -20,7 +20,7 @@ SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
 LICENSE="NEWLIB LIBGLOSS GPL-2"
 SLOT="0"
 KEYWORDS="-* arm hppa m68k ~mips ppc ppc64 sh sparc x86"
-IUSE="nls threads unicode crosscompile_opts_headers-only"
+IUSE="nls threads unicode headers-only"
 RESTRICT="strip"
 
 NEWLIBBUILD="${WORKDIR}/build"

diff --git a/sys-libs/newlib/newlib-2.1.0.ebuild 
b/sys-libs/newlib/newlib-2.1.0.ebuild
index 3ee1e7eb83e..fdf7d10a2f6 100644
--- a/sys-libs/newlib/newlib-2.1.0.ebuild
+++ b/sys-libs/newlib/newlib-2.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -20,7 +20,7 @@ SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
 LICENSE="NEWLIB LIBGLOSS GPL-2"
 SLOT="0"
 KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
-IUSE="nls threads unicode crosscompile_opts_headers-only"
+IUSE="nls threads unicode headers-only"
 RESTRICT="strip"
 
 NEWLIBBUILD="${WORKDIR}/build"

diff --git a/sys-libs/newlib/newlib-2.2.0.20150423.ebuild 
b/sys-libs/newlib/newlib-2.2.0.20150423.ebuild
index df987d568b6..c851572aa12 100644
--- a/sys-libs/newlib/newlib-2.2.0.20150423.ebuild
+++ b/sys-libs/newlib/newlib-2.2.0.20150423.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -28,7 +28,7 @@ HOMEPAGE="https://sourceware.org/newlib/;
 
 LICENSE="NEWLIB LIBGLOSS GPL-2"
 SLOT="0"
-IUSE="nls threads unicode crosscompile_opts_headers-only"
+IUSE="nls threads unicode headers-only"
 RESTRICT="strip"
 
 NEWLIBBUILD="${WORKDIR}/build"

diff --git a/sys-libs/newlib/newlib-2.2.0.ebuild 
b/sys-libs/newlib/newlib-2.2.0.ebuild
index 2754fda04d9..a583773e935 100644
--- a/sys-libs/newlib/newlib-2.2.0.ebuild
+++ b/sys-libs/newlib/newlib-2.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -26,7 +26,7 @@ HOMEPAGE="https://sourceware.org/newlib/;
 
 LICENSE="NEWLIB LIBGLOSS GPL-2"
 SLOT="0"
-IUSE="nls threads unicode crosscompile_opts_headers-only"
+IUSE="nls threads unicode headers-only"
 RESTRICT="strip"
 
 # Handle the SLOT changes. #497344

diff --git a/sys-libs/newlib/newlib-2.3.0.20160104.ebuild 
b/sys-libs/newlib/newlib-2.3.0.20160104.ebuild
index 43c6ac3aa91..70750a91118 100644
--- a/sys-libs/newlib/newlib-2.3.0.20160104.ebuild
+++ b/sys-libs/newlib/newlib-2.3.0.20160104.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -28,7 +28,7 @@ HOMEPAGE="https://sourceware.org/newlib/;
 
 LICENSE="NEWLIB LIBGLOSS GPL-2"
 SLOT="0"
-IUSE="nls threads unicode crosscompile_opts_headers-only"
+IUSE="nls threads unicode headers-only"
 RESTRICT="strip"
 
 NEWLIBBUILD="${WORKDIR}/build"

diff --git a/sys-libs/newlib/newlib-2.4.0.ebuild 
b/sys-libs/newlib/newlib-2.4.0.ebuild
index e70a03bdcad..724e01a55fa 100644
--- a/sys-libs/newlib/newlib-2.4.0.ebuild
+++ 

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2017-01-02 Thread Mike Frysinger
commit: 4914b70e25fdfbfa295c213928efb689bc10014b
Author: Mike Frysinger  gentoo  org>
AuthorDate: Mon Jan  2 06:12:36 2017 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Mon Jan  2 20:10:17 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4914b70e

sys-libs/newlib: version bump to 2.5.0

 sys-libs/newlib/Manifest|  1 +
 sys-libs/newlib/{newlib-.ebuild => newlib-2.5.0.ebuild} | 11 +++
 sys-libs/newlib/newlib-.ebuild  | 11 +++
 3 files changed, 7 insertions(+), 16 deletions(-)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index 93ddac4..74a4296 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -4,3 +4,4 @@ DIST newlib-2.2.0.20150423.tar.gz 17485660 SHA256 
b1ff3642b246adc6ee546884cb9ea3
 DIST newlib-2.2.0.tar.gz 16521910 SHA256 
f8add263b0737591aff451b12a00c262c2efac4fa87d741fa1c318fc3bb335be SHA512 
ab9161f16845367c823b6709e3c5708969f29f05c77edb1cf969ff4202f358648f1e55080974599dcefed2fbced4694dc73748596e76c1aa37c50cddff6e4be3
 WHIRLPOOL 
8dfc23f93d774c5092d64d1482c3ecc6e3ba35395822bb1d52f5e3b86f644ee803927bff133883926f3e019cfd5d9f04ffe0dcaac20bdf144c542ba1dc3edff9
 DIST newlib-2.3.0.20160104.tar.gz 17674117 SHA256 
c92a0e02904bd4fbe1dd416ed94e786c66afbaeae484e4c26be8bb7c7c1e4cd1 SHA512 
d83ce298b1b72eabf92e4ec14af3afdf3122e34aff5e320295a398df077235a78aa87148895b441a4f7de3047815e7ce13ea06a06135dd86b69a200236514293
 WHIRLPOOL 
41ab57955b886dad8988bd06a18c1b5bbf21c7b554410711c17141bbc12d70af2f6ce6f9d3503c11180d46b42bcf305c6347ea58252d24459dc02c568aeb8497
 DIST newlib-2.4.0.tar.gz 17574364 SHA256 
545b3d235e350d2c61491df8b9f775b1b972f191380db8f52ec0b1c829c52706 SHA512 
c60665e793dce2368a5baf23560beb50f641e1831854d702d1d7629fb6e9200cf814527f29796792a3d2dff81afee4255723df99ceb0732f99dd9580a17d2ac0
 WHIRLPOOL 
34648a203286c8adc18bd38ae43ef389d0eb46e4280501250ab05b413d82e028a68abb4e331744e078eacad1d40c67178a1d12c39767da7cf89d0a49a7d8762f
+DIST newlib-2.5.0.tar.gz 17912392 SHA256 
5b76a9b97c9464209772ed25ce55181a7bb144a66e5669aaec945aa64da3189b SHA512 
4c99e8dfcb4a7ad0769b9e173ff06628d82e4993ef87d3adf9d6b5578626b14de81b4b3c5f0673ddbb49dc9f3d3628f9f8d4432dcded91f5cd3d27b7d44343cd
 WHIRLPOOL 
45fdce47ecde0bb61367465ce2174cd3d00b5a034c0c204d19aba7850fd7d9151e89ad55c716ac0a7eba648f5e15d4ae0ca44f25cd7b27ed00f8968a53113f8a

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-2.5.0.ebuild
similarity index 93%
copy from sys-libs/newlib/newlib-.ebuild
copy to sys-libs/newlib/newlib-2.5.0.ebuild
index 9ef5293..6a325c7 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-2.5.0.ebuild
@@ -1,10 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Id$
 
-EAPI="4"
+EAPI="6"
 
-inherit flag-o-matic toolchain-funcs eutils
+inherit flag-o-matic toolchain-funcs
 
 if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
@@ -44,10 +43,6 @@ pkg_setup() {
fi
 }
 
-src_prepare() {
-   epatch_user
-}
-
 src_configure() {
# we should fix this ...
unset LDFLAGS

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 9ef5293..6a325c7 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -1,10 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Id$
 
-EAPI="4"
+EAPI="6"
 
-inherit flag-o-matic toolchain-funcs eutils
+inherit flag-o-matic toolchain-funcs
 
 if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
@@ -44,10 +43,6 @@ pkg_setup() {
fi
 }
 
-src_prepare() {
-   epatch_user
-}
-
 src_configure() {
# we should fix this ...
unset LDFLAGS



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/files/, sys-libs/newlib/

2016-06-23 Thread Mike Frysinger
commit: 6545c24e3a2a3f35fba4606ab278604e64666b61
Author: Mike Frysinger  gentoo  org>
AuthorDate: Thu Jun 23 18:55:23 2016 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Thu Jun 23 19:14:07 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6545c24e

sys-libs/newlib: drop old <2.0.0 versions

 sys-libs/newlib/Manifest   |  3 -
 .../newlib/files/newlib-1.20.0-arm-targets.patch   | 55 
 .../newlib/files/newlib-1.20.0-cris-install.patch  | 13 
 sys-libs/newlib/newlib-1.18.0.ebuild   | 72 
 sys-libs/newlib/newlib-1.19.0.ebuild   | 72 
 sys-libs/newlib/newlib-1.20.0.ebuild   | 77 --
 6 files changed, 292 deletions(-)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index 6e77fb1..93ddac4 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -1,6 +1,3 @@
-DIST newlib-1.18.0.tar.gz 13598301 SHA256 
d608f22b0b2e7725d2fca13cac19f34bc652d9773acadae778db9881746cb071 SHA512 
67b80060fd7bb9d035c004cfbcfbc66b8c8f176366c1ce11ae68dd31b8ee3e02b59ad37ceaf6f54da3c35977c462ddaff4492a27425128ee5d5898840771
 WHIRLPOOL 
04908a55d1e992877668b80a8e5743f433ab96b7d9f8ab0b936ff4aa27862024490e2856acb88188d7f45ecb0d2197cbc22362f8aaf10ff07b9d89d15d258906
-DIST newlib-1.19.0.tar.gz 14323667 SHA256 
4f43807236b2274c220881ca69f7dc6aecc52f14bb32a6f03404d30780c25007 SHA512 
041004947fbbf1a205f365512de52f9052060f35291827e38caa202c202a76e2f442bbd880abf8edd05317fe179b8c3cb94662b2688b58b3390136d6214ef6f6
 WHIRLPOOL 
e24575945c4d2338694fb00230fa82d5081ba8bb8ddb84d68c1d9eaac778e229d2c56356b0ba5f962480478aeb39df1b4f301f60becb48e9feea923e6b57ceea
-DIST newlib-1.20.0.tar.gz 14571004 SHA256 
c644b2847244278c57bec2ddda69d8fab5a7c767f3b9af69aa7aa3da823ff692 SHA512 
2abf1d30980e460c4d6ffe4d1682e38403d056048e00675362256731e57fe6759d01e85bcba84258d211941926e13bf3c632ff3824931a844c8b2596e795451f
 WHIRLPOOL 
be7996e493b0f2be6992c579796ea9d6968ed3b0a4f5d9c58e1c8b255a1060df18e6ae3d7ecf3a291c5859a6c04bdd39296e9ee5811eb59e2e7646da27089f66
 DIST newlib-2.0.0.tar.gz 15868470 SHA256 
49c29e9129325e7c3b221aa829743ddcd796d024440e47c80fc0d6769af72d8a SHA512 
539cc6e3854a52a7871a822e35563ff0dff7124b667fd9471150b9c56f556c0bcc526dfb5503aba5160a5fb61955a3d0876df639374727d2a444b08f90dbf233
 WHIRLPOOL 
f9fbd87e36c1bfc94cfabfdcfa3a347d611e275eafa9167f9c4b5adea6b1833b090960ba37503210146aec4060dc360f43c31dab5cb8def2d51db33fac935640
 DIST newlib-2.1.0.tar.gz 16199705 SHA256 
3e4d5ab9f0508942b6231b8ade4f8e5048cf92c96ed574c2bd6bd3320a599a48 SHA512 
6770864f9307abb2401a4e48f286845d3a4afc30b2ac987da4b964a5485cc3823b32d06a0abf61528e93c4ad8a3a0aa3cc1ecd3b033850e6b2bde6d9bbc9a547
 WHIRLPOOL 
6faba54a72c6242c694f43a7f2e62d23584fec658818201ee58e1d2954d45b58a5f4effd63f5274b99748ed7730db76e0cf2aa1ecfbdf7001f10929d7db6353c
 DIST newlib-2.2.0.20150423.tar.gz 17485660 SHA256 
b1ff3642b246adc6ee546884cb9ea3b0913f17394cbf7ca4d3b82544fef759f7 SHA512 
0eecaf5dbf6caf0e0fca3697dfd70e5f60ecbc0a3365852586bc40a32bd535ef0936fa7fc68fceda3426cdb9b6259de12ed00303cadeea09d95b5f1a07022bae
 WHIRLPOOL 
37d78cf24a072819bcf098e3b384cf6fa3a11ded461d6fb12e8635169fcb8b638400622878ad947df55236957a6ce3884ad46f02f7351414842eb048ceed7d73

diff --git a/sys-libs/newlib/files/newlib-1.20.0-arm-targets.patch 
b/sys-libs/newlib/files/newlib-1.20.0-arm-targets.patch
deleted file mode 100644
index 1704cc0..000
--- a/sys-libs/newlib/files/newlib-1.20.0-arm-targets.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-https://bugs.gentoo.org/413547
-
-From 3b98b99eaa23f242b984af8cbf4a0e707bc7eae8 Mon Sep 17 00:00:00 2001
-From: Corinna Vinschen 
-Date: Thu, 23 Feb 2012 09:30:17 +
-Subject: [PATCH]   * configure.host: Accept "arm*" host spec instead of
- just "arm".
-

- newlib/ChangeLog  |4 
- newlib/configure.host |8 
- 2 files changed, 8 insertions(+), 4 deletions(-)
-
-+2012-02-23  Dan Egnor  
-
-   * configure.host: Accept "arm*" host spec instead of just "arm".
-
-diff --git a/newlib/configure.host b/newlib/configure.host
-index a6673af..dc44e80 100644
 a/newlib/configure.host
-+++ b/newlib/configure.host
-@@ -98,7 +98,7 @@ case "${host_cpu}" in
-   arc)
-   machine_dir=
-   ;;
--  arm)
-+  arm*)
-   machine_dir=arm
-   ;;
-   avr*)
-@@ -367,7 +367,7 @@ case "${host}" in
-   arc-*-*)
-   sys_dir=arc
-   ;;
--  arm-*-*)
-+  arm*-*-*)
-   sys_dir=arm
-   if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then
- have_crt0="no"
-@@ -560,10 +560,10 @@ case "${host}" in
-   arc-*-*)
-   syscall_dir=syscalls
-   ;;
--  arm-*-pe)
-+  arm*-*-pe)
-   syscall_dir=syscalls
-   ;;
--  arm-*-*)
-+  arm*-*-*)
-   syscall_dir=syscalls
- # If newlib is supplying syscalls, select which debug protocol is being used.
- # ARM_RDP_MONITOR selects the Demon monitor.
--- 
-1.7.8.5
-

diff --git 

[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2016-06-23 Thread Mike Frysinger
commit: edae0804767dbb7a2d5f71e847de473a9cff8638
Author: Mike Frysinger  gentoo  org>
AuthorDate: Thu Jun 23 19:12:39 2016 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Thu Jun 23 19:14:07 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edae0804

sys-libs/newlib: build with --disable-newlib-supplied-syscalls

Switch myconf to an array at the same time to clean things up a bit.

 sys-libs/newlib/newlib-2.4.0.ebuild | 13 +
 sys-libs/newlib/newlib-.ebuild  | 13 +
 2 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/sys-libs/newlib/newlib-2.4.0.ebuild 
b/sys-libs/newlib/newlib-2.4.0.ebuild
index 12999bc..4282764 100644
--- a/sys-libs/newlib/newlib-2.4.0.ebuild
+++ b/sys-libs/newlib/newlib-2.4.0.ebuild
@@ -53,10 +53,15 @@ src_configure() {
unset LDFLAGS
CHOST=${CTARGET} strip-unsupported-flags
 
-   local myconf=""
+   local myconf=(
+   # Disable legacy syscall stub code in newlib.  These have been
+   # moved to libgloss for a long time now, so the code in newlib
+   # itself just gets in the way.
+   --disable-newlib-supplied-syscalls
+   )
[[ ${CTARGET} == "spu" ]] \
-   && myconf="${myconf} --disable-newlib-multithread" \
-   || myconf="${myconf} $(use_enable threads newlib-multithread)"
+   && myconf+=( --disable-newlib-multithread ) \
+   || myconf+=( $(use_enable threads newlib-multithread) )
 
mkdir -p "${NEWLIBBUILD}"
cd "${NEWLIBBUILD}"
@@ -65,7 +70,7 @@ src_configure() {
econf \
$(use_enable unicode newlib-mb) \
$(use_enable nls) \
-   ${myconf}
+   "${myconf[@]}"
 }
 
 src_compile() {

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 69e50b0..9ef5293 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -53,10 +53,15 @@ src_configure() {
unset LDFLAGS
CHOST=${CTARGET} strip-unsupported-flags
 
-   local myconf=""
+   local myconf=(
+   # Disable legacy syscall stub code in newlib.  These have been
+   # moved to libgloss for a long time now, so the code in newlib
+   # itself just gets in the way.
+   --disable-newlib-supplied-syscalls
+   )
[[ ${CTARGET} == "spu" ]] \
-   && myconf="${myconf} --disable-newlib-multithread" \
-   || myconf="${myconf} $(use_enable threads newlib-multithread)"
+   && myconf+=( --disable-newlib-multithread ) \
+   || myconf+=( $(use_enable threads newlib-multithread) )
 
mkdir -p "${NEWLIBBUILD}"
cd "${NEWLIBBUILD}"
@@ -65,7 +70,7 @@ src_configure() {
econf \
$(use_enable unicode newlib-mb) \
$(use_enable nls) \
-   ${myconf}
+   "${myconf[@]}"
 }
 
 src_compile() {



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2016-03-29 Thread Mike Frysinger
commit: de7141c25f06911b154023540fe99fa9c70986c2
Author: Mike Frysinger  gentoo  org>
AuthorDate: Wed Mar 30 02:21:51 2016 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Wed Mar 30 03:46:34 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de7141c2

sys-libs/newlib: version bump to 2.4.0

 sys-libs/newlib/Manifest|  1 +
 sys-libs/newlib/newlib-2.4.0.ebuild | 82 +
 2 files changed, 83 insertions(+)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index 21ea4cb..6e77fb1 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -6,3 +6,4 @@ DIST newlib-2.1.0.tar.gz 16199705 SHA256 
3e4d5ab9f0508942b6231b8ade4f8e5048cf92c
 DIST newlib-2.2.0.20150423.tar.gz 17485660 SHA256 
b1ff3642b246adc6ee546884cb9ea3b0913f17394cbf7ca4d3b82544fef759f7 SHA512 
0eecaf5dbf6caf0e0fca3697dfd70e5f60ecbc0a3365852586bc40a32bd535ef0936fa7fc68fceda3426cdb9b6259de12ed00303cadeea09d95b5f1a07022bae
 WHIRLPOOL 
37d78cf24a072819bcf098e3b384cf6fa3a11ded461d6fb12e8635169fcb8b638400622878ad947df55236957a6ce3884ad46f02f7351414842eb048ceed7d73
 DIST newlib-2.2.0.tar.gz 16521910 SHA256 
f8add263b0737591aff451b12a00c262c2efac4fa87d741fa1c318fc3bb335be SHA512 
ab9161f16845367c823b6709e3c5708969f29f05c77edb1cf969ff4202f358648f1e55080974599dcefed2fbced4694dc73748596e76c1aa37c50cddff6e4be3
 WHIRLPOOL 
8dfc23f93d774c5092d64d1482c3ecc6e3ba35395822bb1d52f5e3b86f644ee803927bff133883926f3e019cfd5d9f04ffe0dcaac20bdf144c542ba1dc3edff9
 DIST newlib-2.3.0.20160104.tar.gz 17674117 SHA256 
c92a0e02904bd4fbe1dd416ed94e786c66afbaeae484e4c26be8bb7c7c1e4cd1 SHA512 
d83ce298b1b72eabf92e4ec14af3afdf3122e34aff5e320295a398df077235a78aa87148895b441a4f7de3047815e7ce13ea06a06135dd86b69a200236514293
 WHIRLPOOL 
41ab57955b886dad8988bd06a18c1b5bbf21c7b554410711c17141bbc12d70af2f6ce6f9d3503c11180d46b42bcf305c6347ea58252d24459dc02c568aeb8497
+DIST newlib-2.4.0.tar.gz 17574364 SHA256 
545b3d235e350d2c61491df8b9f775b1b972f191380db8f52ec0b1c829c52706 SHA512 
c60665e793dce2368a5baf23560beb50f641e1831854d702d1d7629fb6e9200cf814527f29796792a3d2dff81afee4255723df99ceb0732f99dd9580a17d2ac0
 WHIRLPOOL 
34648a203286c8adc18bd38ae43ef389d0eb46e4280501250ab05b413d82e028a68abb4e331744e078eacad1d40c67178a1d12c39767da7cf89d0a49a7d8762f

diff --git a/sys-libs/newlib/newlib-2.4.0.ebuild 
b/sys-libs/newlib/newlib-2.4.0.ebuild
new file mode 100644
index 000..5f23c0f
--- /dev/null
+++ b/sys-libs/newlib/newlib-2.4.0.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit flag-o-matic toolchain-funcs eutils
+
+if [[ ${PV} == "" ]] ; then
+   EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
+   inherit git-r3
+else
+   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
+#  if [[ ${PV} != *.201[5-9] ]] ; then
+   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
+#  fi
+fi
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+   if [[ ${CATEGORY} == cross-* ]] ; then
+   export CTARGET=${CATEGORY#cross-}
+   fi
+fi
+
+DESCRIPTION="Newlib is a C library intended for use on embedded systems"
+HOMEPAGE="http://sourceware.org/newlib/;
+
+LICENSE="NEWLIB LIBGLOSS GPL-2"
+SLOT="0"
+IUSE="nls threads unicode crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+NEWLIBBUILD="${WORKDIR}/build"
+
+pkg_setup() {
+   # Reject newlib-on-glibc type installs
+   if [[ ${CTARGET} == ${CHOST} ]] ; then
+   case ${CHOST} in
+   *-newlib|*-elf) ;;
+   *) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
+   esac
+   fi
+}
+
+src_prepare() {
+   epatch_user
+}
+
+src_configure() {
+   # we should fix this ...
+   unset LDFLAGS
+   CHOST=${CTARGET} strip-unsupported-flags
+
+   local myconf=""
+   [[ ${CTARGET} == "spu" ]] \
+   && myconf="${myconf} --disable-newlib-multithread" \
+   || myconf="${myconf} $(use_enable threads newlib-multithread)"
+
+   mkdir -p "${NEWLIBBUILD}"
+   cd "${NEWLIBBUILD}"
+
+   ECONF_SOURCE=${S} \
+   econf \
+   $(use_enable unicode newlib-mb) \
+   $(use_enable nls) \
+   ${myconf}
+}
+
+src_compile() {
+   emake -C "${NEWLIBBUILD}"
+}
+
+src_install() {
+   cd "${NEWLIBBUILD}"
+   emake -j1 DESTDIR="${D}" install
+#  env -uRESTRICT CHOST=${CTARGET} prepallstrip
+   # minor hack to keep things clean
+   rm -fR "${D}"/usr/share/info
+   rm -fR "${D}"/usr/info
+}



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2016-01-18 Thread Mike Frysinger
commit: 543429b6d59eb2733cae6628c10e33f3dc9e66ab
Author: Mike Frysinger  gentoo  org>
AuthorDate: Mon Jan 18 10:06:25 2016 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Mon Jan 18 10:06:25 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=543429b6

sys-libs/newlib: update git repo location #572250

 sys-libs/newlib/newlib-2.2.0.20150423.ebuild | 4 ++--
 sys-libs/newlib/newlib-2.2.0.ebuild  | 4 ++--
 sys-libs/newlib/newlib-2.3.0.20160104.ebuild | 2 +-
 sys-libs/newlib/newlib-.ebuild   | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/sys-libs/newlib/newlib-2.2.0.20150423.ebuild 
b/sys-libs/newlib/newlib-2.2.0.20150423.ebuild
index 710990d..064993f 100644
--- a/sys-libs/newlib/newlib-2.2.0.20150423.ebuild
+++ b/sys-libs/newlib/newlib-2.2.0.20150423.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -7,7 +7,7 @@ EAPI="4"
 inherit flag-o-matic toolchain-funcs eutils
 
 if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://sourceware.org/git/newlib.git"
+   EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;

diff --git a/sys-libs/newlib/newlib-2.2.0.ebuild 
b/sys-libs/newlib/newlib-2.2.0.ebuild
index f009c8d..f874638 100644
--- a/sys-libs/newlib/newlib-2.2.0.ebuild
+++ b/sys-libs/newlib/newlib-2.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -7,7 +7,7 @@ EAPI="4"
 inherit flag-o-matic toolchain-funcs eutils
 
 if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://sourceware.org/git/newlib.git"
+   EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;

diff --git a/sys-libs/newlib/newlib-2.3.0.20160104.ebuild 
b/sys-libs/newlib/newlib-2.3.0.20160104.ebuild
index 8c40312..5f23c0f 100644
--- a/sys-libs/newlib/newlib-2.3.0.20160104.ebuild
+++ b/sys-libs/newlib/newlib-2.3.0.20160104.ebuild
@@ -7,7 +7,7 @@ EAPI="4"
 inherit flag-o-matic toolchain-funcs eutils
 
 if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://sourceware.org/git/newlib.git"
+   EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;

diff --git a/sys-libs/newlib/newlib-.ebuild 
b/sys-libs/newlib/newlib-.ebuild
index 710990d..064993f 100644
--- a/sys-libs/newlib/newlib-.ebuild
+++ b/sys-libs/newlib/newlib-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -7,7 +7,7 @@ EAPI="4"
 inherit flag-o-matic toolchain-funcs eutils
 
 if [[ ${PV} == "" ]] ; then
-   EGIT_REPO_URI="git://sourceware.org/git/newlib.git"
+   EGIT_REPO_URI="git://sourceware.org/git/newlib-cygwin.git"
inherit git-r3
 else
SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;



[gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/

2016-01-04 Thread Mike Frysinger
commit: 31c35a379828faca7d29276ea6e3a046c71a0974
Author: Mike Frysinger  gentoo  org>
AuthorDate: Mon Jan  4 19:56:24 2016 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Mon Jan  4 19:57:25 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31c35a37

sys-libs/newlib: version bump to 2.3.0.20160104

 sys-libs/newlib/Manifest |  1 +
 sys-libs/newlib/newlib-2.3.0.20160104.ebuild | 82 
 2 files changed, 83 insertions(+)

diff --git a/sys-libs/newlib/Manifest b/sys-libs/newlib/Manifest
index d5e1925..21ea4cb 100644
--- a/sys-libs/newlib/Manifest
+++ b/sys-libs/newlib/Manifest
@@ -5,3 +5,4 @@ DIST newlib-2.0.0.tar.gz 15868470 SHA256 
49c29e9129325e7c3b221aa829743ddcd796d02
 DIST newlib-2.1.0.tar.gz 16199705 SHA256 
3e4d5ab9f0508942b6231b8ade4f8e5048cf92c96ed574c2bd6bd3320a599a48 SHA512 
6770864f9307abb2401a4e48f286845d3a4afc30b2ac987da4b964a5485cc3823b32d06a0abf61528e93c4ad8a3a0aa3cc1ecd3b033850e6b2bde6d9bbc9a547
 WHIRLPOOL 
6faba54a72c6242c694f43a7f2e62d23584fec658818201ee58e1d2954d45b58a5f4effd63f5274b99748ed7730db76e0cf2aa1ecfbdf7001f10929d7db6353c
 DIST newlib-2.2.0.20150423.tar.gz 17485660 SHA256 
b1ff3642b246adc6ee546884cb9ea3b0913f17394cbf7ca4d3b82544fef759f7 SHA512 
0eecaf5dbf6caf0e0fca3697dfd70e5f60ecbc0a3365852586bc40a32bd535ef0936fa7fc68fceda3426cdb9b6259de12ed00303cadeea09d95b5f1a07022bae
 WHIRLPOOL 
37d78cf24a072819bcf098e3b384cf6fa3a11ded461d6fb12e8635169fcb8b638400622878ad947df55236957a6ce3884ad46f02f7351414842eb048ceed7d73
 DIST newlib-2.2.0.tar.gz 16521910 SHA256 
f8add263b0737591aff451b12a00c262c2efac4fa87d741fa1c318fc3bb335be SHA512 
ab9161f16845367c823b6709e3c5708969f29f05c77edb1cf969ff4202f358648f1e55080974599dcefed2fbced4694dc73748596e76c1aa37c50cddff6e4be3
 WHIRLPOOL 
8dfc23f93d774c5092d64d1482c3ecc6e3ba35395822bb1d52f5e3b86f644ee803927bff133883926f3e019cfd5d9f04ffe0dcaac20bdf144c542ba1dc3edff9
+DIST newlib-2.3.0.20160104.tar.gz 17674117 SHA256 
c92a0e02904bd4fbe1dd416ed94e786c66afbaeae484e4c26be8bb7c7c1e4cd1 SHA512 
d83ce298b1b72eabf92e4ec14af3afdf3122e34aff5e320295a398df077235a78aa87148895b441a4f7de3047815e7ce13ea06a06135dd86b69a200236514293
 WHIRLPOOL 
41ab57955b886dad8988bd06a18c1b5bbf21c7b554410711c17141bbc12d70af2f6ce6f9d3503c11180d46b42bcf305c6347ea58252d24459dc02c568aeb8497

diff --git a/sys-libs/newlib/newlib-2.3.0.20160104.ebuild 
b/sys-libs/newlib/newlib-2.3.0.20160104.ebuild
new file mode 100644
index 000..8c40312
--- /dev/null
+++ b/sys-libs/newlib/newlib-2.3.0.20160104.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit flag-o-matic toolchain-funcs eutils
+
+if [[ ${PV} == "" ]] ; then
+   EGIT_REPO_URI="git://sourceware.org/git/newlib.git"
+   inherit git-r3
+else
+   SRC_URI="ftp://sourceware.org/pub/newlib/${P}.tar.gz;
+#  if [[ ${PV} != *.201[5-9] ]] ; then
+   KEYWORDS="-* ~arm ~hppa ~m68k ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
+#  fi
+fi
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+   if [[ ${CATEGORY} == cross-* ]] ; then
+   export CTARGET=${CATEGORY#cross-}
+   fi
+fi
+
+DESCRIPTION="Newlib is a C library intended for use on embedded systems"
+HOMEPAGE="http://sourceware.org/newlib/;
+
+LICENSE="NEWLIB LIBGLOSS GPL-2"
+SLOT="0"
+IUSE="nls threads unicode crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+NEWLIBBUILD="${WORKDIR}/build"
+
+pkg_setup() {
+   # Reject newlib-on-glibc type installs
+   if [[ ${CTARGET} == ${CHOST} ]] ; then
+   case ${CHOST} in
+   *-newlib|*-elf) ;;
+   *) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
+   esac
+   fi
+}
+
+src_prepare() {
+   epatch_user
+}
+
+src_configure() {
+   # we should fix this ...
+   unset LDFLAGS
+   CHOST=${CTARGET} strip-unsupported-flags
+
+   local myconf=""
+   [[ ${CTARGET} == "spu" ]] \
+   && myconf="${myconf} --disable-newlib-multithread" \
+   || myconf="${myconf} $(use_enable threads newlib-multithread)"
+
+   mkdir -p "${NEWLIBBUILD}"
+   cd "${NEWLIBBUILD}"
+
+   ECONF_SOURCE=${S} \
+   econf \
+   $(use_enable unicode newlib-mb) \
+   $(use_enable nls) \
+   ${myconf}
+}
+
+src_compile() {
+   emake -C "${NEWLIBBUILD}"
+}
+
+src_install() {
+   cd "${NEWLIBBUILD}"
+   emake -j1 DESTDIR="${D}" install
+#  env -uRESTRICT CHOST=${CTARGET} prepallstrip
+   # minor hack to keep things clean
+   rm -fR "${D}"/usr/share/info
+   rm -fR "${D}"/usr/info
+}