summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2021-03-02 16:04:14 +0100
committerAndras Timar <andras.timar@collabora.com>2021-03-30 16:33:39 +0200
commitbce333fb5b548e2c85c183dae5c3780eab145d8c (patch)
tree4bddee34303243e1153072917752d569ff34eb6e
parent[cp] fix %product and %description lines for debug deb packages (diff)
downloadcore-bce333fb5b548e2c85c183dae5c3780eab145d8c.tar.gz
core-bce333fb5b548e2c85c183dae5c3780eab145d8c.zip
[cp] fix packaging of pyuno-debuginfo
Change-Id: I9c14835fdbfd660bd3a88f8a9bf96f3b85991d6a
-rwxr-xr-xbin/pack-debug8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/pack-debug b/bin/pack-debug
index dd4d9fe23256..4aa9e3e64c17 100755
--- a/bin/pack-debug
+++ b/bin/pack-debug
@@ -133,7 +133,7 @@ do
# create stripped libraries and linked debug info files
- for j in $(cat $i | awk '/^%attr.*[.](so|bin)([.].*)?"$/{print$2}')
+ for j in $(cat $i | awk '/^%attr.*libpython.*[.]so.*-gdb[.]py.*?"$/{next} /^%attr.*[.](so|bin)([.].*)?"$/{print$2}')
do
so=$(echo $j | tr -d '"')
cd ./$(dirname $so)
@@ -160,6 +160,7 @@ do
cat $i | awk '
/^Name:/ { print "Summary: Debug information for package "$2; print $0"-debuginfo";next }
/^Group:/ { print $1" Development/Debug";next }
+ /^%attr.*libpython.*[.]so.*-gdb[.]py.*?"$/ { next }
/^%attr.*[.](so|bin)([.].*)?"$/ { print substr($0, 1, length($0) - 1)".dbg\""; next }
/^%attr/ || /^Summary:/ { next }
{print}
@@ -267,7 +268,7 @@ do
# create stripped libraries and linked debug info files
- for j in $(cat $i | awk '/^f .*[.](so|bin)([.].*)?$/{print$6}')
+ for j in $(cat $i | awk '/^f .*libpython.*[.]so.*-gdb[.]py.*$/{next} /^f .*[.](so|bin)([.].*)?$/{print$6}')
do
cd $(dirname $j)
so=$(basename $j)
@@ -290,6 +291,7 @@ do
cat $i | awk '
/^%product/ { print gensub("%product", "%product Debug info package of", "", $0);next }
/^%description/ { print gensub("%description", "%description Debug info package of", "", $0);next }
+ /^f .*libpython.*[.]so.*-gdb[.]py.*$/ { next }
/^f .*[.](so|bin)([.].*)?$/ { print $1,$2,$3,$4,$5".dbg",$6".dbg"; next }
/^[cf] / { next }
{print}
@@ -300,7 +302,7 @@ do
# restore original non stripped library files
- for j in $(cat $i | awk '/^f .*[.](so|bin)([.].*)?$/{print$6}')
+ for j in $(cat $i | awk '/^f .*libpython.*[.]so.*-gdb[.]py.*$/{next} /^f .*[.](so|bin)([.].*)?$/{print$6}')
do
cd $(dirname $j)
so=$(basename $j)