Skip to content

Commit

Permalink
Convert debuginfo generator to a parametric generator
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
  • Loading branch information
ignatenkobrain authored and pmatilai committed Apr 21, 2020
1 parent 232cb6f commit 5d8c6e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
8 changes: 6 additions & 2 deletions fileattrs/debuginfo.attr
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
%__debuginfo_provides %{_rpmconfigdir}/debuginfo.prov
%__debuginfo_path ^/usr/lib/debug/
%__debuginfo_provides() %{lua:
local file = rpm.expand("%1")
local b1, b2 = file:match("/([0-9a-f]+)/([0-9a-f]+)\.debug$")
print(string.format("debuginfo(build-id) = %s%s\\n", b1, b2))
}
%__debuginfo_path ^/usr/lib/debug/.build-id/[^/]+/[^/]+\\.debug$
2 changes: 0 additions & 2 deletions scripts/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ EXTRA_DIST = \
brp-strip-shared brp-strip-static-archive \
check-files check-prereqs \
check-buildroot check-rpaths check-rpaths-worker \
debuginfo.prov \
find-debuginfo.sh find-lang.sh \
perl.prov perl.req pythondistdeps.py \
rpmdb_dump rpmdb_load \
Expand All @@ -29,7 +28,6 @@ rpmconfig_SCRIPTS = \
brp-strip-shared brp-strip-static-archive \
check-files check-prereqs \
check-buildroot check-rpaths check-rpaths-worker \
debuginfo.prov \
find-lang.sh find-requires find-provides \
perl.prov perl.req pythondistdeps.py \
pkgconfigdeps.sh libtooldeps.sh \
Expand Down
14 changes: 0 additions & 14 deletions scripts/debuginfo.prov

This file was deleted.

0 comments on commit 5d8c6e5

Please sign in to comment.