Blame debugsubpkg.diff

Bernhard M. Wiedemann 1250f9
--- ./scripts/find-debuginfo.sh.orig	2017-12-01 15:35:59.023537837 +0000
Bernhard M. Wiedemann 1250f9
+++ ./scripts/find-debuginfo.sh	2017-12-01 15:36:30.351447397 +0000
Bernhard M. Wiedemann 1250f9
@@ -548,19 +548,25 @@ if $run_dwz \
Bernhard M. Wiedemann 1250f9
   fi
Bernhard M. Wiedemann 1250f9
 fi
Bernhard M. Wiedemann 1250f9
 
Bernhard M. Wiedemann 1250f9
-# For each symlink whose target has a .debug file,
Bernhard M. Wiedemann 1250f9
-# make a .debug symlink to that file.
Bernhard M. Wiedemann 1250f9
-find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*" -type l -print |
Bernhard M. Wiedemann 1250f9
-while read f
Bernhard M. Wiedemann 1250f9
-do
Bernhard M. Wiedemann 1250f9
-  t=$(readlink -m "$f").debug
Bernhard M. Wiedemann 1250f9
-  f=${f#$RPM_BUILD_ROOT}
Bernhard M. Wiedemann 1250f9
-  t=${t#$RPM_BUILD_ROOT}
Bernhard M. Wiedemann 1250f9
-  if [ -f "$debugdir$t" ]; then
Bernhard M. Wiedemann 1250f9
-    echo "symlinked /usr/lib/debug$t to /usr/lib/debug${f}.debug"
Bernhard M. Wiedemann 1250f9
-    debug_link "/usr/lib/debug$t" "${f}.debug"
Bernhard M. Wiedemann 1250f9
-  fi
Bernhard M. Wiedemann 1250f9
-done
Bernhard M. Wiedemann 1250f9
+# We used to make a .debug symlink for each symlink whose target
Bernhard M. Wiedemann 1250f9
+# has a .debug file to that file.  This is not necessary because
Bernhard M. Wiedemann 1250f9
+# the debuglink section contains only the destination of those links.
Bernhard M. Wiedemann 1250f9
+# Creating those links anyway results in debuginfo packages for
Bernhard M. Wiedemann 1250f9
+# devel packages just because of the .so symlinks in them.
Bernhard M. Wiedemann 1250f9
+
Bernhard M. Wiedemann 1250f9
+## For each symlink whose target has a .debug file,
Bernhard M. Wiedemann 1250f9
+## make a .debug symlink to that file.
Bernhard M. Wiedemann 1250f9
+#find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*" -type l -print |
Bernhard M. Wiedemann 1250f9
+#while read f
Bernhard M. Wiedemann 1250f9
+#do
Bernhard M. Wiedemann 1250f9
+#  t=$(readlink -m "$f").debug
Bernhard M. Wiedemann 1250f9
+#  f=${f#$RPM_BUILD_ROOT}
Bernhard M. Wiedemann 1250f9
+#  t=${t#$RPM_BUILD_ROOT}
Bernhard M. Wiedemann 1250f9
+#  if [ -f "$debugdir$t" ]; then
Bernhard M. Wiedemann 1250f9
+#    echo "symlinked /usr/lib/debug$t to /usr/lib/debug${f}.debug"
Bernhard M. Wiedemann 1250f9
+#    debug_link "/usr/lib/debug$t" "${f}.debug"
Bernhard M. Wiedemann 1250f9
+#  fi
Bernhard M. Wiedemann 1250f9
+#done
Bernhard M. Wiedemann 1250f9
 
Bernhard M. Wiedemann 1250f9
 if [ -s "$SOURCEFILE" ]; then
Bernhard M. Wiedemann 1250f9
   # See also debugedit invocation. Directories must match up.