[Bug 339125] New: openmotif22-libs optional patch strange behavior
https://bugzilla.novell.com/show_bug.cgi?id=339125 Summary: openmotif22-libs optional patch strange behavior Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Maintenance AssignedTo: schubi@novell.com ReportedBy: visnov@novell.com QAContact: qa@suse.de CC: hmuelle@novell.com, coolo@novell.com, ro@novell.com Found By: --- Created an attachment (id=182050) --> (https://bugzilla.novell.com/attachment.cgi?id=182050) zypper up --debug-solver testcase This patch pops up as needed, even though the openmotif22-libs package is not installed and drags in package. I've checked the patch, it does not contain any freshen, just requires. I'm not sure if the patch is constructed properly, or the solver behaves problematically here. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125#c1 Stefan Schubert <schubi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|schubi@novell.com |visnov@novell.com --- Comment #1 from Stefan Schubert <schubi@novell.com> 2007-11-05 09:02:30 MST --- There is no freshens definition in the patch: <atom> <name>openmotif22-libs</name> <arch>i586</arch> <version>2.2.4</version><release>84.1</release> <provides> <dep name='openmotif22-libs' op='==' version='2.2.4' release='84.1' kind="atom" /> </provides> <requires> <dep name='openmotif22-libs' op='>=' version='2.2.4' release='84.1' kind="package" /> </requires> </atom> Stano, who has created this patch ? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125 Stanislav Visnovsky <visnov@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|visnov@novell.com |ro@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.
https://bugzilla.novell.com/show_bug.cgi?id=339125#c2 Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |visnov@novell.com --- Comment #2 from Ruediger Oertel <ro@novell.com> 2007-11-05 10:15:09 MST --- the patchinfo engine. it's a pretty normal case: CATEGORY: optional UpdateOnlyInstalled: false by definition the solver is to install the package if the patch is selected, but the solver should not pull in this patch automatically, since it's marked as "optional". Yes, there is no "Freshens" since the patch is meant to install a package that was not present in the Product before. Where exactly is the problem ? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125#c3 Stanislav Visnovsky <visnov@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |visnov@novell.com, kkaempf@novell.com Status|NEEDINFO |NEW Info Provider|visnov@novell.com | --- Comment #3 from Stanislav Visnovsky <visnov@novell.com> 2007-11-05 10:23:01 MST --- I'm not sure, where the problem really is :( However, the resulting behavior is very strange: If you have a 32-bit system, and you do 'zypper update', this will install openmotif22-libs even if they are not installed at all. What I would expect is that the patch is not needed. How can we do that? Adding Klaus to cc. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125#c4 --- Comment #4 from Harald Mueller-Ney <hmuelle@novell.com> 2007-11-05 10:35:53 MST --- Calculation of "needed" seems to be odd. "optional" mean really optional, it is not needed but it is applicable to for the system. Maybe "needed" is (mis)used to make it appear at all? In future we will not release new package this way anymore. Customers need to install new packages via "installers" like yast sw_single or zen-installer etc. But we still might have optional updates, you only want to install under certain conditions. I do not want to "drop" optional completely without further investigation . -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125#c5 Harald Mueller-Ney <hmuelle@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |kkaempf@novell.com --- Comment #5 from Harald Mueller-Ney <hmuelle@novell.com> 2007-11-05 10:37:49 MST --- Klaus, how is "optional" defined in zypp? AFAICS it worked with SLE10 like we expected it to work and descriped above. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125#c6 Ben Kevan <ben.kevan@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ben.kevan@gmail.com --- Comment #6 from Ben Kevan <ben.kevan@gmail.com> 2007-11-06 17:23:55 MST --- I will add to this.. Shows that openmotif22-libs stuff isn't installed. bkevan@LSSUSE01007250:~> rpm -qa | grep openmotif bkevan@LSSUSE01007250:~> ----------------------------------------------------------------------- bkevan@LSSUSE01007250:~> sudo zypper up -t patch -r "openSUSE 10.3 Updates" root's password: Repository 'openSUSE 10.3 Updates' not found. bkevan@LSSUSE01007250:~> sudo zypper up -t patch -r "openSUSE_10.3_Updates" * Reading repository 'openSUSE 10.3 Updates' cache * Reading installed packages [100%] The following NEW package is going to be installed: openmotif22-libs The following NEW patch is going to be installed: openmotif22-libs Overall download size: 1.2 M. After the operation, additional 2.7 M will be used. Continue? [yes/no]: Why does it want to install when it's not required and is not already installed? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125#c7 Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schubi@novell.com Info Provider|kkaempf@novell.com |schubi@novell.com --- Comment #7 from Klaus Kämpf <kkaempf@novell.com> 2007-11-09 02:25:15 MST --- Hmm, I'd assume a bug in zypper/libzypp communication. Stefan, please check the patch state after 'establish' is called. Its probably set to 'applicable/needed' because there is no freshens and its requirements aren't fulfilled. Iirc, libzypp does _not_ look at the severity but just at dependencies. Filtering out optional patches is up to the application. (Just like preferring 'update stack' patches is). -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125#c8 --- Comment #8 from Stanislav Visnovsky <visnov@novell.com> 2007-11-09 02:33:59 MST --- The problem is that this patch is not needed! The libraries mentioned in the patch are not installed on the system and it does not make sense to install them. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125#c9 --- Comment #9 from Klaus Kämpf <kkaempf@novell.com> 2007-11-09 02:48:40 MST --- Yes, the problem is fully understood. I'm now trying to find the cause ;-) -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125#c10 Stefan Schubert <schubi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|schubi@novell.com | --- Comment #10 from Stefan Schubert <schubi@novell.com> 2007-11-09 03:35:16 MST --- Without the freshen it is INCOMPLETE: -------------------------------- 2007-11-09 11:20:14 <999> waerden(7015) [zypp] ResolverQueue.cc(processOnce):228 =====> 1st pass: [[Establish: U__s_[S7:0][atom]openmotif22-libs-2.2.4-84.1.i586, Explicit !]] 2007-11-09 11:20:14 <999> waerden(7015) [zypp] QueueItemEstablish.cc(process):101 QueueItemEstablish::process([Establish: U__s_[S7:0][atom]openmotif22-libs-2.2.4-84.1.i586, Explicit !]) 2007-11-09 11:20:14 <999> waerden(7015) [zypp] QueueItemEstablish.cc(process):120 simple establish of U__s_[S7:0][atom]openmotif22-libs-2.2.4-84.1.i586 with 0 freshens 2007-11-09 11:20:14 <999> waerden(7015) [zypp] ResolverInfo.cc(ResolverInfo):210 ResolverInfo<ESTABLISHING> atom:openmotif22-libs-2.2.4-84.1.i586[3] 2007-11-09 11:20:14 <999> waerden(7015) [zypp] ResolverContext.cc(addInfo):1206 ResolverContext[0xb8a6f08]::addInfo(ResolverInfo<ESTABLISHING> atom:openmotif22-libs-2.2.4-84.1.i586[3]>>Establishing atom:openmotif22-libs-2.2.4-84.1.i586[3]<<, Trigger: none 2007-11-09 11:20:14 <999> waerden(7015) [zypp] ResolverContext.cc(addInfo):1206 ) 2007-11-09 11:20:14 <999> waerden(7015) [zypp] ResolverContext.cc(isPresent):699 ResolverContext::itemIsPresent(<U__s_>U__s_[S7:0][package]openmotif22-libs-2.2.4-84.1.i586) N 2007-11-09 11:20:14 <999> waerden(7015) [zypp] ResolverContext.cc(requirementIsMet):1581 ResolverContext::requirementIsMet([package] (namedcap) openmotif22-libs >= 2.2.4-84.1) N 2007-11-09 11:20:14 <999> waerden(7015) [zypp] QueueItemEstablish.cc(process):243 Atom/Patch/Installed/Establishing U__s_[S7:0][atom]openmotif22-libs-2.2.4-84.1.i586 has unfulfilled requirement [package] (namedcap) openmotif22-libs >= 2.2.4-84.1 -> incomplete 2007-11-09 11:20:14 <999> waerden(7015) [zypp] ResolverContext.cc(incomplete):666 ResolverContext[0xb8a6f08]::incomplete(U__s_[S7:0][atom]openmotif22-libs-2.2.4-84.1.i586):U__s_ 2007-11-09 11:20:14 <999> waerden(7015) [zypp] ResolverContext.cc(setStatus):207 [0xb8a6f08]setStatus(U__s_[S7:0][atom]openmotif22-libs-2.2.4-84.1.i586, UI_s_) 2007-11-09 11:20:14 <999> waerden(7015) [zypp] ResolverContext.cc(setStatus):211 MARK ---------------------------------- WITH the FRESHENS <atom> <name>openmotif22-libs</name> <arch>i586</arch> <version>2.2.4</version><release>84.1</release> <provides> <dep name='openmotif22-libs' op='==' version='2.2.4' release='84.1' kind="atom" /> </provides> <requires> <dep name='openmotif22-libs' op='>=' version='2.2.4' release='84.1' kind="package" /> </requires> <freshens> <dep name='openmotif22-libs' kind="package" /> </freshens> </atom> it is unneeded: ----------------------------------- 2007-11-09 11:23:33 <999> waerden(7054) [zypp] ResolverQueue.cc(processOnce):228 =====> 1st pass: [[Establish: U__s_[S7:0][atom]openmotif22-libs-2.2.4-84.1.i586, Explicit !]] 2007-11-09 11:23:33 <999> waerden(7054) [zypp] QueueItemEstablish.cc(process):101 QueueItemEstablish::process([Establish: U__s_[S7:0][atom]openmotif22-libs-2.2.4-84.1.i586, Explicit !]) 2007-11-09 11:23:33 <999> waerden(7054) [zypp] QueueItemEstablish.cc(process):120 simple establish of U__s_[S7:0][atom]openmotif22-libs-2.2.4-84.1.i586 with 1 freshens 2007-11-09 11:23:33 <999> waerden(7054) [zypp] ResolverInfo.cc(ResolverInfo):210 ResolverInfo<ESTABLISHING> atom:openmotif22-libs-2.2.4-84.1.i586[3] 2007-11-09 11:23:33 <999> waerden(7054) [zypp] ResolverContext.cc(addInfo):1206 ResolverContext[0xb8a6f80]::addInfo(ResolverInfo<ESTABLISHING> atom:openmotif22-libs-2.2.4-84.1.i586[3]>>Establishing atom:openmotif22-libs-2.2.4-84.1.i586[3]<<, Trigger: none 2007-11-09 11:23:33 <999> waerden(7054) [zypp] ResolverContext.cc(addInfo):1206 ) 2007-11-09 11:23:33 <999> waerden(7054) [zypp] ResolverContext.cc(isPresent):699 ResolverContext::itemIsPresent(<U__s_>U__s_[S4:0][package]openmotif22-libs-2.2.4-84.i586) N 2007-11-09 11:23:33 <999> waerden(7054) [zypp] ResolverContext.cc(isPresent):699 ResolverContext::itemIsPresent(<U__s_>U__s_[S7:0][package]openmotif22-libs-2.2.4-84.1.i586) N 2007-11-09 11:23:33 <999> waerden(7054) [zypp] ResolverContext.cc(requirementIsMet):1581 ResolverContext::requirementIsMet([package] (namedcap) openmotif22-libs) N 2007-11-09 11:23:33 <999> waerden(7054) [zypp] QueueItemEstablish.cc(process):147 U__s_[S7:0][atom]openmotif22-libs-2.2.4-84.1.i586 freshens nothing -> unneeded 2007-11-09 11:23:33 <999> waerden(7054) [zypp] ResolverContext.cc(unneeded):613 ResolverContext[0xb8a6f80]::unneeded(U__s_[S7:0][atom]openmotif22-libs-2.2.4-84.1.i586) 2007-11-09 11:23:33 <999> waerden(7054) [zypp] ResolverContext.cc(setStatus):207 [0xb8a6f80]setStatus(U__s_[S7:0][atom]openmotif22-libs-2.2.4-84.1.i586, UU_s_) 2007-11-09 11:23:33 <999> waerden(7054) [zypp] ResolverContext.cc(setStatus):211 MARK ------------------------------------- So put the freshens to the atom. concerning comment #2
by definition the solver is to install the package if the patch is selected, but the solver should not pull in this patch automatically, since it's marked as "optional".
The solver does not know anything about "optional".
Yes, there is no "Freshens" since the patch is meant to install a package that was not present in the Product before.
The question is "Is a package with an old version already installed ?". This will be triggered by freshens. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125#c11 Jan-Simon Möller <dl9pf@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dl9pf@gmx.de --- Comment #11 from Jan-Simon Möller <dl9pf@gmx.de> 2007-12-03 12:56:06 MST --- My system is Linux elrond 2.6.22.12-0.1-default #1 SMP Tue Nov 27 16:12:04 CET 2007 i686 athlon i386 GNU/Linux Notably not 64bit, but i get this patch also shown - see the picture ... -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125#c12 --- Comment #12 from Jan-Simon Möller <dl9pf@gmx.de> 2007-12-03 12:56:48 MST --- Created an attachment (id=185677) --> (https://bugzilla.novell.com/attachment.cgi?id=185677) picture -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=339125 User ro@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=339125#c13 Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #13 from Ruediger Oertel <ro@novell.com> 2008-01-08 09:31:45 MST --- well, a plain "UpdateOnlyInstalled: false" means to pull every package in that patch into the system if possible. for 32bit, this is "openmotif22-libs" for 64bit, these are "openmotif22-libs" and "openmotif22-libs-32bit" works as designed. a more proper fix would have been to let openmotif22-libs-32bit have a freshen for openmotif22-libs, so that the 32bit compat lib is pulled in whenever the native lib is installed. The patchinfo allows for that construction: A line like Freshens: openmotif22-libs-32bit openmotif22-libs would do exactly that. -- 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.
participants (1)
-
bugzilla_noreply@novell.com