RFC: Fix --enable-hg in IcedTea6
Andrew John Hughes
gnu_andrew at member.fsf.org
Mon Jun 1 08:51:24 PDT 2009
2009/6/1 Omair Majid <omajid at redhat.com>:
> Hi,
>
> Trying to build IcedTea6 with "--enable-hg --with-hg-revision=jdk6-b16"
> fails when applying the patches, even though jdk6-b16 is a known good build.
> The issues appears to be that the Makefile removes the old hotspot only if
> the openjdk directory doesn't already exist.
>
> The attached patch checks USE_HG and then removes the hotspot directory so
> it can be replaced with HS14.
>
> ChangeLog:
> 2009-06-01 Omair Majid <omajid at redhat.com>
>
> * Makefile.am (stamps/extract.stamp): Remove hotspot if using
> --enable-hg and an alternate hotspot build.
>
> Can someone please review the patch?
>
> Cheers,
> Omair
>
The presumption was that anyone wanting to use Mercurial as a source
wanted the whole thing.
I don't see how the attached patch can work. This would stop the
hotspot directory not being removed when Mercurial is disabled, and
doesn't do anything about the if block which checks for the openjdk
directory.
stamps/extract.stamp: stamps/download.stamp
if OPENJDK_SRC_DIR_FOUND
cp -a $(OPENJDK_SRC_DIR) openjdk
else
if ! test -d openjdk ; \
then \
mkdir openjdk ; \
$(TAR) xf $(OPENJDK_SRC_ZIP) -C openjdk; \
chmod -R ug+w openjdk ; \
if test "x${HSBUILD}" != "xoriginal"; then \
rm -rf openjdk/hotspot ; \
fi ; \
sh $(abs_top_srcdir)/fsg.sh ; \
fi
if WITH_ALT_HSBUILD
if test -e ${HOTSPOT_SRC_ZIP} ; \
then \
if ! test -d openjdk/hotspot ; \
then \
$(TAR) xf $(HOTSPOT_SRC_ZIP) ; \
chmod -R ug+w master-* ; \
mv master-$$($(AWK) 'version==$$1 {print $$2}'
version=$(HSBUILD) \
$(abs_top_srcdir)/hotspot.map) openjdk/hotspot ; \
fi ; \
fi
endif
endif
The simplest solution is probably to add an additional target for the
HotSpot replacement so it isn't so tightly related to extraction.
--
Andrew :-)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
More information about the distro-pkg-dev
mailing list