Revert wars, make dist, etc.
Pavel Tisnovsky
ptisnovs at redhat.com
Fri Dec 23 05:05:35 PST 2011
Dr Andrew John Hughes wrote:
> On 15:17 Wed 21 Dec , Dr Andrew John Hughes wrote:
>> On 10:27 Wed 21 Dec , Andrew Haley wrote:
>>> There's a continuing problem with the way that jtreg is handled in
>>> IcedTea.
>>>
>>> The core problem seems to be that some parts of IcedTea need absolute
>>> paths, and some need relative paths. "make dist", in particular,
>>> needs a relative path. However, jtreg -othervm needs an *absolute*
>>> path to the -exclude file. So, it is clear that some uses need
>>> JTREG_SRCS to be absolute, some need it to be relative. We need
>>> both, in other words. It can't be one or the other.
>>>
>>> doko made a change in
>>>
>>> Fix running jamvm jdk tests when configured with a separate relative
>>> build dir
>>>
>>> 2011-12-08 Matthias Klose <doko at ubuntu.com>
>>>
>>> * Makefile.am (JTREG_SRCS): Use abs_top_srcdir.
>>>
>>> which made JTREG_SRCS absolute. This patch was not discussed. I
>>> complained that it broke "make dist", so doko pushed another patch
>>>
>>> Fix make dist, not using any prefixes in EXTRA_DIST
>>>
>>> 2011-12-16 Matthias Klose <doko at ubuntu.com>
>>>
>>> * Makefile.am (JTREG_SRCS, REWRITER_SRCS, EXTRA_DIST): Don't
>>> use any prefixes. (stamps/jtreg.stamp, check-jdk):
>>> Use JTREG_SRCS with srcdir prefix. (stamps/rewriter.stamp):
>>> Use REWRITER_SRCS with srcdir prefix.
>>>
>>> which fixed that. However, this patch was not discussed.
>>>
>>> Andrew Hughes backed this patch out, pointing out that it reverts a
>>> number of earlier changes. So, jtreg --othervm is broken, again.
>>>
>>> jtreg needs an absolute path. Lets try and have a proper discussion
>>> about how to do it, with no more commits or reversions until we've
>>> decided together what to do.
>>>
>>> Andrew.
>> I'm currently testing what I think may be the solution, which is to move
>> the jtreg sources to src/jtreg removing the conflict between ./jtreg (the
>> directory) and 'jtreg' (the rule alias). With that change, the first of
>> these patches can be reverted and JTREG_SRCS can use $(top_srcdir)/src/jtreg.
>>
>> I'll post the patch once I've done a few more tests and we can discuss it further.
>
> In retrospect, I've pushed the patch after testing the change with two builds and
> runs of jtreg & make dist. Nearly all of it is just moving the jtreg directory
> to live under the src tree, and so it made more sense to put the change in Mercurial
> rather than posting a huge patch. The only other change is to fix JTREG_SRCS:
>
> -JTREG_SRCS = $(abs_top_srcdir)/jtreg
> +JTREG_SRCS = $(top_srcdir)/src/jtreg
>
> which should solve the problem with make dist not working when the path to configure
> is relative.
Hi Andrew,
the latest changes (JTreg source moved to another directory) in Makefile.am broke
JDK JTreg because the file excludelist.jdk.jtx is not found using relative path.
I usually run JTreg using following very simple script:
rm -rf icedtea6
hg fclone http://icedtea.classpath.org/hg/icedtea6
cd icedtea6
./autogen.sh
./configure --disable-bootstrap --with-parallel-jobs=4
make
make check -k
Pavel
>
> If problems still remain, please mention them on the list and file a bug with details
> of the configure flags. All the configurations I've tried work with the current setup.
More information about the distro-pkg-dev
mailing list