commit:     4f2e291c46231da3b385df024e404d53afad6013
Author:     Sergey Alirzaev <l29ah <AT> riseup <DOT> net>
AuthorDate: Mon Feb  2 20:49:36 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb  3 16:57:20 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f2e291c

dev-embedded/sdcc: fixed elf() decl

Closes: https://bugs.gentoo.org/944321
Signed-off-by: Sergey Alirzaev <l29ah <AT> riseup.net>
Part-of: https://github.com/gentoo/gentoo/pull/45605
Closes: https://github.com/gentoo/gentoo/pull/45605
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-embedded/sdcc/files/sdcc-4.3.0-fix-elf-type.patch | 12 ++++++++++++
 dev-embedded/sdcc/sdcc-4.3.0-r1.ebuild                |  3 ++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/dev-embedded/sdcc/files/sdcc-4.3.0-fix-elf-type.patch 
b/dev-embedded/sdcc/files/sdcc-4.3.0-fix-elf-type.patch
new file mode 100644
index 000000000000..5dabde8e387e
--- /dev/null
+++ b/dev-embedded/sdcc/files/sdcc-4.3.0-fix-elf-type.patch
@@ -0,0 +1,12 @@
+diff '--color=auto' -uprNb sdcc-4.3.0.orig/sdas/linksrc/aslink.h 
sdcc-4.3.0/sdas/linksrc/aslink.h
+--- sdcc-4.3.0.orig/sdas/linksrc/aslink.h      2025-05-07 15:07:20.854046196 
+0300
++++ sdcc-4.3.0/sdas/linksrc/aslink.h   2025-05-07 15:08:22.095963883 +0300
+@@ -1312,7 +1312,7 @@ extern  VOID            s19(int i);
+ extern  VOID            sflush(void);
+ 
+ /* EEP: lkelf.c */
+-extern  VOID            elf();
++extern  VOID            elf(int i);
+ 
+ /* JCF: lkmem.c */
+ extern int summary(struct area * xp);

diff --git a/dev-embedded/sdcc/sdcc-4.3.0-r1.ebuild 
b/dev-embedded/sdcc/sdcc-4.3.0-r1.ebuild
index 55e62d0538a3..5d2904b115c1 100644
--- a/dev-embedded/sdcc/sdcc-4.3.0-r1.ebuild
+++ b/dev-embedded/sdcc/sdcc-4.3.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -67,6 +67,7 @@ PATCHES=(
        "${FILESDIR}"/${P}-fix-binutils-dependency.patch
        "${FILESDIR}"/${P}-fix-mkdir-autoconf-test.patch
        "${FILESDIR}"/${P}-autoreconf-libiberty.patch
+       "${FILESDIR}"/${P}-fix-elf-type.patch
 )
 
 src_prepare() {

Reply via email to