From strick@covad.net  Fri May  2 20:55:21 2003
Return-Path: <strick@covad.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 99B7F37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  2 May 2003 20:55:21 -0700 (PDT)
Received: from smtp.covadmail.net (mx03.covadmail.net [63.65.120.63])
	by mx1.FreeBSD.org (Postfix) with SMTP id 9235043FBF
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  2 May 2003 20:55:20 -0700 (PDT)
	(envelope-from strick@covad.net)
Received: (covad.net 3237 invoked from network); 3 May 2003 03:55:18 -0000
Received: from unknown (HELO ice.nodomain) (68.164.196.138)
  by sun-qmail13 with SMTP; 3 May 2003 03:55:17 -0000
Received: from ice.nodomain (localhost [127.0.0.1])
	by ice.nodomain (8.12.8p1/8.12.8) with ESMTP id h433tH8K000641
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 2 May 2003 20:55:17 -0700 (PDT)
	(envelope-from dan@ice.nodomain)
Received: (from dan@localhost)
	by ice.nodomain (8.12.8p1/8.12.8/Submit) id h433tHqR000640;
	Fri, 2 May 2003 20:55:17 -0700 (PDT)
Message-Id: <200305030355.h433tHqR000640@ice.nodomain>
Date: Fri, 2 May 2003 20:55:17 -0700 (PDT)
From: Dan Strick <strick@covad.net>
Reply-To: Dan Strick <strick@covad.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: /usr/ports/emulators/linux_base will not install
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         51711
>Category:       ports
>Synopsis:       /usr/ports/emulators/linux_base will not install
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    trevor
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 02 21:00:25 PDT 2003
>Closed-Date:    Thu Apr 14 17:06:23 GMT 2005
>Last-Modified:  Thu Apr 14 17:06:23 GMT 2005
>Originator:     Dan Strick <strick@covad.net>
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
none
>Environment:
System: FreeBSD ice 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Sun Apr 6 21:47:39 PDT 2003 root@ice:/usr/src/sys/compile/ICE i386

	nearly pristine full FreeBSD 4.8-RELEASE installation
	(all the software categories, /usr/ports, and X11R6)

	Some of the system configuration files in /etc have been modified.
	Approxmiate list:
		fbtab fstab group host.conf hosts.allow hosts.lpd hosts
		inetd.conf master.passwd motd passwd printcap rc.conf remote

	Possibly relevant:
		The linproc file system is not mounted.
		The kernel svr4 emulation module is loaded.

>Description:
	One of the programs invoked by the emulators/linux_base port Makefile
	after most or all of the rpms are installed returns a bad exit code.
	I forget which program it is or what the return code was.
	These things may not be obvious from the console output produced by
	the Makefile.  I am no longer able to reproduce the problem because
	I have completed the linux_base installation and have installed a lot
	of software that uses it and fear that reinstalling it may screw
	everything up.

	This problem occurs for both the "linux_base" and "linux_base-6" ports.
	Different programs fail with different error messages in each case,
	but the effects are very similar.

>How-To-Repeat:
	Make sure /usr/compat/linux is empty or non-existant.
	Do:
		cd /usr/ports/emulators/linux_base
		make install
>Fix:
	Unload the svr4 kernel module and reattempt the port installation.

	I observe that virtually all the elf files in the linux_base
	distribution are branded as "SVR4" and the Makefile rebrands
	only a couple of them as "Linux".

	The obvious suspicion is that the Linux emulator cannot generally
	work reliably if the SystemV emulator is enabled.
	Is this correct?  (Or is it just me?)
	Should the linux_base Makefile rebrand every elf file from the
	linux_base distfiles as "Linux"?

>Release-Note:
>Audit-Trail:

From: Dan Strick <strick@covad.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc: dan@ice.nodomain
Subject: Re: ports/51711: /usr/ports/emulators/linux_base will not install
Date: Fri, 2 May 2003 23:59:14 -0700 (PDT)

 I just discovered that I kept a copy of the tail end of the output from
 a port "make install" that failed:
 
 	>> Checksum OK for rpm/popt-1.6.2-8.i386.rpm.
 	>> Checksum OK for rpm/readline-4.1-9.i386.rpm.
 	>> Checksum OK for rpm/setserial-2.17-2.i386.rpm.
 	>> Checksum OK for rpm/slang-1.4.2-2.i386.rpm.
 	>> Checksum OK for rpm/sh-utils-2.0-13.i386.rpm.
 	>> Checksum OK for rpm/rpm-4.0.2-8.i386.rpm.
 	>> Checksum OK for rpm/freetype-2.0.1-4.i386.rpm.
 	>> Checksum OK for rpm/XFree86-libs-4.0.3-5.i386.rpm.
 	>> Checksum OK for rpm/glibc-common-2.2.4-31.i386.rpm.
 	>> Checksum OK for rpm/glibc-2.2.4-31.i386.rpm.
 	>> Checksum OK for rpm/zlib-1.1.3-25.7.i386.rpm.
 	>> Checksum OK for rpm/libstdc++-2.96-112.7.1.i386.rpm.
 	===>  Patching for linux_base-7.1_2
 	===>   linux_base-7.1_2 depends on executable: rpm - found
 	===>  Configuring for linux_base-7.1_2
 	===>  Installing for linux_base-7.1_2
 	kern.fallback_elf_brand: 3 -> 3
 	glibc-common-2.2.4-31.i386.rpm
 	glibc-2.2.4-31.i386.rpm
 	execution of glibc-2.2.4-31 script failed, exit status 0
 	*** Error code 1
 
 	Stop in /fs/u4d/ports-4.8/emulators/linux_base.
 	10.499u 9.621s 1:21.06 24.8%    1680+2579k 14+683io 0pf+0w
 
 	Left core file: /compat/linux/glibc_post_upgra.core
 
 Dan Strick
 
 P.S. I no longer have a copy of the core file.
Responsible-Changed-From-To: freebsd-ports-bugs->trevor 
Responsible-Changed-By: trevor 
Responsible-Changed-When: Fri Feb 6 12:00:26 PST 2004 
Responsible-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=51711 
State-Changed-From-To: open->analyzed 
State-Changed-By: trevor 
State-Changed-When: Fri Feb 6 12:02:26 PST 2004 
State-Changed-Why:  
PR 53874 seems to describe the same bug.  Perhaps the linux_base 
ports could check whether the svr4 module is loaded. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51711 
State-Changed-From-To: analyzed->closed 
State-Changed-By: flz 
State-Changed-When: Thu Apr 14 17:04:59 GMT 2005 
State-Changed-Why:  
ports/53874 describes the same bug with a little more information. 
Close this one and add a note in the audit trail of the other 
to point out this PR. 

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