Subject: Re: pkg tools problem
To: Jeremy C. Reed <reed@reedmedia.net>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: tech-pkg
Date: 02/04/2005 18:46:17
In message <Pine.LNX.4.43.0502041536570.32296-100000@pilchuck.reedmedia.net>, "
Jeremy C. Reed" writes:
>On Fri, 4 Feb 2005, Steven M. Bellovin wrote:
>
>> ===> Installing for pkg_install-20050204
>> ===> pkg_install-20050106 is already installed - perhaps an older version?
>> *** If so, you may use either of:
>> *** - "pkg_delete pkg_install-20050106" and "/usr/bin/make reinstall" to up
>grade properly
>> *** - "/usr/bin/make update" to rebuild the package and all of its dependen
>cies
>> *** - "/usr/bin/make replace" to replace only the package without re-linkin
>g
>> *** dependencies, risking various problems.
>> *** Error code 1
>>
>>
>> I'm loathe to do a pkg_delete on pkg_install; beyond that, are the
>> instructions now wrong? The machine I'm running on is -current.
>
>My own pkg_install/Makefile has:
>+# Removing this package would break pkgsrc, so allow this package to
>+# reinstall over itself.
>+# XXX need to figure out a way not to have multiple pkg entries for old ones.
>+FORCE_PKG_REGISTER= # defined
>
>This is messy because I end up with:
>
>drwxr-xr-x 2 root root 4096 Apr 8 2004 /var/db/pkg/pkg_install-20040330
>drwxr-xr-x 2 root root 4096 Apr 9 2004 /var/db/pkg/pkg_install-20040409
>drwxr-xr-x 2 root root 4096 May 26 2004 /var/db/pkg/pkg_install-20040508
>drwxr-xr-x 2 root root 4096 Jul 22 2004 /var/db/pkg/pkg_install-20040508nb1
>drwxr-xr-x 2 root root 4096 Jul 22 2004 /var/db/pkg/pkg_install-20040508nb2
>drwxr-xr-x 2 root root 4096 Jan 7 10:02 /var/db/pkg/pkg_install-20050106
>
>
>It would be good if it could set PKG_TOOLS_BIN to the appropriate WRKSRC
>directory or set PKG_ADMIN and PKG_CREATE to work version at the
>right time.
>
Which suggests that I should do the 'make replace'.
--Prof. Steven M. Bellovin, http://www.cs.columbia.edu/~smb