From nobody@FreeBSD.org  Sun Jun 30 14:34:34 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1D45937B400
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 30 Jun 2002 14:34:34 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D621243E13
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 30 Jun 2002 14:34:33 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g5ULYXOT006800
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 30 Jun 2002 14:34:33 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g5ULYXD3006799;
	Sun, 30 Jun 2002 14:34:33 -0700 (PDT)
Message-Id: <200206302134.g5ULYXD3006799@www.freebsd.org>
Date: Sun, 30 Jun 2002 14:34:33 -0700 (PDT)
From: Trevor Johnson <trevor@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: "make release" fails in games/adventure (yesterday's RELENG_4)
X-Send-Pr-Version: www-1.0

>Number:         40047
>Category:       bin
>Synopsis:       "make release" fails in games/adventure (yesterday's RELENG_4)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 30 14:40:02 PDT 2002
>Closed-Date:    Tue Aug 20 10:59:10 PDT 2002
>Last-Modified:  Tue Aug 20 10:59:10 PDT 2002
>Originator:     Trevor Johnson
>Release:        4.6-RC4
>Organization:
>Environment:
FreeBSD hostname 4.6-RC4 FreeBSD 4.6-RC4 #0: Wed Jun  5 03:44:53 GMT 2002     murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC  i386
>Description:
"make release" fails with:

===> games/adventure
install -c -s -o root -g games -m 550   adventure /usr/games/hide
(cd /usr/games; ln -fs dm adventure;  chown -h root:games adventure)
/usr/libexec/ld-elf.so.1: Shared object "libc.so.4" not found
*** Error code 1

Stop in /usr/src/games/adventure.
*** Error code 1

A build log is at http://people.freebsd.org/~trevor/release.log.bz2
>How-To-Repeat:
cd /usr
rm -r obj ports src
mkdir obj
cvs -R co -P -r RELENG_4 src
cvs -R co -P ports
cd src
time make buildworld && cd release && time make release \
CHROOTDIR=/scratch/release BUILDNAME=4.6-20020629-STABLE \
CVSROOT=/home/ncvs
>Fix:

>Release-Note:
>Audit-Trail:

From: David Schultz <dschultz@uclink.Berkeley.EDU>
To: freebsd-gnats-submit@FreeBSD.org, trevor@FreeBSD.org
Cc:  
Subject: Re: bin/40047: "make release" fails in games/adventure (yesterday's RELENG_4)
Date: Fri, 5 Jul 2002 05:54:39 -0700

 The following patch should fix the problem.  The compat libraries
 are installed in /usr/lib/compat, but they were being cleaned from
 /usr/lib.
 
 --- src/lib/compat/Makefile.inc 2002/04/18 06:46:34     1.9
 +++ src/lib/compat/Makefile.inc 2002/07/05 12:52:18
 @@ -7,9 +7,9 @@
  beforeinstall: __remove-stale-libs
  __remove-stale-libs: .PHONY
  .for lib in ${LIBS}
 -.if exists(${DESTDIR}${SHLIBDIR}/${lib})
 -       -chflags noschg ${DESTDIR}${SHLIBDIR}/${lib}
 -       rm -f ${DESTDIR}${SHLIBDIR}/${lib}
 +.if exists(${DESTDIR}${LIBCOMPATDIR}/${lib})
 +       -chflags noschg ${DESTDIR}${LIBCOMPATDIR}/${lib}
 +       rm -f ${DESTDIR}${LIBCOMPATDIR}/${lib}
  .endif
  .endfor
  .endif

From: Ruslan Ermilov <ru@FreeBSD.org>
To: David Schultz <dschultz@uclink.Berkeley.EDU>,
	Trevor Johnson <trevor@FreeBSD.org>
Cc: re@FreeBSD.org, bug-followup@FreeBSD.org
Subject: Re: bin/40047: "make release" fails in games/adventure (yesterday's RELENG_4)
Date: Fri, 5 Jul 2002 17:37:06 +0300

 [Sorry for crossposting to re@, but this seemed reasonable.]
 
 On Fri, Jul 05, 2002 at 06:00:07AM -0700, David Schultz wrote:
 > The following reply was made to PR bin/40047; it has been noted by GNATS.
 > 
 > From: David Schultz <dschultz@uclink.Berkeley.EDU>
 > To: freebsd-gnats-submit@FreeBSD.org, trevor@FreeBSD.org
 > Cc:  
 > Subject: Re: bin/40047: "make release" fails in games/adventure (yesterday's RELENG_4)
 > Date: Fri, 5 Jul 2002 05:54:39 -0700
 > 
 >  The following patch should fix the problem.  The compat libraries
 >  are installed in /usr/lib/compat, but they were being cleaned from
 >  /usr/lib.
 >  
 >  --- src/lib/compat/Makefile.inc 2002/04/18 06:46:34     1.9
 >  +++ src/lib/compat/Makefile.inc 2002/07/05 12:52:18
 >  @@ -7,9 +7,9 @@
 >   beforeinstall: __remove-stale-libs
 >   __remove-stale-libs: .PHONY
 >   .for lib in ${LIBS}
 >  -.if exists(${DESTDIR}${SHLIBDIR}/${lib})
 >  -       -chflags noschg ${DESTDIR}${SHLIBDIR}/${lib}
 >  -       rm -f ${DESTDIR}${SHLIBDIR}/${lib}
 >  +.if exists(${DESTDIR}${LIBCOMPATDIR}/${lib})
 >  +       -chflags noschg ${DESTDIR}${LIBCOMPATDIR}/${lib}
 >  +       rm -f ${DESTDIR}${LIBCOMPATDIR}/${lib}
 >   .endif
 >   .endfor
 >   .endif
 > 
 No, this patch is incorrect.  When installing compat libs, their
 old copies from /usr/lib should be deleted.  This is what this
 code already does.
 
 As for the problem, Trevor was attempting to build the 5.0-CURRENT
 snapshot on a 4.x box in an unsupported way (using the RELENG_4's
 release/Makefile), as could be seen from How-To-Repeat section or
 looking at the build logs.  To build the 4.x snapshot, one needs
 to supply the RELEASETAG=RELENG_4 as documented in the release(7)
 manpage.  To build the 5.0-CURRENT snapshot on a 4.x box, one needs
 to:
 
 cd /usr/src-4.x/release; make -f /usr/src-5.0/release/Makefile ...
 
 OTOH, it would probably be a good idea to make RELEASETAG default
 to RELENG_4 on RELENG_4, and default to RELENG_4_6 on RELENG_4_6,
 similar to how this is done in Makefile.inc1's update: target.
 
 (Someone from re@ needs to fix the Makefile.inc1 on RELENG_4_6
 to track the RELENG_4_6, like in RELENG_4_4 and RELENG_4_5.)
 
 
 Cheers,
 -- 
 Ruslan Ermilov		Sysadmin and DBA,
 ru@sunbay.com		Sunbay Software AG,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.512.251	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age
State-Changed-From-To: open->closed 
State-Changed-By: johan 
State-Changed-When: Tue Aug 20 10:57:45 PDT 2002 
State-Changed-Why:  
According to the audit-trail this was a user error. 

Ruslans suggested change for the RELENG_4_6 branch 
has also been committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40047 
>Unformatted:
