Convert debuginfo generator to a parametric generator
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
This commit is contained in:
parent
232cb6fee6
commit
5d8c6e537f
|
@ -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$
|
||||
|
|
|
@ -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 \
|
||||
|
@ -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 \
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
while read instfile; do
|
||||
case "$instfile" in
|
||||
*/usr/lib/debug/.build-id/*.debug)
|
||||
if [ -f "$instfile" ]; then
|
||||
BUILDID=$(echo "$instfile" | sed -ne 's|.*/usr/lib/debug/.build-id/\([0-9a-f]\+\)/\([0-9a-f]\+\)\.debug|\1\2|p')
|
||||
if [ -n "$BUILDID" ]; then
|
||||
echo "debuginfo(build-id) = $BUILDID"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
Loading…
Reference in New Issue