forked from mirrors/nixpkgs
Merge pull request #245909 from Artturin/setupshchanges2
This commit is contained in:
commit
d5139e3017
|
@ -69,8 +69,8 @@ _multioutConfig() {
|
||||||
# try to detect share/doc/${shareDocName}
|
# try to detect share/doc/${shareDocName}
|
||||||
# Note: sadly, $configureScript detection comes later in configurePhase,
|
# Note: sadly, $configureScript detection comes later in configurePhase,
|
||||||
# and reordering would cause more trouble than worth.
|
# and reordering would cause more trouble than worth.
|
||||||
if [ -z "$shareDocName" ]; then
|
if [ -z "${shareDocName:-}" ]; then
|
||||||
local confScript="$configureScript"
|
local confScript="${configureScript:-}"
|
||||||
if [ -z "$confScript" ] && [ -x ./configure ]; then
|
if [ -z "$confScript" ] && [ -x ./configure ]; then
|
||||||
confScript=./configure
|
confScript=./configure
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -75,7 +75,7 @@ patchShebangs() {
|
||||||
read -r oldInterpreterLine < "$f"
|
read -r oldInterpreterLine < "$f"
|
||||||
read -r oldPath arg0 args <<< "${oldInterpreterLine:2}"
|
read -r oldPath arg0 args <<< "${oldInterpreterLine:2}"
|
||||||
|
|
||||||
if [[ -z "$pathName" ]]; then
|
if [[ -z "${pathName:-}" ]]; then
|
||||||
if [[ -n $strictDeps && $f == "$NIX_STORE"* ]]; then
|
if [[ -n $strictDeps && $f == "$NIX_STORE"* ]]; then
|
||||||
pathName=HOST_PATH
|
pathName=HOST_PATH
|
||||||
else
|
else
|
||||||
|
|
|
@ -21,6 +21,9 @@ _separateDebugInfo() {
|
||||||
while IFS= read -r -d $'\0' i; do
|
while IFS= read -r -d $'\0' i; do
|
||||||
if ! isELF "$i"; then continue; fi
|
if ! isELF "$i"; then continue; fi
|
||||||
|
|
||||||
|
[ -z "${READELF:-}" ] && echo "_separateDebugInfo: '\$READELF' variable is empty, skipping." 1>&2 && break
|
||||||
|
[ -z "${OBJCOPY:-}" ] && echo "_separateDebugInfo: '\$OBJCOPY' variable is empty, skipping." 1>&2 && break
|
||||||
|
|
||||||
# Extract the Build ID. FIXME: there's probably a cleaner way.
|
# Extract the Build ID. FIXME: there's probably a cleaner way.
|
||||||
local id="$($READELF -n "$i" | sed 's/.*Build ID: \([0-9a-f]*\).*/\1/; t; d')"
|
local id="$($READELF -n "$i" | sed 's/.*Build ID: \([0-9a-f]*\).*/\1/; t; d')"
|
||||||
if [ "${#id}" != 40 ]; then
|
if [ "${#id}" != 40 ]; then
|
||||||
|
|
|
@ -1216,7 +1216,7 @@ fixLibtool() {
|
||||||
done
|
done
|
||||||
|
|
||||||
sed -i "$1" \
|
sed -i "$1" \
|
||||||
-e "s^eval \(sys_lib_search_path=\).*^\1'$search_path'^" \
|
-e "s^eval \(sys_lib_search_path=\).*^\1'${search_path:-}'^" \
|
||||||
-e 's^eval sys_lib_.+search_path=.*^^'
|
-e 's^eval sys_lib_.+search_path=.*^^'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue