From conrads@cox.net  Thu Dec 30 01:22:15 2004
Return-Path: <conrads@cox.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 9F86F16A4CE; Thu, 30 Dec 2004 01:22:15 +0000 (GMT)
Received: from lakermmtao04.cox.net (lakermmtao04.cox.net [68.230.240.35])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id F1F7443D1F; Thu, 30 Dec 2004 01:22:14 +0000 (GMT)
	(envelope-from conrads@cox.net)
Received: from dolphin.local.net ([68.11.30.50]) by lakermmtao04.cox.net
          (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP
          id <20041230012212.YWKB22354.lakermmtao04.cox.net@dolphin.local.net>;
          Wed, 29 Dec 2004 20:22:12 -0500
Received: from dolphin.local.net (localhost.local.net [127.0.0.1])
	by dolphin.local.net (8.13.1/8.13.1) with ESMTP id iBU1MDF4087352;
	Wed, 29 Dec 2004 19:22:13 -0600 (CST)
	(envelope-from conrads@dolphin.local.net)
Received: (from root@localhost)
	by dolphin.local.net (8.13.1/8.13.1/Submit) id iBU1M8sF087351;
	Wed, 29 Dec 2004 19:22:08 -0600 (CST)
	(envelope-from conrads)
Message-Id: <200412300122.iBU1M8sF087351@dolphin.local.net>
Date: Wed, 29 Dec 2004 19:22:08 -0600 (CST)
From: "Conrad J. Sabatier" <conrads@cox.net>
Reply-To: "Conrad J. Sabatier" <conrads@cox.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: trevor@freebsd.org
Subject: Fix errors in emulators/linux_base-8 for amd64
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         75645
>Category:       ports
>Synopsis:       Fix errors in emulators/linux_base-8 for amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    trevor
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 30 01:30:18 GMT 2004
>Closed-Date:    Fri Oct 28 14:46:35 GMT 2005
>Last-Modified:  Sat Oct 29 00:40:15 GMT 2005
>Originator:     Conrad J. Sabatier
>Release:        FreeBSD 6.0-CURRENT amd64
>Organization:
N/A
>Environment:
System: FreeBSD dolphin.local.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Wed Dec 29 07:04:29 CST 2004 conrads@dolphin.local.net:/usr/obj/usr/src/sys/CUSTOM amd64


>Description:
	Build fails due to script-generated errors.  This same problem 
	existed with the earlier linux_base 7 port.
>How-To-Repeat:
	Try to install on amd64 without the following patch.  Scripts 
	included in rpms produce errors, cancelling the install. 
>Fix:
	Apply the following patch.

--- linux_base-8.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/emulators/linux_base-8/Makefile,v
retrieving revision 1.93
diff -u -d -H -r1.93 Makefile
--- Makefile	27 Dec 2004 21:47:56 -0000	1.93
+++ Makefile	30 Dec 2004 01:14:36 -0000
@@ -79,6 +79,10 @@
 RPM=			LC_ALL=C rpm
 RPMFLAGS=		--root ${WRKSRC} --dbpath ${DBPATH} --nodeps \
 			--replacepkgs --ignoreos --ignorearch
+.if ${ARCH} == "amd64"
+RPMFLAGS+=--noscripts
+.endif
+
 RPMDIR=			${DISTDIR}/${DIST_SUBDIR}
 
 REMOVE_DIRS=		boot dev home initrd root tmp var/tmp usr/local usr/tmp
--- linux_base-8.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->trevor 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Dec 30 04:26:45 GMT 2004 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75645 

From: "Conrad J. Sabatier" <conrads@cox.net>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: trevor@FreeBSD.org
Subject: Re: ports/75645: Fix errors in emulators/linux_base-8 for amd64
Date: Thu, 30 Dec 2004 23:08:13 -0600

 On Wed, 29 Dec 2004 19:22:08 -0600 (CST), "Conrad J. Sabatier"
 <conrads@cox.net> wrote:
 
 > 
 > >Number:         75645
 > >Category:       ports
 > >Synopsis:       Fix errors in emulators/linux_base-8 for amd64
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    freebsd-ports-bugs
 > >State:          open
 > >Quarter:        
 > >Keywords:       
 > >Date-Required:
 > >Class:          change-request
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Thu Dec 30 01:30:18 GMT 2004
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Conrad J. Sabatier
 > >Release:        FreeBSD 6.0-CURRENT amd64
 > >Organization:
 > N/A
 > >Environment:
 > System: FreeBSD dolphin.local.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0:
 > Wed Dec 29 07:04:29 CST 2004
 > conrads@dolphin.local.net:/usr/obj/usr/src/sys/CUSTOM amd64
 > 
 > 
 > >Description:
 > 	Build fails due to script-generated errors.  This same problem 
 > 	existed with the earlier linux_base 7 port.
 > >How-To-Repeat:
 > 	Try to install on amd64 without the following patch.  Scripts 
 > 	included in rpms produce errors, cancelling the install. 
 > >Fix:
 > 	Apply the following patch.
 > 
 > --- linux_base-8.diff begins here ---
 > Index: Makefile
 > ===================================================================
 > RCS file: /home/ncvs/ports/emulators/linux_base-8/Makefile,v
 > retrieving revision 1.93
 > diff -u -d -H -r1.93 Makefile
 > --- Makefile	27 Dec 2004 21:47:56 -0000	1.93
 > +++ Makefile	30 Dec 2004 01:14:36 -0000
 > @@ -79,6 +79,10 @@
 >  RPM=			LC_ALL=C rpm
 >  RPMFLAGS=		--root ${WRKSRC} --dbpath ${DBPATH} --nodeps \
 >  			--replacepkgs --ignoreos --ignorearch
 > +.if ${ARCH} == "amd64"
 > +RPMFLAGS+=--noscripts
 > +.endif
 > +
 >  RPMDIR=			${DISTDIR}/${DIST_SUBDIR}
 >  
 >  REMOVE_DIRS=		boot dev home initrd root tmp var/tmp usr/local usr/tmp
 > --- linux_base-8.diff ends here ---
 > 
 > 
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 
 OK, it appears that this alone is not quite sufficient.  When I went to
 run acroread, I discovered that the permissions on the linux compat /tmp
 were incorrect.  Further investigation revealed some strange ownerships
 under /usr/compat/linux.
 
 Perhaps a script could be added to the port to touch up the
 files/directories after the install?
 
 Other than this, though, it appears that linux_base-8 works fine on
 amd64.
 
 -- 
 Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
State-Changed-From-To: open->patched 
State-Changed-By: trevor 
State-Changed-When: Thu Jan 13 21:02:51 GMT 2005 
State-Changed-Why:  
I committed a very similar change. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75645 
State-Changed-From-To: patched->closed 
State-Changed-By: vs 
State-Changed-When: Fri Oct 28 14:45:55 GMT 2005 
State-Changed-Why:  
This issue has been settled for a while now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75645 

From: Trevor Johnson <trevor@jpj.net>
To: Volker Stolz <vs@FreeBSD.org>
Cc: conrads@cox.net, freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/75645: Fix errors in emulators/linux_base-8 for amd64
Date: Fri, 28 Oct 2005 20:33:15 -0400 (EDT)

 > This issue has been settled for a while now.
 
 The linux_base-8 port looks like it has been corrected, but I need to look
 at several other Linux base ports.  I kept the PR open and assigned to me
 as a reminder to myself to take care of that.
 
 In the future if you see a PR assigned to me that looks like it should be
 closed, would you please e-mail me about it instead of just going ahead
 and closing it?  I'm afraid that I'll lose track of problems that haven't
 really been fixed.
 -- 
 Trevor Johnson
>Unformatted:
