From 4db89b34943922705d8418997a68033571ab151c Mon Sep 17 00:00:00 2001
From: fossdd <fossdd@pwned.life>
Date: Sun, 9 Feb 2025 09:17:49 +0100
Subject: [PATCH 1/4] main/binutils: upgrade to 2.44

https://sourceware.org/pipermail/binutils/2025-February/139195.html

* include binutils-gold until the ecosystem has moved away (e.g. go)
---
 main/binutils/APKBUILD | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/main/binutils/APKBUILD b/main/binutils/APKBUILD
index 28d929e3e34d..2f65b51a3342 100644
--- a/main/binutils/APKBUILD
+++ b/main/binutils/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=binutils
-pkgver=2.43.1
-pkgrel=1
+pkgver=2.44
+pkgrel=0
 pkgdesc="Tools necessary to build programs"
 url="https://www.gnu.org/software/binutils/"
 makedepends_build="bison flex texinfo"
@@ -9,11 +9,11 @@ makedepends_host="zlib-dev"
 arch="all"
 license="GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-3-Clause"
 subpackages="$pkgname-dev $pkgname-doc"
-source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz
+source="https://ftp.gnu.org/gnu/binutils/binutils-with-gold-$pkgver.tar.xz
 	0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
 	binutils-ld-fix-static-linking.patch
 	"
-builddir="$srcdir/$pkgname-$pkgver"
+builddir="$srcdir/$pkgname-with-gold-$pkgver"
 options="!check"
 
 if [ -z "$BOOTSTRAP" ]; then
@@ -117,14 +117,14 @@ package() {
 }
 
 gold() {
-	pkgdesc="GNU binutils - gold linker"
+	pkgdesc="GNU binutils - gold linker (deprecated)"
 
 	amove usr/bin/ld.gold
 	amove usr/$CTARGET/bin/ld.gold
 }
 
 sha512sums="
-20977ad17729141a2c26d358628f44a0944b84dcfefdec2ba029c2d02f40dfc41cc91c0631044560d2bd6f9a51e1f15846b4b311befbe14f1239f14ff7d57824  binutils-2.43.1.tar.xz
+1d8688f1b6f1bc64cfd1f82e3af05b8ace1d709d4fa819acb4d12d74e1b69b4314d98fb4281dacc9b5fa51ff7370d0249f540ec016fd137aa701502d72426301  binutils-with-gold-2.44.tar.xz
 70ec22bd72ef6dddecfd970613387dd4a8cdc8730dd3cbf03d5a0c3a7c4d839383167bb06dad21bf7c235329fd44b5dc4aefe762f68544f17155cf002bf1be4a  0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
 ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49  binutils-ld-fix-static-linking.patch
 "
-- 
GitLab


From 0b783ff2ad95813d2f1b48023433364f8a6f6705 Mon Sep 17 00:00:00 2001
From: fossdd <fossdd@pwned.life>
Date: Sun, 9 Feb 2025 09:48:08 +0100
Subject: [PATCH 2/4] community/bpftrace: rebuild against binutils-2.44-r0

---
 community/bpftrace/APKBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/community/bpftrace/APKBUILD b/community/bpftrace/APKBUILD
index 9f2f0692d0d0..d4fbe6c4eb52 100644
--- a/community/bpftrace/APKBUILD
+++ b/community/bpftrace/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Adam Jensen <adam@acj.sh>
 pkgname=bpftrace
 pkgver=0.22.1
-pkgrel=0
+pkgrel=1
 pkgdesc="High-level tracing language for Linux eBPF"
 url="https://github.com/iovisor/bpftrace"
 arch="all !x86" # x86 unsupported
-- 
GitLab


From 2122d988b292aabae2246e5fe9a870c988215ec0 Mon Sep 17 00:00:00 2001
From: fossdd <fossdd@pwned.life>
Date: Sun, 9 Feb 2025 09:48:12 +0100
Subject: [PATCH 3/4] testing/dropwatch: rebuild against binutils-2.44-r0

---
 testing/dropwatch/APKBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/dropwatch/APKBUILD b/testing/dropwatch/APKBUILD
index d56bd31e3cbf..9dfa9b1d0a38 100644
--- a/testing/dropwatch/APKBUILD
+++ b/testing/dropwatch/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
 pkgname=dropwatch
 pkgver=1.5.4
-pkgrel=6
+pkgrel=7
 pkgdesc="Project to detect packet drops in the Linux kernel"
 url="https://github.com/nhorman/dropwatch"
 arch="all"
-- 
GitLab


From 228d1508fab385bfd61009a21f90c3a9729be467 Mon Sep 17 00:00:00 2001
From: fossdd <fossdd@pwned.life>
Date: Sun, 9 Feb 2025 09:48:19 +0100
Subject: [PATCH 4/4] community/linux-tools: rebuild against binutils-2.44-r0

---
 community/linux-tools/APKBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/community/linux-tools/APKBUILD b/community/linux-tools/APKBUILD
index 16efb94b752a..5ab2db265a63 100644
--- a/community/linux-tools/APKBUILD
+++ b/community/linux-tools/APKBUILD
@@ -7,7 +7,7 @@ case $pkgver in
 	*.*.*)	_kernver=${pkgver%.*};;
 	*.*) _kernver=$pkgver;;
 esac
-pkgrel=0
+pkgrel=1
 pkgdesc="Linux kernel tools meta package"
 url="https://www.kernel.org/"
 arch="all"
-- 
GitLab