Bug 310640

Summary: beta3plus: cannot de-install pango-32bit package from 10.2 install
Product: [openSUSE] openSUSE 10.2 Reporter: Christopher Stender <cstender>
Component: GNOMEAssignee: Michael Wolf <maw>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: amantia, coolo, holgi, kkaempf, sbrabec
Version: Final   
Target Milestone: Final   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christopher Stender 2007-09-14 16:30:50 UTC
While updating from 10.2 (x86_64) to 10.3 Beta3plus (x86_64) pango-32bit could not be installed. Logs will follow.
Comment 1 Christopher Stender 2007-09-16 15:18:13 UTC
Sorry, I lost the logfiles. All I have is a bad picture which says the following:

Installation of package /suse/x86_64/pango-32bit-1.18.1-3.x86_64.rpm failed

Subprocess failed. Error: RPM failed: opt/gnome/bin/pango-querymodules error while loading shared libraries. libXdmcp.so.6 cannot be found

error: %preun(pango-32bit-1.14.5-16.x86_64) scriptlet failed, exit status 127


I hope this are enough information.
Comment 2 Stephan Kulow 2007-09-17 18:30:39 UTC
there is little to fix here. The 10.2 package is buggy. At least I have no idea how to satisfy the dependencies of the old and the new package at the same time.
Comment 3 Klaus Kämpf 2007-09-18 08:11:03 UTC
This looks like a missing "prerequires" in the 10.2 (!) pango-32bit package which needs libXdmcp.so.6 for its %preun script but libXdmcp is already removed/upgraded.

There is no way to fix this for 10.3

Fixing problems like these is a long-standing idea: inject additional dependencies 
Comment 4 Klaus Kämpf 2007-09-18 08:11:50 UTC
I'll track this request for future development.
Comment 5 Stephan Kulow 2007-09-18 08:48:53 UTC
Michael, please make sure the prerequires are correct in the 10.3 pango and if done, please reassign to Klaus
Comment 6 Christopher Stender 2007-09-18 09:37:40 UTC
What about an online update for openSUSE 10.2? We will run into this with the next release as well if someone tries to update a 10.2 to 11.0 or whatever.
Comment 8 Stanislav Brabec 2007-09-18 16:56:42 UTC
Adding a self-removing SuSEconfig script calling rpm -e --noscripts would be an ugly but working work-around.

Another one might be adding a false libXdmcp.so.6 to %pre/%post and removing it in %posttrans.
Comment 9 Stephan Kulow 2007-09-18 18:01:45 UTC
Wow. Stanislav, after all these years you still manage to scare me :)
Comment 10 Michael Wolf 2007-09-18 23:49:19 UTC
I've submitted a pango with a prereq of xorg-x11-libXdmcp, but don't have the means to test this here...

Comment 11 Stephan Kulow 2007-09-19 14:36:49 UTC
*** Bug 326366 has been marked as a duplicate of this bug. ***
Comment 12 Stanislav Brabec 2007-09-19 16:25:12 UTC
To coolo (comment 9):

Both these solutions are actually used:

Self removing SuSEconfig: opt_gnome-compat

Dummies to fulfil PreReq: bug 165811 comment 19.
Comment 13 Holger Sickenberg 2007-09-25 09:04:45 UTC
Problem still in RC2 (Build 1120)
Comment 14 Stephan Kulow 2007-09-25 09:41:05 UTC
ok, then prepare an online update for 10.2.
Comment 15 Stanislav Brabec 2007-09-25 11:16:00 UTC
Coolo: Are you sure, that everybody will online update 10.2 before upgrade?

Proposed upgrade hack (untested) without need of 10.2 update:

%pre
# Upgrade protection for upgrade to 10.3 and SLE11 (#310640). Remove after SLE12.
if test "$1" = 2 ; then
# Overwrite possibly failing binary. /bin/true will be removed during upgrade.
  ln -sf /bin/true opt/gnome/bin/pango-querymodules || :
fi
Comment 16 Stephan Kulow 2007-09-25 11:34:09 UTC
Michael, any comment?
Comment 17 Stanislav Brabec 2007-09-25 11:52:55 UTC
Here are my additional comments:

We just changed prefix, so we can do it. In normal conditions, such scriptlet would be incorrect as it could keep orphan records for deleted modules in pango.modules. But for (>=10.2)->(>=10.3) it is not the case - cache has a new location and the old one will be removed (it is registered as %ghost in RPM database). /opt/gnome/bin/pango-querymodules itself should be removed during the opgrade process as well.

The only theoretical breakage I could imagine would happen in case of installing of third party pango with name different from pango-32bit into /opt/gnome.
Comment 18 Michal Zugec 2007-10-21 14:18:34 UTC
*** Bug 331254 has been marked as a duplicate of this bug. ***
Comment 19 Stephan Kulow 2007-11-29 15:29:05 UTC
we survived pretty well without fixing it, so people seem to be fine with clicking away this error :)