[Bug 216982] New: Upgrading of xgl package failed
https://bugzilla.novell.com/show_bug.cgi?id=216982 Summary: Upgrading of xgl package failed Product: openSUSE 10.2 Version: Beta 1 Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Xgl AssignedTo: dreveman@novell.com ReportedBy: amantia@kde.org QAContact: bperry@novell.com When upgrading an up-to-date 10.1 to 10.2 Beta1, all went fine except the updating of xgl, it failed with the following error and I had to skip the package upgrade: 006-10-30 20:46:56 <5> stein(5536) [base] Exception.cc(log):94 RpmDb.cc(doInstallPackage):2002 THROW: RpmDb.cc(doInstallPackage):2002: Subprocess faile d. Error: RPM failed: Updating etc/sysconfig/displaymanager... 2006-10-30 20:46:56 <5> stein(5536) [base] Exception.cc(log):94 2006-10-30 20:46:56 <5> stein(5536) [base] Exception.cc(log):94 ERROR: SuSEconfig or requested SuSEconfig module not present! 2006-10-30 20:46:56 <5> stein(5536) [base] Exception.cc(log):94 2006-10-30 20:46:56 <5> stein(5536) [base] Exception.cc(log):94 error: %postun(xgl-cvs_060522-0.13.x86_64) scriptlet failed, exit status 1 -- 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=216982 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mhopf@novell.com, sndirsch@novell.com Status|NEW |NEEDINFO Info Provider| |ro@novell.com ------- Comment #1 from sndirsch@novell.com 2006-11-01 10:13 MST -------
%postun %run_suseconfig -m xdm Great! This script no longer exists due to a request to remove it. Fixed in xgl for 10.2, but this won't help since %postun of xgl for 10.1 is called during an update.
Rudi, any idea how to fix this issue? Do we need a hack for SuSEconfig to ignore requests for running SuSEconfig.xdm? Maybe for all SuSEconfig scripts, which no longer exist? -- 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=216982 jpr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mrueckert@novell.com ------- Comment #2 from jpr@novell.com 2006-11-01 11:40 MST ------- *** Bug 208992 has been marked as a duplicate of this bug. *** -- 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=216982 ------- Comment #3 from jpr@novell.com 2006-11-01 11:41 MST ------- When this came up before with banshee, we tried releasing an update to it for older products. -- 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=216982 ------- Comment #4 from sndirsch@novell.com 2006-11-01 11:49 MST ------- (In reply to comment #3)
When this came up before with banshee, we tried releasing an update to it for older products. Ouch! Looks like it's still a good idea to end up each %p* section with "exit 0". :-(
-- 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=216982 ro@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|ro@novell.com | ------- Comment #5 from ro@novell.com 2006-11-01 15:33 MST ------- well, of course I can hack something into SuSEconfig to ignore non-existing modules (maybe just output a warnign in that case, but still exit with "0"). and yes: %postun is the worst type of script, any problems there can not be fixed in the updated package. -- 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=216982 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro@novell.com ------- Comment #6 from sndirsch@novell.com 2006-11-01 15:36 MST ------- Adding Rudi to Cc as long as it is not decided how to fix this issue. -- 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=216982 ------- Comment #7 from ro@novell.com 2006-11-01 15:42 MST ------- bad luck, changing SuSEconfig will not help. %run_suseconfig(m:) \ %{!-m:echo -e "\\nERROR: missing parameter for macro run_suseconfig\\n" ; exit 1 ; } \ if test "$YAST_IS_RUNNING" != "instsys" ; then \ if test -x /sbin/SuSEconfig -a -f /sbin/conf.d/SuSEconfig.%{-m*} ; then \ /sbin/SuSEconfig --module %{-m*} \ else \ echo -e "\\nERROR: SuSEconfig or requested SuSEconfig module not present!\\n" ; exit 1 \ fi \ fi \ %nil that means: the package will always do "exit 1" if SuSEconfig.xdm does not exist. -- 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=216982 ------- Comment #8 from amantia@kde.org 2006-11-02 00:37 MST ------- What about providing a dummy SuSEconfig.xdm with 10.2 and remove it as soon as the new xgl package is installed (in its pre or post inst section). This way the old one can find it, while as soon as the new one is installed it will not pollute the system anymore. -- 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=216982 ------- Comment #9 from andreas.hanke@gmx-topmail.de 2006-11-02 00:45 MST ------- This is not as easy as it sounds because the %postun scriptlet of the uninstalled package is the last one to be executed in the transaction. The scriptlets are executed in this order: %pre of new package %post of new package %preun of old package %postun of old package Don't ask me why, but that's the way rpm likes to do it. Errors in %postun scriplets are therefore basically unfixable. -- 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=216982 ------- Comment #10 from amantia@kde.org 2006-11-02 00:52 MST ------- That's bad, but I think the cause is not lost completely. ;-) Yes, this is a hack, but what about this: - provide dummy SuSEconfig.xdm - update to the xgl package will work, SuSEconfig.xdm is not removed - in the first update for xgl (well, if there will be any) remove SuSEconfig.xdm. Should work now, as the current (already 10.2) version of xgl doesn't require SuSEconfig.xdm anymore in %postun Well, I'm not a packager, so maybe they will come up with a better idea, but I think errors during update are quite bad. -- 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=216982 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Major -- 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=216982 ------- Comment #11 from aj@novell.com 2006-11-17 07:08 MST ------- Let's do an update of xgl for 10.1. Maintainenance-ID is: MaintenanceTracker-7048 -- 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=216982 ------- Comment #12 from ro@novell.com 2006-11-17 07:23 MST ------- the 10.1 macro definition was: %run_suseconfig(m:) \ %{!-m:echo -e "\\nERROR: missing parameter for macro run_suseconfig\\n" ; exit 1 ; } \ if test "$YAST_IS_RUNNING" != "instsys" ; then \ if test -x /sbin/SuSEconfig -a -f /sbin/conf.d/SuSEconfig.%{-m*} ; then \ /sbin/SuSEconfig --module %{-m*} \ else \ echo -e "\\nERROR: SuSEconfig or requested SuSEconfig module not present!\\n" ; exit 1 \ fi \ fi \ %nil I'd propose to put the code directly into the package and remove the "exit 1". -- 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=216982 jpr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gekker@novell.com Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #13 from jpr@novell.com 2006-11-19 19:21 MST ------- Done in the %postun section, plus I made it saying "WARNING" instead of "ERROR" since in the upgrade case its not an error. Created patchinfo file as /work/src/done/PATCHINFO/xgl.patch.box Also submitted for sle 10 sp1 to head off potential problems when moving to sle 11. -- 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=216982 ------- Comment #14 from ast@novell.com 2006-11-27 07:28 MST ------- released for 10.1 -- 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