Debian Bug report logs -
#587661
should install glib-compile-schemas in libglib2.0-bin
Reported by: Sebastien Bacher <seb128@ubuntu.com>
Date: Wed, 30 Jun 2010 17:21:01 UTC
Severity: wishlist
Tags: patch
Found in version 2.25.10-1
Fixed in version glib2.0/2.25.11-1
Done: Sebastian Dröge <slomo@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Loic Minier <lool@dooz.org>:
Bug#587661; Package glib2.0.
(Wed, 30 Jun 2010 17:21:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Sebastien Bacher <seb128@ubuntu.com>:
New Bug report received and forwarded. Copy sent to Loic Minier <lool@dooz.org>.
(Wed, 30 Jun 2010 17:21:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: glib2.0
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu maverick ubuntu-patch
Version: 2.25.10-1
Severity: wishlist
Tags: patch
Since glib-compile-schemas is used to register schemas it should be in
the bin and not the dev binary, those are the changes Robert Ancell did
in Ubuntu for that, he also added a trigger to register schemas
* debian/libglib2.0-bin.install:
- Install glib-compile-schemas
* debian/libglib2.0-bin.postinst:
- Run glib-compile-schemas when schemas modified
* debian/libglib2.0-bin.triggers:
- Watch for schema changes
* debian/libglib2.0-dev.install:
- glib-compile-schemas moved to libglib2.0-bin
this change is also in the libglib2.0-dev install
- install the new gdb python macros since the gdb version is recent
enough now to use those
[glib.debdiff (text/x-patch, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Loic Minier <lool@dooz.org>:
Bug#587661; Package glib2.0.
(Wed, 30 Jun 2010 17:39:10 GMT) (full text, mbox, link).
Acknowledgement sent
to 587661@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to Loic Minier <lool@dooz.org>.
(Wed, 30 Jun 2010 17:39:10 GMT) (full text, mbox, link).
Message #10 received at 587661@bugs.debian.org (full text, mbox, reply):
Le mercredi 30 juin 2010 à 19:17 +0200, Sebastien Bacher a écrit :
> Since glib-compile-schemas is used to register schemas it should be in
> the bin and not the dev binary, those are the changes Robert Ancell did
> in Ubuntu for that, he also added a trigger to register schemas
Thanks for the patch.
Note that the syntax for the trigger is incorrect since several triggers
can be passed at once, separated by spaces but all in $2 (which is not
very intuitive). Therefore it should be something like this:
if [ "$1" = triggered ]; then
for trigger in $2; do
case $trigger in
/usr/share/glib-2.0/schemas)
# This is triggered everytime an application installs a GSettings schema
glib-compile-schemas /usr/share/glib-2.0/schemas || true
;;
/usr/lib/gio/modules)
# This is triggered everytime an application installs a GIO
# module into /usr/lib/gio/modules
gio-querymodules /usr/lib/gio/modules
;;
esac
done
exit 0
fi
Cheers,
--
.''`.
: :' : “Fuck you sir, don’t be suprised when you die if
`. `' you burn in Hell, because I am a solid Christian
`- and I am praying for you.” -- Mike
Information forwarded
to debian-bugs-dist@lists.debian.org, Loic Minier <lool@dooz.org>:
Bug#587661; Package glib2.0.
(Wed, 30 Jun 2010 17:45:03 GMT) (full text, mbox, link).
Acknowledgement sent
to 587661@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to Loic Minier <lool@dooz.org>.
(Wed, 30 Jun 2010 17:45:03 GMT) (full text, mbox, link).
Message #15 received at 587661@bugs.debian.org (full text, mbox, reply):
Le mercredi 30 juin 2010 à 19:17 +0200, Sebastien Bacher a écrit :
> Since glib-compile-schemas is used to register schemas it should be in
> the bin and not the dev binary, those are the changes Robert Ancell did
> in Ubuntu for that, he also added a trigger to register schemas
Another comment, just so that it’s not forgotten: I haven’t checked
where compiled schemas are put when glib-compile-schemas is run, but
they should be purged in the postrm.
Same for the output of gio-querymodules.
--
.''`.
: :' : “Fuck you sir, don’t be suprised when you die if
`. `' you burn in Hell, because I am a solid Christian
`- and I am praying for you.” -- Mike
Information forwarded
to debian-bugs-dist@lists.debian.org, Loic Minier <lool@dooz.org>:
Bug#587661; Package glib2.0.
(Thu, 01 Jul 2010 02:57:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Robert Ancell <robert.ancell@canonical.com>:
Extra info received and forwarded to list. Copy sent to Loic Minier <lool@dooz.org>.
(Thu, 01 Jul 2010 02:57:04 GMT) (full text, mbox, link).
Message #20 received at 587661@bugs.debian.org (full text, mbox, reply):
The generated schema file is /usr/share/glib-2.0/schemas/gschemas.compiled
Information forwarded
to debian-bugs-dist@lists.debian.org, Loic Minier <lool@dooz.org>:
Bug#587661; Package glib2.0.
(Fri, 02 Jul 2010 19:03:06 GMT) (full text, mbox, link).
Acknowledgement sent
to 587661@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to Loic Minier <lool@dooz.org>.
(Fri, 02 Jul 2010 19:03:06 GMT) (full text, mbox, link).
Message #25 received at 587661@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
tag 587661 + pending
thanks
Le mercredi 30 juin 2010 à 19:17 +0200, Sebastien Bacher a écrit :
> Since glib-compile-schemas is used to register schemas it should be in
> the bin and not the dev binary, those are the changes Robert Ancell did
> in Ubuntu for that, he also added a trigger to register schemas
>
> * debian/libglib2.0-bin.install:
> - Install glib-compile-schemas
> * debian/libglib2.0-bin.postinst:
> - Run glib-compile-schemas when schemas modified
> * debian/libglib2.0-bin.triggers:
> - Watch for schema changes
> * debian/libglib2.0-dev.install:
> - glib-compile-schemas moved to libglib2.0-bin
FYI I also made the following changes so that all packages using
GSettings or providing GIO modules don’t have to depend on
libglib2.0-bin.
* Put gio-querymodules and glib-compile-schemas in a private,
versioned directory in libglib2.0-0 to avoid a dependency loop.
* Move back the triggers to libglib2.0-0.
* Add a purge of the necessary files in the postinst.
* Stop recommending libglib2.0-bin since the necessary stuff is in
libglib2.0-0 now.
* Add symlinks to keep the binaries at their place in libglib2.0-bin.
Thanks again for doing most of the job.
--
.''`. Josselin Mouette
: :' :
`. `' “If you behave this way because you are blackmailed by someone,
`- […] I will see what I can do for you.” -- Jörg Schilling
[signature.asc (application/pgp-signature, inline)]
Added tag(s) pending.
Request was from Josselin Mouette <joss@debian.org>
to control@bugs.debian.org.
(Fri, 02 Jul 2010 19:03:07 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Loic Minier <lool@dooz.org>:
Bug#587661; Package glib2.0.
(Tue, 06 Jul 2010 14:33:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Sebastien Bacher <seb128@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Loic Minier <lool@dooz.org>.
(Tue, 06 Jul 2010 14:33:03 GMT) (full text, mbox, link).
Message #32 received at 587661@bugs.debian.org (full text, mbox, reply):
On ven., 2010-07-02 at 21:00 +0200, Josselin Mouette wrote:
> I also made the following changes so that all packages using
Thank you for the review and fixes, do you plan to update those changes
in the next days? I debugged an issue with the schemas trigger today in
Ubuntu today, it seems that the directory needs to be on disk for the
trigger to work so the schemas one will not work for the first binary to
install a schemas, a libglib2.0-0.dirs should probably be added to
create and empty /usr/share/glib-2.0/schemas to fix that issue
Sebastien Bacher
Information forwarded
to debian-bugs-dist@lists.debian.org, Loic Minier <lool@dooz.org>:
Bug#587661; Package glib2.0.
(Tue, 06 Jul 2010 15:48:15 GMT) (full text, mbox, link).
Acknowledgement sent
to 587661@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to Loic Minier <lool@dooz.org>.
(Tue, 06 Jul 2010 15:48:15 GMT) (full text, mbox, link).
Message #37 received at 587661@bugs.debian.org (full text, mbox, reply):
Le mardi 06 juillet 2010 à 16:29 +0200, Sebastien Bacher a écrit :
> On ven., 2010-07-02 at 21:00 +0200, Josselin Mouette wrote:
> > I also made the following changes so that all packages using
>
> Thank you for the review and fixes, do you plan to update those changes
> in the next days? I debugged an issue with the schemas trigger today in
> Ubuntu today, it seems that the directory needs to be on disk for the
> trigger to work so the schemas one will not work for the first binary to
> install a schemas, a libglib2.0-0.dirs should probably be added to
> create and empty /usr/share/glib-2.0/schemas to fix that issue
The changes include a test that will avoid launching the tool if the
directory doesn’t exist.
See http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/glib2.0/debian/libglib2.0.postinst
However another test in the trigger part (lines 10 and 16) might be
necessary.
--
.''`.
: :' : “Fuck you sir, don’t be suprised when you die if
`. `' you burn in Hell, because I am a solid Christian
`- and I am praying for you.” -- Mike
Information forwarded
to debian-bugs-dist@lists.debian.org, Loic Minier <lool@dooz.org>:
Bug#587661; Package glib2.0.
(Tue, 06 Jul 2010 20:33:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Sebastien Bacher <seb128@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Loic Minier <lool@dooz.org>.
(Tue, 06 Jul 2010 20:33:04 GMT) (full text, mbox, link).
Message #42 received at 587661@bugs.debian.org (full text, mbox, reply):
On mar., 2010-07-06 at 17:45 +0200, Josselin Mouette wrote:
> The changes include a test that will avoid launching the tool if the
> directory doesn’t exist.
>
> See
> http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/glib2.0/debian/libglib2.0.postinst
>
> However another test in the trigger part (lines 10 and 16) might be
> necessary.
The issue is not what glib is doing but rather than dpkg will not set
the trigger correctly on a directory not on the disk.
You can notice the bug when the first binary installing a schemas
in /usr/share/glib-2.0/schemas is installed, the dpkg log will not
display a trigger for libglib. The bug is arguably a dpkg one but
creating the directory there would workaround it.
I've backported your changes now and noticed an issue, the gio pc
describes the path to glib-compile-schemas and this one needs to be
changed as well to use the correct directory
--
Sebastien Bacher
Information forwarded
to debian-bugs-dist@lists.debian.org, Loic Minier <lool@dooz.org>:
Bug#587661; Package glib2.0.
(Wed, 07 Jul 2010 07:45:03 GMT) (full text, mbox, link).
Acknowledgement sent
to 587661@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to Loic Minier <lool@dooz.org>.
(Wed, 07 Jul 2010 07:45:03 GMT) (full text, mbox, link).
Message #47 received at 587661@bugs.debian.org (full text, mbox, reply):
Le mardi 06 juillet 2010 à 22:29 +0200, Sebastien Bacher a écrit :
> I've backported your changes now and noticed an issue, the gio pc
> describes the path to glib-compile-schemas and this one needs to be
> changed as well to use the correct directory
I’m not sure this is entirely necessary since there is a symlink
in /usr/bin, but that would indeed be safer.
--
.''`.
: :' : “Fuck you sir, don’t be suprised when you die if
`. `' you burn in Hell, because I am a solid Christian
`- and I am praying for you.” -- Mike
Reply sent
to Sebastian Dröge <slomo@debian.org>:
You have taken responsibility.
(Sun, 11 Jul 2010 19:03:06 GMT) (full text, mbox, link).
Notification sent
to Sebastien Bacher <seb128@ubuntu.com>:
Bug acknowledged by developer.
(Sun, 11 Jul 2010 19:03:06 GMT) (full text, mbox, link).
Message #52 received at 587661-close@bugs.debian.org (full text, mbox, reply):
Source: glib2.0
Source-Version: 2.25.11-1
We believe that the bug you reported is fixed in the latest version of
glib2.0, which is due to be installed in the Debian FTP archive:
glib2.0_2.25.11-1.diff.gz
to main/g/glib2.0/glib2.0_2.25.11-1.diff.gz
glib2.0_2.25.11-1.dsc
to main/g/glib2.0/glib2.0_2.25.11-1.dsc
glib2.0_2.25.11.orig.tar.gz
to main/g/glib2.0/glib2.0_2.25.11.orig.tar.gz
libglib2.0-0-dbg_2.25.11-1_amd64.deb
to main/g/glib2.0/libglib2.0-0-dbg_2.25.11-1_amd64.deb
libglib2.0-0-refdbg_2.25.11-1_amd64.deb
to main/g/glib2.0/libglib2.0-0-refdbg_2.25.11-1_amd64.deb
libglib2.0-0_2.25.11-1_amd64.deb
to main/g/glib2.0/libglib2.0-0_2.25.11-1_amd64.deb
libglib2.0-bin_2.25.11-1_amd64.deb
to main/g/glib2.0/libglib2.0-bin_2.25.11-1_amd64.deb
libglib2.0-data_2.25.11-1_all.deb
to main/g/glib2.0/libglib2.0-data_2.25.11-1_all.deb
libglib2.0-dev_2.25.11-1_amd64.deb
to main/g/glib2.0/libglib2.0-dev_2.25.11-1_amd64.deb
libglib2.0-doc_2.25.11-1_all.deb
to main/g/glib2.0/libglib2.0-doc_2.25.11-1_all.deb
libglib2.0-udeb_2.25.11-1_amd64.udeb
to main/g/glib2.0/libglib2.0-udeb_2.25.11-1_amd64.udeb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 587661@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Sebastian Dröge <slomo@debian.org> (supplier of updated glib2.0 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 11 Jul 2010 20:13:58 +0200
Source: glib2.0
Binary: libglib2.0-0 libglib2.0-udeb libglib2.0-bin libglib2.0-dev libglib2.0-0-dbg libglib2.0-data libglib2.0-doc libgio-fam libglib2.0-0-refdbg
Architecture: source all amd64
Version: 2.25.11-1
Distribution: experimental
Urgency: low
Maintainer: Loic Minier <lool@dooz.org>
Changed-By: Sebastian Dröge <slomo@debian.org>
Description:
libgio-fam - GLib Input, Output and Streaming Library (fam module)
libglib2.0-0 - The GLib library of C routines
libglib2.0-0-dbg - The GLib libraries and debugging symbols
libglib2.0-0-refdbg - The GLib library of C routines - refdbg library
libglib2.0-bin - The programs for the GLib library
libglib2.0-data - Common files for GLib library
libglib2.0-dev - Development files for the GLib library
libglib2.0-doc - Documentation files for the GLib library
libglib2.0-udeb - The GLib library of C routines - minimal runtime (udeb)
Closes: 587661 587863
Changes:
glib2.0 (2.25.11-1) experimental; urgency=low
.
[ Josselin Mouette ]
* Drop type-handling usage. Closes: #587863.
* Bump standards version accordingly.
* Patch from Ubuntu, thanks Sébastien Bacher. Closes: #587661.
* debian/libglib2.0-bin.install:
- Install glib-compile-schemas
* debian/libglib2.0-bin.postinst:
- Run glib-compile-schemas when schemas modified
* debian/libglib2.0-bin.triggers:
- Watch for schema changes
* debian/libglib2.0-dev.install:
- glib-compile-schemas moved to libglib2.0-bin
* debian/libglib2.0-dev.install:
- install the new gdb python macros since the gdb version is recent
enough now to use those
* Put gio-querymodules and glib-compile-schemas in a private,
versioned directory in libglib2.0-0 to avoid a dependency loop.
* Move back the triggers to libglib2.0-0.
* Add a purge of the necessary files in the postinst.
* Stop recommending libglib2.0-bin since the necessary stuff is in
libglib2.0-0 now.
* Add symlinks to keep the binaries at their place in libglib2.0-bin.
* Tighten the dependency between libglib2.0-bin and libglib2.0-0.
.
[ Sebastian Dröge ]
* New upstream development release:
+ debian/rules,
debian/libglib2.0-0.symbols:
- Update for API changes.
* debian/libglib2.0-0.dirs:
+ Create empty directories for the triggers to actually work.
* debian/libglib2.0-0.links,
debian/control.in:
+ Add links for gio-querymodules and glib-compile-schemas in
/usr/bin.
Checksums-Sha1:
cbb459e2e360af65789f7bcee19f8324e53a6a98 1684 glib2.0_2.25.11-1.dsc
56f839249b4e8828bfe0f839831995e4a2a8d74e 8717190 glib2.0_2.25.11.orig.tar.gz
85629408d632f1c48cb80e15905df478508ccc80 42773 glib2.0_2.25.11-1.diff.gz
aea3e91e1088ace50d4098f72ee49da41c1c8ccc 1017412 libglib2.0-data_2.25.11-1_all.deb
23f9696515b4b94ea92a115ce9b875ebe414ab42 1929838 libglib2.0-doc_2.25.11-1_all.deb
c6a91aea9f29c487a74449cd8a607bb6a9b77127 1403666 libglib2.0-0_2.25.11-1_amd64.deb
32a410a4d0f866d04920590051d13f99e511480f 1948886 libglib2.0-udeb_2.25.11-1_amd64.udeb
1972ffce3ee0b1cfe98185c72ee9ef11a7ef2ba5 268740 libglib2.0-bin_2.25.11-1_amd64.deb
f95fdaa9d602e599e62261e6dae927ad3129544d 1509556 libglib2.0-dev_2.25.11-1_amd64.deb
d7c7a57a7720c952bb9c402df320a2ade9d98271 1789500 libglib2.0-0-dbg_2.25.11-1_amd64.deb
685b65a6158c17853f0a6d8ed14578150919d8c4 598118 libglib2.0-0-refdbg_2.25.11-1_amd64.deb
Checksums-Sha256:
bffef38143f0ec0a14cdab60a05f0302760a98cc3fe808e43d1a79cfb811088c 1684 glib2.0_2.25.11-1.dsc
28cbc02036a7f232f23ce56feda3e10bd74fe676902b305bf2a15a8b2c7c9225 8717190 glib2.0_2.25.11.orig.tar.gz
dd162debd98fe948c0db527b76e069fa68e0b2f6863e09d6a709e911559932d1 42773 glib2.0_2.25.11-1.diff.gz
9802feac962278f8408463ed431062b75613e87026e09cb259f658574156170c 1017412 libglib2.0-data_2.25.11-1_all.deb
1a9828321d213d1a08916ff1ca617020f603cc995e069ef97f360848ea2f4642 1929838 libglib2.0-doc_2.25.11-1_all.deb
1ca735a5a043ddeeec00be7eb8486d9a09101f114f25cb6c0d90260eae3b0cea 1403666 libglib2.0-0_2.25.11-1_amd64.deb
e497c863d09921e7d4ade5ff0c1b31ac10391821ecc3031321f5db77713aedb0 1948886 libglib2.0-udeb_2.25.11-1_amd64.udeb
d3a299949587e536fc06f407e9e244c4bc52a2d513996c45a685e4ab2be62042 268740 libglib2.0-bin_2.25.11-1_amd64.deb
8f7366bdbaa3711914acd727c27006d689d2fe881b54063161f35ab5b397b953 1509556 libglib2.0-dev_2.25.11-1_amd64.deb
d1914d22c072c914e7743debfcc92037d4b61edd959050578964b0ebf184d984 1789500 libglib2.0-0-dbg_2.25.11-1_amd64.deb
8dab5526842641fb6bc72791aaf728d890d826743a5bc1ad2b2633e24fb88c94 598118 libglib2.0-0-refdbg_2.25.11-1_amd64.deb
Files:
6c6da02448da6cc3ff1d0c518de111bf 1684 libs optional glib2.0_2.25.11-1.dsc
70e64f89ca82487c73ae8d32e2a93a5c 8717190 libs optional glib2.0_2.25.11.orig.tar.gz
36b8bc0cf9a95661d414aaf9880308d3 42773 libs optional glib2.0_2.25.11-1.diff.gz
427bde0651a2f68d2fccd09130f9399f 1017412 libs optional libglib2.0-data_2.25.11-1_all.deb
7ced384fb4120d037bc532ffa870a5d3 1929838 doc optional libglib2.0-doc_2.25.11-1_all.deb
a1f795ec34aa268c1b339e69156d0741 1403666 libs optional libglib2.0-0_2.25.11-1_amd64.deb
0b1b7cdc3c5e5f17e89c4b789b694955 1948886 debian-installer optional libglib2.0-udeb_2.25.11-1_amd64.udeb
bc8d042662c84975d7715c98e0111119 268740 misc optional libglib2.0-bin_2.25.11-1_amd64.deb
9b18a1b1696ab1ab5837a6cbdf57c329 1509556 libdevel optional libglib2.0-dev_2.25.11-1_amd64.deb
422538cc102036e86e213ba4d239a95b 1789500 debug extra libglib2.0-0-dbg_2.25.11-1_amd64.deb
cf398989685fb1fadbd47dc088e8a487 598118 debug extra libglib2.0-0-refdbg_2.25.11-1_amd64.deb
Package-Type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkw6E1QACgkQBsBdh1vkHyH59ACfTFdyiuV9kUVTT9u4PJpaKCfs
U9sAn0s4fPQ0QAQJ1G4pOcB6FX0cG9Cs
=7CzB
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 09 Aug 2010 07:34:54 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Tue Jan 9 19:50:03 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.