Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH]  cross-arm-none-eabi*: update to 12.2.0
@ 2022-12-19 16:36 unspecd
  2022-12-19 16:39 ` [PR PATCH] [Updated] " unspecd
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: unspecd @ 2022-12-19 16:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1542 bytes --]

There is a new pull request by unspecd against master on the void-packages repository

https://github.com/unspecd/void-packages pkg/cross-arm-none-eabi
https://github.com/void-linux/void-packages/pull/41186

 cross-arm-none-eabi*: update to 12.2.0
Replaces #37580.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):

I tested this with my own STM32 project written in both C and C++.

---
Also:
1. clean up hostmakedepends,
2. `mudflap` was removed in GCC 4.9: https://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging (commit [98906124](https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=98906124e3aa4cb17695d900fe19498e5bde63e4))


A patch file from https://github.com/void-linux/void-packages/pull/41186.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/cross-arm-none-eabi-41186.patch --]
[-- Type: text/x-diff, Size: 7032 bytes --]

From 1d95bc53fcd9f81067fa73993909cab7328221fc Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Sun, 6 Mar 2022 17:51:57 +1100
Subject: [PATCH 1/4] cross-arm-none-eabi-binutils: update to 2.39.

---
 srcpkgs/cross-arm-none-eabi-binutils/template | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-binutils/template b/srcpkgs/cross-arm-none-eabi-binutils/template
index e0d79038c569..027bbeff5ce1 100644
--- a/srcpkgs/cross-arm-none-eabi-binutils/template
+++ b/srcpkgs/cross-arm-none-eabi-binutils/template
@@ -2,8 +2,8 @@
 _triplet=arm-none-eabi
 _pkgname=binutils
 pkgname=cross-${_triplet}-${_pkgname}
-version=2.32
-revision=2
+version=2.39
+revision=1
 build_style=gnu-configure
 configure_args="
  --disable-nls
@@ -21,7 +21,7 @@ configure_args="
  --with-system-zlib
  --without-isl
 "
-hostmakedepends="autoconf automake bison flex perl"
+hostmakedepends="automake bison flex perl texinfo"
 makedepends="zlib-devel"
 depends="binutils-doc"
 short_desc="GNU binary utilities"
@@ -29,9 +29,11 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://www.gnu.org/software/${_pkgname}/"
 distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}.tar.xz"
-checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
+checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
 nocross=yes
 
 post_install() {
 	rm -fr ${DESTDIR}/usr/share/info
+	# Remove libdep linker plugin because it conflicts with system binutils
+	rm -f ${DESTDIR}/usr/lib/bfd-plugins/libdep*
 }

From 7e9aa2b73bb824fe5e5b0745b7193a1387da0055 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Mon, 19 Dec 2022 04:00:36 +1100
Subject: [PATCH 2/4] cross-arm-none-eabi-gcc: update to 12.2.0.

---
 srcpkgs/cross-arm-none-eabi-gcc/template | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-gcc/template b/srcpkgs/cross-arm-none-eabi-gcc/template
index 39eff2cf7d3c..1efef71f2dd3 100644
--- a/srcpkgs/cross-arm-none-eabi-gcc/template
+++ b/srcpkgs/cross-arm-none-eabi-gcc/template
@@ -2,21 +2,20 @@
 _triplet=arm-none-eabi
 _pkgname=gcc
 pkgname=cross-${_triplet}-gcc
-version=9.3.0
+version=12.2.0
 revision=1
 build_wrksrc=build
 build_style=gnu-configure
 make_build_args="INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0'"
-hostmakedepends="autoconf automake cross-arm-none-eabi-binutils bison flex
- perl tar texinfo"
-makedepends="gmp-devel isl15-devel libmpc-devel mpfr-devel zlib-devel"
+hostmakedepends="automake cross-arm-none-eabi-binutils bison flex perl tar texinfo"
+makedepends="gmp-devel isl-devel libmpc-devel libzstd-devel mpfr-devel zlib-devel"
 depends="cross-arm-none-eabi-binutils"
 short_desc="GNU Compiler Collection"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 homepage="https://gcc.gnu.org"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1
+checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
 alternatives="arm-none-eabi:/usr/bin/arm-none-eabi-cc:/usr/bin/arm-none-eabi-gcc"
 nocross=yes
 nopie=yes
@@ -34,9 +33,9 @@ pre_configure() {
 do_configure() {
 	../configure \
 		--disable-decimal-float \
+		--disable-gcov \
 		--disable-libffi \
 		--disable-libgomp \
-		--disable-libmudflap \
 		--disable-libquadmath \
 		--disable-libssp \
 		--disable-libstdcxx-pch \

From 914a4316a5447a3ab0d5fb63d068ae4262c50bd6 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Sun, 6 Mar 2022 17:52:09 +1100
Subject: [PATCH 3/4] cross-arm-none-eabi-newlib: update to 4.2.0.20211231.

---
 srcpkgs/cross-arm-none-eabi-newlib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-newlib/template b/srcpkgs/cross-arm-none-eabi-newlib/template
index 6ea74e37f42a..e3fb129ac2e7 100644
--- a/srcpkgs/cross-arm-none-eabi-newlib/template
+++ b/srcpkgs/cross-arm-none-eabi-newlib/template
@@ -2,8 +2,8 @@
 _triplet=arm-none-eabi
 _pkgname=newlib
 pkgname=cross-${_triplet}-${_pkgname}
-version=3.1.0.20181231
-revision=3
+version=4.2.0.20211231
+revision=1
 build_style=gnu-configure
 configure_args="
  --prefix=/usr --target=${_triplet} --host=${XBPS_CROSS_TRIPLET}
@@ -16,7 +16,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.sourceware.org/newlib/"
 distfiles="ftp://sourceware.org/pub/newlib/newlib-${version}.tar.gz"
-checksum=9e12fea7297648b114434033ed4458755afe7b9b6c7d58123389e82bd37681c0
+checksum=c3a0e8b63bc3bef1aeee4ca3906b53b3b86c8d139867607369cb2915ffc54435
 nostrip=yes
 
 post_extract() {

From 7f36af29128831002b430adde051c68df4c28b67 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Tue, 20 Dec 2022 00:56:28 +1100
Subject: [PATCH 4/4] cross-arm-none-eabi-libstdc++: update to 12.2.0.

---
 srcpkgs/cross-arm-none-eabi-libstdc++/template | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-libstdc++/template b/srcpkgs/cross-arm-none-eabi-libstdc++/template
index 00f7832dad03..65a5887ad78d 100644
--- a/srcpkgs/cross-arm-none-eabi-libstdc++/template
+++ b/srcpkgs/cross-arm-none-eabi-libstdc++/template
@@ -1,8 +1,8 @@
 # Template file for 'cross-${_triplet}-libstdc++'
 _triplet=arm-none-eabi
 pkgname=cross-${_triplet}-libstdc++
-version=9.3.0
-revision=2
+version=12.2.0
+revision=1
 # gnu-configure implicitly passes stuff we don't want
 build_style=configure
 configure_args="
@@ -13,7 +13,7 @@ configure_args="
  --with-gnu-ld --with-gxx-include-dir=/usr/${_triplet}/include/c++/${version}
  --with-newlib --with-python-dir=share/gcc-${_triplet}"
 make_build_args="INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0'"
-hostmakedepends="autoconf automake cross-arm-none-eabi-binutils
+hostmakedepends="automake cross-arm-none-eabi-binutils
  cross-arm-none-eabi-gcc cross-arm-none-eabi-newlib bison flex perl"
 makedepends="gmp-devel isl15-devel libmpc-devel mpfr-devel zlib-devel"
 depends="cross-arm-none-eabi-gcc"
@@ -22,11 +22,17 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://gcc.gnu.org"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1
+checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
 nocross=yes
 nopie=yes
 nostrip=yes
 
+# Workaround for GCC 12, see
+# - https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg165240.html
+# - https://lists.yoctoproject.org/g/meta-arm/message/3469
+# - https://bugzilla.yoctoproject.org/show_bug.cgi?id=14803
+configure_args+=" ac_cv_func_fcntl=no ac_cv_func_getexecname=no"
+
 post_extract() {
 	mkdir -p build-{regular,nano}
 }

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated]  cross-arm-none-eabi*: update to 12.2.0
  2022-12-19 16:36 [PR PATCH] cross-arm-none-eabi*: update to 12.2.0 unspecd
@ 2022-12-19 16:39 ` unspecd
  2022-12-20  6:03 ` unspecd
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: unspecd @ 2022-12-19 16:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]

There is an updated pull request by unspecd against master on the void-packages repository

https://github.com/unspecd/void-packages pkg/cross-arm-none-eabi
https://github.com/void-linux/void-packages/pull/41186

 cross-arm-none-eabi*: update to 12.2.0
Replaces #37580.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):

I tested this with my own STM32 project written in both C and C++.

---
Also:
1. clean up hostmakedepends,
2. `mudflap` was removed in GCC 4.9: https://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging (commit [98906124](https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=98906124e3aa4cb17695d900fe19498e5bde63e4))


A patch file from https://github.com/void-linux/void-packages/pull/41186.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/cross-arm-none-eabi-41186.patch --]
[-- Type: text/x-diff, Size: 7069 bytes --]

From 6e96e3098b6e803f12f345f356903dc30844b8d5 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Sun, 6 Mar 2022 17:51:57 +1100
Subject: [PATCH 1/4] cross-arm-none-eabi-binutils: update to 2.39.

---
 srcpkgs/cross-arm-none-eabi-binutils/template | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-binutils/template b/srcpkgs/cross-arm-none-eabi-binutils/template
index e0d79038c569..8226e4d1acb3 100644
--- a/srcpkgs/cross-arm-none-eabi-binutils/template
+++ b/srcpkgs/cross-arm-none-eabi-binutils/template
@@ -2,8 +2,8 @@
 _triplet=arm-none-eabi
 _pkgname=binutils
 pkgname=cross-${_triplet}-${_pkgname}
-version=2.32
-revision=2
+version=2.39
+revision=1
 build_style=gnu-configure
 configure_args="
  --disable-nls
@@ -21,17 +21,19 @@ configure_args="
  --with-system-zlib
  --without-isl
 "
-hostmakedepends="autoconf automake bison flex perl"
+hostmakedepends="automake bison flex perl texinfo"
 makedepends="zlib-devel"
 depends="binutils-doc"
 short_desc="GNU binary utilities"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
-homepage="https://www.gnu.org/software/${_pkgname}/"
+homepage="https://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}.tar.xz"
-checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
+checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
 nocross=yes
 
 post_install() {
 	rm -fr ${DESTDIR}/usr/share/info
+	# Remove libdep linker plugin because it conflicts with system binutils
+	rm -f ${DESTDIR}/usr/lib/bfd-plugins/libdep*
 }

From 1614a67127d975ebdceee981633e773fd7d58491 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Mon, 19 Dec 2022 04:00:36 +1100
Subject: [PATCH 2/4] cross-arm-none-eabi-gcc: update to 12.2.0.

---
 srcpkgs/cross-arm-none-eabi-gcc/template | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-gcc/template b/srcpkgs/cross-arm-none-eabi-gcc/template
index 39eff2cf7d3c..1efef71f2dd3 100644
--- a/srcpkgs/cross-arm-none-eabi-gcc/template
+++ b/srcpkgs/cross-arm-none-eabi-gcc/template
@@ -2,21 +2,20 @@
 _triplet=arm-none-eabi
 _pkgname=gcc
 pkgname=cross-${_triplet}-gcc
-version=9.3.0
+version=12.2.0
 revision=1
 build_wrksrc=build
 build_style=gnu-configure
 make_build_args="INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0'"
-hostmakedepends="autoconf automake cross-arm-none-eabi-binutils bison flex
- perl tar texinfo"
-makedepends="gmp-devel isl15-devel libmpc-devel mpfr-devel zlib-devel"
+hostmakedepends="automake cross-arm-none-eabi-binutils bison flex perl tar texinfo"
+makedepends="gmp-devel isl-devel libmpc-devel libzstd-devel mpfr-devel zlib-devel"
 depends="cross-arm-none-eabi-binutils"
 short_desc="GNU Compiler Collection"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 homepage="https://gcc.gnu.org"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1
+checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
 alternatives="arm-none-eabi:/usr/bin/arm-none-eabi-cc:/usr/bin/arm-none-eabi-gcc"
 nocross=yes
 nopie=yes
@@ -34,9 +33,9 @@ pre_configure() {
 do_configure() {
 	../configure \
 		--disable-decimal-float \
+		--disable-gcov \
 		--disable-libffi \
 		--disable-libgomp \
-		--disable-libmudflap \
 		--disable-libquadmath \
 		--disable-libssp \
 		--disable-libstdcxx-pch \

From 2d0267063474ff859fbf6e24155cc074a96da60d Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Sun, 6 Mar 2022 17:52:09 +1100
Subject: [PATCH 3/4] cross-arm-none-eabi-newlib: update to 4.2.0.20211231.

---
 srcpkgs/cross-arm-none-eabi-newlib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-newlib/template b/srcpkgs/cross-arm-none-eabi-newlib/template
index 6ea74e37f42a..e3fb129ac2e7 100644
--- a/srcpkgs/cross-arm-none-eabi-newlib/template
+++ b/srcpkgs/cross-arm-none-eabi-newlib/template
@@ -2,8 +2,8 @@
 _triplet=arm-none-eabi
 _pkgname=newlib
 pkgname=cross-${_triplet}-${_pkgname}
-version=3.1.0.20181231
-revision=3
+version=4.2.0.20211231
+revision=1
 build_style=gnu-configure
 configure_args="
  --prefix=/usr --target=${_triplet} --host=${XBPS_CROSS_TRIPLET}
@@ -16,7 +16,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.sourceware.org/newlib/"
 distfiles="ftp://sourceware.org/pub/newlib/newlib-${version}.tar.gz"
-checksum=9e12fea7297648b114434033ed4458755afe7b9b6c7d58123389e82bd37681c0
+checksum=c3a0e8b63bc3bef1aeee4ca3906b53b3b86c8d139867607369cb2915ffc54435
 nostrip=yes
 
 post_extract() {

From 8a682f43b9d127698b8edc03c0439a4bf02cac82 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Tue, 20 Dec 2022 00:56:28 +1100
Subject: [PATCH 4/4] cross-arm-none-eabi-libstdc++: update to 12.2.0.

---
 srcpkgs/cross-arm-none-eabi-libstdc++/template | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-libstdc++/template b/srcpkgs/cross-arm-none-eabi-libstdc++/template
index 00f7832dad03..65a5887ad78d 100644
--- a/srcpkgs/cross-arm-none-eabi-libstdc++/template
+++ b/srcpkgs/cross-arm-none-eabi-libstdc++/template
@@ -1,8 +1,8 @@
 # Template file for 'cross-${_triplet}-libstdc++'
 _triplet=arm-none-eabi
 pkgname=cross-${_triplet}-libstdc++
-version=9.3.0
-revision=2
+version=12.2.0
+revision=1
 # gnu-configure implicitly passes stuff we don't want
 build_style=configure
 configure_args="
@@ -13,7 +13,7 @@ configure_args="
  --with-gnu-ld --with-gxx-include-dir=/usr/${_triplet}/include/c++/${version}
  --with-newlib --with-python-dir=share/gcc-${_triplet}"
 make_build_args="INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0'"
-hostmakedepends="autoconf automake cross-arm-none-eabi-binutils
+hostmakedepends="automake cross-arm-none-eabi-binutils
  cross-arm-none-eabi-gcc cross-arm-none-eabi-newlib bison flex perl"
 makedepends="gmp-devel isl15-devel libmpc-devel mpfr-devel zlib-devel"
 depends="cross-arm-none-eabi-gcc"
@@ -22,11 +22,17 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://gcc.gnu.org"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1
+checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
 nocross=yes
 nopie=yes
 nostrip=yes
 
+# Workaround for GCC 12, see
+# - https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg165240.html
+# - https://lists.yoctoproject.org/g/meta-arm/message/3469
+# - https://bugzilla.yoctoproject.org/show_bug.cgi?id=14803
+configure_args+=" ac_cv_func_fcntl=no ac_cv_func_getexecname=no"
+
 post_extract() {
 	mkdir -p build-{regular,nano}
 }

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated]  cross-arm-none-eabi*: update to 12.2.0
  2022-12-19 16:36 [PR PATCH] cross-arm-none-eabi*: update to 12.2.0 unspecd
  2022-12-19 16:39 ` [PR PATCH] [Updated] " unspecd
@ 2022-12-20  6:03 ` unspecd
  2022-12-21 16:55 ` unspecd
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: unspecd @ 2022-12-20  6:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]

There is an updated pull request by unspecd against master on the void-packages repository

https://github.com/unspecd/void-packages pkg/cross-arm-none-eabi
https://github.com/void-linux/void-packages/pull/41186

 cross-arm-none-eabi*: update to 12.2.0
Replaces #37580.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):

I tested this with my own STM32 project written in both C and C++.

---
Also:
1. clean up hostmakedepends,
2. `mudflap` was removed in GCC 4.9: https://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging (commit [98906124](https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=98906124e3aa4cb17695d900fe19498e5bde63e4))


A patch file from https://github.com/void-linux/void-packages/pull/41186.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/cross-arm-none-eabi-41186.patch --]
[-- Type: text/x-diff, Size: 7094 bytes --]

From 6e96e3098b6e803f12f345f356903dc30844b8d5 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Sun, 6 Mar 2022 17:51:57 +1100
Subject: [PATCH 1/4] cross-arm-none-eabi-binutils: update to 2.39.

---
 srcpkgs/cross-arm-none-eabi-binutils/template | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-binutils/template b/srcpkgs/cross-arm-none-eabi-binutils/template
index e0d79038c569..8226e4d1acb3 100644
--- a/srcpkgs/cross-arm-none-eabi-binutils/template
+++ b/srcpkgs/cross-arm-none-eabi-binutils/template
@@ -2,8 +2,8 @@
 _triplet=arm-none-eabi
 _pkgname=binutils
 pkgname=cross-${_triplet}-${_pkgname}
-version=2.32
-revision=2
+version=2.39
+revision=1
 build_style=gnu-configure
 configure_args="
  --disable-nls
@@ -21,17 +21,19 @@ configure_args="
  --with-system-zlib
  --without-isl
 "
-hostmakedepends="autoconf automake bison flex perl"
+hostmakedepends="automake bison flex perl texinfo"
 makedepends="zlib-devel"
 depends="binutils-doc"
 short_desc="GNU binary utilities"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
-homepage="https://www.gnu.org/software/${_pkgname}/"
+homepage="https://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}.tar.xz"
-checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
+checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
 nocross=yes
 
 post_install() {
 	rm -fr ${DESTDIR}/usr/share/info
+	# Remove libdep linker plugin because it conflicts with system binutils
+	rm -f ${DESTDIR}/usr/lib/bfd-plugins/libdep*
 }

From 7f3c2c0d917127ec3bc284cb1b0c05dbfbe9d70d Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Mon, 19 Dec 2022 04:00:36 +1100
Subject: [PATCH 2/4] cross-arm-none-eabi-gcc: update to 12.2.0.

---
 srcpkgs/cross-arm-none-eabi-gcc/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-gcc/template b/srcpkgs/cross-arm-none-eabi-gcc/template
index 39eff2cf7d3c..8ec65cce015a 100644
--- a/srcpkgs/cross-arm-none-eabi-gcc/template
+++ b/srcpkgs/cross-arm-none-eabi-gcc/template
@@ -2,21 +2,21 @@
 _triplet=arm-none-eabi
 _pkgname=gcc
 pkgname=cross-${_triplet}-gcc
-version=9.3.0
+version=12.2.0
 revision=1
 build_wrksrc=build
 build_style=gnu-configure
 make_build_args="INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0'"
-hostmakedepends="autoconf automake cross-arm-none-eabi-binutils bison flex
- perl tar texinfo"
-makedepends="gmp-devel isl15-devel libmpc-devel mpfr-devel zlib-devel"
+hostmakedepends="automake cross-arm-none-eabi-binutils bison flex perl tar texinfo"
+makedepends="gmp-devel isl-devel libmpc-devel libzstd-devel mpfr-devel zlib-devel"
 depends="cross-arm-none-eabi-binutils"
+checkdepends="dejagnu"
 short_desc="GNU Compiler Collection"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 homepage="https://gcc.gnu.org"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1
+checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
 alternatives="arm-none-eabi:/usr/bin/arm-none-eabi-cc:/usr/bin/arm-none-eabi-gcc"
 nocross=yes
 nopie=yes
@@ -34,9 +34,9 @@ pre_configure() {
 do_configure() {
 	../configure \
 		--disable-decimal-float \
+		--disable-gcov \
 		--disable-libffi \
 		--disable-libgomp \
-		--disable-libmudflap \
 		--disable-libquadmath \
 		--disable-libssp \
 		--disable-libstdcxx-pch \

From c57b72e652462260f474371a1031da2b161fb6b8 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Sun, 6 Mar 2022 17:52:09 +1100
Subject: [PATCH 3/4] cross-arm-none-eabi-newlib: update to 4.2.0.20211231.

---
 srcpkgs/cross-arm-none-eabi-newlib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-newlib/template b/srcpkgs/cross-arm-none-eabi-newlib/template
index 6ea74e37f42a..e3fb129ac2e7 100644
--- a/srcpkgs/cross-arm-none-eabi-newlib/template
+++ b/srcpkgs/cross-arm-none-eabi-newlib/template
@@ -2,8 +2,8 @@
 _triplet=arm-none-eabi
 _pkgname=newlib
 pkgname=cross-${_triplet}-${_pkgname}
-version=3.1.0.20181231
-revision=3
+version=4.2.0.20211231
+revision=1
 build_style=gnu-configure
 configure_args="
  --prefix=/usr --target=${_triplet} --host=${XBPS_CROSS_TRIPLET}
@@ -16,7 +16,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.sourceware.org/newlib/"
 distfiles="ftp://sourceware.org/pub/newlib/newlib-${version}.tar.gz"
-checksum=9e12fea7297648b114434033ed4458755afe7b9b6c7d58123389e82bd37681c0
+checksum=c3a0e8b63bc3bef1aeee4ca3906b53b3b86c8d139867607369cb2915ffc54435
 nostrip=yes
 
 post_extract() {

From 91f612d3e8980e3574e601ac321a1aa9ad2cf4e6 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Tue, 20 Dec 2022 00:56:28 +1100
Subject: [PATCH 4/4] cross-arm-none-eabi-libstdc++: update to 12.2.0.

---
 srcpkgs/cross-arm-none-eabi-libstdc++/template | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-libstdc++/template b/srcpkgs/cross-arm-none-eabi-libstdc++/template
index 00f7832dad03..65a5887ad78d 100644
--- a/srcpkgs/cross-arm-none-eabi-libstdc++/template
+++ b/srcpkgs/cross-arm-none-eabi-libstdc++/template
@@ -1,8 +1,8 @@
 # Template file for 'cross-${_triplet}-libstdc++'
 _triplet=arm-none-eabi
 pkgname=cross-${_triplet}-libstdc++
-version=9.3.0
-revision=2
+version=12.2.0
+revision=1
 # gnu-configure implicitly passes stuff we don't want
 build_style=configure
 configure_args="
@@ -13,7 +13,7 @@ configure_args="
  --with-gnu-ld --with-gxx-include-dir=/usr/${_triplet}/include/c++/${version}
  --with-newlib --with-python-dir=share/gcc-${_triplet}"
 make_build_args="INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0'"
-hostmakedepends="autoconf automake cross-arm-none-eabi-binutils
+hostmakedepends="automake cross-arm-none-eabi-binutils
  cross-arm-none-eabi-gcc cross-arm-none-eabi-newlib bison flex perl"
 makedepends="gmp-devel isl15-devel libmpc-devel mpfr-devel zlib-devel"
 depends="cross-arm-none-eabi-gcc"
@@ -22,11 +22,17 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://gcc.gnu.org"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1
+checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
 nocross=yes
 nopie=yes
 nostrip=yes
 
+# Workaround for GCC 12, see
+# - https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg165240.html
+# - https://lists.yoctoproject.org/g/meta-arm/message/3469
+# - https://bugzilla.yoctoproject.org/show_bug.cgi?id=14803
+configure_args+=" ac_cv_func_fcntl=no ac_cv_func_getexecname=no"
+
 post_extract() {
 	mkdir -p build-{regular,nano}
 }

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated]  cross-arm-none-eabi*: update to 12.2.0
  2022-12-19 16:36 [PR PATCH] cross-arm-none-eabi*: update to 12.2.0 unspecd
  2022-12-19 16:39 ` [PR PATCH] [Updated] " unspecd
  2022-12-20  6:03 ` unspecd
@ 2022-12-21 16:55 ` unspecd
  2022-12-24  0:48 ` maybe-one-day-ubermensch
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: unspecd @ 2022-12-21 16:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]

There is an updated pull request by unspecd against master on the void-packages repository

https://github.com/unspecd/void-packages pkg/cross-arm-none-eabi
https://github.com/void-linux/void-packages/pull/41186

 cross-arm-none-eabi*: update to 12.2.0
Replaces #37580.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):

I tested this with my own STM32 project written in both C and C++.

---
Also:
1. clean up hostmakedepends,
2. `mudflap` was removed in GCC 4.9: https://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging (commit [98906124](https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=98906124e3aa4cb17695d900fe19498e5bde63e4))


A patch file from https://github.com/void-linux/void-packages/pull/41186.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/cross-arm-none-eabi-41186.patch --]
[-- Type: text/x-diff, Size: 7680 bytes --]

From f0476af5cd6cfe5ea5e78132da2017dc7ab18809 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Sun, 6 Mar 2022 17:51:57 +1100
Subject: [PATCH 1/4] cross-arm-none-eabi-binutils: update to 2.39.

---
 srcpkgs/cross-arm-none-eabi-binutils/template | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-binutils/template b/srcpkgs/cross-arm-none-eabi-binutils/template
index e0d79038c569..b3fcc2e4a314 100644
--- a/srcpkgs/cross-arm-none-eabi-binutils/template
+++ b/srcpkgs/cross-arm-none-eabi-binutils/template
@@ -2,8 +2,8 @@
 _triplet=arm-none-eabi
 _pkgname=binutils
 pkgname=cross-${_triplet}-${_pkgname}
-version=2.32
-revision=2
+version=2.39
+revision=1
 build_style=gnu-configure
 configure_args="
  --disable-nls
@@ -21,17 +21,20 @@ configure_args="
  --with-system-zlib
  --without-isl
 "
-hostmakedepends="autoconf automake bison flex perl"
+hostmakedepends="automake bison flex perl texinfo"
 makedepends="zlib-devel"
 depends="binutils-doc"
+checkdepends="dejagnu"
 short_desc="GNU binary utilities"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
-homepage="https://www.gnu.org/software/${_pkgname}/"
+homepage="https://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}.tar.xz"
-checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
+checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
 nocross=yes
 
 post_install() {
 	rm -fr ${DESTDIR}/usr/share/info
+	# Remove libdep linker plugin because it conflicts with system binutils
+	rm -f ${DESTDIR}/usr/lib/bfd-plugins/libdep*
 }

From 7e424f2458a730a86c5c248e61a146016fc5ee39 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Mon, 19 Dec 2022 04:00:36 +1100
Subject: [PATCH 2/4] cross-arm-none-eabi-gcc: update to 12.2.0.

---
 srcpkgs/cross-arm-none-eabi-gcc/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-gcc/template b/srcpkgs/cross-arm-none-eabi-gcc/template
index 39eff2cf7d3c..cbc6baea149f 100644
--- a/srcpkgs/cross-arm-none-eabi-gcc/template
+++ b/srcpkgs/cross-arm-none-eabi-gcc/template
@@ -2,21 +2,21 @@
 _triplet=arm-none-eabi
 _pkgname=gcc
 pkgname=cross-${_triplet}-gcc
-version=9.3.0
+version=12.2.0
 revision=1
 build_wrksrc=build
 build_style=gnu-configure
 make_build_args="INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0'"
-hostmakedepends="autoconf automake cross-arm-none-eabi-binutils bison flex
- perl tar texinfo"
-makedepends="gmp-devel isl15-devel libmpc-devel mpfr-devel zlib-devel"
+hostmakedepends="automake cross-arm-none-eabi-binutils bison flex perl tar texinfo"
+makedepends="gmp-devel isl-devel libmpc-devel libzstd-devel mpfr-devel zlib-devel"
 depends="cross-arm-none-eabi-binutils"
+checkdepends="autogen dejagnu"
 short_desc="GNU Compiler Collection"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 homepage="https://gcc.gnu.org"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1
+checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
 alternatives="arm-none-eabi:/usr/bin/arm-none-eabi-cc:/usr/bin/arm-none-eabi-gcc"
 nocross=yes
 nopie=yes
@@ -34,9 +34,9 @@ pre_configure() {
 do_configure() {
 	../configure \
 		--disable-decimal-float \
+		--disable-gcov \
 		--disable-libffi \
 		--disable-libgomp \
-		--disable-libmudflap \
 		--disable-libquadmath \
 		--disable-libssp \
 		--disable-libstdcxx-pch \

From 82b6e804e02f2248a2751d88a68f15ce57f0fad1 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Sun, 6 Mar 2022 17:52:09 +1100
Subject: [PATCH 3/4] cross-arm-none-eabi-newlib: update to 4.2.0.20211231.

---
 srcpkgs/cross-arm-none-eabi-newlib/template | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-newlib/template b/srcpkgs/cross-arm-none-eabi-newlib/template
index 6ea74e37f42a..a4c8de7582ba 100644
--- a/srcpkgs/cross-arm-none-eabi-newlib/template
+++ b/srcpkgs/cross-arm-none-eabi-newlib/template
@@ -2,8 +2,8 @@
 _triplet=arm-none-eabi
 _pkgname=newlib
 pkgname=cross-${_triplet}-${_pkgname}
-version=3.1.0.20181231
-revision=3
+version=4.2.0.20211231
+revision=1
 build_style=gnu-configure
 configure_args="
  --prefix=/usr --target=${_triplet} --host=${XBPS_CROSS_TRIPLET}
@@ -16,7 +16,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.sourceware.org/newlib/"
 distfiles="ftp://sourceware.org/pub/newlib/newlib-${version}.tar.gz"
-checksum=9e12fea7297648b114434033ed4458755afe7b9b6c7d58123389e82bd37681c0
+checksum=c3a0e8b63bc3bef1aeee4ca3906b53b3b86c8d139867607369cb2915ffc54435
 nostrip=yes
 
 post_extract() {
@@ -56,6 +56,16 @@ do_build() {
 	popd
 }
 
+do_check() {
+	pushd build-newlib
+	make check
+	popd
+
+	pushd build-nano
+	make check
+	popd
+}
+
 do_install() {
 	pushd build-nano
 	make DESTDIR=${DESTDIR} install

From fba61355b5e4c292c8e77314a3e16743cb06c8b9 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Tue, 20 Dec 2022 00:56:28 +1100
Subject: [PATCH 4/4] cross-arm-none-eabi-libstdc++: update to 12.2.0.

---
 .../cross-arm-none-eabi-libstdc++/template    | 26 ++++++++++++++++---
 1 file changed, 22 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-libstdc++/template b/srcpkgs/cross-arm-none-eabi-libstdc++/template
index 00f7832dad03..f41c0fd666b0 100644
--- a/srcpkgs/cross-arm-none-eabi-libstdc++/template
+++ b/srcpkgs/cross-arm-none-eabi-libstdc++/template
@@ -1,8 +1,8 @@
 # Template file for 'cross-${_triplet}-libstdc++'
 _triplet=arm-none-eabi
 pkgname=cross-${_triplet}-libstdc++
-version=9.3.0
-revision=2
+version=12.2.0
+revision=1
 # gnu-configure implicitly passes stuff we don't want
 build_style=configure
 configure_args="
@@ -13,7 +13,7 @@ configure_args="
  --with-gnu-ld --with-gxx-include-dir=/usr/${_triplet}/include/c++/${version}
  --with-newlib --with-python-dir=share/gcc-${_triplet}"
 make_build_args="INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0'"
-hostmakedepends="autoconf automake cross-arm-none-eabi-binutils
+hostmakedepends="automake cross-arm-none-eabi-binutils
  cross-arm-none-eabi-gcc cross-arm-none-eabi-newlib bison flex perl"
 makedepends="gmp-devel isl15-devel libmpc-devel mpfr-devel zlib-devel"
 depends="cross-arm-none-eabi-gcc"
@@ -22,11 +22,17 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://gcc.gnu.org"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1
+checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
 nocross=yes
 nopie=yes
 nostrip=yes
 
+# Workaround for GCC 12, see
+# - https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg165240.html
+# - https://lists.yoctoproject.org/g/meta-arm/message/3469
+# - https://bugzilla.yoctoproject.org/show_bug.cgi?id=14803
+configure_args+=" ac_cv_func_fcntl=no ac_cv_func_getexecname=no"
+
 post_extract() {
 	mkdir -p build-{regular,nano}
 }
@@ -63,6 +69,18 @@ do_build() {
 	popd
 }
 
+do_check() {
+	unset CC CXX CPP AR AS CFLAGS CXXFLAGS
+
+	pushd build-regular
+	make ${makejobs} ${make_build_args} check
+	popd
+
+	pushd build-nano
+	make ${makejobs} ${make_build_args} check
+	popd
+}
+
 do_install() {
 	pushd build-regular
 	make DESTDIR=${DESTDIR} install

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re:  cross-arm-none-eabi*: update to 12.2.0
  2022-12-19 16:36 [PR PATCH] cross-arm-none-eabi*: update to 12.2.0 unspecd
                   ` (2 preceding siblings ...)
  2022-12-21 16:55 ` unspecd
@ 2022-12-24  0:48 ` maybe-one-day-ubermensch
  2022-12-25 19:25 ` [PR PATCH] [Updated] " unspecd
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: maybe-one-day-ubermensch @ 2022-12-24  0:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

New comment by maybe-one-day-ubermensch on void-packages repository

https://github.com/void-linux/void-packages/pull/41186#issuecomment-1364425836

Comment:
Thanks for working on this!

It compiled cleanly and works on my machine!

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated]  cross-arm-none-eabi*: update to 12.2.0
  2022-12-19 16:36 [PR PATCH] cross-arm-none-eabi*: update to 12.2.0 unspecd
                   ` (3 preceding siblings ...)
  2022-12-24  0:48 ` maybe-one-day-ubermensch
@ 2022-12-25 19:25 ` unspecd
  2022-12-25 19:33 ` unspecd
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: unspecd @ 2022-12-25 19:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]

There is an updated pull request by unspecd against master on the void-packages repository

https://github.com/unspecd/void-packages pkg/cross-arm-none-eabi
https://github.com/void-linux/void-packages/pull/41186

 cross-arm-none-eabi*: update to 12.2.0
Replaces #37580.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):

I tested this with my own STM32 project written in both C and C++.

---
Also:
1. clean up hostmakedepends,
2. `mudflap` was removed in GCC 4.9: https://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging (commit [98906124](https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=98906124e3aa4cb17695d900fe19498e5bde63e4))


A patch file from https://github.com/void-linux/void-packages/pull/41186.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/cross-arm-none-eabi-41186.patch --]
[-- Type: text/x-diff, Size: 7930 bytes --]

From f0476af5cd6cfe5ea5e78132da2017dc7ab18809 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Sun, 6 Mar 2022 17:51:57 +1100
Subject: [PATCH 1/4] cross-arm-none-eabi-binutils: update to 2.39.

---
 srcpkgs/cross-arm-none-eabi-binutils/template | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-binutils/template b/srcpkgs/cross-arm-none-eabi-binutils/template
index e0d79038c569..b3fcc2e4a314 100644
--- a/srcpkgs/cross-arm-none-eabi-binutils/template
+++ b/srcpkgs/cross-arm-none-eabi-binutils/template
@@ -2,8 +2,8 @@
 _triplet=arm-none-eabi
 _pkgname=binutils
 pkgname=cross-${_triplet}-${_pkgname}
-version=2.32
-revision=2
+version=2.39
+revision=1
 build_style=gnu-configure
 configure_args="
  --disable-nls
@@ -21,17 +21,20 @@ configure_args="
  --with-system-zlib
  --without-isl
 "
-hostmakedepends="autoconf automake bison flex perl"
+hostmakedepends="automake bison flex perl texinfo"
 makedepends="zlib-devel"
 depends="binutils-doc"
+checkdepends="dejagnu"
 short_desc="GNU binary utilities"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
-homepage="https://www.gnu.org/software/${_pkgname}/"
+homepage="https://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}.tar.xz"
-checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
+checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
 nocross=yes
 
 post_install() {
 	rm -fr ${DESTDIR}/usr/share/info
+	# Remove libdep linker plugin because it conflicts with system binutils
+	rm -f ${DESTDIR}/usr/lib/bfd-plugins/libdep*
 }

From 53ce3ba372e51564445772dc829145c3b2ff10ae Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Mon, 19 Dec 2022 04:00:36 +1100
Subject: [PATCH 2/4] cross-arm-none-eabi-gcc: update to 12.2.0.

---
 srcpkgs/cross-arm-none-eabi-gcc/template | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-gcc/template b/srcpkgs/cross-arm-none-eabi-gcc/template
index 39eff2cf7d3c..615f61c9ddff 100644
--- a/srcpkgs/cross-arm-none-eabi-gcc/template
+++ b/srcpkgs/cross-arm-none-eabi-gcc/template
@@ -2,21 +2,21 @@
 _triplet=arm-none-eabi
 _pkgname=gcc
 pkgname=cross-${_triplet}-gcc
-version=9.3.0
+version=12.2.0
 revision=1
 build_wrksrc=build
 build_style=gnu-configure
 make_build_args="INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0'"
-hostmakedepends="autoconf automake cross-arm-none-eabi-binutils bison flex
- perl tar texinfo"
-makedepends="gmp-devel isl15-devel libmpc-devel mpfr-devel zlib-devel"
+hostmakedepends="automake cross-arm-none-eabi-binutils bison flex perl tar texinfo"
+makedepends="gmp-devel isl-devel libmpc-devel libzstd-devel mpfr-devel zlib-devel"
 depends="cross-arm-none-eabi-binutils"
+checkdepends="autogen dejagnu"
 short_desc="GNU Compiler Collection"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 homepage="https://gcc.gnu.org"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1
+checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
 alternatives="arm-none-eabi:/usr/bin/arm-none-eabi-cc:/usr/bin/arm-none-eabi-gcc"
 nocross=yes
 nopie=yes
@@ -34,9 +34,9 @@ pre_configure() {
 do_configure() {
 	../configure \
 		--disable-decimal-float \
+		--disable-gcov \
 		--disable-libffi \
 		--disable-libgomp \
-		--disable-libmudflap \
 		--disable-libquadmath \
 		--disable-libssp \
 		--disable-libstdcxx-pch \
@@ -63,7 +63,6 @@ do_configure() {
 		--with-gnu-as \
 		--with-gnu-ld \
 		--with-headers=/usr/${_triplet}/include \
-		--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' \
 		--with-isl \
 		--with-libelf \
 		--with-mpc \

From 65326a04b41cc58ad094a7d1e9723e589fb4d097 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Sun, 6 Mar 2022 17:52:09 +1100
Subject: [PATCH 3/4] cross-arm-none-eabi-newlib: update to 4.2.0.20211231.

---
 srcpkgs/cross-arm-none-eabi-newlib/template | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-newlib/template b/srcpkgs/cross-arm-none-eabi-newlib/template
index 6ea74e37f42a..a4c8de7582ba 100644
--- a/srcpkgs/cross-arm-none-eabi-newlib/template
+++ b/srcpkgs/cross-arm-none-eabi-newlib/template
@@ -2,8 +2,8 @@
 _triplet=arm-none-eabi
 _pkgname=newlib
 pkgname=cross-${_triplet}-${_pkgname}
-version=3.1.0.20181231
-revision=3
+version=4.2.0.20211231
+revision=1
 build_style=gnu-configure
 configure_args="
  --prefix=/usr --target=${_triplet} --host=${XBPS_CROSS_TRIPLET}
@@ -16,7 +16,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://www.sourceware.org/newlib/"
 distfiles="ftp://sourceware.org/pub/newlib/newlib-${version}.tar.gz"
-checksum=9e12fea7297648b114434033ed4458755afe7b9b6c7d58123389e82bd37681c0
+checksum=c3a0e8b63bc3bef1aeee4ca3906b53b3b86c8d139867607369cb2915ffc54435
 nostrip=yes
 
 post_extract() {
@@ -56,6 +56,16 @@ do_build() {
 	popd
 }
 
+do_check() {
+	pushd build-newlib
+	make check
+	popd
+
+	pushd build-nano
+	make check
+	popd
+}
+
 do_install() {
 	pushd build-nano
 	make DESTDIR=${DESTDIR} install

From 6820899e41029f061a79d6f3460e40fb1032a4a6 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Tue, 20 Dec 2022 00:56:28 +1100
Subject: [PATCH 4/4] cross-arm-none-eabi-libstdc++: update to 12.2.0.

---
 .../cross-arm-none-eabi-libstdc++/template    | 26 ++++++++++++++++---
 1 file changed, 22 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cross-arm-none-eabi-libstdc++/template b/srcpkgs/cross-arm-none-eabi-libstdc++/template
index 00f7832dad03..f41c0fd666b0 100644
--- a/srcpkgs/cross-arm-none-eabi-libstdc++/template
+++ b/srcpkgs/cross-arm-none-eabi-libstdc++/template
@@ -1,8 +1,8 @@
 # Template file for 'cross-${_triplet}-libstdc++'
 _triplet=arm-none-eabi
 pkgname=cross-${_triplet}-libstdc++
-version=9.3.0
-revision=2
+version=12.2.0
+revision=1
 # gnu-configure implicitly passes stuff we don't want
 build_style=configure
 configure_args="
@@ -13,7 +13,7 @@ configure_args="
  --with-gnu-ld --with-gxx-include-dir=/usr/${_triplet}/include/c++/${version}
  --with-newlib --with-python-dir=share/gcc-${_triplet}"
 make_build_args="INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0'"
-hostmakedepends="autoconf automake cross-arm-none-eabi-binutils
+hostmakedepends="automake cross-arm-none-eabi-binutils
  cross-arm-none-eabi-gcc cross-arm-none-eabi-newlib bison flex perl"
 makedepends="gmp-devel isl15-devel libmpc-devel mpfr-devel zlib-devel"
 depends="cross-arm-none-eabi-gcc"
@@ -22,11 +22,17 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://gcc.gnu.org"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1
+checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
 nocross=yes
 nopie=yes
 nostrip=yes
 
+# Workaround for GCC 12, see
+# - https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg165240.html
+# - https://lists.yoctoproject.org/g/meta-arm/message/3469
+# - https://bugzilla.yoctoproject.org/show_bug.cgi?id=14803
+configure_args+=" ac_cv_func_fcntl=no ac_cv_func_getexecname=no"
+
 post_extract() {
 	mkdir -p build-{regular,nano}
 }
@@ -63,6 +69,18 @@ do_build() {
 	popd
 }
 
+do_check() {
+	unset CC CXX CPP AR AS CFLAGS CXXFLAGS
+
+	pushd build-regular
+	make ${makejobs} ${make_build_args} check
+	popd
+
+	pushd build-nano
+	make ${makejobs} ${make_build_args} check
+	popd
+}
+
 do_install() {
 	pushd build-regular
 	make DESTDIR=${DESTDIR} install

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re:  cross-arm-none-eabi*: update to 12.2.0
  2022-12-19 16:36 [PR PATCH] cross-arm-none-eabi*: update to 12.2.0 unspecd
                   ` (4 preceding siblings ...)
  2022-12-25 19:25 ` [PR PATCH] [Updated] " unspecd
@ 2022-12-25 19:33 ` unspecd
  2023-03-26  1:57 ` github-actions
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: unspecd @ 2022-12-25 19:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by unspecd on void-packages repository

https://github.com/void-linux/void-packages/pull/41186#issuecomment-1364728606

Comment:
Removed `--with-host-libstdcxx` from GCC's configure_args, see [5dc85f7ec](https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5dc85f7ec719a79ecfbcdd8563b07e5f0f365e65).

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re:  cross-arm-none-eabi*: update to 12.2.0
  2022-12-19 16:36 [PR PATCH] cross-arm-none-eabi*: update to 12.2.0 unspecd
                   ` (5 preceding siblings ...)
  2022-12-25 19:33 ` unspecd
@ 2023-03-26  1:57 ` github-actions
  2023-03-26 17:01 ` mhmdanas
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: github-actions @ 2023-03-26  1:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/41186#issuecomment-1483970555

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re:  cross-arm-none-eabi*: update to 12.2.0
  2022-12-19 16:36 [PR PATCH] cross-arm-none-eabi*: update to 12.2.0 unspecd
                   ` (6 preceding siblings ...)
  2023-03-26  1:57 ` github-actions
@ 2023-03-26 17:01 ` mhmdanas
  2023-06-25  2:12 ` github-actions
  2023-07-10  2:08 ` [PR PATCH] [Closed]: " github-actions
  9 siblings, 0 replies; 11+ messages in thread
From: mhmdanas @ 2023-03-26 17:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 193 bytes --]

New comment by mhmdanas on void-packages repository

https://github.com/void-linux/void-packages/pull/41186#issuecomment-1484158423

Comment:
I built and tested this with no issues whatsoever.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re:  cross-arm-none-eabi*: update to 12.2.0
  2022-12-19 16:36 [PR PATCH] cross-arm-none-eabi*: update to 12.2.0 unspecd
                   ` (7 preceding siblings ...)
  2023-03-26 17:01 ` mhmdanas
@ 2023-06-25  2:12 ` github-actions
  2023-07-10  2:08 ` [PR PATCH] [Closed]: " github-actions
  9 siblings, 0 replies; 11+ messages in thread
From: github-actions @ 2023-06-25  2:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/41186#issuecomment-1605822488

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Closed]:  cross-arm-none-eabi*: update to 12.2.0
  2022-12-19 16:36 [PR PATCH] cross-arm-none-eabi*: update to 12.2.0 unspecd
                   ` (8 preceding siblings ...)
  2023-06-25  2:12 ` github-actions
@ 2023-07-10  2:08 ` github-actions
  9 siblings, 0 replies; 11+ messages in thread
From: github-actions @ 2023-07-10  2:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1521 bytes --]

There's a closed pull request on the void-packages repository

 cross-arm-none-eabi*: update to 12.2.0
https://github.com/void-linux/void-packages/pull/41186

Description:
Replaces #37580.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):

I tested this with my own STM32 project written in both C and C++.

---
Also:
1. clean up hostmakedepends,
2. `mudflap` was removed in GCC 4.9: https://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging (commit [98906124](https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=98906124e3aa4cb17695d900fe19498e5bde63e4)),
3. `--with-host-libstdcxx` removed in commit [5dc85f7ec](https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5dc85f7ec719a79ecfbcdd8563b07e5f0f365e65).

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-07-10  2:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19 16:36 [PR PATCH] cross-arm-none-eabi*: update to 12.2.0 unspecd
2022-12-19 16:39 ` [PR PATCH] [Updated] " unspecd
2022-12-20  6:03 ` unspecd
2022-12-21 16:55 ` unspecd
2022-12-24  0:48 ` maybe-one-day-ubermensch
2022-12-25 19:25 ` [PR PATCH] [Updated] " unspecd
2022-12-25 19:33 ` unspecd
2023-03-26  1:57 ` github-actions
2023-03-26 17:01 ` mhmdanas
2023-06-25  2:12 ` github-actions
2023-07-10  2:08 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).