From parv@earthlink.net  Fri Sep  7 19:57:39 2001
Return-Path: <parv@earthlink.net>
Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.121.49])
	by hub.freebsd.org (Postfix) with ESMTP id E838C37B403
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  7 Sep 2001 19:57:38 -0700 (PDT)
Received: from earthlink.net (sdn-ar-007dcwashP023.dialsprint.net [63.178.91.31])
	by scaup.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id TAA21715
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 7 Sep 2001 19:57:36 -0700 (PDT)
Received: by earthlink.net (Postfix, from userid 1001)
	id 6CD7C50BC5; Fri,  7 Sep 2001 22:57:50 -0400 (EDT)
Message-Id: <20010908025750.6CD7C50BC5@earthlink.net>
Date: Fri,  7 Sep 2001 22:57:50 -0400 (EDT)
From: parv_@yahoo.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: package of mozilla fails if configured w/ --disable-mailnews
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         30430
>Category:       ports
>Synopsis:       package of mozilla fails if configured w/ --disable-mailnews
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 07 20:00:12 PDT 2001
>Closed-Date:    Wed Sep 19 03:48:21 PDT 2001
>Last-Modified:  Wed Sep 19 03:49:12 PDT 2001
>Originator:     parv
>Release:        FreeBSD 4.4-PRERELEASE i386
>Organization:
>Environment:

quite fresh cvsup tree (around 8p edt, sep 7 2001)

>Description:

w/ default Makefile, package is made ok.

package of mozilla fails if configured w/ --disable-mailnews instead of
being enabled w/ this message (btw, install was okay)...

===>  Building package for mozilla-0.9.3,1
Creating package /source/ports/www/mozilla/mozilla-0.9.3,1.tgz
Registering depends: ORBit-0.5.8_1 XFree86-libraries-4.1.0 gdk-pixbuf-0.11.0_1 freetype2-2.0.4 gtk-1.2.10_2 glib-1.2.10_4 gettext-0.
10.35 imake-4.1.0 tiff-3.5.5 lcms-1.07_1 libmng-1.0.2 pkgconfig-0.8.0 png-1.0.12 jpeg-6b.
Creating gzip'd tar ball in '/source/ports/www/mozilla/mozilla-0.9.3,1.tgz'
tar: can't add file lib/mozilla/chrome/messenger.jar : No such file or directory
tar: can't add file lib/mozilla/chrome/overlayinfo/editor/content/overlays.rdf : No such file or directory
tar: can't add file lib/mozilla/chrome/overlayinfo/messenger/content/overlays.rdf : No such file or directory
tar: can't add file lib/mozilla/components/absync.xpt : No such file or directory
tar: can't add file lib/mozilla/components/addrbook.xpt : No such file or directory
tar: can't add file lib/mozilla/components/import.xpt : No such file or directory
tar: can't add file lib/mozilla/components/libabsyncsvc.so : No such file or directory
tar: can't add file lib/mozilla/components/libaddrbook.so : No such file or directory
tar: can't add file lib/mozilla/components/libimpText.so : No such file or directory
tar: can't add file lib/mozilla/components/libimport.so : No such file or directory
tar: can't add file lib/mozilla/components/liblocalmail.so : No such file or directory
tar: can't add file lib/mozilla/components/libmailnews.so : No such file or directory
tar: can't add file lib/mozilla/components/libmime.so : No such file or directory
tar: can't add file lib/mozilla/components/libmimeemitter.so : No such file or directory
tar: can't add file lib/mozilla/components/libmsgcompose.so : No such file or directory
tar: can't add file lib/mozilla/components/libmsgdb.so : No such file or directory
tar: can't add file lib/mozilla/components/libmsgimap.so : No such file or directory
tar: can't add file lib/mozilla/components/libmsgnews.so : No such file or directory
tar: can't add file lib/mozilla/components/libsmimestb.so : No such file or directory
tar: can't add file lib/mozilla/components/libvcard.so : No such file or directory
tar: can't add file lib/mozilla/components/mailnews.xpt : No such file or directory
tar: can't add file lib/mozilla/components/mime.xpt : No such file or directory
tar: can't add file lib/mozilla/components/msgbase.xpt : No such file or directory
tar: can't add file lib/mozilla/components/msgcompose.xpt : No such file or directory
tar: can't add file lib/mozilla/components/msgdb.xpt : No such file or directory
tar: can't add file lib/mozilla/components/msgimap.xpt : No such file or directory
tar: can't add file lib/mozilla/components/msglocal.xpt : No such file or directory
tar: can't add file lib/mozilla/components/msgnews.xpt : No such file or directory
tar: can't add file lib/mozilla/components/msgsearch.xpt : No such file or directory
tar: can't add file lib/mozilla/components/nsLDAPPrefsService.js : No such file or directory
tar: can't add file lib/mozilla/libmsgbaseutil.so : No such file or directory
pkg_create: make_dist: tar command failed with code 256
*** Error code 1

Stop in /source/ports/www/mozilla.
*** Error code 1

Stop in /source/ports/www/mozilla.
*** Error code 1


>How-To-Repeat:

try to make package w/ following change to Makefile...

--- Makefile--old       Fri Sep  7 21:24:04 2001
+++ Makefile    Fri Sep  7 22:53:07 2001
@@ -42,7 +42,7 @@
                --enable-crypto                 \
                --enable-double-buffer          \
                --enable-editor                 \
-               --enable-mailnews               \
+               --disable-mailnews              \
                --enable-mathml                 \
                --enable-optimize="${CFLAGS}"   \
                --enable-pics                   \


>Fix:

don't know, but a general solution would be much appreaciated when
the software (& related files) installed are not what "make 
package" would expect as it happens w/ almost every port.

>Release-Note:
>Audit-Trail:

From: Pete Fritchman <petef@databits.net>
To: parv_@yahoo.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/30430: package of mozilla fails if configured w/ --disable-mailnews
Date: Fri, 7 Sep 2001 23:14:34 -0400

 ++ 07/09/01 22:57 -0400 - parv_@yahoo.com:
 | w/ default Makefile, package is made ok.
 | 
 | package of mozilla fails if configured w/ --disable-mailnews instead of
 | being enabled w/ this message (btw, install was okay)...
 
 Like you say, this probably happens with many many ports
 (changing/adding a configure option and seeing `make package' fail).  In
 most cases, it would be appropriate to add a WITHOUT_FOO hook in the
 Makefile and use PLIST_SUB (if the WITHOUT_FOO hook is specified, expand
 %%FOO%% to @comment, otherwise make it '').  Then just prefix everything
 specific to 'FOO' with %%FOO%% in pkg-plist.
 
 
 | don't know, but a general solution would be much appreaciated when
 | the software (& related files) installed are not what "make 
 | package" would expect as it happens w/ almost every port.
 
 I don't think a 'general solution' would be possible (due to the variety
 of configuration/installation methods by all 5800+ ports in the tree).
 
 -pete
 
 --
 Pete Fritchman <petef@databits.net>
 finger petef@databits.net for PGP key

From: parv <parv_@yahoo.com>
To: Pete Fritchman <petef@databits.net>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/30430: package of mozilla fails if configured w/ --disable-mailnews
Date: Sat, 8 Sep 2001 00:33:19 -0400

 this was, on the fateful occasion around Sep 07 23:14 -0400,
 sent by Pete Fritchman                                               
 >
 > ++ 07/09/01 22:57 -0400 - parv_@yahoo.com:
 > | w/ default Makefile, package is made ok.
 > | 
 > | package of mozilla fails if configured w/ --disable-mailnews instead of
 > | being enabled w/ this message (btw, install was okay)...
 > 
 > Like you say, this probably happens with many many ports
 > (changing/adding a configure option and seeing `make package' fail).  In
 > most cases, it would be appropriate to add a WITHOUT_FOO hook in the
 > Makefile and use PLIST_SUB (if the WITHOUT_FOO hook is specified, expand
 > %%FOO%% to @comment, otherwise make it '').  Then just prefix everything
 > specific to 'FOO' with %%FOO%% in pkg-plist.
 
 thanks for the pointer, pete.
 
 > 
 > | don't know, but a general solution would be much appreaciated when
 > | the software (& related files) installed are not what "make 
 > | package" would expect as it happens w/ almost every port.
 > 
 > I don't think a 'general solution' would be possible (due to the variety
 > of configuration/installation methods by all 5800+ ports in the tree).
 > 
 
 i think you are considering changes in/to hardcoded lists of files; i was 
 thinking that may be package target would get the installed files via 
 pkg_info, or something similar, and then a package would be created 
 from that output ... instead of a hardcoded list of files found in, 
 say, pkg-plist.
 

From: Peter Pentchev <roam@ringlet.net>
To: parv <parv_@yahoo.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/30430: package of mozilla fails if configured w/ --disable-mailnews
Date: Sat, 8 Sep 2001 19:05:18 +0300

 On Fri, Sep 07, 2001 at 09:40:02PM -0700, parv wrote:
 > The following reply was made to PR ports/30430; it has been noted by GNATS.
 > 
 > From: parv <parv_@yahoo.com>
 > To: Pete Fritchman <petef@databits.net>
 > Cc: FreeBSD-gnats-submit@freebsd.org
 > Subject: Re: ports/30430: package of mozilla fails if configured w/ --disable-mailnews
 > Date: Sat, 8 Sep 2001 00:33:19 -0400
 > 
 >  this was, on the fateful occasion around Sep 07 23:14 -0400,
 >  sent by Pete Fritchman                                               
 >  >
 >  > ++ 07/09/01 22:57 -0400 - parv_@yahoo.com:
 >  > | w/ default Makefile, package is made ok.
 >  > | 
 >  > | package of mozilla fails if configured w/ --disable-mailnews instead of
 >  > | being enabled w/ this message (btw, install was okay)...
 >  > 
 >  > Like you say, this probably happens with many many ports
 >  > (changing/adding a configure option and seeing `make package' fail).  In
 >  > most cases, it would be appropriate to add a WITHOUT_FOO hook in the
 >  > Makefile and use PLIST_SUB (if the WITHOUT_FOO hook is specified, expand
 >  > %%FOO%% to @comment, otherwise make it '').  Then just prefix everything
 >  > specific to 'FOO' with %%FOO%% in pkg-plist.
 >  
 >  thanks for the pointer, pete.
 >  
 >  > 
 >  > | don't know, but a general solution would be much appreaciated when
 >  > | the software (& related files) installed are not what "make 
 >  > | package" would expect as it happens w/ almost every port.
 >  > 
 >  > I don't think a 'general solution' would be possible (due to the variety
 >  > of configuration/installation methods by all 5800+ ports in the tree).
 >  > 
 >  
 >  i think you are considering changes in/to hardcoded lists of files; i was 
 >  thinking that may be package target would get the installed files via 
 >  pkg_info, or something similar, and then a package would be created 
 >  from that output ... instead of a hardcoded list of files found in, 
 >  say, pkg-plist.
 
 pkg_info only works with already-created packages; there is no way
 the Ports collection would know which files were installed when
 the INSTALL_CMD was invoked inside a port's WRKSRC directory.
 The only way to find out would be doing a find(1) over PREFIX
 before and after the installation, and seeing which files appeared;
 however, this will not work in all cases, since files may have
 appeared in directories within PREFIX for reasons entirely unrelated
 to this port's installation.  For example, another port might have
 been installed at the same time, or a webserver's logs might have
 rotated, or a whole slew of other things might have happened to cause
 a file to appear :)
 
 There is absolutely no automated way for the Ports collection makefiles
 to know which files were installed by a port, and thus, which files to
 package up; this is left to the port maintainer to decide.  Incidentally,
 pkg_info(1) on an installed port takes its information from the package
 database, which is populated at port installation time - from the pkg-plist
 itself :)  So, all pkg_info lists is the contents of pkg-plist with
 the port build options.
 
 G'luck,
 Peter
 
 -- 
 because I didn't think of a good beginning of it.
Responsible-Changed-From-To: freebsd-ports->gnome 
Responsible-Changed-By: dwcjr 
Responsible-Changed-When: Sat Sep 15 22:46:12 PDT 2001 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30430 
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Wed Sep 19 03:48:21 PDT 2001 
State-Changed-Why:  
See comments on 30018. 

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