diff --git a/devel/elfutils/Makefile b/devel/elfutils/Makefile index 3776e5021b13..b36e730360b1 100644 --- a/devel/elfutils/Makefile +++ b/devel/elfutils/Makefile @@ -1,65 +1,67 @@ # Created by: Conrad Meyer PORTNAME= elfutils -PORTVERSION= 0.179 +DISTVERSION= 0.187 CATEGORIES= devel MASTER_SITES= https://sourceware.org/elfutils/ftp/${PORTVERSION}/ MAINTAINER= cem@FreeBSD.org COMMENT= Library for manipulating ELF files and partial implementation of binutils LICENSE= LGPL3 GPLv2+ GPLv3+ LICENSE_COMB= multi LICENSE_FILE_GPLv3+ = ${WRKSRC}/COPYING LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING-GPLV2 LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING-LGPLV3 BROKEN_armv6= fails to build: fails to compile i386_disasm.c BROKEN_sparc64= sparc patch does not apply cleanly to 0.172 -LIB_DEPENDS= libargp.so:devel/argp-standalone +LIB_DEPENDS= libargp.so:devel/argp-standalone \ + libcurl.so:ftp/curl BUILD_DEPENDS= gnulib>=0:devel/gnulib PLIST_SUB= VERSION=${PORTVERSION} +CFLAGS+= -I${LOCALBASE}/share/gnulib/lib +LDFLAGS+= ${LOCALBASE}/lib/libargp.so \ + ${LOCALBASE}/lib/libintl.so + OPTIONS_DEFINE= MANPAGES NLS OPTIONS_DEFAULT= MANPAGES OPTIONS_SUB= yes NLS_USES= gettext NLS_USES_OFF= gettext # used anyway NLS_CONFIGURE_ENABLE= nls USES= autoreconf cpe gmake libtool pkgconfig tar:bzip2 CPE_VENDOR= ${PORTNAME}_project -USE_GCC= yes GNU_CONFIGURE= yes USE_LDCONFIG= yes +CFLAGS+= -Wno-error -Wno-format-nonliteral CFLAGS+= -Wno-null-dereference -Wno-unused-value -# For GCC8: -CFLAGS+= -Wno-cast-function-type -# Give i386 a prayer of building, and we can fix the warnings later: -CFLAGS_armv7= -Wno-error -CFLAGS_i386= -Wno-error -CFLAGS_powerpc= -Wno-error # Avoid conflict with binutils / elftoolchain programs with the same names: CONFIGURE_ARGS+= --program-prefix=eu- # Disable debuginfod until option support can be added: CONFIGURE_ARGS+= --disable-debuginfod .include .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300512 # 2021-07-17 CFLAGS+= -DFREEBSD_HAS_MEMPCPY .endif pre-configure: @${CP} -a \ ${LOCALBASE}/share/gnulib/lib/obstack.c \ ${LOCALBASE}/share/gnulib/lib/obstack.h \ ${LOCALBASE}/share/gnulib/lib/obstack_printf.c \ ${WRKSRC}/lib +post-configure: # remove -Werror since it causes build failures + @${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -e 's| -Werror| |; s|-Werror ||' + .include diff --git a/devel/elfutils/distinfo b/devel/elfutils/distinfo index 15b8211c8585..2e7575dac845 100644 --- a/devel/elfutils/distinfo +++ b/devel/elfutils/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1585570776 -SHA256 (elfutils-0.179.tar.bz2) = 25a545566cbacaa37ae6222e58f1c48ea4570f53ba991886e2f5ce96e22a23a2 -SIZE (elfutils-0.179.tar.bz2) = 9057637 +TIMESTAMP = 1650986624 +SHA256 (elfutils-0.187.tar.bz2) = e70b0dfbe610f90c4d1fe0d71af142a4e25c3c4ef9ebab8d2d72b65159d454c8 +SIZE (elfutils-0.187.tar.bz2) = 9240221 diff --git a/devel/elfutils/files/patch-config_Makefile.am b/devel/elfutils/files/patch-config_Makefile.am new file mode 100644 index 000000000000..82a815fda60d --- /dev/null +++ b/devel/elfutils/files/patch-config_Makefile.am @@ -0,0 +1,12 @@ +--- config/Makefile.am.orig 2022-04-25 20:56:39 UTC ++++ config/Makefile.am +@@ -38,9 +38,6 @@ if LIBDEBUGINFOD + pkgconfig_DATA += libdebuginfod.pc + + install-data-local: +- $(INSTALL_DATA) profile.sh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh +- $(INSTALL_DATA) profile.csh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh +- mkdir -p $(DESTDIR)$(sysconfdir)/debuginfod + if [ -n "@DEBUGINFOD_URLS@" ]; then \ + echo "@DEBUGINFOD_URLS@" > $(DESTDIR)$(sysconfdir)/debuginfod/elfutils.urls; \ + fi diff --git a/devel/elfutils/files/patch-configure.ac b/devel/elfutils/files/patch-configure.ac new file mode 100644 index 000000000000..8a9aee90c6b0 --- /dev/null +++ b/devel/elfutils/files/patch-configure.ac @@ -0,0 +1,27 @@ +--- configure.ac.orig 2022-04-26 17:30:35 UTC ++++ configure.ac +@@ -590,15 +590,15 @@ case "$ac_cv_search_fts_close" in + esac + AC_SUBST([fts_LIBS]) + +-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]) ;; +- -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;; +- *) obstack_LIBS= ;; +-esac +-AC_SUBST([obstack_LIBS]) ++#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]) ;; ++# -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;; ++# *) obstack_LIBS= ;; ++#esac ++#AC_SUBST([obstack_LIBS]) + + dnl The directories with content. + diff --git a/devel/elfutils/files/patch-debuginfod_debuginfod-client.c b/devel/elfutils/files/patch-debuginfod_debuginfod-client.c new file mode 100644 index 000000000000..6a9c844c9111 --- /dev/null +++ b/devel/elfutils/files/patch-debuginfod_debuginfod-client.c @@ -0,0 +1,47 @@ +--- debuginfod/debuginfod-client.c.orig 2022-04-26 18:12:52 UTC ++++ debuginfod/debuginfod-client.c +@@ -77,7 +77,7 @@ void debuginfod_end (debuginfod_client *c) { } + #include + #include + #include +-#include ++//#include + #include + #include + #include +@@ -1070,7 +1070,7 @@ debuginfod_query_server (debuginfod_client *c, + free (c->winning_headers); + c->winning_headers = NULL; + } +- if ( maxtime > 0 && clock_gettime(CLOCK_MONOTONIC_RAW, &start_time) == -1) ++ if ( maxtime > 0 && clock_gettime(CLOCK_MONOTONIC, &start_time) == -1) + { + rc = errno; + goto out2; +@@ -1081,7 +1081,7 @@ debuginfod_query_server (debuginfod_client *c, + /* Check to see how long querying is taking. */ + if (maxtime > 0) + { +- if (clock_gettime(CLOCK_MONOTONIC_RAW, &cur_time) == -1) ++ if (clock_gettime(CLOCK_MONOTONIC, &cur_time) == -1) + { + rc = errno; + goto out2; +@@ -1090,7 +1090,7 @@ debuginfod_query_server (debuginfod_client *c, + if ( delta > maxtime) + { + dprintf(vfd, "Timeout with max time=%lds and transfer time=%lds\n", maxtime, delta ); +- rc = -ETIME; ++ rc = -EINVAL; + goto out2; + } + } +@@ -1260,7 +1260,7 @@ debuginfod_query_server (debuginfod_client *c, + case CURLE_TOO_MANY_REDIRECTS: rc = -EMLINK; break; + case CURLE_SEND_ERROR: rc = -ECONNRESET; break; + case CURLE_RECV_ERROR: rc = -ECONNRESET; break; +- case CURLE_OPERATION_TIMEDOUT: rc = -ETIME; break; ++ case CURLE_OPERATION_TIMEDOUT: rc = -EINVAL; break; + case CURLE_HTTP_RETURNED_ERROR: + ok0 = curl_easy_getinfo (msg->easy_handle, + CURLINFO_RESPONSE_CODE, diff --git a/devel/elfutils/files/patch-lib_Makefile.am b/devel/elfutils/files/patch-lib_Makefile.am index 1acc2b47639e..feed71ace33d 100644 --- a/devel/elfutils/files/patch-lib_Makefile.am +++ b/devel/elfutils/files/patch-lib_Makefile.am @@ -1,12 +1,12 @@ ---- lib/Makefile.am.orig 2020-03-30 12:17:45 UTC +--- lib/Makefile.am.orig 2022-04-25 20:56:39 UTC +++ lib/Makefile.am @@ -35,7 +35,8 @@ noinst_LIBRARIES = libeu.a - libeu_a_SOURCES = xstrdup.c xstrndup.c xmalloc.c next_prime.c \ + libeu_a_SOURCES = xasprintf.c xstrdup.c xstrndup.c xmalloc.c next_prime.c \ crc32.c crc32_file.c \ -- color.c printversion.c -+ color.c printversion.c \ +- color.c error.c printversion.c ++ color.c error.c printversion.c \ + error.c obstack.c obstack_printf.c noinst_HEADERS = fixedsizehash.h libeu.h system.h dynamicsizehash.h list.h \ eu-config.h color.h printversion.h bpf.h \ diff --git a/devel/elfutils/files/patch-lib_error.c b/devel/elfutils/files/patch-lib_error.c index e80726187fbf..379bbbae032e 100644 --- a/devel/elfutils/files/patch-lib_error.c +++ b/devel/elfutils/files/patch-lib_error.c @@ -1,67 +1,70 @@ --- lib/error.c.orig 2016-07-13 06:58:54 UTC +++ lib/error.c @@ -0,0 +1,64 @@ +#include +#include +#include +#include + +#include "error.h" + +unsigned int error_message_count; +int error_one_per_line; +void (*error_print_progname)(void) = NULL; + +static const char *lastfile; +static unsigned lastline; + +/* Good enough. */ + +void +error_at_line(int status, int errnum, const char *fn, unsigned line, + const char *format, ...) +{ + va_list ap; + int serrno; + + if (error_one_per_line != 0 && fn != NULL && fn == lastfile && line == + lastline) + return; + + serrno = errno; + errno = errnum; + + fflush(stdout); + + if (error_print_progname != NULL) { + error_print_progname(); + fprintf(stderr, ":"); + } + + if (fn != NULL) { + lastfile = fn; + lastline = line; + + fprintf(stderr, "%s:%u: ", fn, line); + } else if (error_print_progname != NULL) { + fprintf(stderr, " "); + } + + va_start(ap, format); + if (status) { + if (errnum) + verr(status, format, ap); + else + verrx(status, format, ap); + } else { + if (errnum) + vwarn(format, ap); + else + vwarnx(format, ap); + } + va_end(ap); + + errno = serrno; + error_message_count++; +} + + /* Definitions for error fallback functions. + Copyright (C) 2021 Google, Inc. + This file is part of elfutils. diff --git a/devel/elfutils/files/patch-lib_eu-config.h b/devel/elfutils/files/patch-lib_eu-config.h index 04549063aa1c..c809d2dcc335 100644 --- a/devel/elfutils/files/patch-lib_eu-config.h +++ b/devel/elfutils/files/patch-lib_eu-config.h @@ -1,189 +1,189 @@ ---- lib/eu-config.h.orig 2020-03-30 12:17:45 UTC +--- lib/eu-config.h.orig 2022-04-25 20:56:39 UTC +++ lib/eu-config.h -@@ -176,6 +176,186 @@ asm (".section predict_data, \"aw\"; .previous\n" - #define ELFUTILS_HEADER(name) - +@@ -188,6 +188,186 @@ asm (".section predict_data, \"aw\"; .previous\n" + # define used_in_asm /* empty */ + #endif +/* FreeBSD ports of glibcisms */ +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define _GL_ATTRIBUTE_PURE __attribute__((__pure__)) + +struct obstack; +extern int obstack_printf(struct obstack *, const char *, ...); +extern int obstack_vprintf(struct obstack *, const char *, va_list); + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow" +#ifndef FREEBSD_HAS_MEMPCPY // fix for the build failure, see bug#258092: mempcpy and wmempcpy were added in commits: +// on 14: ee37f64cf875255338f917a9da76c643cf59786c on 2021-07-15 +// on 13: dba677d13b26ad5422133b2ab76486b74d63ade4 on 2021-07-22 +static inline void * +mempcpy(void * restrict dst, const void * restrict src, size_t len) +{ + + return (((char *)memcpy(dst, src, len)) + len); +} + +static inline wchar_t * +wmempcpy(wchar_t * restrict dst, const wchar_t * restrict src, size_t len) +{ + + return (wmemcpy(dst, src, len) + len); +} +#endif +#pragma GCC diagnostic pop + +static inline void * +rawmemchr(const void *s, int c) +{ + + return (memchr(s, c, SSIZE_MAX)); +} + +static inline void +tdestroy(void *vroot __unused, void (*freefct)(void *) __unused) +{ + + /* XXX: Just leak the memory for now. */ +} + +static inline char * +canonicalize_file_name(const char *path) +{ + + return (realpath(path, NULL)); +} + +/* + * A GNU-like basename(). + * + * Unlike POSIX basename(3), this version never modifies its argument. If the + * argument ends in a slash, it returns the empty string. + */ +static inline char * +eu_basename(const char *path) +{ + const char *slash; + + slash = strrchr(path, '/'); + if (slash != NULL) + slash++; + else + slash = path; + return (__DECONST(char *, slash)); +} +#ifdef basename +#undef basename +#endif +#define basename eu_basename + +#ifndef TEMP_FAILURE_RETRY +#define TEMP_FAILURE_RETRY(expr) ({ \ + long value; \ + do { \ + value = (long)(expr); \ + } while (value == -1 && errno == EINTR); \ + (value); \ +}) +#endif + +#define strndupa(s, n) \ +({ \ + size_t len = (n); \ + const char *end; \ + char *res; \ + \ + end = memchr((s), 0, (n)); \ + if (end != NULL) \ + len = end - (s); \ + \ + res = alloca(len + 1); \ + memcpy(res, (s), len); \ + res[len] = '\0'; \ + res; \ +}) + + +#define program_invocation_short_name __DECONST(char *, getprogname()) +#ifndef loff_t +#define loff_t off_t +#endif +#ifndef off64_t +#define off64_t off_t +#endif + +#define ftruncate64 ftruncate +#define open64 open +#define fstat64 fstat +#define stat64 stat +#define pread64 pread +#define mmap64 mmap +#define lseek64 lseek + +#define MAP_POPULATE MAP_PREFAULT_READ + +#define bswap_16 bswap16 +#define bswap_32 bswap32 +#define bswap_64 bswap64 + +/* + * Future versions of FreeBSD will provide proper versions of these _unlocked + * variants. These can and should be used instead, but won't be available + * until FreeBSD 11.4 and 12.2, at which point we should limit the scope of + * these to DragonFlyBSD. + */ +#ifndef fputc_unlocked +#define fputc_unlocked putc_unlocked +#endif +#define fputs_unlocked fputs +#define fwrite_unlocked fwrite +#define fread_unlocked fread + +#ifndef __BYTE_ORDER +#define __BYTE_ORDER _BYTE_ORDER +#endif +#ifndef __LITTLE_ENDIAN +#define __LITTLE_ENDIAN _LITTLE_ENDIAN +#endif +#ifndef __BIG_ENDIAN +#define __BIG_ENDIAN _BIG_ENDIAN +#endif + +#define DL_CALL_FCT(fn, args) ((fn) args) + +/* This package doesn't really respect --disable-nls. Hack it. */ +#if !ENABLE_NLS +/* Skip loading libintl.h, which is hardcoded in most source files: */ +#define _LIBINTL_H 1 +#define dgettext(module, str) (str) +#define gettext(str) (str) + +static inline char * +bindtextdomain(const char *d __unused, const char *dr __unused) +{ + + return ("/"); +} + +static inline char * +textdomain(const char *dom) +{ + + return (__DECONST(char *, dom)); +} + +#define ngettext(s, p, n) (((n) == 1) ? (s) : (p)) +#endif + #ifdef SYMBOL_VERSIONING - # define OLD_VERSION(name, version) \ - asm (".globl _compat." #version "." #name "\n" \ + # define NEW_INTDEF(name) __typeof (name) INTUSE(name) \ + __attribute__ ((alias ("_new." #name))) attribute_hidden; diff --git a/devel/elfutils/files/patch-libdw_Makefile.am b/devel/elfutils/files/patch-libdw_Makefile.am deleted file mode 100644 index 2d2f3545d3ac..000000000000 --- a/devel/elfutils/files/patch-libdw_Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ ---- libdw/Makefile.am.orig 2020-03-30 12:17:45 UTC -+++ libdw/Makefile.am -@@ -109,7 +109,7 @@ libdw_so_LIBS = ../libebl/libebl_pic.a ../backends/lib - ../libcpu/libcpu_pic.a libdw_pic.a ../libdwelf/libdwelf_pic.a \ - ../libdwfl/libdwfl_pic.a - libdw_so_DEPS = ../lib/libeu.a ../libelf/libelf.so --libdw_so_LDLIBS = $(libdw_so_DEPS) -ldl -lz $(argp_LDADD) $(zip_LIBS) -pthread -+libdw_so_LDLIBS = $(libdw_so_DEPS) -lz $(argp_LDADD) $(zip_LIBS) -pthread - libdw_so_SOURCES = - libdw.so$(EXEEXT): $(srcdir)/libdw.map $(libdw_so_LIBS) $(libdw_so_DEPS) - $(AM_V_CCLD)$(LINK) $(dso_LDFLAGS) -o $@ \ diff --git a/devel/elfutils/files/patch-libdwfl_dwfl__error.c b/devel/elfutils/files/patch-libdwfl_dwfl__error.c deleted file mode 100644 index 3a841a81d7aa..000000000000 --- a/devel/elfutils/files/patch-libdwfl_dwfl__error.c +++ /dev/null @@ -1,22 +0,0 @@ ---- libdwfl/dwfl_error.c.orig 2016-12-25 13:36:55 UTC -+++ libdwfl/dwfl_error.c -@@ -136,7 +136,7 @@ __libdwfl_seterrno (Dwfl_Error error) - global_error = canonicalize (error); - } - -- -+static __thread char strerr_buf[64]; - const char * - dwfl_errmsg (int error) - { -@@ -154,7 +154,9 @@ dwfl_errmsg (int error) - switch (error &~ 0xffff) - { - case OTHER_ERROR (ERRNO): -- return strerror_r (error & 0xffff, "bad", 0); -+ strcpy(strerr_buf, "bad"); -+ (void)strerror_r (error & 0xffff, strerr_buf, sizeof strerr_buf); -+ return strerr_buf; - case OTHER_ERROR (LIBELF): - return elf_errmsg (error & 0xffff); - case OTHER_ERROR (LIBDW): diff --git a/devel/elfutils/files/patch-libelf_elf__update.c b/devel/elfutils/files/patch-libelf_elf__update.c deleted file mode 100644 index 1ce9a75387ef..000000000000 --- a/devel/elfutils/files/patch-libelf_elf__update.c +++ /dev/null @@ -1,18 +0,0 @@ ---- libelf/elf_update.c.orig 2020-03-30 12:17:45 UTC -+++ libelf/elf_update.c -@@ -106,9 +106,13 @@ write_file (Elf *elf, int64_t size, int change_bo, siz - if (elf->cmd == ELF_C_RDWR_MMAP - && (size_t) size > elf->maximum_size) - { -- if (mremap (elf->map_address, elf->maximum_size, -- size, 0) == MAP_FAILED) -+ if (munmap (elf->map_address, elf->maximum_size) != 0 || -+ mmap (elf->map_address, size, PROT_READ | PROT_WRITE, -+ MAP_SHARED | MAP_FIXED | MAP_EXCL, elf->fildes, -+ 0) == MAP_FAILED) - { -+ elf->map_address = NULL; -+ elf->flags &= ~ELF_F_MMAPPED; - __libelf_seterrno (ELF_E_WRITE_ERROR); - return -1; - } diff --git a/devel/elfutils/files/patch-src_readelf.c b/devel/elfutils/files/patch-src_readelf.c deleted file mode 100644 index 77d8d89ac8f5..000000000000 --- a/devel/elfutils/files/patch-src_readelf.c +++ /dev/null @@ -1,10 +0,0 @@ ---- src/readelf.c.orig 2020-03-30 12:17:45 UTC -+++ src/readelf.c -@@ -10744,6 +10744,7 @@ print_debug_exception_table (Dwfl_Module *dwflmod __at - default: - dsize = 0; - error (1, 0, gettext ("invalid TType encoding")); -+ abort(); - } - - if (max_ar_filter diff --git a/devel/elfutils/files/patch-tests_Makefile.am b/devel/elfutils/files/patch-tests_Makefile.am index 09a86b266a15..b7d2991d0940 100644 --- a/devel/elfutils/files/patch-tests_Makefile.am +++ b/devel/elfutils/files/patch-tests_Makefile.am @@ -1,111 +1,61 @@ ---- tests/Makefile.am.orig 2020-03-30 12:17:45 UTC +--- tests/Makefile.am.orig 2022-04-25 20:56:39 UTC +++ tests/Makefile.am -@@ -537,7 +537,7 @@ libasm = -lasm - libebl = -lebl - else !STANDALONE +@@ -624,7 +624,7 @@ installcheck-local: + LOG_COMPILER="$(installed_LOG_COMPILER)" check-TESTS + if BUILD_STATIC -libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl -lpthread +libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -lpthread libelf = ../libelf/libelf.a -lz libasm = ../libasm/libasm.a else -@@ -552,16 +552,16 @@ endif !STANDALONE - arextract_LDADD = $(libelf) - arsymtest_LDADD = $(libelf) - newfile_LDADD = $(libelf) --saridx_LDADD = $(libelf) -+saridx_LDADD = $(libeu) $(libelf) - scnnames_LDADD = $(libelf) --sectiondump_LDADD = $(libelf) -+sectiondump_LDADD = $(libeu) $(libelf) - showptable_LDADD = $(libelf) - hash_LDADD = $(libelf) - test_nlist_LDADD = $(libelf) - msg_tst_LDADD = $(libelf) - newscn_LDADD = $(libelf) --early_offscn_LDADD = $(libelf) --ecp_LDADD = $(libelf) -+early_offscn_LDADD = $(libeu) $(libelf) -+ecp_LDADD = $(libeu) $(libelf) - update1_LDADD = $(libelf) - update2_LDADD = $(libelf) - update3_LDADD = $(libdw) $(libelf) -@@ -575,12 +575,12 @@ get_files_LDADD = $(libdw) $(libelf) +@@ -662,12 +662,12 @@ get_files_LDADD = $(libdw) $(libelf) next_files_LDADD = $(libdw) $(libelf) get_aranges_LDADD = $(libdw) $(libelf) allfcts_LDADD = $(libdw) $(libelf) -line2addr_LDADD = $(libdw) $(argp_LDADD) -addrscopes_LDADD = $(libdw) $(argp_LDADD) -funcscopes_LDADD = $(libdw) $(argp_LDADD) -funcretval_LDADD = $(libdw) $(argp_LDADD) -allregs_LDADD = $(libdw) $(argp_LDADD) -find_prologues_LDADD = $(libdw) $(argp_LDADD) +line2addr_LDADD = $(libeu) $(libdw) $(argp_LDADD) +addrscopes_LDADD = $(libeu) $(libdw) $(argp_LDADD) +funcscopes_LDADD = $(libeu) $(libdw) $(argp_LDADD) +funcretval_LDADD = $(libeu) $(libdw) $(argp_LDADD) +allregs_LDADD = $(libeu) $(libdw) $(argp_LDADD) +find_prologues_LDADD = $(libeu) $(libdw) $(argp_LDADD) #show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf) asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) -@@ -592,13 +592,13 @@ asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libdw +@@ -679,13 +679,13 @@ asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libdw asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) -rdwrmmap_LDADD = $(libelf) +rdwrmmap_LDADD = $(libeu) $(libelf) dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf) arls_LDADD = $(libelf) dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf) dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf) -dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf) -dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) +dwfl_bug_getmodules_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) +dwfl_addr_sect_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) $(argp_LDADD) dwarf_getmacros_LDADD = $(libdw) dwarf_ranges_LDADD = $(libdw) dwarf_getstring_LDADD = $(libdw) -@@ -612,10 +612,10 @@ typeiter2_LDADD = $(libdw) $(libelf) +@@ -699,10 +699,10 @@ typeiter2_LDADD = $(libdw) $(libelf) low_high_pc_LDADD = $(libdw) $(libelf) $(argp_LDADD) test_elf_cntl_gelf_getshdr_LDADD = $(libelf) dwflsyms_LDADD = $(libdw) $(libelf) $(argp_LDADD) -dwfllines_LDADD = $(libdw) $(libelf) $(argp_LDADD) -dwfl_report_elf_align_LDADD = $(libdw) +dwfllines_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD) +dwfl_report_elf_align_LDADD = $(libeu) $(libdw) dwfl_report_segment_contiguous_LDADD = $(libdw) $(libebl) $(libelf) -varlocs_LDADD = $(libdw) $(libelf) $(argp_LDADD) +varlocs_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD) backtrace_LDADD = $(libdw) $(libelf) $(argp_LDADD) # backtrace-child-biarch also uses those *_CFLAGS and *_LDLAGS variables: backtrace_child_CFLAGS = $(fpie_CFLAGS) -@@ -624,23 +624,23 @@ backtrace_child_biarch_SOURCES = backtrace-child.c - backtrace_data_LDADD = $(libdw) $(libelf) - backtrace_dwarf_CFLAGS = -Wno-unused-parameter - backtrace_dwarf_LDADD = $(libdw) $(libelf) --debuglink_LDADD = $(libdw) $(libelf) --debugaltlink_LDADD = $(libdw) $(libelf) --buildid_LDADD = $(libdw) $(libelf) -+debuglink_LDADD = $(libeu) $(libdw) $(libelf) -+debugaltlink_LDADD = $(libeu) $(libdw) $(libelf) -+buildid_LDADD = $(libeu) $(libdw) $(libelf) - deleted_LDADD = ./deleted-lib.so - deleted_lib_so_LDFLAGS = -shared - deleted_lib_so_CFLAGS = $(fpic_CFLAGS) -fasynchronous-unwind-tables - aggregate_size_LDADD = $(libdw) $(libelf) $(argp_LDADD) - peel_type_LDADD = $(libdw) $(libelf) $(argp_LDADD) - vdsosyms_LDADD = $(libdw) $(libelf) --getsrc_die_LDADD = $(libdw) $(libelf) -+getsrc_die_LDADD = $(libeu) $(libdw) $(libelf) - strptr_LDADD = $(libelf) - newdata_LDADD = $(libelf) - elfstrtab_LDADD = $(libelf) - dwfl_proc_attach_LDADD = $(libdw) - dwfl_proc_attach_LDFLAGS = -pthread $(AM_LDFLAGS) - elfshphehdr_LDADD =$(libelf) --elfstrmerge_LDADD = $(libdw) $(libelf) -+elfstrmerge_LDADD = $(libeu) $(libdw) $(libelf) - dwelfgnucompressed_LDADD = $(libelf) $(libdw) - elfgetchdr_LDADD = $(libelf) $(libdw) - elfgetzdata_LDADD = $(libelf) diff --git a/devel/elfutils/pkg-plist b/devel/elfutils/pkg-plist index f33c949034e5..dc90b20d20a6 100644 --- a/devel/elfutils/pkg-plist +++ b/devel/elfutils/pkg-plist @@ -1,55 +1,73 @@ +bin/debuginfod-find bin/eu-addr2line bin/eu-ar bin/eu-elfclassify bin/eu-elfcmp bin/eu-elfcompress bin/eu-elflint bin/eu-findtextrel bin/eu-make-debug-archive bin/eu-nm bin/eu-objdump bin/eu-ranlib bin/eu-readelf bin/eu-size bin/eu-stack bin/eu-strings bin/eu-strip bin/eu-unstrip include/dwarf.h +include/elfutils/debuginfod.h include/elfutils/elf-knowledge.h include/elfutils/known-dwarf.h include/elfutils/libasm.h include/elfutils/libdw.h include/elfutils/libdwelf.h include/elfutils/libdwfl.h include/elfutils/version.h include/gelf.h include/libelf.h include/nlist.h lib/libasm-%%VERSION%%.so lib/libasm.a lib/libasm.so lib/libasm.so.1 +lib/libdebuginfod-%%VERSION%%.so +lib/libdebuginfod.so +lib/libdebuginfod.so.1 lib/libdw-%%VERSION%%.so lib/libdw.a lib/libdw.so lib/libdw.so.1 lib/libelf-%%VERSION%%.so lib/libelf.a lib/libelf.so lib/libelf.so.1 +libdata/pkgconfig/libdebuginfod.pc libdata/pkgconfig/libdw.pc libdata/pkgconfig/libelf.pc +%%MANPAGES%%man/man1/debuginfod-find.1.gz %%MANPAGES%%man/man1/eu-elfclassify.1.gz %%MANPAGES%%man/man1/eu-readelf.1.gz +%%MANPAGES%%man/man3/debuginfod_add_http_header.3.gz +%%MANPAGES%%man/man3/debuginfod_begin.3.gz +%%MANPAGES%%man/man3/debuginfod_end.3.gz +%%MANPAGES%%man/man3/debuginfod_find_debuginfo.3.gz +%%MANPAGES%%man/man3/debuginfod_find_executable.3.gz +%%MANPAGES%%man/man3/debuginfod_find_source.3.gz +%%MANPAGES%%man/man3/debuginfod_get_url.3.gz +%%MANPAGES%%man/man3/debuginfod_get_user_data.3.gz +%%MANPAGES%%man/man3/debuginfod_set_progressfn.3.gz +%%MANPAGES%%man/man3/debuginfod_set_user_data.3.gz %%MANPAGES%%man/man3/elf_begin.3.gz %%MANPAGES%%man/man3/elf_clone.3.gz %%MANPAGES%%man/man3/elf_getdata.3.gz %%MANPAGES%%man/man3/elf_update.3.gz +%%MANPAGES%%man/man7/debuginfod-client-config.7.gz %%NLS%%share/locale/de/LC_MESSAGES/elfutils.mo %%NLS%%share/locale/en@boldquot/LC_MESSAGES/elfutils.mo %%NLS%%share/locale/en@quot/LC_MESSAGES/elfutils.mo %%NLS%%share/locale/es/LC_MESSAGES/elfutils.mo %%NLS%%share/locale/ja/LC_MESSAGES/elfutils.mo %%NLS%%share/locale/pl/LC_MESSAGES/elfutils.mo %%NLS%%share/locale/uk/LC_MESSAGES/elfutils.mo