Bug 614362

Summary: kiwi: image fails to build with "glibc@i586" arch="i686"
Product: [openSUSE] openSUSE.org Reporter: Jigish Gohil <cyberorg>
Component: System ImagingAssignee: Jan Kupec <jkupec>
Status: RESOLVED DUPLICATE QA Contact: Adrian Schröter <adrian.schroeter>
Severity: Major    
Priority: P2 - High CC: burnus, ma, mls
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: maint:released:11.3:37206
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: config.xml
kiwi build log

Description Jigish Gohil 2010-06-15 13:53:36 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.4) Gecko/20100513 SUSE/3.6.4-1.11 Firefox/3.6.4

How to duplicate:

Take /usr/share/kiwi/image/suse-11.3-JeOS/config.xml

add: <package name="glibc@i586" arch="i686"/> to bootstrap

Run: kiwi --prepare ./ -d /tmp/kiwi-prep --logfile terminal

Fails with this error:

Resolving package dependencies...
9 Problems:
Problem: atftp-0.7.0-135.5.i586 conflicts with tftp provided by tftp-0.48-104.6.i586
Problem: esound-daemon-0.2.41-7.6.i586 conflicts with pulseaudio-esound-compat provided by pulseaudio-esound-compat-0.9.21-8.1.i586
Problem: sendfax-1.1.36-29.18.i586 conflicts with hylafax provided by hylafax-6.0.4-2.19.i586
Problem: icewm-lite-1.2.38-4.16.i586 conflicts with icewm-default provided by icewm-default-1.3.6-4.5.i586
Problem: patterns-openSUSE-x11_yast-11.3-13.1.i586 conflicts with patterns-openSUSE-gnome provided by patterns-openSUSE-gnome-11.3-13.1.i586
Problem: sendmail-8.14.4-3.4.i586 conflicts with postfix provided by postfix-2.7.0-4.3.i586
Problem: squid3-3.0.STABLE25-1.14.i586 conflicts with squid provided by squid-2.7.STABLE6-5.21.i586
Problem: upstart-0.6.5-3.4.i586 conflicts with sysvinit provided by sysvinit-2.88-5.1.i586
Problem: xen-tools-domU-4.0.0_21091_05-2.1.i586 conflicts with xen-tools provided by xen-tools-4.0.0_21091_05-2.1.i586

Problem: atftp-0.7.0-135.5.i586 conflicts with tftp provided by tftp-0.48-104.6.i586
 Solution 1: Following actions will be done:
  do not install tftp-0.48-104.6.i586
  do not install vm-install-0.4.25-3.1.i586
  do not install virt-manager-0.8.4-3.1.i586
 Solution 2: do not install atftp-0.7.0-135.5.i586

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): c



Reproducible: Always

Actual Results:  
Build fails

Expected Results:  
It should be successful as it does without glibc@i586
Comment 1 Marcus Schaefer 2010-06-17 15:01:48 UTC
sorry but why is this related to the glibc package ? it looks like
you are using a repo setup which causes many file conflicts
Comment 2 Jigish Gohil 2010-06-17 16:21:01 UTC
Created attachment 369812 [details]
config.xml

Don't know why it is related to only glibc@i586, here is the config.xml, the config without @i586 works just fine using the same repo.

This is the repository used:
http://download.opensuse.org/factory/repo/oss/
Comment 3 Marcus Schaefer 2010-06-18 07:13:20 UTC
I think this is then a factory zypper "problem" , "feature"... I have no clue how to fix this.

Jan can you help ?
Comment 4 Michael Schröder 2010-06-18 08:52:36 UTC
Hard to tell without knowing the arguments zypper is called with in this case. Doesn't kiwi write them in a log file?
Comment 5 Marcus Schaefer 2010-06-18 08:59:34 UTC
the exact call of zypper is part of the logfile yes. Jigish can you attach it
please. Thanks
Comment 6 Michael Schröder 2010-06-18 09:00:49 UTC
OTOH 'zypper in glibc.i586' installs all packages. Reassigning to Jano, although ma says that it may be already fixed. Jano, please verify.
Comment 7 Jigish Gohil 2010-06-18 09:02:13 UTC
Created attachment 370004 [details]
kiwi build log

Here is what it uses:

/usr/bin/zypper --non-interactive --no-gpg-checks --reposd-dir /var/cache/kiwi/zypper --cache-dir /var/cache/kiwi/zypper --raw-cache-dir /var/cache/kiwi/zypper --root /tmp/kiwi.FXa3eR install --auto-agree-with-licenses --no-recommends cracklib-dict-full filesystem glibc-locale glibc.i586 openssl-certs zypper
Comment 8 Michael Andres 2010-07-07 13:08:48 UTC
@Jano: libzypp-7.8.0 offers PoolQuery for name, edition AND architecture in one go. Suggested patch for misc.cc, don't know if there are other locations in zypper too:

@@ -462,14 +462,15 @@ pkg_spec_to_poolquery(const Capability & cap, const list<string> & repos)
 
   PoolQuery q;
   q.addKind(splid.kind());
-  q.addAttribute(sat::SolvAttr::name, splid.name().asString());
   q.setMatchGlob();
   for_(it, repos.begin(), repos.end())
     q.addRepo(*it);
-  if (cap.detail().hasArch())
-    q.addAttribute(sat::SolvAttr::arch, cap.detail().arch().asString());
-  if (cap.detail().isVersioned())
-    q.setEdition(cap.detail().ed(), cap.detail().op());
+  addDependency( sat::SolvAttr::name,
+		 // only package names (no provides)
+		 cap.detail().op(), cap.detail().ed(),
+		 // defaults to Rel::ANY (NOOP) if no versioned cap
+		 Arch( cap.detail().arch() ) );
+		 // defaults Arch_empty (NOOP) if no arch in cap
 
   DBG << "query: " << q << endl;
Comment 9 Jan Kupec 2010-07-12 13:43:30 UTC
Thanx, i'll take a look!
Comment 10 Michael Andres 2010-07-22 14:13:52 UTC
*** Bug 607482 has been marked as a duplicate of this bug. ***
Comment 11 Michael Andres 2010-07-27 13:15:52 UTC
Collecting bugs due to broken pkg_spec_to_poolquery...

*** This bug has been marked as a duplicate of bug 624320 ***
Comment 12 Jigish Gohil 2010-10-14 05:41:15 UTC
This is not fixed in 11.3, please close after an update is released.
Comment 13 Jigish Gohil 2010-10-14 05:43:06 UTC
sorry reopened wrong bug.

*** This bug has been marked as a duplicate of bug 624320 ***
Comment 14 Swamp Workflow Management 2010-12-02 09:52:17 UTC
Update released for: libsatsolver, libsatsolver-debugsource, libsatsolver-demo, libsatsolver-demo-debuginfo, libsatsolver-devel, libsatsolver-devel-debuginfo, libzypp, libzypp-bindings, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, perl-satsolver, perl-satsolver-debuginfo, perl-zypp, python-satsolver, python-satsolver-debuginfo, python-zypp, ruby-satsolver, ruby-satsolver-debuginfo, ruby-zypp, satsolver-tools, satsolver-tools-debuginfo, yast2-qt-pkg, yast2-qt-pkg-debuginfo, yast2-qt-pkg-debugsource, zypper, zypper-debuginfo, zypper-debugsource
Products:
openSUSE 11.3 (debug, i586, x86_64)