Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/libmakepkg/tidy/strip.sh.in
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2016-12-05 15:12:03 +1000
committerAllan McRae <allan@archlinux.org>2016-12-05 15:12:03 +1000
commit5fbb361261d6a697f891dc4bfc4e504c4ca363bf (patch)
tree7bdda990838eb07f2adf5b64b7965c2dcd51cad9 /scripts/libmakepkg/tidy/strip.sh.in
parenta79c0038ae84c38fe063bd7426a839f3c01c10e8 (diff)
Revert "[RFC] Provide source files for useful debug packages"
This reverts commit a79c0038ae84c38fe063bd7426a839f3c01c10e8. I merged the wrong branch into master...
Diffstat (limited to 'scripts/libmakepkg/tidy/strip.sh.in')
-rw-r--r--scripts/libmakepkg/tidy/strip.sh.in20
1 files changed, 1 insertions, 19 deletions
diff --git a/scripts/libmakepkg/tidy/strip.sh.in b/scripts/libmakepkg/tidy/strip.sh.in
index bd5c79a0..1c7aacfd 100644
--- a/scripts/libmakepkg/tidy/strip.sh.in
+++ b/scripts/libmakepkg/tidy/strip.sh.in
@@ -35,11 +35,6 @@ build_id() {
LANG=C readelf -n $1 | sed -n '/Build ID/ { s/.*: //p; q; }'
}
-source_files() {
- LANG=C readelf $1 --debug-dump | \
- awk '/DW_AT_name +:/{name=$8}/DW_AT_comp_dir +:/{print $8 "/" name}'
-}
-
strip_file() {
local binary=$1; shift
@@ -55,18 +50,6 @@ strip_file() {
return
fi
- # copy source files to debug directory
- local f t
- for f in $(source_files "$binary"); do
- t=${f/$srcdir/$dbgsrc}
- mkdir -p "${t%/*}"
- cp "$f" "$t"
- done
-
- # adjust debug symbols to point at sources
- debugedit -b "${srcdir}" -d /usr/src/debug/ -i "$binary" &> /dev/null
-
- # copy debug symbols to debug directory
mkdir -p "$dbgdir/${binary%/*}"
objcopy --only-keep-debug "$binary" "$dbgdir/$binary.debug"
objcopy --add-gnu-debuglink="$dbgdir/${binary#/}.debug" "$binary"
@@ -106,8 +89,7 @@ tidy_strip() {
if check_option "debug" "y"; then
dbgdir="$pkgdir-@DEBUGSUFFIX@/usr/lib/debug"
- dbgsrc="$pkgdir-@DEBUGSUFFIX@/usr/src/debug"
- mkdir -p "$dbgdir" "$dbgsrc"
+ mkdir -p "$dbgdir"
fi
local binary strip_flags