error upgrading gdk pixbug

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

error upgrading gdk pixbug

Ted Unangst-6
I ran pkg_add -u on an i386 snapshot. In the midst of the other
output, it printed this:

ImageMagick-6.7.7.7p5:shared-mime-info-1.1->1.2: ok
(process:4942): GLib-GObject-WARNING **: cannot register existing
type 'gchar'
**
GLib-GObject:ERROR:gvaluetypes.c:457:_g_value_types_init: assertion
failed: (type == G_TYPE_CHAR) Abort trap
system(/bin/sh, -c, /usr/local/bin/gdk-pixbuf-query-loaders
--update-cache) failed:  exit(134)
ImageMagick-6.7.7.7p5:gdk-pixbuf-2.28.2p1->2.30.0p0: ok

Reply | Threaded
Open this post in threaded view
|

Re: error upgrading gdk pixbug

Juan Francisco Cantero Hurtado
On Mon, Oct 21, 2013 at 05:22:26PM -0400, Ted Unangst wrote:

> I ran pkg_add -u on an i386 snapshot. In the midst of the other
> output, it printed this:
>
> ImageMagick-6.7.7.7p5:shared-mime-info-1.1->1.2: ok
> (process:4942): GLib-GObject-WARNING **: cannot register existing
> type 'gchar'
> **
> GLib-GObject:ERROR:gvaluetypes.c:457:_g_value_types_init: assertion
> failed: (type == G_TYPE_CHAR) Abort trap
> system(/bin/sh, -c, /usr/local/bin/gdk-pixbuf-query-loaders
> --update-cache) failed:  exit(134)
> ImageMagick-6.7.7.7p5:gdk-pixbuf-2.28.2p1->2.30.0p0: ok
>

Uninstall all your packages and install again.

--
Juan Francisco Cantero Hurtado http://juanfra.info

Reply | Threaded
Open this post in threaded view
|

Re: error upgrading gdk pixbug

Amit Kulkarni-5
On Mon, Oct 21, 2013 at 8:23 PM, Juan Francisco Cantero Hurtado <
[hidden email]> wrote:

> On Mon, Oct 21, 2013 at 05:22:26PM -0400, Ted Unangst wrote:
> > I ran pkg_add -u on an i386 snapshot. In the midst of the other
> > output, it printed this:
> >
> > ImageMagick-6.7.7.7p5:shared-mime-info-1.1->1.2: ok
> > (process:4942): GLib-GObject-WARNING **: cannot register existing
> > type 'gchar'
> > **
> > GLib-GObject:ERROR:gvaluetypes.c:457:_g_value_types_init: assertion
> > failed: (type == G_TYPE_CHAR) Abort trap
> > system(/bin/sh, -c, /usr/local/bin/gdk-pixbuf-query-loaders
> > --update-cache) failed:  exit(134)
> > ImageMagick-6.7.7.7p5:gdk-pixbuf-2.28.2p1->2.30.0p0: ok
> >
>
> Uninstall all your packages and install again.
>
> --
> Juan Francisco Cantero Hurtado http://juanfra.info
>
>
Ted,

Courtesy of sthen@ from the time_t breakage in current.html, a no-brainer
method of keeping in sync...

----------- pkg_save.sh

pkg_info -mq >/root/pkg_list_manual
pkg_info -q >/root/pkg_list_full


------------ pkg_restore.sh

pkg_add -z -l /root/pkg_list_manual
pkg_add -za -l /root/pkg_list_full
Reply | Threaded
Open this post in threaded view
|

Re: error upgrading gdk pixbug

Stuart Henderson
In reply to this post by Ted Unangst-6
Re-run the pkg_add -u a few times until it stops finding anything new. Unfortunately some glib ABIs changed affecting dlopen()'d modules used by programs that are @exec'd during the package update.

It may be possible to fix updates by sprinkling @conflict markers but seeing as it won't affect the recommended path to upgrade 5.4-5.5 I doubt anyone will be motivated to do this.

The programs being @exec'd are to update caches etc., so another fix would be to allow deferring these to the end of pkg_add's run - this would also speed updates as there will be less unnecessary duplicated work; same for things like update-desktop-database - but would also be slightly more fragile if the pkg_add run is interrupted.

Ted Unangst <[hidden email]> wrote:

>I ran pkg_add -u on an i386 snapshot. In the midst of the other
>output, it printed this:
>
>ImageMagick-6.7.7.7p5:shared-mime-info-1.1->1.2: ok
>(process:4942): GLib-GObject-WARNING **: cannot register existing
>type 'gchar'
>**
>GLib-GObject:ERROR:gvaluetypes.c:457:_g_value_types_init: assertion
>failed: (type == G_TYPE_CHAR) Abort trap
>system(/bin/sh, -c, /usr/local/bin/gdk-pixbuf-query-loaders
>--update-cache) failed:  exit(134)
>ImageMagick-6.7.7.7p5:gdk-pixbuf-2.28.2p1->2.30.0p0: ok