summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-09-02 00:49:24 -0400
committerMike Frysinger <vapier@gentoo.org>2015-09-02 00:50:15 -0400
commitecd9954d249956d09be0f4803b1b8766ae203adc (patch)
treed83be44d3452db42b977b744481f9ebcc046ca8b /eclass
parentx11-misc/synergy: Version bump (bug #558370). (diff)
downloadgentoo-ecd9954d249956d09be0f4803b1b8766ae203adc.tar.gz
gentoo-ecd9954d249956d09be0f4803b1b8766ae203adc.tar.bz2
gentoo-ecd9954d249956d09be0f4803b1b8766ae203adc.zip
autotools.eclass: autotools_run_tool: allow full paths to tools #549268
In some cases we want to pass the full path to the autotool program. Since the wrapper doesn't really care about this part, normalize the program name to its basename when creating the stderr file.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/autotools.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 22f2f39a3c82..7c82efcb16f5 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -475,13 +475,14 @@ autotools_run_tool() {
autotools_env_setup
- local STDERR_TARGET="${T}/$1.out"
+ # Allow people to pass in full paths. #549268
+ local STDERR_TARGET="${T}/${1##*/}.out"
# most of the time, there will only be one run, but if there are
# more, make sure we get unique log filenames
if [[ -e ${STDERR_TARGET} ]] ; then
local i=1
while :; do
- STDERR_TARGET="${T}/$1-${i}.out"
+ STDERR_TARGET="${T}/${1##*/}-${i}.out"
[[ -e ${STDERR_TARGET} ]] || break
: $(( i++ ))
done