[MacPorts] #14729: gnome installations do not register the schema files with gconf
#14729: gnome installations do not register the schema files with gconf -------------------------------------+-------------------------------------- Reporter: reiffert@macports.org | Owner: reiffert@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Keywords: gnome gconf gconftool-2 | -------------------------------------+-------------------------------------- Gnome ports install schema files to ${prefix}/etc/gconf/schema/ Those files need to be registered along with gconftool-2. Placing them in the directory is not enough. I recently discovered the advantages and allready added the following scope to port:gnucash port:gnome-vfs and port:yelp It appears that port :gnome-control-center does it equally. {{{ post-activate { # We need to register some stuff to gconf. Just putting the # schema files to the right place is not enough. # You can watch the successful installation with gconf-editor. system "cd ${prefix}/etc/gconf/schemas && \ GCONF_CONFIG_SOURCE=`${prefix}/bin/gconftool-2 --get-default- source` ${p refix}/bin/gconftool-2 --makefile-install-rule \ desktop_default_applications.schemas \ desktop_gnome_url_handlers.schemas \ system_dns_sd.schemas \ system_http_proxy.schemas \ system_smb.schemas" } }}} Please remember to replace those schemas through the port's schema files you are upgrading. You can validate the successful schema registration by launching gconf- editor. Kind regards Thomas -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14729> MacPorts </projects/macports> Ports system for Mac OS
#14729: gnome installations do not register the schema files with gconf ------------------------------------+--------------------------------------- Reporter: reiffert@macports.org | Owner: reiffert@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: gnome gconf gconftool-2 ------------------------------------+--------------------------------------- Changes (by reiffert@macports.org): * status: new => assigned Comment: Unfourtunatly my first attempt doesnt work well on port variants. Currently I'm writing a gnome portgroup for handling the situation. Until the portgroup reaches your macports installation with a new macports release, use the following on your gnome port: {{{ set storagedir ${prefix}/etc/macports/gconf set storagefile $storagedir/${name} post-destroot { # We need to register some stuff to gconf. Just putting the # schema files to the right place is not enough. # For now we store the files in # ${prefix}/etc/macports/gconf/${name} and use that file # in post-activate. Until there is no better solution # this will make it into the gnomeportgroup # Find all .schemas file in the destroot fs-traverse schema ${destroot}${prefix}/etc/gconf/schemas { if { [ file isfile $schema ] } { lappend schemafiles $schema } } # And put them in etc/macports/gconf/$name if { [ llength $schemafiles ] > 0 } { file mkdir ${destroot}${storagedir} set fh [open ${destroot}${storagefile} w] foreach file $schemafiles { puts $fh [exec basename $file] } close $fh } } post-activate { if { [file exists ${storagefile} ] } { set fh [open ${storagefile} r] while { ! [eof $fh] } { lappend schemafiles [gets $fh] } close $fh } set schemastring [join $schemafiles " "] system "cd ${prefix}/etc/gconf/schemas && \ GCONF_CONFIG_SOURCE=`${prefix}/bin/gconftool-2 --get-default- source` ${prefix}/bin/gconftool-2 --makefile-install-rule $schemastring" } }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14729#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#14729: gnome installations do not register the schema files with gconf ------------------------------------+--------------------------------------- Reporter: reiffert@macports.org | Owner: reiffert@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: gnome gconf gconftool-2 ------------------------------------+--------------------------------------- Comment (by jmr@macports.org): MIME and desktop databases also need to be updated in post-activate, like so: {{{ system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true" system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true" }}} The "; true" is so activate doesn't fail if the applications or mime directories don't exist. (See r35289.) -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14729#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#14729: gnome installations do not register the schema files with gconf ------------------------------------+--------------------------------------- Reporter: reiffert@macports.org | Owner: reiffert@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: gnome gconf gconftool-2 ------------------------------------+--------------------------------------- Comment (by jmr@macports.org): Oh, and `--disable-update-mimedb --disable-update-desktopdb` needs to be added to the configure args somewhere, otherwise conflicting files are created in the destroot. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14729#comment:3> MacPorts </projects/macports> Ports system for Mac OS
#14729: gnome installations do not register the schema files with gconf ------------------------------------+--------------------------------------- Reporter: reiffert@macports.org | Owner: reiffert@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: gnome gconf gconftool-2 ------------------------------------+--------------------------------------- Comment (by gui_dos@macports.org): Another command frequently needed after installing is {{{ ${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}(bin/opt/local/share/icons/hicolor }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14729#comment:4> MacPorts </projects/macports> Ports system for Mac OS
#14729: gnome installations do not register the schema files with gconf ------------------------------------+--------------------------------------- Reporter: reiffert@macports.org | Owner: reiffert@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: gnome gconf gconftool-2 ------------------------------------+--------------------------------------- Comment (by gui_dos@macports.org):
{{{ ${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}(bin/opt/local/share/icons/hicolor }}}
Oops: I meant: {{{ ${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14729#comment:5> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts