Bug#241964: gconftool-2 --makefile-uninstall-rule fails with /etc in CVS

Josselin Mouette 241964@bugs.debian.org, 241964@bugs.debian.org
Sun, 04 Apr 2004 12:47:19 +0200


--=-hDx0K9VIpMICOkzNSA67
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

Le dim 04/04/2004 =E0 04:18, David B Harris a =E9crit :
> Hey there. I prefer keeping my /etc/ in CVS, but I've been running into
> trouble lately with some GNOME packages. Specifically, they call
> gconftool-2 --makefile-uninstall-rule.
>=20
> Unfortunately, many /etc/gconf/schemas/ directories contain CVS/
> subdirectories, and gconftool-2 fails if it can't delete the directory
> because it isn't empty:
>=20
> Removing gnome-panel-data ...
> Failed:
>  Failed to delete "/etc/gconf/gconf.xml.defaults/apps/gnome_panel_screens=
hot": Directory not empty
> Failed:
>  Failed to delete "/etc/gconf/gconf.xml.defaults/schemas/apps/gnome_panel=
_screenshot": Directory not empty
> Error syncing config data: Failed:
>  Failed to sync XML cache contents to disk
> dpkg: error processing gnome-panel-data (--purge):
>  subprocess pre-removal script returned error exit status 1
> Errors were encountered while processing:
>  gnome-panel-data
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>=20
> The consensus among people I've talked to (and there've been a fair
> number) is that when a package is purged, it should remove *only* those
> configuration files it knows about explicitly, and then it should use
> 'rmdir --ignore-fail-on-non-empty' to remove any directories that are
> involved.
>=20
> It would probably make sense for gconftool-2 to act similarly; there's
> really no guarantee that the directories in question are empty, and as
> near as I can tell leaving them around (because the admin has files of
> their own in there) causes no harm.

This would only fix things locally. In fact, the whole point of having
the schemas stored in /etc/gconf/schemas and registered in
/etc/gconf/gconf.xml.defaults is completely wrong. We're working on
their migration to resp. /usr and /var.

Regards,
--=20
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette@ens-lyon.org
`. `'                        joss@debian.org
  `-  Debian GNU/Linux -- The power of freedom

--=-hDx0K9VIpMICOkzNSA67
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAb+e2rSla4ddfhTMRAqvUAJwIbDIz32gs3cYxEVtKJ4n7u3g5NwCg3kee
Zp67YLUDPmsE7JrZoRZt0yA=
=kVxa
-----END PGP SIGNATURE-----

--=-hDx0K9VIpMICOkzNSA67--