ports/162991: java/openjdk6 fails to build
jkim at FreeBSD.org
Thu Mar 8 18:10:03 UTC 2012
On Thursday 08 March 2012 02:50 am, Volodymyr Kostyrko wrote:
> Ok, I found time to investigate it.
> Everything is about arch guessing. java/openjdk7 substitutes amd64
> for x86_64 while java/openjdk6 doesn't. I just added missing bits
> from correspondent java/openjdk7 patch.
> Redports build:
> Patch attached.
Sorry but it doesn't make any sense. I guess you are patching this:
# Platform settings specific to BSD
ifeq ($(PLATFORM), bsd)
OS_VERSION := $(shell uname -r)
# Arch and OS name/version
mach := $(shell uname -m)
archExpr = case "$(mach)" in \
echo i586 \
echo $(mach) \
ARCH := $(shell $(archExpr) )
ARCH_FAMILY := $(ARCH)
Unless "UNAME_m" environment variable is set, there is no way that
this patch does anything at all.
% uname -r
% uname -m
% env UNAME_m=x86_64 uname -m
I believe OpenJDK7 added it because some BSDs (e.g., DragonFlyBSD)
return x86_64 for "uname -m".
BTW, does "make DISABLE_MAKE_JOBS=yes" make any difference?
More information about the freebsd-java