From owner-freebsd-java@FreeBSD.ORG Mon Mar 12 15:26:35 2012 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F5A61065670; Mon, 12 Mar 2012 15:26:35 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5C1CD8FC15; Mon, 12 Mar 2012 15:26:34 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so3778693bkc.13 for ; Mon, 12 Mar 2012 08:26:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=tN5IdTv84zDU5zSgjn04eptwURacK0EbJ53iHRH0Ky8=; b=iOi96LfMOWbrdzlbDyXuVvtZHY0ks37xVbFWQubGtuQ46V4FB9AB7QLlYXmh3R0t4m aR3S8gmUHiQ4P7kxRVaG2tUeSJTPVNXQ5kDnWe+RAl+3qUhQNnX6ZdIVXmJJuN5xDn7P ePMxWbI7BaUq4MEN3Zyg34uMtZhga+6+j9SIgoYZARSlvBLo7KchnwJr8YEDFNOCvOsD a8b3m+I78zpZUaDXZVHv8IKWwM5LK+imBTZIantbQuN2Hj503rjEzsS45rpt2j73ba/R Jywfy+L6ot46uw07GjLdn4yTP122b/MgiUZWEFOIZKzr+19cMfu31l+xxUdZ7lRwMyeg 4tzQ== Received: by 10.205.132.73 with SMTP id ht9mr548788bkc.46.1331565993393; Mon, 12 Mar 2012 08:26:33 -0700 (PDT) Received: from green.tandem.local (251-132-201-46.pool.ukrtel.net. [46.201.132.251]) by mx.google.com with ESMTPS id f6sm7194389bkg.10.2012.03.12.08.26.28 (version=SSLv3 cipher=OTHER); Mon, 12 Mar 2012 08:26:30 -0700 (PDT) Message-ID: <4F5E15A2.204@gmail.com> Date: Mon, 12 Mar 2012 17:26:26 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120220 Firefox/10.0.2 SeaMonkey/2.7.2 MIME-Version: 1.0 To: Jung-uk Kim References: <201203080750.q287oEA5033004@freefall.freebsd.org> <201203081309.55633.jkim@FreeBSD.org> In-Reply-To: <201203081309.55633.jkim@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: bug-followup@FreeBSD.org, freebsd-java@freebsd.org Subject: Re: ports/162991: java/openjdk6 fails to build X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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:26:35 -0000 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.