From gord@selfstyled.dyndns.org  Sun Jan 12 21:57:00 2003
Return-Path: <gord@selfstyled.dyndns.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6425537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 12 Jan 2003 21:57:00 -0800 (PST)
Received: from mail.selfstyled.dyndns.org (245.97.174.204.adsl.island.net [204.174.97.245])
	by mx1.FreeBSD.org (Postfix) with SMTP id C714843F5B
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 12 Jan 2003 21:56:59 -0800 (PST)
	(envelope-from gord@selfstyled.dyndns.org)
Received: (qmail 43331 invoked by uid 1001); 13 Jan 2003 05:56:53 -0000
Message-Id: <20030113055653.43330.qmail@mail.selfstyled.dyndns.org>
Date: 13 Jan 2003 05:56:53 -0000
From: Gordon Broom <gjbroom@alumni.uwaterloo.ca>
Reply-To: Gordon Broom <gjbroom@alumni.uwaterloo.ca>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: make install in ports can overflow /bin/sh argument list
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         47010
>Category:       ports
>Synopsis:       make install in ports can overflow /bin/sh argument list
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 12 22:00:06 PST 2003
>Closed-Date:    Sun Mar 23 11:55:58 PST 2003
>Last-Modified:  Sun Mar 23 11:55:58 PST 2003
>Originator:     Gordon Broom
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD ardbeg.selfstyled.dyndns.org 4.7-STABLE FreeBSD 4.7-STABLE #1: Fri Jan 10 07:26:12 PST 2003 root@ardbeg.selfstyled.dyndns.org:/data/ardbeg/1/obj/data/ardbeg/1/src/sys/ARDBEG i386


	
>Description:
Trying to install the /usr/ports/x11/gnome2 port results in the following:
	# make install
	[...]
	===>   Generating temporary packing list
	===>   Registering installation for gnome2-2.0_6
	/bin/sh:Argument list too long

so, some pieces of this port have not been registered in /var/db/pkg (I think,
I don't know how I can tell for sure).  If gnome2-2.0_6 is ever uninstalled
those files will not be removed.  At that point, I could use "pkg_info -W" 
to find them and delete them by hand.  However, I can't use "pkg_info -W" 
*before* I uninstall gnome2 in order to find bogus files in the /usr/local
tree which I can prune, since valid files from gnome2 will show up too
and there's no way to tell the difference :-(

That's why I think this is a serious bug, as you can now accidentally
hose yourself.  However, I've only seen it with the gnome2 port, so
it's not urgent.

>How-To-Repeat:
	# cd /usr/ports/x11/gnome2
	# make install

>Fix:
Consider using xargs in /usr/ports/Mk/bsd.port.mk instead.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: arved 
Responsible-Changed-When: Sat Mar 22 13:44:02 PST 2003 
Responsible-Changed-Why:  
I think this has been fixed, but over to gnome Maintainers to be sure 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47010 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Sun Mar 23 11:55:34 PST 2003 
State-Changed-Why:  
This is fixed now.  Please make sure you have the latest bsd.port.mk file, 
and try your build again. 

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