From owner-freebsd-ports@FreeBSD.ORG Sat Oct 11 13:28:02 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4312416A4B3 for ; Sat, 11 Oct 2003 13:28:02 -0700 (PDT) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C43343FB1 for ; Sat, 11 Oct 2003 13:28:01 -0700 (PDT) (envelope-from hetzelsw@westbend.net) Received: from ADMIN00 (admin00.westbend.net [216.47.253.17]) by mail.westbend.net (8.12.9/8.12.9) with SMTP id h9BKRvHT083968; Sat, 11 Oct 2003 15:27:58 -0500 (CDT) (envelope-from hetzelsw@westbend.net) Message-ID: <007201c39036$2803fe90$11fd2fd8@westbend.net> From: "Scot W. Hetzel" To: "Kris Kennaway" , "Gene Raytsin" References: <3F847FC6.6080905@paladin7.net> <20031008232218.GA4053@rot13.obsecurity.org> Date: Sat, 11 Oct 2003 15:15:27 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=-0.6 required=8.0 tests=QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT_OE version=2.43 cc: freebsd-ports@freebsd.org Subject: Re: feature request X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2003 20:28:02 -0000 From: "Kris Kennaway" >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