elfutils: bump version to 0.166
PATCH 1/3 elfutils: bump version to 0.166
- Remove 0001-argp-support.patch since it's already included upstream:
https://git.fedorahosted.org/cgit/elfutils.git/commit/?id=1ab3c2befeedf5bd891cfbe17cfef79c06e5079a
- Tweak patches for this new version:
- 0002-disable-progs.patch
- 0003-fts.patch
- 0004-disable-po.patch
- 0005-really-make-werror-conditional-to-build-werror.patch
- Remove 0007-Allow-disabling-symbol-versioning-at-configure-t since it's already included upstream:
https://git.fedorahosted.org/cgit/elfutils.git/commit/?id=bafacacaf7659a4933604662daba26a480b29a8d
- Remove portability patch since it's no longer needed. I have asked Mark Wielaard regarding this topic given the portability patch looks been discontinued since 0.163 and he replied the following:
- "I believe it is no longer needed. At least not on any platform I am actively maintaining. See also this discussion from last year:
https://lists.fedorahosted.org/pipermail/elfutils-devel/2015-May/004825.html"
- Add zlib dependency since it's now mandatory:
configure: error: zlib not found but is required
--- package/elfutils/0001-argp-support.patch | 93 -------------- package/elfutils/0002-disable-progs.patch | 22 ++-- package/elfutils/0003-fts.patch | 26 ++-- ...y-make-werror-conditional-to-build-werror.patch | 18 +-- ...bling-symbol-versioning-at-configure-time.patch | 139 --------------------- package/elfutils/Config.in | 1 + package/elfutils/elfutils.hash | 3 +- package/elfutils/elfutils.mk | 11 +- 8 files changed, 40 insertions(+), 273 deletions(-) delete mode 100644 package/elfutils/0001-argp-support.patch delete mode 100644 package/elfutils/0007-Allow-disabling-symbol-versioning-at-configure-time.patch
package/elfutils/0001-argp-support.patch deleted +0 -93
@@ -1,93 +0,0 @@ -Allow the usage of an external implementation of the argp functions - -uClibc lack the argp family of functions that glibc has. Therefore, we -add a check in the configure script to see if argp_parse is available -in the C library. If not, we look if it is available in the additional -'argp' library. If so, we link against that library. If not, we error -out. - -This allows to build elfutils against uClibc with an external argp -library. - -Based on the former patch by Thomas Petazzoni. - -Signed-off-by: Thomas Petazzoni <[email protected]> -Signed-off-by: Vicente Olivert Riera <[email protected]> - -diff -rup a/configure.ac b/configure.ac ---- a/configure.ac 2015-01-06 11:30:02.170052875 +0000 -+++ b/configure.ac 2015-01-06 11:31:10.122219826 +0000 -@@ -253,6 +253,13 @@ AC_SUBST([LIBEBL_SUBDIR]) - AC_DEFINE_UNQUOTED(LIBEBL_SUBDIR, "$LIBEBL_SUBDIR") - AH_TEMPLATE([LIBEBL_SUBDIR], [$libdir subdirectory containing libebl modules.]) - -+AC_CHECK_FUNC([argp_parse]) -+if test "$ac_cv_func_argp_parse" != yes; then -+ AC_CHECK_LIB([argp],[argp_parse],ARGP_LIBS=-largp, -+ AC_MSG_ERROR([No argp_parse function available.])) -+fi -+AC_SUBST(ARGP_LIBS) -+ - dnl Test for zlib and bzlib, gives ZLIB/BZLIB .am - dnl conditional and config.h USE_ZLIB/USE_BZLIB #define. - save_LIBS="$LIBS" -diff -rup a/libdw/Makefile.am b/libdw/Makefile.am ---- a/libdw/Makefile.am 2014-12-19 20:43:11.000000000 +0000 -+++ b/libdw/Makefile.am 2015-01-06 11:32:21.075438524 +0000 -@@ -112,7 +112,7 @@ libdw.so$(EXEEXT): $(srcdir)/libdw.map l - -Wl,--enable-new-dtags,-rpath,$(pkglibdir) \ - -Wl,--version-script,$<,--no-undefined \ - -Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\ -- -ldl $(zip_LIBS) -+ -ldl $(zip_LIBS) $(ARGP_LIBS) - @$(textrel_check) - ln -fs $@ $@.$(VERSION) - -diff -rup a/src/Makefile.am b/src/Makefile.am ---- a/src/Makefile.am 2015-01-06 11:30:02.430057339 +0000 -+++ b/src/Makefile.am 2015-01-06 11:34:53.061049752 +0000 -@@ -94,27 +94,29 @@ readelf_no_Werror = yes - strings_no_Werror = yes - addr2line_no_Wformat = yes - --readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl -+readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl $(ARGP_LIBS) - nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl \ -- $(demanglelib) --size_LDADD = $(libelf) $(libeu) --strip_LDADD = $(libebl) $(libelf) $(libeu) -ldl --ld_LDADD = $(libebl) $(libelf) $(libeu) -ldl -+ $(demanglelib) $(ARGP_LIBS) -+size_LDADD = $(libelf) $(libeu) $(ARGP_LIBS) -+strip_LDADD = $(libebl) $(libelf) $(libeu) -ldl $(ARGP_LIBS) -+ld_LDADD = $(libebl) $(libelf) $(libeu) -ldl $(ARGP_LIBS) - if NATIVE_LD - # -ldl is always needed for libebl. - ld_LDADD += libld_elf.a - endif - ld_LDFLAGS = -rdynamic --elflint_LDADD = $(libebl) $(libelf) $(libeu) -ldl --findtextrel_LDADD = $(libdw) $(libelf) --addr2line_LDADD = $(libdw) $(libelf) --elfcmp_LDADD = $(libebl) $(libelf) -ldl --objdump_LDADD = $(libasm) $(libebl) $(libelf) $(libeu) -ldl --ranlib_LDADD = libar.a $(libelf) $(libeu) --strings_LDADD = $(libelf) $(libeu) --ar_LDADD = libar.a $(libelf) $(libeu) --unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) -ldl --stack_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) -ldl $(demanglelib) -+elflint_LDADD = $(libebl) $(libelf) $(libeu) -ldl $(ARGP_LIBS) -+findtextrel_LDADD = $(libdw) $(libelf) $(ARGP_LIBS) -+addr2line_LDADD = $(libdw) $(libelf) $(ARGP_LIBS) -+elfcmp_LDADD = $(libebl) $(libelf) -ldl $(ARGP_LIBS) -+objdump_LDADD = $(libasm) $(libebl) $(libelf) $(libeu) -ldl \ -+ $(ARGP_LIBS) -+ranlib_LDADD = libar.a $(libelf) $(libeu) $(ARGP_LIBS) -+strings_LDADD = $(libelf) $(libeu) $(ARGP_LIBS) -+ar_LDADD = libar.a $(libelf) $(libeu) $(ARGP_LIBS) -+unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) -ldl $(ARGP_LIBS) -+stack_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) -ldl \ -+ $(demanglelib) $(ARGP_LIBS) - - ldlex.o: ldscript.c - ldlex_no_Werror = yes
package/elfutils/0002-disable-progs.patch +12 -10
@@ -9,15 +9,17 @@ obstack_printf() in uClibc for example). Based on the former patch by Thomas Petazzoni. +[Vincent: tweak patch for 0.166] + Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Vicente Olivert Riera <[email protected]> diff -rup a/configure.ac b/configure.ac ---- a/configure.ac 2015-01-06 11:31:10.122219826 +0000 -+++ b/configure.ac 2015-01-06 11:37:38.397891424 +0000 -@@ -260,6 +260,12 @@ if test "$ac_cv_func_argp_parse" != yes; - fi - AC_SUBST(ARGP_LIBS) +--- a/configure.ac 2016-03-31 09:48:08.000000000 +0100 ++++ b/configure.ac 2016-06-17 14:47:03.561704498 +0100 +@@ -253,6 +253,12 @@ AC_SUBST([LIBEBL_SUBDIR]) + AC_DEFINE_UNQUOTED(LIBEBL_SUBDIR, "$LIBEBL_SUBDIR") + AH_TEMPLATE([LIBEBL_SUBDIR], [$libdir subdirectory containing libebl modules.]) +AC_ARG_ENABLE([progs], + AS_HELP_STRING([--enable-progs], [enable progs]),
@@ -25,13 +27,13 @@ diff -rup a/configure.ac b/configure.ac + enable_progs=yes) +AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = yes) + - dnl Test for zlib and bzlib, gives ZLIB/BZLIB .am - dnl conditional and config.h USE_ZLIB/USE_BZLIB #define. + dnl zlib is mandatory. save_LIBS="$LIBS" + LIBS= diff -rup a/Makefile.am b/Makefile.am ---- a/Makefile.am 2014-06-17 19:51:09.000000000 +0100 -+++ b/Makefile.am 2015-01-06 11:38:42.846999410 +0000 -@@ -22,9 +22,13 @@ ACLOCAL_AMFLAGS = -I m4 +--- a/Makefile.am 2016-01-12 12:49:19.000000000 +0000 ++++ b/Makefile.am 2016-06-17 14:48:02.585861468 +0100 +@@ -26,9 +26,13 @@ AM_MAKEFLAGS = --no-print-directory pkginclude_HEADERS = version.h
package/elfutils/0003-fts.patch +14 -12
@@ -24,13 +24,15 @@ already provided by the C library. Based on the former patch by Thomas Petazzoni. +[Vincent: tweak patch for 0.166] + Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Vicente Olivert Riera <[email protected]> diff -Nrup a/configure.ac b/configure.ac ---- a/configure.ac 2015-01-06 11:37:38.397891424 +0000 -+++ b/configure.ac 2015-01-06 11:40:53.568258759 +0000 -@@ -266,6 +266,10 @@ AC_ARG_ENABLE([progs], +--- a/configure.ac 2016-06-17 14:47:03.561704498 +0100 ++++ b/configure.ac 2016-06-17 14:52:35.038200412 +0100 +@@ -259,6 +259,10 @@ AC_ARG_ENABLE([progs], enable_progs=yes) AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = yes)
@@ -38,12 +40,12 @@ diff -Nrup a/configure.ac b/configure.ac + AC_DEFINE([HAVE_FTS_H], [], [Define if <fts.h> is available in C library])) +AM_CONDITIONAL(HAVE_FTS, test "$ac_cv_header_fts_h" = yes) + - dnl Test for zlib and bzlib, gives ZLIB/BZLIB .am - dnl conditional and config.h USE_ZLIB/USE_BZLIB #define. + dnl zlib is mandatory. save_LIBS="$LIBS" + LIBS= diff -Nrup a/libdwfl/fts.c b/libdwfl/fts.c --- a/libdwfl/fts.c 1970-01-01 01:00:00.000000000 +0100 -+++ b/libdwfl/fts.c 2015-01-06 11:42:13.481640322 +0000 ++++ b/libdwfl/fts.c 2016-06-17 14:57:26.649912084 +0100 @@ -0,0 +1,1095 @@ +/*- + * Copyright (c) 1990, 1993, 1994
@@ -1142,7 +1144,7 @@ diff -Nrup a/libdwfl/fts.c b/libdwfl/fts.c +} diff -Nrup a/libdwfl/fts_.h b/libdwfl/fts_.h --- a/libdwfl/fts_.h 1970-01-01 01:00:00.000000000 +0100 -+++ b/libdwfl/fts_.h 2015-01-06 11:42:13.481640322 +0000 ++++ b/libdwfl/fts_.h 2016-06-17 14:58:42.003387566 +0100 @@ -0,0 +1,131 @@ +/* + * Copyright (c) 1989, 1993
@@ -1276,8 +1278,8 @@ diff -Nrup a/libdwfl/fts_.h b/libdwfl/fts_.h + +#endif /* fts.h */ diff -Nrup a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c ---- a/libdwfl/linux-kernel-modules.c 2014-11-22 22:43:52.000000000 +0000 -+++ b/libdwfl/linux-kernel-modules.c 2015-01-06 11:44:25.610924805 +0000 +--- a/libdwfl/linux-kernel-modules.c 2016-03-02 16:25:38.000000000 +0000 ++++ b/libdwfl/linux-kernel-modules.c 2016-06-17 14:59:50.267724089 +0100 @@ -29,7 +29,11 @@ /* We include this before config.h because it can't handle _FILE_OFFSET_BITS. Everything we need here is fine if its declarations just come first. */
@@ -1291,9 +1293,9 @@ diff -Nrup a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c #include <config.h> diff -Nrup a/libdwfl/Makefile.am b/libdwfl/Makefile.am ---- a/libdwfl/Makefile.am 2014-06-17 19:51:09.000000000 +0100 -+++ b/libdwfl/Makefile.am 2015-01-06 11:45:25.442959369 +0000 -@@ -79,6 +79,9 @@ endif +--- a/libdwfl/Makefile.am 2016-01-12 12:49:19.000000000 +0000 ++++ b/libdwfl/Makefile.am 2016-06-17 15:01:03.492157569 +0100 +@@ -77,6 +77,9 @@ endif if LZMA libdwfl_a_SOURCES += lzma.c endif
package/elfutils/0005-really-make-werror-conditional-to-build-werror.patch +10 -8
@@ -8,17 +8,19 @@ function [-Werror=maybe-uninitialized] ^ cc1: all warnings being treated as errors +[Vincent: tweak patch for 0.166] + Signed-off-by: "Yann E. MORIN" <[email protected]> Signed-off-by: Vicente Olivert Riera <[email protected]> diff -rup a/config/eu.am b/config/eu.am ---- a/config/eu.am 2014-11-10 16:19:14.356031479 +0000 -+++ b/config/eu.am 2014-11-10 16:21:11.702072011 +0000 -@@ -35,7 +35,6 @@ LD_AS_NEEDED = @LD_AS_NEEDED@ - DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"' - AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. - AM_CFLAGS = -std=gnu99 -Wall -Wshadow \ +--- a/config/eu.am 2016-03-02 16:25:38.000000000 +0000 ++++ b/config/eu.am 2016-06-17 15:05:08.270974835 +0100 +@@ -65,7 +65,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -W + -Wold-style-definition -Wstrict-prototypes \ + $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \ + $(NULL_DEREFERENCE_WARNING) \ - $(if $($(*F)_no_Werror),,-Werror) \ - $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \ - $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) \ + $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \ + $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \ $($(*F)_CFLAGS)
package/elfutils/0007-Allow-disabling-symbol-versioning-at-configure-time.patch deleted +0 -139
139 lines not on this page · raw message
package/elfutils/Config.in +1 -0
@@ -5,6 +5,7 @@ comment "elfutils needs a uClibc or (e)glibc toolchain w/ wchar, dynamic library config BR2_PACKAGE_ELFUTILS bool "elfutils" + select BR2_PACKAGE_ZLIB select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT depends on BR2_USE_WCHAR
package/elfutils/elfutils.hash +1 -2
@@ -1,3 +1,2 @@ # Locally calculated -sha256 570c91a1783fa5386aaa2dfdd08dda1de777c2b63bf3b9c1437d635ffdd7a070 elfutils-0.161.tar.bz2 -sha256 bf0363d03e1e4668778eb4e7ddd10e405a22f753b3ad813a537fc01164d1e3fe elfutils-portability-0.161.patch +sha256 3c056914c8a438b210be0d790463b960fc79d234c3f05ce707cbff80e94cba30 elfutils-0.166.tar.bz2
package/elfutils/elfutils.mk +2 -9
@@ -4,13 +4,13 @@ # ################################################################################ -ELFUTILS_VERSION = 0.161 +ELFUTILS_VERSION = 0.166 ELFUTILS_SOURCE = elfutils-$(ELFUTILS_VERSION).tar.bz2 ELFUTILS_SITE = https://fedorahosted.org/releases/e/l/elfutils/$(ELFUTILS_VERSION) ELFUTILS_INSTALL_STAGING = YES ELFUTILS_LICENSE = GPLv3, GPLv2, LGPLv3 ELFUTILS_LICENSE_FILES = COPYING COPYING-GPLV2 COPYING-LGPLV3 -ELFUTILS_PATCH = elfutils-portability-0.161.patch +ELFUTILS_DEPENDENCIES = zlib # The tarball does not have a generated configure script ELFUTILS_AUTORECONF = YES
@@ -44,13 +44,6 @@ ELFUTILS_DEPENDENCIES += argp-standalone ELFUTILS_CONF_OPTS += --disable-symbol-versioning endif -ifeq ($(BR2_PACKAGE_ZLIB),y) -ELFUTILS_DEPENDENCIES += zlib -ELFUTILS_CONF_OPTS += --with-zlib -else -ELFUTILS_CONF_OPTS += --without-zlib -endif - ifeq ($(BR2_PACKAGE_BZIP2),y) ELFUTILS_DEPENDENCIES += bzip2 ELFUTILS_CONF_OPTS += --with-bzlib
Signature · 1 line
2.7.3
PATCH 2/3 elfutils: specify the real reason for needing autoreconf
--- package/elfutils/elfutils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/elfutils/elfutils.mk +1 -1
@@ -12,7 +12,7 @@ ELFUTILS_LICENSE = GPLv3, GPLv2, LGPLv3 ELFUTILS_LICENSE_FILES = COPYING COPYING-GPLV2 COPYING-LGPLV3 ELFUTILS_DEPENDENCIES = zlib -# The tarball does not have a generated configure script +# We patch configure.ac ELFUTILS_AUTORECONF = YES ELFUTILS_CONF_OPTS += --disable-werror
Signature · 1 line
2.7.3
PATCH 3/3 elfutils: put all the "lfs mode" stuff together
In reply to Vicente Olivert Riera--- package/elfutils/elfutils.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
package/elfutils/elfutils.mk +4 -3
@@ -16,17 +16,18 @@ ELFUTILS_DEPENDENCIES = zlib ELFUTILS_AUTORECONF = YES ELFUTILS_CONF_OPTS += --disable-werror -ELFUTILS_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS)) - # sparc64 needs -fPIC instead of -fpic ifeq ($(BR2_sparc64),y) ELFUTILS_CFLAGS += -fPIC endif # elfutils gets confused when lfs mode is forced, so don't +ELFUTILS_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS)) +ELFUTILS_CPPFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS)) + ELFUTILS_CONF_ENV += \ CFLAGS="$(ELFUTILS_CFLAGS)" \ - CPPFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))" + CPPFLAGS="$(ELFUTILS_CPPFLAGS)" ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS)
Signature · 1 line
2.7.3
PATCH 1/3 elfutils: bump version to 0.166
In reply to Vicente Olivert RieraHello,
Quoted 24 lines · Vicente Olivert Riera
- Remove 0001-argp-support.patch since it's already included upstream:
https://git.fedorahosted.org/cgit/elfutils.git/commit/?id=1ab3c2befeedf5bd891cfbe17cfef79c06e5079a- Tweak patches for this new version:
- 0002-disable-progs.patch
- 0003-fts.patch
- 0004-disable-po.patch
- 0005-really-make-werror-conditional-to-build-werror.patch- Remove 0007-Allow-disabling-symbol-versioning-at-configure-t since it's already included upstream:
https://git.fedorahosted.org/cgit/elfutils.git/commit/?id=bafacacaf7659a4933604662daba26a480b29a8d- Remove portability patch since it's no longer needed. I have asked Mark Wielaard regarding this topic given the portability patch looks been discontinued since 0.163 and he replied the following:
- "I believe it is no longer needed. At least not on any platform I am actively maintaining. See also this discussion from last year:
https://lists.fedorahosted.org/pipermail/elfutils-devel/2015-May/004825.html"- Add zlib dependency since it's now mandatory:
configure: error: zlib not found but is requiredSigned-off-by Vicente Olivert Riera <[email protected]>
Quoted 12 lines
--- package/elfutils/0001-argp-support.patch | 93 -------------- package/elfutils/0002-disable-progs.patch | 22 ++-- package/elfutils/0003-fts.patch | 26 ++-- ...y-make-werror-conditional-to-build-werror.patch | 18 +-- ...bling-symbol-versioning-at-configure-time.patch | 139 --------------------- package/elfutils/Config.in | 1 + package/elfutils/elfutils.hash | 3 +- package/elfutils/elfutils.mk | 11 +- 8 files changed, 40 insertions(+), 273 deletions(-) delete mode 100644 package/elfutils/0001-argp-support.patch delete mode 100644 package/elfutils/0007-Allow-disabling-symbol-versioning-at-configure-time.patch
All three patches applied, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com