[MacPorts] #38634: gtk3: post-activate should call glib-compile-schemas
#38634: gtk3: post-activate should call glib-compile-schemas -----------------------+-------------------------------- Reporter: gui_dos@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: gsettings | Port: gtk3 -----------------------+-------------------------------- If you run "Pickers" from gtk3-demo the following error is reported when you try to choose a file: {{{ GLib-GIO-ERROR **: No GSettings schemas are installed on the system }}} That's because the ```/opt/local/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml``` has not been compiled: calling ```glib-compile-schemas``` is needed in the post-activate stage: {{{ post-activate { system "${prefix}/bin/glib-compile-schemas \ >${prefix}/share/glib-2.0/schemas" } }}} -- Ticket URL: <https://trac.macports.org/ticket/38634> MacPorts <http://www.macports.org/> Ports system for OS X
#38634: gtk3: post-activate should call glib-compile-schemas ------------------------+-------------------------------- Reporter: gui_dos@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: gsettings Port: gtk3 | ------------------------+-------------------------------- Description changed by gui_dos@…: Old description:
If you run "Pickers" from gtk3-demo the following error is reported when you try to choose a file:
{{{ GLib-GIO-ERROR **: No GSettings schemas are installed on the system }}}
That's because the ```/opt/local/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml``` has not been compiled: calling ```glib-compile-schemas``` is needed in the post-activate stage:
{{{ post-activate { system "${prefix}/bin/glib-compile-schemas \ >${prefix}/share/glib-2.0/schemas" } }}}
New description: If you run "Pickers" from gtk3-demo the following error is reported when you try to choose a file: {{{ GLib-GIO-ERROR **: No GSettings schemas are installed on the system }}} That's because the ```/opt/local/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml``` has not been compiled: calling ```glib-compile-schemas``` is needed in the post-activate stage: {{{ post-activate { system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas" } }}} -- -- Ticket URL: <https://trac.macports.org/ticket/38634#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38634: gtk3: post-activate should call glib-compile-schemas ------------------------+-------------------------------- Reporter: gui_dos@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: gtk3 | ------------------------+-------------------------------- Changes (by cal@…): * status: new => closed * cc: cal@… (removed) * resolution: => fixed * keywords: gsettings => Comment: Thanks. Shouldn't all ports installing a schema also run this? Maybe we should have a mechanism to add these things in a generic fashion, i.e. every port that installs a file in `$prefix/share/glib-2.0/schemas` should run `glib-compile-schemas` in a post-activate phase. I've added it meanwhile in r104772. -- Ticket URL: <https://trac.macports.org/ticket/38634#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38634: gtk3: post-activate should call glib-compile-schemas ------------------------+-------------------------------- Reporter: gui_dos@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: gtk3 | ------------------------+-------------------------------- Comment (by jmr@…): Does the compilation create files that are left behind when the port is uninstalled? Could/should it be done in the destroot instead? -- Ticket URL: <https://trac.macports.org/ticket/38634#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38634: gtk3: post-activate should call glib-compile-schemas ------------------------+-------------------------------- Reporter: gui_dos@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: gtk3 | ------------------------+-------------------------------- Comment (by cal@…): Replying to [comment:3 jmr@…]:
Does the compilation create files that are left behind when the port is uninstalled?
I don't know.
Could/should it be done in the destroot instead?
I don't think this can be done in destroot, because it compiles all schemas into a single location. That wouldn't work in destroot. -- Ticket URL: <https://trac.macports.org/ticket/38634#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts