From de0041a596256c0345496a11c6fdb46f1a67426c Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Mon, 1 Apr 2019 13:07:13 +0200 Subject: [PATCH] elfutils: switch to upstream build method Just add a patch so that the elfutils executables (eu-ar, eu-nm, ...) aren't built/installed and use upstream build otherwise. Signed-off-by: Matthias Reichl --- packages/devel/elfutils/package.mk | 27 ------------------- .../elfutils-001-dont-build-executables.patch | 11 ++++++++ 2 files changed, 11 insertions(+), 27 deletions(-) create mode 100644 packages/devel/elfutils/patches/elfutils-001-dont-build-executables.patch diff --git a/packages/devel/elfutils/package.mk b/packages/devel/elfutils/package.mk index 6a2cedbc36..19835bea90 100644 --- a/packages/devel/elfutils/package.mk +++ b/packages/devel/elfutils/package.mk @@ -25,30 +25,3 @@ PKG_CONFIGURE_OPTS_HOST="utrace_cv_cc_biarch=false \ --with-zlib \ --without-bzlib \ --without-lzma" - -makeinstall_host() { - make DESTDIR="$INSTALL" -C libelf install -} - -make_target() { - make V=1 -C libelf libelf.a - make V=1 -C libebl libebl.a - make V=1 -C libdwfl libdwfl.a - make V=1 -C libdwelf libdwelf.a - make V=1 -C libdw libdw.a -} - -makeinstall_target() { - make DESTDIR="$SYSROOT_PREFIX" -C libelf install-includeHEADERS install-pkgincludeHEADERS - make DESTDIR="$SYSROOT_PREFIX" -C libdwfl install-pkgincludeHEADERS - make DESTDIR="$SYSROOT_PREFIX" -C libdw install-includeHEADERS install-pkgincludeHEADERS - - mkdir -p $SYSROOT_PREFIX/usr/lib - cp libelf/libelf.a $SYSROOT_PREFIX/usr/lib - cp libebl/libebl.a $SYSROOT_PREFIX/usr/lib - cp libdwfl/libdwfl.a $SYSROOT_PREFIX/usr/lib - cp libdw/libdw.a $SYSROOT_PREFIX/usr/lib - - mkdir -p $SYSROOT_PREFIX/usr/include/elfutils - cp version.h $SYSROOT_PREFIX/usr/include/elfutils -} diff --git a/packages/devel/elfutils/patches/elfutils-001-dont-build-executables.patch b/packages/devel/elfutils/patches/elfutils-001-dont-build-executables.patch new file mode 100644 index 0000000000..4267bde764 --- /dev/null +++ b/packages/devel/elfutils/patches/elfutils-001-dont-build-executables.patch @@ -0,0 +1,11 @@ +--- elfutils-0.176/Makefile.am.orig 2019-04-01 12:59:25.141077178 +0200 ++++ elfutils-0.176/Makefile.am 2019-04-01 12:59:34.157100775 +0200 +@@ -28,7 +28,7 @@ + + # Add doc back when we have some real content. + SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \ +- backends src po tests ++ backends po tests + + EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \ + COPYING COPYING-GPLV2 COPYING-LGPLV3