[Bug 222418] New: many GNOME packages are not installing their .schema files correctly
https://bugzilla.novell.com/show_bug.cgi?id=222418 Summary: many GNOME packages are not installing their .schema files correctly Product: openSUSE 10.3 Version: unspecified Platform: All OS/Version: All Status: NEW Severity: Normal Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: andreas.hanke@gmx-topmail.de QAContact: qa@suse.de Many GNOME packages are just copying their .schema files to %{_sysconfdir}/gconf/schemas, but don't actually install it in their %post scriptlet. This should be cleaned up for the next release. The planned /opt/gnome -> /usr move is a good opportunity to review all spec files for such bugs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222418 ------- Comment #1 from andreas.hanke@gmx-topmail.de 2006-11-17 16:13 MST ------- Maybe you can even consider defining an rpm macro for this to avoid duplicating the same code in every spec file. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222418 ------- Comment #2 from andreas.hanke@gmx-topmail.de 2006-11-17 21:13 MST ------- Created an attachment (id=106146) --> (https://bugzilla.novell.com/attachment.cgi?id=106146&action=view) a few (completely untested) helper macros Assuming that they worked, you could simply do: %gconf_schemas_prereq %post %gconf_schemas_install schema1 schema2 schema3 %preun %gconf_schemas_remove schema1 schema2 schema3 And it would insert the code to install and even remove the schemas accordingly. (Currently, most, but not all schemas are installed, but none are ever removed.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222418 jpr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sbrabec@novell.com AssignedTo|bnc-team- |jhargadon@novell.com |gnome@forge.provo.novell.com| ------- Comment #3 from jpr@novell.com 2006-11-20 14:00 MST ------- Yes, we've talked about a macro for this before and it is a good idea. Joe, you'd need to work with Rudi and Lars to make this happen. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222418 ------- Comment #4 from sbrabec@novell.com 2006-11-21 08:50 MST ------- I can try to write script checking all packages. This can mean major breaking of such package. Defining macro for 10.3 could be a good idea. I don't see any way, how it is possible to do schemas uninstallation in RPM, unless RPM will implement %preuntrans. See GNOME bug http://bugzilla.gnome.org/show_bug.cgi?id=306924 (--makefile-uninstall-rule is incompatible with packaging systems) for more. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222418 ------- Comment #5 from sbrabec@novell.com 2006-11-21 10:04 MST ------- Having unpacked binaries in /mounts/dist/unpacked/i386.full: cd /mounts/dist/unpacked/i386.full/etc/opt/gnome/gconf/schemas ; shopt -s nullglob ; for FILE in * ; do PACKAGE=$(FILE=$PWD/$FILE ; rpm -qf -r /mounts/dist/unpacked/i386.full ${FILE#/mounts/dist/unpacked/i386.full} --queryformat=%{name}) ; if ! rpm -q --scripts -r /mounts/dist/unpacked/i386.full $PACKAGE | grep -q "/$FILE" ; then echo "$PACKAGE: Missing $FILE" ; fi ; done Candidates: evolution: Missing apps_evolution_addressbook-2.8.schemas evolution: Missing apps_evolution_calendar-2.8.schemas evolution: Missing apps_evolution_shell-2.8.schemas xchat: Missing apps_xchat_url_handler.schemas banshee-plugins-defaulthelix-banshee-plugins-default: Missing audioscrobbler.schemas banshee-plugins-defaulthelix-banshee-plugins-default: Missing banshee-notificationareaicon.schemas helix-bansheebanshee: Missing banshee.schemas gnome-utils: Missing baobab.schemas blam: Missing blam.schemas gnome-applets: Missing cpufreq-applet.schemas helix-banshee-plugins-DAAPbanshee-plugins-DAAP: Missing daap.schemas epiphany: Missing epiphany-fonts.schemas epiphany: Missing epiphany-pango.schemas evolution: Missing evolution-mail-2.8.schemas fast-user-switch-applet: Missing fast-user-switch-applet.schemas gconf-editor: Missing gconf-editor.schemas gedit: Missing gedit-file-browser.schemas gnome-utils: Missing gnome-dictionary.schemas gnome-games: Missing gnotski.schemas last-exit: Missing last-exit.schemas last-exit: Missing lastfm.schemas gnome-games: Missing libgnomegames.schemas memprof: Missing memprof.schemas banshee-plugins-defaulthelix-banshee-plugins-default: Missing metadatasearch.schemas banshee-plugins-defaulthelix-banshee-plugins-default: Missing mmkeys.schemas totem: Missing totem-handlers.schemas zapping: Missing zapping.schemas (evolution is false positive - they use version wildcards.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222418 ------- Comment #6 from sbrabec@novell.com 2006-11-21 10:10 MST ------- There is a work-around, not known for beginner - call gconftool-rebuild. When you will fix it, please note: Don't use wildcards in schemas file list and in %post to prevent overseeing of a new file while upgrading resp. misbehavior in case of name clash. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222418 sbrabec@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |222995 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222418 sbrabec@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |235896 nThis| | Severity|Normal |Blocker ------- Comment #7 from sbrabec@novell.com 2007-02-09 09:28 MST ------- There are new schemas installation macros, but the problem remains - not all package use them. Increasing to BLOCKER, because dependent bug is BLOCKER - not installing schemas correctly means upgrade errors. The new way is described in /etc/rpm/macros.gconf2 (package gconf2) and already implemented in core GNOME packages for 10.3. cd /mounts/dist/unpacked/i386.full/etc/gconf/schemas ; shopt -s nullglob ; for FILE in *.schemas ; do PACKAGE=$(FILE=$PWD/$FILE ; rpm -qf -r /mounts/dist/unpacked/i386.full ${FILE#/mounts/dist/unpacked/i386.full} --queryformat=%{name}) ; if ! rpm -q --scripts -r /mounts/dist/unpacked/i386.full $PACKAGE | grep -q "/$FILE" ; then echo "$PACKAGE: Missing $FILE" ; fi ; done New candidates: banshee-plugins-default: Missing banshee-plugin-audioscrobbler.schemas blam: Missing blam.schemas last-exit: Missing last-exit.schemas last-exit: Missing lastfm.schemas memprof: Missing memprof.schemas Note that this list does not cover packages with bug 235896. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222418 Bug 222418 depends on bug 222995, which changed state. Bug 222995 Summary: never use "*" in schemas installation https://bugzilla.novell.com/show_bug.cgi?id=222995 What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222418 jhargadon@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jhargadon@novell.com |bnc-team-gnome-build@forge.provo.novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222418 sbrabec@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #8 from sbrabec@novell.com 2007-03-09 08:50 MST ------- Not yet really fixed, but new Autobuild check was activated. This check will force to fail all packages with bad scriptlets. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com