summaryrefslogtreecommitdiff
path: root/package/elfutils/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2025-01-09 11:48:24 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2025-01-09 11:50:56 +0100
commit12db3c8436211c587cc8d8249482cad48a06fbfe (patch)
tree436a7fa13e8088b6341f5418e2718c445ccc9741 /package/elfutils/patches
parent56cd779a7a48465714d69b4a22ae66ee894b15ce (diff)
use elfutils systemwideHEADmaster
libelf is deprecated and does not build with gcc-14. Use elfutils instead as drop-in replacement. Add patches from Buildroot to disable progs, which use glibc specific functions.
Diffstat (limited to 'package/elfutils/patches')
-rw-r--r--package/elfutils/patches/patch-Makefile_am16
-rw-r--r--package/elfutils/patches/patch-configure_ac24
2 files changed, 40 insertions, 0 deletions
diff --git a/package/elfutils/patches/patch-Makefile_am b/package/elfutils/patches/patch-Makefile_am
new file mode 100644
index 000000000..579e76113
--- /dev/null
+++ b/package/elfutils/patches/patch-Makefile_am
@@ -0,0 +1,16 @@
+--- elfutils-0.189.orig/Makefile.am 2023-03-03 16:42:26.000000000 +0100
++++ elfutils-0.189/Makefile.am 2025-01-08 20:12:14.302360288 +0100
+@@ -26,8 +26,12 @@ AM_MAKEFLAGS = --no-print-directory
+
+ pkginclude_HEADERS = version.h
+
++if ENABLE_PROGS
++PROGS_SUBDIR = src
++endif
++
+ SUBDIRS = config lib libelf libcpu backends libebl libdwelf libdwfl libdw \
+- libasm debuginfod src po doc tests
++ libasm debuginfod $(PROGS_SUBDIR) po doc tests
+
+ EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
+ COPYING COPYING-GPLV2 COPYING-LGPLV3
diff --git a/package/elfutils/patches/patch-configure_ac b/package/elfutils/patches/patch-configure_ac
new file mode 100644
index 000000000..40b65da79
--- /dev/null
+++ b/package/elfutils/patches/patch-configure_ac
@@ -0,0 +1,24 @@
+--- elfutils-0.189.orig/configure.ac 2023-03-03 16:42:26.000000000 +0100
++++ elfutils-0.189/configure.ac 2025-01-08 20:12:14.302360288 +0100
+@@ -422,6 +422,12 @@ AS_HELP_STRING([--enable-tests-rpath],[b
+ [tests_use_rpath=$enableval], [tests_use_rpath=no])
+ AM_CONDITIONAL(TESTS_RPATH, test "$tests_use_rpath" = yes)
+
++AC_ARG_ENABLE([progs],
++ AS_HELP_STRING([--enable-progs], [enable progs]),
++ enable_progs=$enableval,
++ enable_progs=yes)
++AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = yes)
++
+ dnl zlib is mandatory.
+ save_LIBS="$LIBS"
+ LIBS=
+@@ -659,7 +665,7 @@ saved_LIBS="$LIBS"
+ AC_SEARCH_LIBS([_obstack_free], [obstack])
+ LIBS="$saved_LIBS"
+ case "$ac_cv_search__obstack_free" in
+- no) AC_MSG_FAILURE([failed to find _obstack_free]) ;;
++ no) obstack_LIBS= ;;
+ -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;;
+ *) obstack_LIBS= ;;
+ esac