[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7833: automake uses two different values for DejaGNU srcdir
From: |
Stefano Lattarini |
Subject: |
bug#7833: automake uses two different values for DejaGNU srcdir |
Date: |
Thu, 13 Jan 2011 13:52:32 +0100 |
User-agent: |
KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) |
Hello Ian.
On Wednesday 12 January 2011, Ian Lance wrote:
> When automake is configured to use DejaGNU, it uses two different values
> for srcdir. There are two different cases in lib/am/dejagnu.am:
>
> The first is in check-DEJAGNU:
>
> check-DEJAGNU: site.exp
> ## Life is easiest with an absolute srcdir, so do that.
> srcdir=`$(am__cd) $(srcdir) && pwd`; export srcdir; \
>
> This value is passed to runtest with a --srcdir option.
>
> The second is in site.exp:
>
> site.exp: Makefile
> @echo 'Making a new site.exp file...'
> @echo '## these variables are automatically generated by make ##'
> >site.tmp
> @echo '# Do not edit here. If you wish to override these values'
> >>site.tmp
> @echo '# edit the last section' >>site.tmp
> @echo 'set srcdir $(srcdir)' >>site.tmp
>
> This value is read by DejaGNU after option processing is complete,
> effectively overwriting the value passed with the --srcdir option.
>
> The value of srcdir stored in site.exp should be an absolute path, just
> like the value passed to runtest via --srcdir.
>
Are you sure about this? Why then is the attached testcase working
(for me at least)?
Please note that I'm a total Tcl/DejaGnu noob, so it might likely be
that I'm missing something obvious here. In that case, just point out
my mistake, and sorry in advance!
Regards,
Stefano
dejagnu-srcdir-is-absolute.test
Description: application/shellscript
- bug#7833: automake uses two different values for DejaGNU srcdir, Ian Lance Taylor, 2011/01/12
- bug#7833: automake uses two different values for DejaGNU srcdir,
Stefano Lattarini <=
- bug#7833: automake uses two different values for DejaGNU srcdir, Ian Lance Taylor, 2011/01/13
- bug#7833: automake uses two different values for DejaGNU srcdir, Stefano Lattarini, 2011/01/13
- bug#7833: automake uses two different values for DejaGNU srcdir, Ian Lance Taylor, 2011/01/13
- bug#7833: automake uses two different values for DejaGNU srcdir, Stefano Lattarini, 2011/01/13
- bug#7833: automake uses two different values for DejaGNU srcdir, Ian Lance Taylor, 2011/01/13
- bug#7833: automake uses two different values for DejaGNU srcdir, Stefano Lattarini, 2011/01/13