[Build-common-hackers] Bug#215933: cdbs: Doesn't generate gconf handling postinst/postrm

Andrew Lau Andrew Lau <netsnipe@users.sourceforge.net>, 215933@bugs.debian.org
Thu, 16 Oct 2003 00:58:16 +1000


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

Package: cdbs
Version: 0.4.12
Severity: normal

Hey guys,

I've only just realised that cdbs only does half the job when it comes
to gconf handling.=20

netsnipe@espresso:/usr/share/cdbs/1$ rgrep -i GCONF *
class/gnome.mk:# Description: A class for GNOME packages; sets up gconf var=
iables, etc
class/gnome.mk:DEB_MAKE_ENVVARS +=3D GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=
=3D1

I find it very strange cdbs doesn't tie up the other end.

postinst:

case "$1" in
    configure)
        if [ -e /etc/gconf/schemas/${package}.schemas ]; then
                GCONF_CONFIG_SOURCE=3D`gconftool-2 --get-default-source` \
                gconftool-2 --makefile-install-rule \
		/etc/gconf/schemas/${package}.schemas > /dev/null
        fi
    ;;
    ...
esac

postrm:

if [ "$1" =3D "purge" ]; then
        rm -rf /etc/gconf/gconf.xml.defaults/apps/${package}
        rm -rf /etc/gconf/gconf.xml.defaults/schemas/apps/${package}
fi

See <http://www.gnome.org/projects/gconf/>

Yes I know, that asking for this is being lazy on my part =3D P, but I
wouldn't be suprised if some other GNOME maintainers apart from me will
forget this as well if they make the same assumption that CDBS will
handle everything GCONF for them.

Yours sincerely,
Andrew "Netsnipe" Lau

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux espresso 2.4.22 #1 Mon Sep 1 18:31:19 EST 2003 i686
Locale: LANG=3Den_AU.UTF-8, LC_CTYPE=3Den_AU.UTF-8

-- no debconf information


--=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
      Andrew "Netsnipe" Lau    Computer Sci. UNSW & Debian GNU/Linux
	 <netsnipe(+)users.sf.net\0>    <alau(+)cse.unsw.edu.au\0>
 GnuPG 1024D/2E8B68BD:  0B77 73D0 4F3B F286 63F1  9F4A 9B24 C07D 2E8B 68BD
				     -
		  "Nobody expects the Debian Inquisition!
     Our two weapons are fear and surprise...and ruthless efficiency!"
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

--DocE+STaALJfprDB
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQE/jWCImyTAfS6LaL0RAs8nAJ49s48rmeY/Hd27TnID+7FEGaaAewCcDEtM
PyLtUtXn4Q1j4+MEFwz4CWo=
=BLtX
-----END PGP SIGNATURE-----

--DocE+STaALJfprDB--