svn commit: r243554 - in head/usr.sbin/pkg_install: add create delete info lib updating version

Baptiste Daroussin bapt at FreeBSD.org
Thu Nov 29 07:38:52 UTC 2012


On Wed, Nov 28, 2012 at 06:34:22PM -0800, Stanislav Sedov wrote:
> On Wed, 28 Nov 2012 21:03:58 -0500
> Eitan Adler <eadler at freebsd.org> mentioned:
> 
> > On 28 November 2012 20:00, Stanislav Sedov <stas at freebsd.org> wrote:
> > > On Mon, 26 Nov 2012 05:11:07 +0000 (UTC)
> > > Eitan Adler <eadler at FreeBSD.org> mentioned:
> > >
> > >> Author: eadler
> > >> Date: Mon Nov 26 05:11:07 2012
> > >> New Revision: 243554
> > >> URL: http://svnweb.freebsd.org/changeset/base/243554
> > >>
> > >> Log:
> > >>   Provide an option to users to shoot themselves in the foot.
> > >>
> > >
> > > This should probably be a default behavior.  It's not good when all these
> > > warnings pop up everywhere just because local.sqlite file is present.
> > 
> > Making the foot shooting behavior default defeats the point.
> > If local.sqlite exists it almost certainly means that you don't want
> > to run the old pkg_ tools.
> > For the few correct uses an opt-out option is provided.
> > 
> 
> Well, it's not entirely true.  I did end up with local.sqlite because I
> stepped on the landmine of portmgr-pkg becoming the default for some
> reason.  So I did end up with half of my packages being in the pkgng
> sqlite database, and half in standard /var/db/pkg.  I had to convert
> them back to standard format by hand, but I still have the sqlite database
> just in case.
> 
> I guess if you really want to prevent a foot-shooting, you should add
> a message to pkgng sayng in all caps e.g. "You are running experimental
> package manager and there's no migration plan from pkgng to old pkg
> exists." and maybe ask for confirmation.  I don't really see how this
> message being in pkg_ tools helps to prevent a possible foot-shooting
> at all.

pkg is no more experimental at all, it is not perfect there are large rooms for
improvements, but it is perfectly ready to be used, if you have any concern
about some missing "feature" just report it;

Concerning a landmine, when you have big flashy lights all over the place:
http://lists.freebsd.org/pipermail/freebsd-ports-announce/2012-October/000032.html
http://lists.freebsd.org/pipermail/freebsd-current/2012-October/037001.html
a fanfare playing in front of it saying beware landsmine:
http://svnweb.freebsd.org/ports?view=revision&revision=305637
and maps available all over the places to explains where the mine are how to
workaround them, or be mine proof:
http://svnweb.freebsd.org/ports/head/CHANGES (entry 20121010)
http://svnweb.freebsd.org/ports/head/UPDATING (entry 20121010)

I'd say in that case it is no more considered as a landmine but just a new safe
way.

Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20121129/12b6b9b0/attachment.sig>


More information about the svn-src-head mailing list