Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

glib-compile-schemas

7 views
Skip to first unread message

blubee blubeeme

unread,
Jan 20, 2018, 2:27:31 AM1/20/18
to
I am building a gnome based port.

The port builds and installs successfully but it doesn't work.

Looking around I need to run glib-compile-schemas like this:

glib-compile-schemas /usr/local/share/glib-2.0/schemas/

After running that command the port works as expected, is there a standard
way to handle this in the port's Makefile?
_______________________________________________
freebs...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-port...@freebsd.org"

Kurt Jaeger

unread,
Jan 20, 2018, 4:21:01 AM1/20/18
to
Hi!

> I am building a gnome based port.
>
> The port builds and installs successfully but it doesn't work.
>
> Looking around I need to run glib-compile-schemas like this:
>
> glib-compile-schemas /usr/local/share/glib-2.0/schemas/
>
> After running that command the port works as expected, is there a standard
> way to handle this in the port's Makefile?

devel/glib20 has this in its pkg-plist:

@postexec %D/bin/glib-compile-schemas %D/share/glib-2.0/schemas 2>/dev/null || /usr/bin/true

--
p...@opsec.eu +49 171 3101372 2 years to go !

Kurt Jaeger

unread,
Jan 20, 2018, 4:25:00 AM1/20/18
to
Hi!

> I am building a gnome based port.
>
> The port builds and installs successfully but it doesn't work.
>
> Looking around I need to run glib-compile-schemas like this:
>
> glib-compile-schemas /usr/local/share/glib-2.0/schemas/
>
> After running that command the port works as expected, is there a standard
> way to handle this in the port's Makefile?

Then there's Keywords/glib-schemas.ucl which points to
GLIB_SCHEMAS.

According to Mk/Uses/gnome.mk:

GLIB_SCHEMAS

Set the following to list of all gsettings schema files
(*.gschema.xml) that your ports installs. The
schema files will be automatically added to
the ${PLIST}. For example, if your port has
"share/glib-2.0/schemas/(foo.gschema.xml and bar.gschema.xml)",
add the following to your Makefile:
"GLIB_SCHEMAS=foo.gschema.xml bar.gschema.xml".

--
p...@opsec.eu +49 171 3101372 2 years to go !
0 new messages