Skip to content

Commit

Permalink
main/elfutils: enable debuginfod
Browse files Browse the repository at this point in the history
  • Loading branch information
q66 committed Jun 5, 2024
1 parent 17a226a commit 123011c
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 3 deletions.
1 change: 1 addition & 0 deletions main/debuginfod
1 change: 1 addition & 0 deletions main/debuginfod-libs
14 changes: 14 additions & 0 deletions main/elfutils/patches/install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- a/config/Makefile.in
+++ b/config/Makefile.in
@@ -569,8 +569,9 @@ uninstall-am: uninstall-local uninstall-pkgconfigDATA


@LIBDEBUGINFOD_TRUE@install-data-local:
-@LIBDEBUGINFOD_TRUE@ $(INSTALL_DATA) profile.sh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh
-@LIBDEBUGINFOD_TRUE@ $(INSTALL_DATA) profile.csh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh
+@LIBDEBUGINFOD_TRUE@ $(INSTALL) -d $(DESTDIR)$(sysconfdir)/profile.d
+@LIBDEBUGINFOD_TRUE@ $(INSTALL_DATA) profile.sh $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh
+@LIBDEBUGINFOD_TRUE@ $(INSTALL_DATA) profile.csh $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh
@LIBDEBUGINFOD_TRUE@ mkdir -p $(DESTDIR)$(sysconfdir)/debuginfod
@LIBDEBUGINFOD_TRUE@ if [ -n "@DEBUGINFOD_URLS@" ]; then \
@LIBDEBUGINFOD_TRUE@ echo "@DEBUGINFOD_URLS@" > $(DESTDIR)$(sysconfdir)/debuginfod/elfutils.urls; \
10 changes: 10 additions & 0 deletions main/elfutils/patches/unused-private-field.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/debuginfod/debuginfod.cxx
+++ b/debuginfod/debuginfod.cxx
@@ -1445,7 +1445,6 @@ private:

map<key,fdcache_entry> entries; // optimized for lookup
time_t last_cleaning;
- long max_fds;
long max_mbs;

public:
26 changes: 23 additions & 3 deletions main/elfutils/template.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
pkgname = "elfutils"
pkgver = "0.191"
pkgrel = 0
pkgrel = 1
build_style = "gnu_configure"
configure_args = [
"--disable-debuginfod",
"--disable-libdebuginfod",
"--disable-nls",
"--disable-werror",
"--enable-deterministic-archives",
Expand All @@ -25,6 +23,7 @@
"bzip2-devel",
"libarchive-devel",
"libcurl-devel",
"libmicrohttpd-devel",
"linux-headers",
"musl-bsd-headers",
"musl-fts-devel",
Expand Down Expand Up @@ -61,6 +60,27 @@ def post_install(self):
)


@subpackage("debuginfod")
def _dinfod(self):
self.pkgdesc = f"{pkgdesc} (debuginfod)"

return [
"usr/bin/debuginfod*",
"usr/share/man/man[18]/debuginfod*",
]


@subpackage("debuginfod-libs")
def _dinfod_libs(self):
self.pkgdesc = f"{pkgdesc} (debuginfod library)"

return [
"etc/profile.d",
"usr/lib/libdebuginfod.so.*",
"usr/lib/libdebuginfod-*.so",
]


@subpackage("elfutils-libs")
def _libs(self):
# since the resolved (after symlinks) filename of the .so is without
Expand Down

0 comments on commit 123011c

Please sign in to comment.