feature request

Scot W. Hetzel hetzelsw at westbend.net
Sat Oct 11 13:28:02 PDT 2003


From: "Kris Kennaway" <kris at obsecurity.org>
>On Wed, Oct 08, 2003 at 05:21:10PM -0400, Gene Raytsin wrote:
>> I have notice that if you run "make package" for a port which depends on
>> not yet installed
>> ports the actual package created only for this port, while all
>> dependencies are simply installed without being
>> also created as packages.
>
> 'make package-recursive'.  This is a FAQ.
>
Except it's broken, it fails to include the pkg-install/deinstall scripts in
the package where the 'make package-recursive' was run..  I noticed this
when I was trying to install the packages for mail/cyrus-imapd22 and it's
dependency security/cyrus-sasl2 on a different system.  It failed due to a
missing cyrus user (since I had initially ran 'make package-recursive' in
security/cyrus-sasl2).

I just re-ran 'make package-recursive' using the cyrus-imapd22 port and here
are the results of both package-recursive and package targets:

First use 'make package-recursive'

Contents of the /usr/ports/packages/All/cyrus-imapd-2.2.1.b_1.tbz
(package-recursive used in mail/cyrus-imapd22)
-rw-r--r-- root/wheel    22745 Oct 11 14:14 2003 +CONTENTS
-rw-r--r-- root/wheel       59 Oct 11 14:14 2003 +COMMENT
-rw-r--r-- root/wheel     1097 Oct 11 14:14 2003 +DESC
-rw-r--r-- root/wheel      347 Oct 11 14:14 2003 +DISPLAY
-r--r--r-- root/wheel     8200 Oct 11 14:14 2003 +MTREE_DIRS
-r--r--r-- root/wheel     5608 Oct 11 14:13 2003 man/man1/cyradm.1.gz
-rw-r--r-- root/wheel     2272 Oct 11 14:13 2003 man/man1/imtest.1.gz
-rw-r--r-- root/wheel     1651 Oct 11 14:13 2003 man/man1/installsieve.1.gz
-rw-r--r-- root/wheel     2072 Oct 11 14:13 2003 man/man1/lmtptest.1.gz
:

Remove work/.package_done* and run 'make package'

Contents of the /usr/ports/packages/All/cyrus-imapd-2.2.1.b_1.tbz (package
used in mail/cyrus-imapd22)
-rw-r--r-- root/wheel    22781 Oct 11 14:18 2003 +CONTENTS
-rw-r--r-- root/wheel       59 Oct 11 14:18 2003 +COMMENT
-rw-r--r-- root/wheel     1097 Oct 11 14:18 2003 +DESC
-rw-r--r-- root/wheel     1165 Oct 11 14:18 2003 +INSTALL
-rw-r--r-- root/wheel     1175 Oct 11 14:18 2003 +DEINSTALL
-rw-r--r-- root/wheel      347 Oct 11 14:18 2003 +DISPLAY
-r--r--r-- root/wheel     8200 Oct 11 14:18 2003 +MTREE_DIRS
-r--r--r-- root/wheel     5608 Oct 11 14:13 2003 man/man1/cyradm.1.gz
-rw-r--r-- root/wheel     2272 Oct 11 14:13 2003 man/man1/imtest.1.gz
-rw-r--r-- root/wheel     1651 Oct 11 14:13 2003 man/man1/installsieve.1.gz
-rw-r--r-- root/wheel     2072 Oct 11 14:13 2003 man/man1/lmtptest.1.gz
:

As you can see the +INSTALL and +DEINSTALL scripts are missing from the
package created from the package-recursive target.

NOTE: This only affects the parent package, all dependant packages are fine.

I have submited PR 57870 on this problem:

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

Scot



More information about the freebsd-ports mailing list