From owner-freebsd-java@FreeBSD.ORG Mon Mar 12 15:30:17 2012 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 501F7106564A for ; Mon, 12 Mar 2012 15:30:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3F1638FC0C for ; Mon, 12 Mar 2012 15:30:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2CFUHMu019839 for ; Mon, 12 Mar 2012 15:30:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2CFUHs5019836; Mon, 12 Mar 2012 15:30:17 GMT (envelope-from gnats) Date: Mon, 12 Mar 2012 15:30:17 GMT Message-Id: <201203121530.q2CFUHs5019836@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Volodymyr Kostyrko Cc: Subject: Re: ports/162991: java/openjdk6 fails to build X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volodymyr Kostyrko List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2012 15:30:17 -0000 The following reply was made to PR ports/162991; it has been noted by GNATS. From: Volodymyr Kostyrko To: Jung-uk Kim Cc: freebsd-java@freebsd.org, bug-followup@FreeBSD.org Subject: Re: ports/162991: java/openjdk6 fails to build Date: Mon, 12 Mar 2012 17:26:26 +0200 Jung-uk Kim wrote: > 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: >> https://redports.org/buildarchive/20120307160255-45601 >> >> 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 \ > i[3-9]86) \ > echo i586 \ > ;; \ > *) \ > echo $(mach) \ > ;; \ > esac > 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 > 10.0-CURRENT > % uname -m > amd64 > % env UNAME_m=x86_64 uname -m > x86_64 > > I believe OpenJDK7 added it because some BSDs (e.g., DragonFlyBSD) > return x86_64 for "uname -m". So why it ends up in our port and not in DragonFlyBSD's pkgsrc? > BTW, does "make DISABLE_MAKE_JOBS=yes" make any difference? Actually after successful build I can't reproduce this issue anymore. I seem to miss some bits of data so I'll try to retest in clean environment. -- Sphinx of black quartz judge my vow.