From 9c0d93db3d0f678b2aaf76b0aef07ffe02b48fbd Mon Sep 17 00:00:00 2001 From: Martijn Dekker Date: Thu, 21 Mar 2024 20:07:56 +0000 Subject: [PATCH] test 1 --- src/lib/libast/comp/conf.sh | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/lib/libast/comp/conf.sh b/src/lib/libast/comp/conf.sh index dc97c9b9ad0e..bb637a237ba2 100644 --- a/src/lib/libast/comp/conf.sh +++ b/src/lib/libast/comp/conf.sh @@ -330,17 +330,22 @@ $cc -E $tmp.c >/dev/null 2>&1 || systeminfo= CONF_getconf= CONF_getconf_a= IFS=':'; set -f +echo "[DEBUG conf.sh] DEFPATH=$DEFPATH" >&2 + for d in \ - /run/current-system/sw/bin \ - /usr/xpg7/bin \ - /usr/xpg6/bin \ - /usr/xpg4/bin \ - /usr/bin \ - /bin \ - /usr/sbin \ - /sbin \ - $PATH -do case $d in + $DEFPATH $PATH +# /run/current-system/sw/bin \ +# /usr/xpg7/bin \ +# /usr/xpg6/bin \ +# /usr/xpg4/bin \ +# /usr/bin \ +# /bin \ +# /usr/sbin \ +# /sbin \ +# $PATH +do +echo "[DEBUG] conf.sh] trying $d/getconf" >&2 + case $d in /*) ;; *) continue ;; esac @@ -360,6 +365,7 @@ do case $d in done IFS=$ifs; set +f export CONF_getconf CONF_getconf_a +echo "[DEBUG] conf.sh] CONF_getconf=<$CONF_getconf> CONF_getconf_a=<$CONF_getconf_a>" >&2 case $verbose in 1) echo "$command: check ${CONF_getconf:+$CONF_getconf(1),}confstr(3),pathconf(2),sysconf(3),sysinfo(2) configuration names" >&2 ;;