NetBSD Problem Report #46351

From riz@passionfruit.tastylime.net  Wed Apr 18 18:50:17 2012
Return-Path: <riz@passionfruit.tastylime.net>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 8C01B63B86B
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 18 Apr 2012 18:50:17 +0000 (UTC)
Message-Id: <20120418185032.43DE2491EF@passionfruit.tastylime.net>
Date: Wed, 18 Apr 2012 11:50:32 -0700 (PDT)
From: riz@NetBSD.org
Reply-To: riz@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: openjdk7 package built as part of a pbulk build does not work
X-Send-Pr-Version: 3.95

>Number:         46351
>Category:       pkg
>Synopsis:       openjdk7 binary pkg built as part of a pbulk build does not work
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 18 18:55:00 +0000 2012
>Closed-Date:    Mon Feb 26 19:30:39 +0000 2018
>Last-Modified:  Mon Feb 26 19:30:39 +0000 2018
>Originator:     Jeff Rizzo <riz@NetBSD.org>
>Release:        NetBSD 6.0_BETA
>Organization:

>Environment:


System: NetBSD passionfruit.tastylime.net 6.0_BETA NetBSD 6.0_BETA (GENERIC) #3: Tue Feb 28 14:15:40 PST 2012 riz@breadfruit.tastylime.net:/home/riz/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	I did a pbulk build of packages for NetBSD 6.0_BETA on amd64, but
the openjdk7 package thus built gives an error when installing using pkgin
0.5.2.3:

/scratch/lang/openjdk7/work/openjdk/build/bsd-amd64/lib/amd64/server/libjvm.so, needed by openjdk7-1.7.0.147.20110811nb2 is not present in this system.

...a package built normally (without pbulk, installed using pkg_add) seems
to work.

>How-To-Repeat:
	Build all binary packages for amd64, try to use openjdk7 package (as
required by amazon ec2 tools).

>Fix:
	None given.  I don't have time to look deeply right now, so
this PR is a placeholder.

>Release-Note:

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46351: openjdk7 package built as part of a pbulk build does
 not work
Date: Wed, 25 Apr 2012 17:30:53 +0900

 On Thu, 19 Apr 2012 03:55:00 +0900, <riz@netbsd.org> wrote:

 > /scratch/lang/openjdk7/work/openjdk/build/bsd-amd64/lib/amd64/server/libjvm.so, needed by openjdk7-1.7.0.147.20110811nb2 is not present in this system.
 >
 > ...a package built normally (without pbulk, installed using pkg_add) seems
 > to work.

 ${LOCALBASE}/java/openjdk7/jre/lib/${ARCH}/*.so contains RPATH with build time ${WRKDIR}.
 Such files may be built wihtout wrapper cc.

 -- 
 OBATA Akio / obache@NetBSD.org

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46351: openjdk7 package built as part of a pbulk build does
 not work
Date: Wed, 25 Apr 2012 19:21:10 +0000

 On Wed, Apr 25, 2012 at 08:35:01AM +0000, OBATA Akio wrote:
  >  On Thu, 19 Apr 2012 03:55:00 +0900, <riz@netbsd.org> wrote:
  >  
  >  > /scratch/lang/openjdk7/work/openjdk/build/bsd-amd64/lib/amd64/server/libjvm.so, needed by openjdk7-1.7.0.147.20110811nb2 is not present in this system.
  >  >
  >  > ...a package built normally (without pbulk, installed using pkg_add) seems
  >  > to work.
  >  
  >  ${LOCALBASE}/java/openjdk7/jre/lib/${ARCH}/*.so contains RPATH with build time ${WRKDIR}.
  >  Such files may be built wihtout wrapper cc.

 Why isn't the check for build-directory references catching this?

 That check's been failing a lot recently and it would be good to
 understand why...

 -- 
 David A. Holland
 dholland@netbsd.org

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, 
	riz@netbsd.org
Subject: Re: pkg/46351: openjdk7 package built as part of a pbulk build does
 not work
Date: Fri, 27 Apr 2012 20:30:59 +0300

 On Wed, Apr 25, 2012 at 10:25 PM, David Holland
 <dholland-pbugs@netbsd.org> wrote:
 > The following reply was made to PR pkg/46351; it has been noted by GNATS.
 >
 > From: David Holland <dholland-pbugs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: pkg/46351: openjdk7 package built as part of a pbulk build d=
 oes
 > =A0not work
 > Date: Wed, 25 Apr 2012 19:21:10 +0000
 >
 > =A0On Wed, Apr 25, 2012 at 08:35:01AM +0000, OBATA Akio wrote:
 > =A0> =A0On Thu, 19 Apr 2012 03:55:00 +0900, <riz@netbsd.org> wrote:
 > =A0>
 > =A0> =A0> /scratch/lang/openjdk7/work/openjdk/build/bsd-amd64/lib/amd64/s=
 erver/libjvm.so, needed by openjdk7-1.7.0.147.20110811nb2 is not present in=
  this system.
 > =A0> =A0>
 > =A0> =A0> ...a package built normally (without pbulk, installed using pkg=
 _add) seems
 > =A0> =A0> to work.
 > =A0>
 > =A0> =A0${LOCALBASE}/java/openjdk7/jre/lib/${ARCH}/*.so contains RPATH wi=
 th build time ${WRKDIR}.
 > =A0> =A0Such files may be built wihtout wrapper cc.
 >
 > =A0Why isn't the check for build-directory references catching this?

 As far as I can see _CHECK_SHLIBS_ERE doesn't match libjvm.so,
 as a result this lib was just skipped.

 The same problem happened to my distbb bulk build (5.1/amd64).

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46351: openjdk7 package built as part of a pbulk build does
 not work
Date: Fri, 27 Apr 2012 21:01:55 +0300

 > =A0As far as I can see _CHECK_SHLIBS_ERE doesn't match libjvm.so,
 > =A0as a result this lib was just skipped.

 Sorry, I meant libraries that use libjvm. This what happens on my system.

 0 ~>readelf -a java/openjdk7/jre/lib/amd64/libjaas_unix.so | grep RPATH
  0x000000000000000f (RPATH)              Library rpath:
 [/tmp/obj-pkgsrc/lang/openjdk7/work/openjdk/build/bsd-amd64/lib/amd64/serve=
 r]
 0 0 ~>

 libjaas_unix.so is from 5.1/amd64/2011Q1 binary.

 Regexps for ELF binaries
 in pkgformat/pkg/metadata.mk (where REQUIRES is generated)
 and check/check-shlibs.mk (where RPATH to WRKDIR is checked)
 should be synced.

State-Changed-From-To: open->feedback
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Sun, 30 Mar 2014 18:08:02 +0000
State-Changed-Why:
I have comment on this.


From: Jeff Rizzo <riz@NetBSD.org>
To: gnats-bugs@NetBSD.org, ryoon@NetBSD.org
Cc: 
Subject: Re: pkg/46351 (openjdk7 binary pkg built as part of a pbulk build
 does not work)
Date: Sun, 30 Mar 2014 11:13:34 -0700

 On 3/30/14, 11:08 AM, ryoon@NetBSD.org wrote:
 > Synopsis: openjdk7 binary pkg built as part of a pbulk build does not work
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: ryoon@NetBSD.org
 > State-Changed-When: Sun, 30 Mar 2014 18:08:02 +0000
 > State-Changed-Why:
 > I have comment on this.
 >
 >

 I don't understand - I don't see any comments from you on this.  I have 
 not had time to re-test this, but do we have any reason to think it's fixed?

 +j

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: riz@NetBSD.org
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/46351 (openjdk7 binary pkg built as part of a pbulk build
 does not work)
Date: Mon, 31 Mar 2014 03:43:55 +0900 (JST)

 From: Jeff Rizzo <riz@NetBSD.org>, Date: Sun, 30 Mar 2014 11:13:34 -0700

 > On 3/30/14, 11:08 AM, ryoon@NetBSD.org wrote:
 >> Synopsis: openjdk7 binary pkg built as part of a pbulk build does not
 >> work
 >>
 >> State-Changed-From-To: open->feedback
 >> State-Changed-By: ryoon@NetBSD.org
 >> State-Changed-When: Sun, 30 Mar 2014 18:08:02 +0000
 >> State-Changed-Why:
 >> I have comment on this.
 >>
 >>
 > 
 > I don't understand - I don't see any comments from you on this.  I
 > have not had time to re-test this, but do we have any reason to think
 > it's fixed?

 Sorry I have wrong subject and my comment is not recorded and sent to you.
 Comment is here.

 $ readelf -Wd /usr/pkg/java/openjdk7/jre/lib/amd64/*so
 does not contain any WRKDIR reference in openjdk7-1.7.51nb2.

 O.K. to close this PR?

 Thank you.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

State-Changed-From-To: feedback->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 26 Feb 2018 19:30:39 +0000
State-Changed-Why:
feedback timeout. the last reply on this bug report is ryoon saying he believes the problem is fixed, so I'm assuming it is.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.