mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-10 06:07:33 +00:00
abuild: allow override setfattr
In osme situations it might be needed to disable setfattr. Allow this via: `SETFATTR=true abuild ...` fixes https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10027
This commit is contained in:
parent
754270e460
commit
32b7789e9a
@ -27,6 +27,7 @@ fi
|
||||
: ${ADDGROUP:="abuild-addgroup"}
|
||||
: ${CC:="gcc"}
|
||||
: ${CXX:="g++"}
|
||||
: ${SETFATTR:="setfattr"}
|
||||
|
||||
apk_opt_wait="--wait 30"
|
||||
|
||||
@ -1847,7 +1848,7 @@ default_dbg() {
|
||||
mv "$ddbg_dstfile" "$ddbg_dstdir"
|
||||
${CROSS_COMPILE}strip "$ddbg_srcfile"
|
||||
if [ -n "$xattr" ]; then
|
||||
echo "$xattr" | setfattr --restore=-
|
||||
echo "$xattr" | "$SETFATTR" --restore=-
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
@ -2402,7 +2403,7 @@ stripbin() {
|
||||
local XATTR=$(getfattr --match="" --dump "${filename}")
|
||||
"${stripcmd}" "${filename}"
|
||||
if [ -n "$XATTR" ]; then
|
||||
echo "$XATTR" | setfattr --restore=-
|
||||
echo "$XATTR" | "$SETFATTR" --restore=-
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user