]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/commitdiff
elfutils: Correctly configure debuginfod master
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 6 Oct 2023 16:50:25 +0000 (16:50 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 6 Oct 2023 16:50:25 +0000 (16:50 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
elfutils/elfutils.nm

index 4fdb6d955de79f062ce1555c503c738b01e0e6c3..61220a3d0c16a8ca38c6473dd13a838ce20d2e10 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = elfutils
 version    = 0.189
-release    = 1
+release    = 2
 
 groups     = Development/Libraries
 url        = https://sourceware.org/elfutils/
@@ -24,6 +24,8 @@ source_dl  = https://sourceware.org/elfutils/ftp/%{version}/
 sources    = %{thisapp}.tar.bz2
 
 build
+       DEBUGINFOD_URLS = "https://pakfire.ipfire.org/"
+
        requires
                bzip2-devel
                curl-devel
@@ -39,6 +41,11 @@ build
        test
                make check
        end
+
+       install_cmds
+               # Export DEBUGINFOD_URLS
+               echo "%{DEBUGINFOD_URLS}" > %{BUILDROOT}%{sysconfdir}/debuginfod/%{DISTRO_SNAME}.urls
+       end
 end
 
 packages
@@ -56,8 +63,11 @@ packages
        package %{name}-libs
                template LIBS
 
-               files += %{libdir}/lib*%{version}.so
-               files += %{libdir}/elfutils
+               files
+                       %{sysconfdir}/debuginfod
+                       %{sysconfdir}/profile.d/debuginfod*
+                       %{libdir}/lib*%{version}.so
+               end
        end
 
        package %{name}-debuginfo