diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-11 15:32:35 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-02-02 16:44:15 -0800 |
commit | 57fb1c0132befd63276bf10180e4e29a0b44d9f7 (patch) | |
tree | 6588a9eff4ed08980437023545568fc0fea20e17 /autodeps | |
parent | f8e026a6a15c0b384138b535eb49bf12a31367e1 (diff) | |
download | rpm-57fb1c0132befd63276bf10180e4e29a0b44d9f7.tar.gz rpm-57fb1c0132befd63276bf10180e4e29a0b44d9f7.tar.bz2 rpm-57fb1c0132befd63276bf10180e4e29a0b44d9f7.zip |
Let debuginfo packages provide the build-id
This patch lets debuginfo packages provide build-id like follows:
debuginfo(build-id) = c63cb23876c5fa85f36beaff58f8557e1bf22517
Users can therefore ask zypper to install the correct debuginfo package
with:
zypper install -C "debuginfo(build-id) = c63cb23876c5fa85f36beaff58f8557e1bf22517"
Diffstat (limited to 'autodeps')
-rw-r--r-- | autodeps/linux.prov | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/autodeps/linux.prov b/autodeps/linux.prov index 166743dca..f88888466 100644 --- a/autodeps/linux.prov +++ b/autodeps/linux.prov @@ -5,6 +5,9 @@ IFS=$'\n' filelist=($(cat)) +debuginfolist=($(printf "%s\n" "${filelist[@]}" | grep "/usr/lib/debug/")) +filelist=($(printf "%s\n" "${filelist[@]}" | grep -v "/usr/lib/debug/")) + solist=($(printf "%s\n" "${filelist[@]}" | grep "\\.so" | grep -v "^/lib/ld.so" | \ tr '\n' '\0' | xargs -0 -r file -L | grep "ELF.*shared object" | \ cut -d: -f1)) @@ -65,6 +68,11 @@ done | sort -u printf "%s\n" "${firmwarelist[@]}" | /usr/lib/rpm/firmware.prov | sort -u # +# --- debuginfo files +[ -x /usr/lib/rpm/debuginfo.prov -a -n "$debuginfolist" ] && + printf "%s\n" "${debuginfolist[@]}" | /usr/lib/rpm/debuginfo.prov | sort -u + +# # --- Mono exes/dlls : ${MONO_PREFIX=/usr} if [ -x $MONO_PREFIX/bin/mono -a -n "$monolist" ] ; then |