summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-11 15:42:33 -0700
committerAnas Nashif <anas.nashif@intel.com>2013-02-02 16:44:15 -0800
commit60a7baa20753d2be16fe39fbf5e49e4c8a7fcfcc (patch)
treee1216d7359a245b5ddad408f38bdbe9fec948ac0 /scripts
parent57fb1c0132befd63276bf10180e4e29a0b44d9f7 (diff)
downloadlibrpm-tizen-60a7baa20753d2be16fe39fbf5e49e4c8a7fcfcc.tar.gz
librpm-tizen-60a7baa20753d2be16fe39fbf5e49e4c8a7fcfcc.tar.bz2
librpm-tizen-60a7baa20753d2be16fe39fbf5e49e4c8a7fcfcc.zip
Create a debuginfo package for each subpackage.
Originally from opensuse rpm
Diffstat (limited to 'scripts')
-rw-r--r--scripts/find-debuginfo.sh23
1 files changed, 10 insertions, 13 deletions
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
index 9925626e2..a42858203 100644
--- a/scripts/find-debuginfo.sh
+++ b/scripts/find-debuginfo.sh
@@ -149,6 +149,11 @@ debug_link()
# Provide .2, .3, ... symlinks to all filename instances of this build-id.
make_id_dup_link()
{
+ # See https://bugzilla.redhat.com/show_bug.cgi?id=641377 for the reasoning,
+ # but it has seveal drawbacks as we would need to split the .1 suffixes into
+ # different subpackages and it's about impossible to predict the number
+ # -> perhaps later
+ return
local id="$1" file="$2" idfile
local n=1
@@ -311,19 +316,11 @@ while read nlinks inum f; do
fi
done || exit
-# For each symlink whose target has a .debug file,
-# make a .debug symlink to that file.
-find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*" -type l -print |
-while read f
-do
- t=$(readlink -m "$f").debug
- f=${f#$RPM_BUILD_ROOT}
- t=${t#$RPM_BUILD_ROOT}
- if [ -f "$debugdir$t" ]; then
- echo "symlinked /usr/lib/debug$t to /usr/lib/debug${f}.debug"
- debug_link "/usr/lib/debug$t" "${f}.debug"
- fi
-done
+# We used to make a .debug symlink for each symlink whose target
+# has a .debug file to that file. This is not necessary because
+# the debuglink section contains only the destination of those links.
+# Creating those links anyway results in debuginfo packages for
+# devel packages just because of the .so symlinks in them.
if [ -s "$SOURCEFILE" ]; then
mkdir -p "${RPM_BUILD_ROOT}/usr/src/debug"