From owner-freebsd-bugs Thu Jan 17 13:20:26 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4149C37B430 for ; Thu, 17 Jan 2002 13:20:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0HLK2f87081; Thu, 17 Jan 2002 13:20:02 -0800 (PST) (envelope-from gnats) Received: from mail.ctonet.it (mail.ctonet.it [212.110.160.100]) by hub.freebsd.org (Postfix) with ESMTP id 5CDB937B41A; Thu, 17 Jan 2002 13:16:24 -0800 (PST) Received: from olgeni.olgeni (ppp-133.dial5.ctonet.it [212.110.180.133]) by mail.ctonet.it (Postfix) with ESMTP id 651E41239C; Thu, 17 Jan 2002 22:16:09 +0100 (CET) Received: (from olgeni@localhost) by olgeni.olgeni (8.11.6/8.11.6) id g0HLG1p16097; Thu, 17 Jan 2002 22:16:01 +0100 (CET) (envelope-from olgeni) Message-Id: <200201172116.g0HLG1p16097@olgeni.olgeni> Date: Thu, 17 Jan 2002 22:16:01 +0100 (CET) From: Jimmy Olgeni Reply-To: Jimmy Olgeni To: FreeBSD-gnats-submit@freebsd.org Cc: re@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/34007: pkg_create -b forgets to include install scripts Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34007 >Category: bin >Synopsis: pkg_create -b forgets to include install scripts >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 17 13:20:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Jimmy Olgeni >Release: FreeBSD 4.5-RC i386 >Organization: Colby >Environment: >Description: The -b option of pkg_create can be used to build binary packages from installed ports. However, it will skip files which are essential to pkg_add operation (like +INSTALL for the package installation script). >How-To-Repeat: Try to create packages with "pkg_create -b" and the misc/pkg_tarup port, then compare the package contents (I used the postgresql port as an example only). $ pkg_tarup postgresql-7.1.3 $ tar tvfz /var/tmp/postgresql-7.1.3.tgz -rw-r--r-- root/wheel 71942 Jan 11 11:27 2002 +CONTENTS -rw-r--r-- root/wheel 50 Jan 11 11:27 2002 +COMMENT -rw-r--r-- root/wheel 1346 Jan 11 11:27 2002 +DESC -rwxr-xr-x root/wheel 910 Jan 11 11:27 2002 +INSTALL -rw-r--r-- root/wheel 1262 Jan 11 11:27 2002 +DISPLAY -rw-r--r-- root/wheel 1552 Sep 13 15:23 2001 man/man1/createdb.1.gz -rw-r--r-- root/wheel 1077 Sep 13 15:23 2001 man/man1/createlang.1.gz -rw-r--r-- root/wheel 1455 Sep 13 15:23 2001 man/man1/createuser.1.gz ... (this is ok) $ pkg_create -b postgresql-7.1.3 $ tar tvfz postgresql-7.1.3.tgz -rw-r--r-- root/wheel 71748 Nov 16 13:01 2001 +CONTENTS -rw-r--r-- root/wheel 50 Oct 1 18:39 2001 +COMMENT -rw-r--r-- root/wheel 1346 Oct 1 18:39 2001 +DESC -rw-r--r-- root/wheel 1552 Sep 13 15:23 2001 man/man1/createdb.1.gz -rw-r--r-- root/wheel 1077 Sep 13 15:23 2001 man/man1/createlang.1.gz -rw-r--r-- root/wheel 1455 Sep 13 15:23 2001 man/man1/createuser.1.gz ... The package from pkg_create is missing both +DISPLAY and +INSTALL. >Fix: The misc/pkg_tarup utility can be used as a workaround. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message