mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
makepkg: use dash instead of underscore in /usr/lib/debug/.build-id
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
d8b09e6656
commit
6103183253
@ -1532,7 +1532,7 @@ strip_file() {
|
|||||||
|
|
||||||
# has this file already been stripped
|
# has this file already been stripped
|
||||||
if [[ -n "$bid" ]]; then
|
if [[ -n "$bid" ]]; then
|
||||||
if [[ -f "$dbgdir/.build_id/${bid:0:2}/${bid:2}.debug" ]]; then
|
if [[ -f "$dbgdir/.build-id/${bid:0:2}/${bid:2}.debug" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
elif [[ -f "$dbgdir/$binary.debug" ]]; then
|
elif [[ -f "$dbgdir/$binary.debug" ]]; then
|
||||||
@ -1553,15 +1553,15 @@ strip_file() {
|
|||||||
|
|
||||||
if [[ -n "$bid" ]]; then
|
if [[ -n "$bid" ]]; then
|
||||||
local target
|
local target
|
||||||
mkdir -p "$dbgdir/.build_id/${bid:0:2}"
|
mkdir -p "$dbgdir/.build-id/${bid:0:2}"
|
||||||
|
|
||||||
target="../../../../../${binary#./}"
|
target="../../../../../${binary#./}"
|
||||||
target="${target/..\/..\/usr\/lib\/}"
|
target="${target/..\/..\/usr\/lib\/}"
|
||||||
target="${target/..\/usr\/}"
|
target="${target/..\/usr\/}"
|
||||||
ln -s "$target" "$dbgdir/.build_id/${bid:0:2}/${bid:2}"
|
ln -s "$target" "$dbgdir/.build-id/${bid:0:2}/${bid:2}"
|
||||||
|
|
||||||
target="../../${binary#./}.debug"
|
target="../../${binary#./}.debug"
|
||||||
ln -s "$target" "$dbgdir/.build_id/${bid:0:2}/${bid:2}.debug"
|
ln -s "$target" "$dbgdir/.build-id/${bid:0:2}/${bid:2}.debug"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user