NetBSD Problem Report #23719

Received: (qmail 23484 invoked by uid 605); 11 Dec 2003 17:23:13 -0000
Message-Id: <20031211172312.0CCEC19DBCC@jodi.nimenees.com>
Date: Thu, 11 Dec 2003 11:23:12 -0600 (CST)
From: erh@nimenees.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: erh@nimenees.com
To: gnats-bugs@gnats.netbsd.org
Subject: pkg_install package can't be created
X-Send-Pr-Version: 3.95

>Number:         23719
>Category:       pkg
>Synopsis:       pkg_install package can't be created
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    erh
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 11 17:24:00 +0000 2003
>Closed-Date:    Tue Oct 05 21:09:17 +0000 2004
>Last-Modified:  Tue Oct 05 21:10:00 +0000 2004
>Originator:     Eric Haszlakiewicz
>Release:        NetBSD 1.6ZD
>Organization:
>Environment:
System: NetBSD jodi.nimenees.com 1.6ZD NetBSD 1.6ZD (MICHELLE) #4: Sun Nov 2 21:10:21 CST 2003 root@poe.swapsimple.com:/usr/build/MICHELLE i386
Architecture: i386
Machine: i386
>Description:
	It is not possible to create a binary package of pkg_install.
	It would be really nice to have this so upgrading pkg_install
	doesn't request downloading pkgsrc, but could be done with 
	a "pkg_add -u".
>How-To-Repeat:
	(cd /usr/pkgsrc/pkgtools/pkg_install && make package)
	or
	pkg_tarup pkg_install
>Fix:
	Tweak something about how deletion of pkg_install is forbidden.
	Not sure what.
>Release-Note:
>Audit-Trail:

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: erh@nimenees.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/23719: pkg_install package can't be created
Date: Thu, 11 Dec 2003 10:44:17 -0800 (PST)

 On Thu, 11 Dec 2003 erh@nimenees.com wrote:

 > 	It is not possible to create a binary package of pkg_install.
 > 	It would be really nice to have this so upgrading pkg_install
 > 	doesn't request downloading pkgsrc, but could be done with
 > 	a "pkg_add -u".

 Definitely. This should be fixed. On my systems I have to have a custom
 pkg_install in pkgsrc. I get rid of the NO_PKG_REGISTER and the
 NO_PACKAGE. And I just keep the PKG_PRESERVE.

 PKG_PRESERVE is good enough. It was implemented to get rid of those other
 restrictions. The NO_PKG_REGISTER and NO_PACKAGE should be removed.

 You can do that as your workaround.

 (My other problem is lack of db related functionality with pkg_install
 tools.)

    Jeremy C. Reed
    http://bsd.reedmedia.net/


From: Eric Haszlakiewicz <erh@jodi.nimenees.com>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: gnats-bugs@gnats.netbsd.org, tech-pkg@netbsd.org
Subject: Re: pkg/23719: pkg_install package can't be created
Date: Fri, 12 Dec 2003 15:11:08 -0600

 On Thu, Dec 11, 2003 at 10:44:17AM -0800, Jeremy C. Reed wrote:
 > On Thu, 11 Dec 2003 erh@nimenees.com wrote:
 > > 	It is not possible to create a binary package of pkg_install.
 > > 	It would be really nice to have this so upgrading pkg_install
 > > 	doesn't request downloading pkgsrc, but could be done with
 > > 	a "pkg_add -u".
 > 
 > Definitely. This should be fixed. On my systems I have to have a custom
 > pkg_install in pkgsrc. I get rid of the NO_PKG_REGISTER and the
 > NO_PACKAGE. And I just keep the PKG_PRESERVE.
 > 
 > PKG_PRESERVE is good enough. It was implemented to get rid of those other
 > restrictions. The NO_PKG_REGISTER and NO_PACKAGE should be removed.

 	well, then unless someone has some reason to keep those, I'm going to
 commit that change.

 > (My other problem is lack of db related functionality with pkg_install
 > tools.)
 	eh? could you be talking about the same reason that I don't get a
 pkgdb.byfile.db?

 eric

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: Eric Haszlakiewicz <erh@jodi.nimenees.com>
Cc: gnats-bugs@gnats.netbsd.org, <tech-pkg@netbsd.org>
Subject: Re: pkg/23719: pkg_install package can't be created
Date: Fri, 12 Dec 2003 13:34:33 -0800 (PST)

 On Fri, 12 Dec 2003, Eric Haszlakiewicz wrote:

 > > PKG_PRESERVE is good enough. It was implemented to get rid of those other
 > > restrictions. The NO_PKG_REGISTER and NO_PACKAGE should be removed.
 >
 > 	well, then unless someone has some reason to keep those, I'm going to
 > commit that change.

 You may also want to look at same issue with archivers/pax and
 pkgtools/mtree.

 > > (My other problem is lack of db related functionality with pkg_install
 > > tools.)
 > 	eh? could you be talking about the same reason that I don't get a
 > pkgdb.byfile.db?

 When pkg_install is configured it checks for:

   checking for dbopen...

 Have a look at "HAVE_DB" in lib/pkgdb.c.

 Under BSD/OS it configures and works; but under Linux for me, it
 doesn't.

 A dependency on a db package was not wanted for the pkg_install package.
 Someone needs to get pkg_install to build with the lib/libdb2.a on all
 platforms. And then maybe it could just use databases/db/buildlink2.mk.
 (It needs to be buildlinked, but only as a build-time BUILD_DEPENDS
 dependency.)

 Not having db support is bad for me, because my custom pkg_install's
 upgrade option uses the list of filenames to know what files aren't in new
 install to delete them from system.

    Jeremy C. Reed
    http://bsd.reedmedia.net/

State-Changed-From-To: open->closed 
State-Changed-By: erh 
State-Changed-When: Tue Oct 5 21:08:40 UTC 2004 
State-Changed-Why:  
Fixed. 


Responsible-Changed-From-To: pkg-manager->erh 
Responsible-Changed-By: erh 
Responsible-Changed-When: Tue Oct 5 21:08:40 UTC 2004 
Responsible-Changed-Why:  
I made the fix. 

From: Eric Haszlakiewicz <erh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/23719 CVS commit: pkgsrc/pkgtools/pkg_install
Date: Tue,  5 Oct 2004 21:08:32 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	erh
 Date:		Tue Oct  5 21:08:32 UTC 2004

 Modified Files:
 	pkgsrc/pkgtools/pkg_install: Makefile

 Log Message:
 PR pkg/23719: allow a pkg_install package to be created so a system can be
 updated using entirely binary packages.


 To generate a diff of this commit:
 cvs rdiff -r1.103 -r1.104 pkgsrc/pkgtools/pkg_install/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.