Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2006 22:45:21 +0600
From:      Stanislav Sedov <ssedov@mbsd.msk.ru>
To:        "Andrew Pantyukhin" <infofarmer@FreeBSD.org>
Cc:        FreeBSD Ports <ports@freebsd.org>, Jeremy Messenger <mezz7@cox.net>, portmgr@freebsd.org
Subject:   Re: BSD.local.dist - share/locale
Message-ID:  <20060824224521.300b2185@localhost>
In-Reply-To: <cb5206420608240750y374ba12es2afbe254acf126cc@mail.gmail.com>
References:  <cb5206420608240626g7f3756c9g8754d7a437c5fd25@mail.gmail.com> <op.tesirrx09aq2h7@mezz.mezzweb.com> <cb5206420608240750y374ba12es2afbe254acf126cc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_1Mrc.1bCP8URC1NZ7T=7N8o
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

On Thu, 24 Aug 2006 18:50:52 +0400
"Andrew Pantyukhin" <infofarmer@FreeBSD.org> mentioned:

> On 8/24/06, Jeremy Messenger <mezz7@cox.net> wrote:
> > On Thu, 24 Aug 2006 08:26:53 -0500, Andrew Pantyukhin
> > <infofarmer@FreeBSD.org> wrote:
> >
> > > I can't help thinking that the way we're trying to deal with
> > > locale directories is far from optimal. IMHO, there are
> > > several ways to improve the state of things:
> >
> > I think the current how we handle locale is a bit silly, so I personal =
in
> > favor of create localehier like misc/gnomehier than four suggested belo=
w..
> > Honestly, I would be more rather to put mtree that is for ports in
> > somewhere of /usr/ports/ than /etc/mtree/ that way any version of FreeB=
SD
> > won't have any of left over directories problem.
>=20
> It's a good idea, but we're back at the second question -
> what if someone fancies to pkg_delete -xf gnomehier?
> There will be no way to get a clean system after that
> other than by reinstalling gnomehier and deleting it after
> all the ports requiring it.
>=20

That's not the main problem, and hasn't point at all since we
doesn't support such kind of deinstalls - dependent ports should
be deinstalled before dependencies.=20

The main argument for deinstalling all files/direcotries that
port creates follows from FreeBSD ports goal to support different
PREFIXES. That is, you can install gettext into /usr/local and=20
smth that depends on gettext into /usr/local/opt. In that case
all these share/locale/xxx dirs will be created under /usr/local/opt
PREFIX and if this dependent port will not make effort to remove
these files/directories on deinstall, they will stay under /usr/local/opt
forever, though not listed in ${MTREE_FILE}.

The only possible solution I can imagine is to add these direcories into
mtree file, but since all pacthes are alredy there, there is no reason
doing this now. Just port committers should check PLISTS accurately. This
could be achieved by installing port with non standard PREFIX=3Dxxx,
deinstalling it and looking for directories/files left.

The other possible solution is to implement some technique to automatically
gather directories dependencies created and add them into plist. But this
rather can't be achieved now, since we currently doesn't list directories
in plist, and we can't rely on @dirrm for they can be deleted also with rm =
-rf,
rmdir and even with `set xxx=3D`mktemp /tmp/1.XXXXXX` && echo '#include <st=
dlib.h>\n#include <unistd.h>\nint main(){rmdir("/path/to/dir"); return 0;}'=
 > ${xxx} &&
${CC} -o ${xxx:r} ${xxx} && ${xxx:r}` ;-)

--=20
Stanislav Sedov         MBSD labs, Inc.         <ssedov@mbsd.msk.ru>
=F2=CF=D3=D3=C9=D1, =ED=CF=D3=CB=D7=C1         http://mbsd.msk.ru

--------------------------------------------------------------------
If the facts don't fit the theory, change the facts.  -- A. Einstein
--------------------------------------------------------------------
PGP fingerprint:  F21E D6CC 5626 9609 6CE2  A385 2BF5 5993 EB26 9581

--Sig_1Mrc.1bCP8URC1NZ7T=7N8o
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFE7denK/VZk+smlYERAqEGAJ0dD++pdZM9hnIKHPL/m0TY7OuIJQCeNuXh
1NQvX2fWygh2vWZY5nZGhHs=
=pQ2h
-----END PGP SIGNATURE-----

--Sig_1Mrc.1bCP8URC1NZ7T=7N8o--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060824224521.300b2185>