sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (ddab1d9794f4668e70a02021b019196c9fc7e834)
- From: Ismael Luceno <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
- Subject: [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (ddab1d9794f4668e70a02021b019196c9fc7e834)
- Date: Fri, 20 Jun 2025 19:50:42 +0000
GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:
utils/crosstool-ng/DETAILS | 1
utils/crosstool-ng/HISTORY | 3
utils/crosstool-ng/PRE_BUILD | 3
utils/crosstool-ng/patches/0001-binutils-Disable-gprofng.patch | 32
++++++++++
4 files changed, 39 insertions(+)
New commits:
commit ddab1d9794f4668e70a02021b019196c9fc7e834
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
crosstool-ng: Disable gprofng (binutils)
It fails to build against musl.
diff --git a/utils/crosstool-ng/DETAILS b/utils/crosstool-ng/DETAILS
index ea11cae..0db2f70 100755
--- a/utils/crosstool-ng/DETAILS
+++ b/utils/crosstool-ng/DETAILS
@@ -1,6 +1,7 @@
# Watch: http://crosstool-ng.org/download/crosstool-ng/
crosstool-ng-([0-9.]+)\.tar
SPELL=crosstool-ng
VERSION=1.27.0
+ PATCHLEVEL=1
SOURCE="${SPELL}-${VERSION}.tar.bz2"
SOURCE_URL[0]=http://crosstool-ng.org/download/${SPELL}/${SOURCE}
SOURCE_HASH=sha512:4b0e68d967a129c4b033c2f3d1452d044c95f65ba0496c4ad8b4e1abe35fa994003e33775491e2a766a54886f1036a5659486a5a12192248dd209797532086b3
diff --git a/utils/crosstool-ng/HISTORY b/utils/crosstool-ng/HISTORY
index 2734b9c..fe16f2b 100644
--- a/utils/crosstool-ng/HISTORY
+++ b/utils/crosstool-ng/HISTORY
@@ -1,5 +1,8 @@
2025-06-20 Ismael Luceno <ismael AT sourcemage.org>
* DETAILS: updated spell to 1.27.0
+ PATCHLEVEL++
+ * PRE_BUILD, patches/0001-binutils-Disable-gprofng.patch:
+ disabled gprofng, fails to build against musl
2020-05-10 Ismael Luceno <ismael AT sourcemage.org>
* DETAILS: updated spell to 1.24.0
diff --git a/utils/crosstool-ng/PRE_BUILD b/utils/crosstool-ng/PRE_BUILD
new file mode 100755
index 0000000..c230ad1
--- /dev/null
+++ b/utils/crosstool-ng/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git a/utils/crosstool-ng/patches/0001-binutils-Disable-gprofng.patch
b/utils/crosstool-ng/patches/0001-binutils-Disable-gprofng.patch
new file mode 100644
index 0000000..72807e8
--- /dev/null
+++ b/utils/crosstool-ng/patches/0001-binutils-Disable-gprofng.patch
@@ -0,0 +1,32 @@
+From 49199a78bfbcc64aa0cdb5b4cb3b5504242862dd Mon Sep 17 00:00:00 2001
+From: Ismael Luceno <ismael AT iodev.co.uk>
+Date: Fri, 20 Jun 2025 20:02:10 +0200
+Subject: [PATCH] binutils: Disable gprofng
+
+It contains unportable code that fails to build against implementations
+other than glibc.
+
+Status: Pending
+Origin: Source Mage
+Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
+---
+ scripts/build/binutils/binutils.sh | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/scripts/build/binutils/binutils.sh
b/scripts/build/binutils/binutils.sh
+index b16be9041662..1fa8538c87c8 100644
+--- a/scripts/build/binutils/binutils.sh
++++ b/scripts/build/binutils/binutils.sh
+@@ -167,6 +167,9 @@ do_binutils_backend() {
+ extra_config+=("--disable-multilib")
+ fi
+
++ # Disable gprofng, it contains unportable code
++ extra_config+=("--disable-gprofng")
++
+ # Disable gdb when building from the binutils-gdb repository.
+ extra_config+=("--disable-sim")
+ extra_config+=("--disable-gdb")
+--
+2.49.0
+
- [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (ddab1d9794f4668e70a02021b019196c9fc7e834), Ismael Luceno, 06/20/2025
Archive powered by MHonArc 2.6.24.