Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Feb 2006 14:05:30 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        gnome@freebsd.org, Dejan Lesjak <dejan.lesjak@ijs.si>, freebsd-x11@freebsd.org, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: [ports-i386@FreeBSD.org: gtk-2.8.11 failed on i386 6]
Message-ID:  <20060202190530.GB97268@xor.obsecurity.org>
In-Reply-To: <1138901747.8738.7.camel@shumai.marcuscom.com>
References:  <20060202161851.GA29539@xor.obsecurity.org> <200602021744.01452.dejan.lesjak@ijs.si> <1138901747.8738.7.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--f2QGlHpHGjS2mn6Y
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Feb 02, 2006 at 12:35:47PM -0500, Joe Marcus Clarke wrote:
> On Thu, 2006-02-02 at 17:43 +0100, Dejan Lesjak wrote:
> > [fontconfig maintainers cced]
> >=20
> > On Thursday 02 February 2006 17:18, Kris Kennaway wrote:
> > > This failure is caused by the following files left in the directory
> > > after xorg-font-encodings has been removed:
> > >
> > > -rw-r--r--  1 root  wheel  17 Feb  1 19:53
> > > /usr/X11R6/lib/X11/fonts/encodings/fonts.cache-1 -rw-r--r--  1 root  =
wheel=20
> > >  0 Feb  1 19:53 /usr/X11R6/lib/X11/fonts/encodings/large/fonts.cache-1
> > >
> > > These are then removed by fontconfig, but nothing cleans up the
> > > directories.  What should be doing that?
> >=20
> > Interesting question.  fontencodings don't create fonts.cache-1, but it=
 will=20
> > probably be easier and less messy if they remove them so they can also =
remove=20
> > directories. Can it be assumed that fontconfig is present at the time=
=20
> > fontencodings are uninstalled?
>=20
> Not necessarily.  fontconfig is only a build dependency of
> xorg-font-encodings.  Therefore, you could remove fontconfig, and keep
> encodings around.  The strange thing is that fontconfig removes all
> fonts.cache-1 files under /usr/X11R6/lib/X11/fonts upon deinstallation.

It's the converse ordering issue: xorg-font-encodings may also be
removed while fontconfig is still present because they are listed as
being independent.  xorg-font-encodings then tries to remove its
directory while the fonts.cache-1 is still there, so it fails, and
when fontconfig is later removed, it cleans up these files but leaves
behind the directory.

In this situation where two independent ports are both touching files
inside the same directory, both of them should try to @dirrmtry it at
deinstallation time, so it gets cleaned up no matter what order the
ports are removed in.

Kris

--f2QGlHpHGjS2mn6Y
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFD4lf6Wry0BWjoQKURAtl5AKDOxgLvwJ5Z90hMf4+ymd2GU7W8EQCgmKWs
HfGlDipCYlz9nzakAnGxAbk=
=4x/e
-----END PGP SIGNATURE-----

--f2QGlHpHGjS2mn6Y--



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