From a45b1a73240ff4505022dac654bc3944411bfc2d Mon Sep 17 00:00:00 2001 From: piernov Date: Wed, 22 Feb 2012 17:20:53 +0100 Subject: gconf dans extra --- gconf/.footprint.i686 | 93 ---------- gconf/.footprint.x86_64 | 93 ---------- gconf/.md5sum.i686 | 5 - gconf/.md5sum.x86_64 | 5 - gconf/01_xml-gettext-domain.patch | 362 -------------------------------------- gconf/Pkgfile | 41 ----- gconf/gconf-merge-schema | 34 ---- gconf/gconf-reload.patch | 20 --- gconf/gconfpkg | 50 ------ gconf/post-install | 3 - 10 files changed, 706 deletions(-) delete mode 100644 gconf/.footprint.i686 delete mode 100644 gconf/.footprint.x86_64 delete mode 100644 gconf/.md5sum.i686 delete mode 100644 gconf/.md5sum.x86_64 delete mode 100644 gconf/01_xml-gettext-domain.patch delete mode 100644 gconf/Pkgfile delete mode 100644 gconf/gconf-merge-schema delete mode 100644 gconf/gconf-reload.patch delete mode 100644 gconf/gconfpkg delete mode 100644 gconf/post-install diff --git a/gconf/.footprint.i686 b/gconf/.footprint.i686 deleted file mode 100644 index 96f8fb8..0000000 --- a/gconf/.footprint.i686 +++ /dev/null @@ -1,93 +0,0 @@ -drwxr-xr-x root/root etc/ -drwxr-xr-x root/root etc/dbus-1/ -drwxr-xr-x root/root etc/dbus-1/system.d/ --rw-r--r-- root/root etc/dbus-1/system.d/org.gnome.GConf.Defaults.conf -drwxr-xr-x root/root etc/gconf/ -drwxr-xr-x root/root etc/gconf/2/ --rw-r--r-- root/root etc/gconf/2/evoldap.conf --rw-r--r-- root/root etc/gconf/2/path -drwxr-xr-x root/root etc/gconf/gconf.xml.defaults/ -drwxr-xr-x root/root etc/gconf/gconf.xml.mandatory/ -drwxr-xr-x root/root etc/gconf/gconf.xml.system/ -drwxr-xr-x root/root etc/xdg/ -drwxr-xr-x root/root etc/xdg/autostart/ --rw-r--r-- root/root etc/xdg/autostart/gsettings-data-convert.desktop -drwxr-xr-x root/root usr/ -drwxr-xr-x root/root usr/bin/ --rwxr-xr-x root/root usr/bin/gconf-merge-schema --rwxr-xr-x root/root usr/bin/gconf-merge-tree --rwxr-xr-x root/root usr/bin/gconftool-2 --rwxr-xr-x root/root usr/bin/gsettings-data-convert --rwxr-xr-x root/root usr/bin/gsettings-schema-convert -drwxr-xr-x root/root usr/include/ -drwxr-xr-x root/root usr/include/gconf/ -drwxr-xr-x root/root usr/include/gconf/2/ -drwxr-xr-x root/root usr/include/gconf/2/gconf/ --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-changeset.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-client.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-engine.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-enum-types.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-error.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-listeners.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-schema.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-value.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf.h -drwxr-xr-x root/root usr/lib/ -drwxr-xr-x root/root usr/lib/GConf/ -drwxr-xr-x root/root usr/lib/GConf/2/ --rw-r--r-- root/root usr/lib/GConf/2/libgconfbackend-evoldap.a --rwxr-xr-x root/root usr/lib/GConf/2/libgconfbackend-evoldap.la --rwxr-xr-x root/root usr/lib/GConf/2/libgconfbackend-evoldap.so --rw-r--r-- root/root usr/lib/GConf/2/libgconfbackend-oldxml.a --rwxr-xr-x root/root usr/lib/GConf/2/libgconfbackend-oldxml.la --rwxr-xr-x root/root usr/lib/GConf/2/libgconfbackend-oldxml.so --rw-r--r-- root/root usr/lib/GConf/2/libgconfbackend-xml.a --rwxr-xr-x root/root usr/lib/GConf/2/libgconfbackend-xml.la --rwxr-xr-x root/root usr/lib/GConf/2/libgconfbackend-xml.so --rwxr-xr-x root/root usr/lib/GConf/gconf-defaults-mechanism --rwxr-xr-x root/root usr/lib/GConf/gconf-sanity-check-2 --rwxr-xr-x root/root usr/lib/GConf/gconfd-2 -drwxr-xr-x root/root usr/lib/gio/ -drwxr-xr-x root/root usr/lib/gio/modules/ --rw-r--r-- root/root usr/lib/gio/modules/libgsettingsgconfbackend.a --rwxr-xr-x root/root usr/lib/gio/modules/libgsettingsgconfbackend.la --rwxr-xr-x root/root usr/lib/gio/modules/libgsettingsgconfbackend.so -drwxr-xr-x root/root usr/lib/girepository-1.0/ --rw-r--r-- root/root usr/lib/girepository-1.0/GConf-2.0.typelib --rw-r--r-- root/root usr/lib/libgconf-2.a --rwxr-xr-x root/root usr/lib/libgconf-2.la -lrwxrwxrwx root/root usr/lib/libgconf-2.so -> libgconf-2.so.4.1.5 -lrwxrwxrwx root/root usr/lib/libgconf-2.so.4 -> libgconf-2.so.4.1.5 --rwxr-xr-x root/root usr/lib/libgconf-2.so.4.1.5 -drwxr-xr-x root/root usr/lib/pkgconfig/ --rw-r--r-- root/root usr/lib/pkgconfig/gconf-2.0.pc -drwxr-xr-x root/root usr/sbin/ --rwxr-xr-x root/root usr/sbin/gconfpkg -drwxr-xr-x root/root usr/share/ -drwxr-xr-x root/root usr/share/GConf/ -drwxr-xr-x root/root usr/share/GConf/schema/ --rw-r--r-- root/root usr/share/GConf/schema/evoldap.schema -drwxr-xr-x root/root usr/share/aclocal/ --rw-r--r-- root/root usr/share/aclocal/gconf-2.m4 -drwxr-xr-x root/root usr/share/dbus-1/ -drwxr-xr-x root/root usr/share/dbus-1/services/ --rw-r--r-- root/root usr/share/dbus-1/services/org.gnome.GConf.service -drwxr-xr-x root/root usr/share/dbus-1/system-services/ --rw-r--r-- root/root usr/share/dbus-1/system-services/org.gnome.GConf.Defaults.service -drwxr-xr-x root/root usr/share/gir-1.0/ --rw-r--r-- root/root usr/share/gir-1.0/GConf-2.0.gir -drwxr-xr-x root/root usr/share/locale/ -drwxr-xr-x root/root usr/share/locale/fr/ -drwxr-xr-x root/root usr/share/locale/fr/LC_MESSAGES/ --rw-r--r-- root/root usr/share/locale/fr/LC_MESSAGES/GConf2.mo -drwxr-xr-x root/root usr/share/man/ -drwxr-xr-x root/root usr/share/man/man1/ --rw-r--r-- root/root usr/share/man/man1/gconftool-2.1.gz --rw-r--r-- root/root usr/share/man/man1/gsettings-data-convert.1.gz --rw-r--r-- root/root usr/share/man/man1/gsettings-schema-convert.1.gz -drwxr-xr-x root/root usr/share/polkit-1/ -drwxr-xr-x root/root usr/share/polkit-1/actions/ --rw-r--r-- root/root usr/share/polkit-1/actions/org.gnome.gconf.defaults.policy -drwxr-xr-x root/root usr/share/sgml/ -drwxr-xr-x root/root usr/share/sgml/gconf/ --rw-r--r-- root/root usr/share/sgml/gconf/gconf-1.0.dtd diff --git a/gconf/.footprint.x86_64 b/gconf/.footprint.x86_64 deleted file mode 100644 index 96f8fb8..0000000 --- a/gconf/.footprint.x86_64 +++ /dev/null @@ -1,93 +0,0 @@ -drwxr-xr-x root/root etc/ -drwxr-xr-x root/root etc/dbus-1/ -drwxr-xr-x root/root etc/dbus-1/system.d/ --rw-r--r-- root/root etc/dbus-1/system.d/org.gnome.GConf.Defaults.conf -drwxr-xr-x root/root etc/gconf/ -drwxr-xr-x root/root etc/gconf/2/ --rw-r--r-- root/root etc/gconf/2/evoldap.conf --rw-r--r-- root/root etc/gconf/2/path -drwxr-xr-x root/root etc/gconf/gconf.xml.defaults/ -drwxr-xr-x root/root etc/gconf/gconf.xml.mandatory/ -drwxr-xr-x root/root etc/gconf/gconf.xml.system/ -drwxr-xr-x root/root etc/xdg/ -drwxr-xr-x root/root etc/xdg/autostart/ --rw-r--r-- root/root etc/xdg/autostart/gsettings-data-convert.desktop -drwxr-xr-x root/root usr/ -drwxr-xr-x root/root usr/bin/ --rwxr-xr-x root/root usr/bin/gconf-merge-schema --rwxr-xr-x root/root usr/bin/gconf-merge-tree --rwxr-xr-x root/root usr/bin/gconftool-2 --rwxr-xr-x root/root usr/bin/gsettings-data-convert --rwxr-xr-x root/root usr/bin/gsettings-schema-convert -drwxr-xr-x root/root usr/include/ -drwxr-xr-x root/root usr/include/gconf/ -drwxr-xr-x root/root usr/include/gconf/2/ -drwxr-xr-x root/root usr/include/gconf/2/gconf/ --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-changeset.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-client.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-engine.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-enum-types.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-error.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-listeners.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-schema.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf-value.h --rw-r--r-- root/root usr/include/gconf/2/gconf/gconf.h -drwxr-xr-x root/root usr/lib/ -drwxr-xr-x root/root usr/lib/GConf/ -drwxr-xr-x root/root usr/lib/GConf/2/ --rw-r--r-- root/root usr/lib/GConf/2/libgconfbackend-evoldap.a --rwxr-xr-x root/root usr/lib/GConf/2/libgconfbackend-evoldap.la --rwxr-xr-x root/root usr/lib/GConf/2/libgconfbackend-evoldap.so --rw-r--r-- root/root usr/lib/GConf/2/libgconfbackend-oldxml.a --rwxr-xr-x root/root usr/lib/GConf/2/libgconfbackend-oldxml.la --rwxr-xr-x root/root usr/lib/GConf/2/libgconfbackend-oldxml.so --rw-r--r-- root/root usr/lib/GConf/2/libgconfbackend-xml.a --rwxr-xr-x root/root usr/lib/GConf/2/libgconfbackend-xml.la --rwxr-xr-x root/root usr/lib/GConf/2/libgconfbackend-xml.so --rwxr-xr-x root/root usr/lib/GConf/gconf-defaults-mechanism --rwxr-xr-x root/root usr/lib/GConf/gconf-sanity-check-2 --rwxr-xr-x root/root usr/lib/GConf/gconfd-2 -drwxr-xr-x root/root usr/lib/gio/ -drwxr-xr-x root/root usr/lib/gio/modules/ --rw-r--r-- root/root usr/lib/gio/modules/libgsettingsgconfbackend.a --rwxr-xr-x root/root usr/lib/gio/modules/libgsettingsgconfbackend.la --rwxr-xr-x root/root usr/lib/gio/modules/libgsettingsgconfbackend.so -drwxr-xr-x root/root usr/lib/girepository-1.0/ --rw-r--r-- root/root usr/lib/girepository-1.0/GConf-2.0.typelib --rw-r--r-- root/root usr/lib/libgconf-2.a --rwxr-xr-x root/root usr/lib/libgconf-2.la -lrwxrwxrwx root/root usr/lib/libgconf-2.so -> libgconf-2.so.4.1.5 -lrwxrwxrwx root/root usr/lib/libgconf-2.so.4 -> libgconf-2.so.4.1.5 --rwxr-xr-x root/root usr/lib/libgconf-2.so.4.1.5 -drwxr-xr-x root/root usr/lib/pkgconfig/ --rw-r--r-- root/root usr/lib/pkgconfig/gconf-2.0.pc -drwxr-xr-x root/root usr/sbin/ --rwxr-xr-x root/root usr/sbin/gconfpkg -drwxr-xr-x root/root usr/share/ -drwxr-xr-x root/root usr/share/GConf/ -drwxr-xr-x root/root usr/share/GConf/schema/ --rw-r--r-- root/root usr/share/GConf/schema/evoldap.schema -drwxr-xr-x root/root usr/share/aclocal/ --rw-r--r-- root/root usr/share/aclocal/gconf-2.m4 -drwxr-xr-x root/root usr/share/dbus-1/ -drwxr-xr-x root/root usr/share/dbus-1/services/ --rw-r--r-- root/root usr/share/dbus-1/services/org.gnome.GConf.service -drwxr-xr-x root/root usr/share/dbus-1/system-services/ --rw-r--r-- root/root usr/share/dbus-1/system-services/org.gnome.GConf.Defaults.service -drwxr-xr-x root/root usr/share/gir-1.0/ --rw-r--r-- root/root usr/share/gir-1.0/GConf-2.0.gir -drwxr-xr-x root/root usr/share/locale/ -drwxr-xr-x root/root usr/share/locale/fr/ -drwxr-xr-x root/root usr/share/locale/fr/LC_MESSAGES/ --rw-r--r-- root/root usr/share/locale/fr/LC_MESSAGES/GConf2.mo -drwxr-xr-x root/root usr/share/man/ -drwxr-xr-x root/root usr/share/man/man1/ --rw-r--r-- root/root usr/share/man/man1/gconftool-2.1.gz --rw-r--r-- root/root usr/share/man/man1/gsettings-data-convert.1.gz --rw-r--r-- root/root usr/share/man/man1/gsettings-schema-convert.1.gz -drwxr-xr-x root/root usr/share/polkit-1/ -drwxr-xr-x root/root usr/share/polkit-1/actions/ --rw-r--r-- root/root usr/share/polkit-1/actions/org.gnome.gconf.defaults.policy -drwxr-xr-x root/root usr/share/sgml/ -drwxr-xr-x root/root usr/share/sgml/gconf/ --rw-r--r-- root/root usr/share/sgml/gconf/gconf-1.0.dtd diff --git a/gconf/.md5sum.i686 b/gconf/.md5sum.i686 deleted file mode 100644 index 17f5c7c..0000000 --- a/gconf/.md5sum.i686 +++ /dev/null @@ -1,5 +0,0 @@ -1f9362976d71312bdb57c57fa031681d 01_xml-gettext-domain.patch -de9047c08d3f642c5b1990b0bef44577 GConf-3.2.3.tar.xz -240b473fa17b748fc9020caf372d936c gconf-merge-schema -cfcc8e15be7b8a48de4aa34336ff6090 gconf-reload.patch -e85fdb0b8773d9436d8e71e1b86202b3 gconfpkg diff --git a/gconf/.md5sum.x86_64 b/gconf/.md5sum.x86_64 deleted file mode 100644 index 17f5c7c..0000000 --- a/gconf/.md5sum.x86_64 +++ /dev/null @@ -1,5 +0,0 @@ -1f9362976d71312bdb57c57fa031681d 01_xml-gettext-domain.patch -de9047c08d3f642c5b1990b0bef44577 GConf-3.2.3.tar.xz -240b473fa17b748fc9020caf372d936c gconf-merge-schema -cfcc8e15be7b8a48de4aa34336ff6090 gconf-reload.patch -e85fdb0b8773d9436d8e71e1b86202b3 gconfpkg diff --git a/gconf/01_xml-gettext-domain.patch b/gconf/01_xml-gettext-domain.patch deleted file mode 100644 index d1323f6..0000000 --- a/gconf/01_xml-gettext-domain.patch +++ /dev/null @@ -1,362 +0,0 @@ -# Description: Support calling gettext at runtime and putting the gettext domain into the .schemas file instead of replicating translations in /usr/share/gconf/schemas/*.schemas *and* /var/lib/gconf/defaults/%gconf-tree-$LANG.xml. This saves in the order of 90 MB uncompressed/10 MB compressed on hard disks. -# Ubuntu: https://bugs.launchpad.net/bugs/123025 -# Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=568845 ---- GConf-2.26.0/backends/markup-tree.c.gettext 2009-04-26 23:33:05.258484987 -0400 -+++ GConf-2.26.0/backends/markup-tree.c 2009-04-26 23:34:25.026700526 -0400 -@@ -52,6 +52,7 @@ struct _MarkupEntry - char *schema_name; - char *mod_user; - GTime mod_time; -+ const char *gettext_domain; - }; - - static LocalSchemaInfo* local_schema_info_new (void); -@@ -1593,6 +1594,8 @@ markup_entry_set_value (MarkupEntry - gconf_schema_get_type (schema)); - gconf_schema_set_owner (current_schema, - gconf_schema_get_owner (schema)); -+ gconf_schema_set_gettext_domain (current_schema, -+ gconf_schema_get_gettext_domain (schema)); - } - - /* Update mod time */ -@@ -1805,6 +1808,8 @@ markup_entry_get_value (MarkupEntry *ent - else if (c_local_schema && c_local_schema->long_desc) - gconf_schema_set_long_desc (schema, c_local_schema->long_desc); - -+ gconf_schema_set_gettext_domain (schema, entry->gettext_domain); -+ - return retval; - } - } -@@ -2339,8 +2344,9 @@ parse_value_element (GMarkupParseContext - const char *ltype; - const char *list_type; - const char *owner; -+ - GConfValueType vtype; -- const char *dummy1, *dummy2, *dummy3, *dummy4; -+ const char *dummy1, *dummy2, *dummy3, *dummy4, *dummy5; - - #if 0 - g_assert (ELEMENT_IS ("entry") || -@@ -2377,6 +2383,7 @@ parse_value_element (GMarkupParseContext - "muser", &dummy2, - "mtime", &dummy3, - "schema", &dummy4, -+ "gettext_domain", &dummy5, - - NULL)) - return; -@@ -2683,6 +2690,7 @@ parse_entry_element (GMarkupParseContext - const char *mtime; - const char *schema; - const char *type; -+ const char *gettext_domain; - const char *dummy1, *dummy2, *dummy3, *dummy4; - const char *dummy5, *dummy6, *dummy7; - GConfValue *value; -@@ -2693,6 +2701,7 @@ parse_entry_element (GMarkupParseContext - mtime = NULL; - schema = NULL; - type = NULL; -+ gettext_domain = NULL; - - if (!locate_attributes (context, element_name, attribute_names, attribute_values, - error, -@@ -2701,6 +2710,7 @@ parse_entry_element (GMarkupParseContext - "mtime", &mtime, - "schema", &schema, - "type", &type, -+ "gettext_domain", &gettext_domain, - - /* These are allowed but we don't use them until - * parse_value_element -@@ -2768,6 +2778,9 @@ parse_entry_element (GMarkupParseContext - */ - if (schema) - entry->schema_name = g_strdup (schema); -+ -+ if (gettext_domain) -+ entry->gettext_domain = g_intern_string (gettext_domain); - } - else - { -@@ -3716,6 +3729,7 @@ write_value_element (GConfValue *value, - GConfSchema *schema; - GConfValueType stype; - const char *owner; -+ const char *gettext_domain; - - schema = gconf_value_get_schema (value); - -@@ -3741,6 +3755,23 @@ write_value_element (GConfValue *value, - - g_free (s); - } -+ -+ gettext_domain = gconf_schema_get_gettext_domain (schema); -+ -+ if (gettext_domain) -+ { -+ char *s; -+ -+ s = g_markup_escape_text (gettext_domain, -1); -+ -+ if (fprintf (f, " gettext_domain=\"%s\"", s) < 0) -+ { -+ g_free (s); -+ return FALSE; -+ } -+ -+ g_free (s); -+ } - - if (stype == GCONF_VALUE_LIST) - { -diff -up GConf-2.26.0/doc/gconf-1.0.dtd.gettext GConf-2.26.0/doc/gconf-1.0.dtd ---- GConf-2.26.0/doc/gconf-1.0.dtd.gettext 2009-04-26 23:33:17.240736103 -0400 -+++ GConf-2.26.0/doc/gconf-1.0.dtd 2009-04-26 23:34:25.027700384 -0400 -@@ -7,7 +7,7 @@ - -- -+ - - - -diff -up GConf-2.26.0/gconf/gconf-internals.c.gettext GConf-2.26.0/gconf/gconf-internals.c ---- GConf-2.26.0/gconf/gconf-internals.c.gettext 2009-04-26 23:34:10.994700035 -0400 -+++ GConf-2.26.0/gconf/gconf-internals.c 2009-04-26 23:34:53.767450191 -0400 -@@ -513,6 +513,7 @@ gconf_fill_corba_schema_from_gconf_schem - cs->short_desc = CORBA_string_dup (gconf_schema_get_short_desc (sc) ? gconf_schema_get_short_desc (sc) : ""); - cs->long_desc = CORBA_string_dup (gconf_schema_get_long_desc (sc) ? gconf_schema_get_long_desc (sc) : ""); - cs->owner = CORBA_string_dup (gconf_schema_get_owner (sc) ? gconf_schema_get_owner (sc) : ""); -+ cs->gettext_domain = CORBA_string_dup (gconf_schema_get_gettext_domain (sc) ? gconf_schema_get_gettext_domain (sc) : ""); - - { - gchar* encoded; -@@ -600,6 +601,14 @@ gconf_schema_from_corba_schema(const Con - gconf_schema_set_owner(sc, cs->owner); - } - -+ if (*cs->gettext_domain != '\0') -+ { -+ if (!g_utf8_validate (cs->gettext_domain, -1, NULL)) -+ gconf_log (GCL_ERR, _("Invalid UTF-8 in gettext domain for schema")); -+ else -+ gconf_schema_set_gettext_domain(sc, cs->gettext_domain); -+ } -+ - { - GConfValue* val; - -diff -up GConf-2.26.0/gconf/gconf-schema.c.gettext GConf-2.26.0/gconf/gconf-schema.c ---- GConf-2.26.0/gconf/gconf-schema.c.gettext 2009-04-26 23:33:26.787483545 -0400 -+++ GConf-2.26.0/gconf/gconf-schema.c 2009-04-26 23:35:54.240450142 -0400 -@@ -32,9 +32,10 @@ typedef struct { - GConfValueType car_type; /* Pair car type of the described entry */ - GConfValueType cdr_type; /* Pair cdr type of the described entry */ - gchar* locale; /* Schema locale */ -- gchar* owner; /* Name of creating application */ -+ const gchar* owner; /* Name of creating application */ - gchar* short_desc; /* 40 char or less description, no newlines */ - gchar* long_desc; /* could be a paragraph or so */ -+ const gchar* gettext_domain; /* description gettext domain */ - GConfValue* default_value; /* Default value of the key */ - } GConfRealSchema; - -@@ -63,7 +64,6 @@ gconf_schema_free (GConfSchema* sc) - g_free (real->locale); - g_free (real->short_desc); - g_free (real->long_desc); -- g_free (real->owner); - - if (real->default_value) - gconf_value_free (real->default_value); -@@ -91,7 +91,9 @@ gconf_schema_copy (const GConfSchema* sc - - dest->long_desc = g_strdup (real->long_desc); - -- dest->owner = g_strdup (real->owner); -+ dest->gettext_domain = real->gettext_domain; -+ -+ dest->owner = real->owner; - - dest->default_value = real->default_value ? gconf_value_copy (real->default_value) : NULL; - -@@ -136,6 +138,17 @@ gconf_schema_set_locale (GConfSchema* sc - REAL_SCHEMA (sc)->locale = NULL; - } - -+void -+gconf_schema_set_gettext_domain (GConfSchema* sc, const gchar* domain) -+{ -+ g_return_if_fail (domain == NULL || g_utf8_validate (domain, -1, NULL)); -+ -+ if (domain) -+ REAL_SCHEMA (sc)->gettext_domain = g_intern_string (domain); -+ else -+ REAL_SCHEMA (sc)->gettext_domain = NULL; -+} -+ - void - gconf_schema_set_short_desc (GConfSchema* sc, const gchar* desc) - { -@@ -169,11 +182,8 @@ gconf_schema_set_owner (GConfSchema* sc, - { - g_return_if_fail (owner == NULL || g_utf8_validate (owner, -1, NULL)); - -- if (REAL_SCHEMA (sc)->owner) -- g_free (REAL_SCHEMA (sc)->owner); -- - if (owner) -- REAL_SCHEMA (sc)->owner = g_strdup (owner); -+ REAL_SCHEMA (sc)->owner = g_intern_string (owner); - else - REAL_SCHEMA (sc)->owner = NULL; - } -@@ -228,6 +238,14 @@ gconf_schema_validate (const GConfSchema - return FALSE; - } - -+ if (real->gettext_domain && !g_utf8_validate (real->gettext_domain, -1, NULL)) -+ { -+ g_set_error (err, GCONF_ERROR, -+ GCONF_ERROR_FAILED, -+ _("Schema contains invalid UTF-8")); -+ return FALSE; -+ } -+ - if (real->owner && !g_utf8_validate (real->owner, -1, NULL)) - { - g_set_error (err, GCONF_ERROR, -@@ -299,11 +317,32 @@ gconf_schema_get_locale (const GConfSche - } - - const char* -+gconf_schema_get_gettext_domain (const GConfSchema *schema) -+{ -+ g_return_val_if_fail (schema != NULL, NULL); -+ -+ return REAL_SCHEMA (schema)->gettext_domain; -+} -+ -+static inline const char * -+schema_translate (const GConfSchema *schema, -+ const char *string) -+{ -+ if (REAL_SCHEMA (schema)->gettext_domain) -+ { -+ bind_textdomain_codeset (REAL_SCHEMA (schema)->gettext_domain, "UTF-8"); -+ return g_dgettext(REAL_SCHEMA (schema)->gettext_domain, string); -+ } -+ else -+ return string; -+} -+ -+const char* - gconf_schema_get_short_desc (const GConfSchema *schema) - { - g_return_val_if_fail (schema != NULL, NULL); - -- return REAL_SCHEMA (schema)->short_desc; -+ return schema_translate (schema, REAL_SCHEMA (schema)->short_desc); - } - - const char* -@@ -311,7 +350,7 @@ gconf_schema_get_long_desc (const GConfS - { - g_return_val_if_fail (schema != NULL, NULL); - -- return REAL_SCHEMA (schema)->long_desc; -+ return schema_translate (schema, REAL_SCHEMA (schema)->long_desc); - } - - const char* -diff -up GConf-2.26.0/gconf/gconf-schema.h.gettext GConf-2.26.0/gconf/gconf-schema.h ---- GConf-2.26.0/gconf/gconf-schema.h.gettext 2009-04-26 23:33:33.979744088 -0400 -+++ GConf-2.26.0/gconf/gconf-schema.h 2009-04-26 23:34:25.030737043 -0400 -@@ -48,6 +48,8 @@ void gconf_schema_set_cdr_type - GConfValueType type); - void gconf_schema_set_locale (GConfSchema *sc, - const gchar *locale); -+void gconf_schema_set_gettext_domain (GConfSchema *sc, -+ const gchar *domain); - void gconf_schema_set_short_desc (GConfSchema *sc, - const gchar *desc); - void gconf_schema_set_long_desc (GConfSchema *sc, -@@ -65,6 +67,7 @@ GConfValueType gconf_schema_get_list_typ - GConfValueType gconf_schema_get_car_type (const GConfSchema *schema); - GConfValueType gconf_schema_get_cdr_type (const GConfSchema *schema); - const char* gconf_schema_get_locale (const GConfSchema *schema); -+const char* gconf_schema_get_gettext_domain(const GConfSchema *schema); - const char* gconf_schema_get_short_desc (const GConfSchema *schema); - const char* gconf_schema_get_long_desc (const GConfSchema *schema); - const char* gconf_schema_get_owner (const GConfSchema *schema); -diff -up GConf-2.26.0/gconf/gconftool.c.gettext GConf-2.26.0/gconf/gconftool.c ---- GConf-2.26.0/gconf/gconftool.c.gettext 2009-04-26 23:33:41.907451190 -0400 -+++ GConf-2.26.0/gconf/gconftool.c 2009-04-26 23:34:25.034736752 -0400 -@@ -3295,6 +3295,7 @@ struct _SchemaInfo { - GConfValueType cdr_type; - GConfValue* global_default; - GHashTable* hash; -+ gchar* gettext_domain; - }; - - static int -@@ -3547,6 +3548,15 @@ extract_global_info(xmlNodePtr node, - else - g_printerr (_("WARNING: empty node")); - } -+ else if (strcmp((char *)iter->name, "gettext_domain") == 0) -+ { -+ tmp = (char *)xmlNodeGetContent(iter); -+ if (tmp) -+ { -+ info->gettext_domain = g_strdup(tmp); -+ xmlFree(tmp); -+ } -+ } - else - g_printerr (_("WARNING: node <%s> not understood below \n"), - iter->name); -@@ -3636,6 +3646,9 @@ process_locale_info(xmlNodePtr node, Sch - if (info->owner != NULL) - gconf_schema_set_owner(schema, info->owner); - -+ if (info->gettext_domain != NULL) -+ gconf_schema_set_gettext_domain(schema, info->gettext_domain); -+ - xmlFree(name); - - /* Locale-specific info */ -@@ -3765,6 +3778,7 @@ get_schema_from_xml(xmlNodePtr node, gch - info.apply_to = NULL; - info.owner = NULL; - info.global_default = NULL; -+ info.gettext_domain = NULL; - info.hash = g_hash_table_new(g_str_hash, g_str_equal); - - extract_global_info(node, &info); -@@ -3801,6 +3815,8 @@ get_schema_from_xml(xmlNodePtr node, gch - ; /* nothing */ - else if (strcmp((char *)iter->name, "applyto") == 0) - ; /* nothing */ -+ else if (strcmp((char *)iter->name, "gettext_domain") == 0) -+ ; /* nothing */ - else if (strcmp((char *)iter->name, "locale") == 0) - { - process_locale_info(iter, &info); -diff -up GConf-2.26.0/gconf/GConfX.idl.gettext GConf-2.26.0/gconf/GConfX.idl ---- GConf-2.26.0/gconf/GConfX.idl.gettext 2009-04-26 23:33:58.457483190 -0400 -+++ GConf-2.26.0/gconf/GConfX.idl 2009-04-26 23:34:53.764448732 -0400 -@@ -16,6 +16,7 @@ struct ConfigSchema { - string short_desc; - string long_desc; - string owner; -+ string gettext_domain; - // Work around lack of recursive data types - string encoded_default_value; - }; diff --git a/gconf/Pkgfile b/gconf/Pkgfile deleted file mode 100644 index aca5372..0000000 --- a/gconf/Pkgfile +++ /dev/null @@ -1,41 +0,0 @@ -# Description: Système de configuration de base de données -# URL: http://www.gnome.org/ -# Maintainer: NuTyX core team -# Packager: thierryn1 at hispeed dot ch -# Depends on: gtk3, orbit2, polkit, dbus-glib, gtk, libldap, libxml2 -# Run on: gtk3,orbit2,polkit,dbus-glib,gtk,libldap,libxml2 - -name=gconf -version=3.2.3 -release=1 -source=(http://ftp.gnome.org/pub/gnome/sources/GConf/${version%.*}/GConf-$version.tar.xz - gconf-merge-schema - gconfpkg - gconf-reload.patch - 01_xml-gettext-domain.patch) - -build() { - cd GConf-$version - - # Patch de Fedora - Recharge GConf après l'installation de schemas - patch -Np1 -i ../gconf-reload.patch - # http://bugzilla.gnome.org/show_bug.cgi?id=568845 - patch -Np1 -i ../01_xml-gettext-domain.patch - sed -i '1s|#!/usr/bin/env python$|&2|' gsettings/gsettings-schema-convert - - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --enable-defaults-service \ - --libexecdir=/usr/lib/GConf \ - --mandir=/usr/share/man \ - --with-gtk=3.0 - - make pkglibdir=/usr/lib/GConf - make DESTDIR=$PKG install - rm -r $PKG/usr/share/gtk-doc - - install -m755 -d $PKG/etc/gconf/gconf.xml.system - install -m755 ../gconf-merge-schema $PKG/usr/bin/ - install -Dm755 ../gconfpkg $PKG/usr/sbin/gconfpkg -} diff --git a/gconf/gconf-merge-schema b/gconf/gconf-merge-schema deleted file mode 100644 index 992c162..0000000 --- a/gconf/gconf-merge-schema +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -if [ ! "$1" -a ! "$2" ]; then - echo "Usage: $0 output.schemas [--domain gettextdomain] file1.schemas [file2.schemas [...]]" - exit 1 -fi - -OUTFILE="$1" -DOMAIN="" -shift - -if [ "$1" = "--domain" ]; then - shift - DOMAIN=$1 - shift -fi - -echo '' > "$OUTFILE" -echo '' >> "$OUTFILE" - -while [ "$1" ]; do - if [ -f "$1" ]; then - sed -e '/||g' \ - -e 's|||g' \ - -e 's|||g' \ - -e 's|||g' "$1" >> "$OUTFILE" - fi - shift -done - -echo '' >> "$OUTFILE" -if [ "$DOMAIN" != "" ]; then - sed -ri "s/^([[:space:]]*)()/\1$DOMAIN<\/gettext_domain>\n\1\2/; /^[[:space:]]*[[:space:]]*\$/ d; /^$/d; s/<\/schema>$/&\n/" "$OUTFILE" -fi diff --git a/gconf/gconf-reload.patch b/gconf/gconf-reload.patch deleted file mode 100644 index 910f0da..0000000 --- a/gconf/gconf-reload.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- GConf-2.16.0/gconf/gconftool.c.orig 2006-10-14 17:37:14.000000000 +0000 -+++ GConf-2.16.0/gconf/gconftool.c 2006-10-14 17:39:27.000000000 +0000 -@@ -963,6 +963,8 @@ main (int argc, char** argv) - - gconf_engine_unref (conf); - -+ g_spawn_command_line_sync ("/usr/bin/killall -q -TERM " GCONF_SERVERDIR "/" GCONFD, NULL, NULL, NULL, NULL); -+ - return retval; - } - -@@ -975,6 +977,8 @@ main (int argc, char** argv) - - gconf_engine_unref (conf); - -+ g_spawn_command_line_sync ("/usr/bin/killall -q -TERM " GCONF_SERVERDIR "/" GCONFD, NULL, NULL, NULL, NULL); -+ - return retval; - } - diff --git a/gconf/gconfpkg b/gconf/gconfpkg deleted file mode 100644 index 839b57c..0000000 --- a/gconf/gconfpkg +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh - -usage() { -cat << _EOF -Usage: - gconfpkg [OPTION] [PACKAGE] - - Help Options: - -?, --help Show help options - - Application Options: - --install Install schemas for a given package - --uninstall Uninstall schemas for a given package - -_EOF -} - -install() { - GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \ - /usr/bin/gconftool-2 --makefile-install-rule /usr/share/gconf/schemas/${pkgname}.schemas >/dev/null -} - -uninstall() { - if [ -f /usr/share/gconf/schemas/${pkgname}.schemas ]; then - schemas=/usr/share/gconf/schemas/${pkgname}.schemas - elif [ -f /opt/gnome/share/gconf/schemas/${pkgname}.schemas ]; then - schemas=/opt/gnome/share/gconf/schemas/${pkgname}.schemas - else - schemas=`pkginfo -l ${pkgname} | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'` - fi - GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \ - /usr/bin/gconftool-2 --makefile-uninstall-rule ${schemas} >/dev/null -} - -if [ -z "$2" ]; then - usage -else - pkgname="$2" - case "$1" in - --install) - install - ;; - --uninstall) - uninstall - ;; - *) - usage - ;; - esac -fi diff --git a/gconf/post-install b/gconf/post-install deleted file mode 100644 index dc4caa4..0000000 --- a/gconf/post-install +++ /dev/null @@ -1,3 +0,0 @@ -/sbin/ldconfig -r / -chmod 755 /etc/gconf/gconf.xml.system -/usr/bin/gio-querymodules /usr/lib/gio/modules -- cgit v1.2.3-54-g00ecf