Bug 1054909

Summary: Incorrect distro-sync behaviour with multiarch
Product: [Fedora] Fedora Reporter: Simon Gerhards <Simon.Gerhards>
Component: dnfAssignee: Honza Silhan <jsilhan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: akozumpl, jsilhan, packaging-team-maint, pmatilai, pnemade, rholy, Simon.Gerhards
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-plugins-core-0.0.8-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-31 23:59:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
dnf debugdata for distro-sync none

Description Simon Gerhards 2014-01-17 18:21:53 UTC
The following happens on a Fedora 20 box with x86_64 as the base arch.

The package wine.i686 is installed. dnf wants to switch to the x86_64 version on an attempted distro-sync. Yum does not show this behaviour.

"""
# yum distro-sync
Loaded plugins: auto-update-debuginfo, changelog, langpacks, versionlock
No packages marked for distribution synchronization
"""

"""
# dnf distro-sync
Resolving dependencies
--> Starting dependency resolution
---> Package wine.x86_64 1.7.8-1.fc20 will be installed
---> Package mingw64-wine-gecko.noarch 2.24-1.fc20 will be installed
---> Package wine-core.x86_64 1.7.8-1.fc20 will be installed
---> Package wine-twain.x86_64 1.7.8-1.fc20 will be installed
---> Package wine-wow.x86_64 1.7.8-1.fc20 will be installed
---> Package wine-cms.x86_64 1.7.8-1.fc20 will be installed
---> Package wine-openal.x86_64 1.7.8-1.fc20 will be installed
---> Package wine-ldap.x86_64 1.7.8-1.fc20 will be installed
---> Package wine-capi.x86_64 1.7.8-1.fc20 will be installed
---> Package wine-pulseaudio.x86_64 1.7.8-1.fc20 will be installed
---> Package wine-alsa.x86_64 1.7.8-1.fc20 will be installed
---> Package wine.i686 1.7.8-1.fc20 will be erased
---> Package wine-wow.i686 1.7.8-1.fc20 will be erased
--> Finished dependency resolution
Dependencies resolved.

======================================================================
 Package                Arch       Version          Repository   Size
======================================================================
Installing:
 wine                   x86_64     1.7.8-1.fc20     updates      44 k
 mingw64-wine-gecko     noarch     2.24-1.fc20      fedora       22 M
 wine-core              x86_64     1.7.8-1.fc20     updates      18 M
 wine-twain             x86_64     1.7.8-1.fc20     updates      75 k
 wine-wow               x86_64     1.7.8-1.fc20     updates     229 k
 wine-cms               x86_64     1.7.8-1.fc20     updates      66 k
 wine-openal            x86_64     1.7.8-1.fc20     updates      57 k
 wine-ldap              x86_64     1.7.8-1.fc20     updates     118 k
 wine-capi              x86_64     1.7.8-1.fc20     updates      49 k
 wine-pulseaudio        x86_64     1.7.8-1.fc20     updates      81 k
 wine-alsa              x86_64     1.7.8-1.fc20     updates      92 k
Removing:
 wine                   i686       1.7.8-1.fc20     @System       0  
 wine-wow               i686       1.7.8-1.fc20     @System     451 k

Transaction Summary
======================================================================
Install  11 Packages
Remove    2 Packages

Total download size: 41 M
Is this ok [y/N]: n
Exiting on user Command
"""

Comment 1 Ales Kozumplik 2014-01-20 09:09:13 UTC
It looks like what you are seeing is the expected behavior. What is your reason to keep the .686 around when your arch is x86_64?

Comment 2 Ales Kozumplik 2014-01-20 09:12:29 UTC
In case this is a valid thing, can you attach the solver debug data as decribed by http://dnf.baseurl.org/2013/11/25/reporting-depsolving-bugs/ ? Thank you!

Comment 3 Panu Matilainen 2014-01-20 09:30:15 UTC
AFAIK 32bit wine is required for 32bit Windows applications, much like you need glibc.i686 for 32bit Linux apps.

In general I think its *never* valid for package manager to automatically switch a package to an entirely different architecture, regardless if anything actually depends on it or not: it might be needed for running a non-packaged application, which is an entirely valid scenario.

Comment 4 Simon Gerhards 2014-01-20 10:15:24 UTC
Created attachment 852674 [details]
dnf debugdata for distro-sync

Comment 5 Simon Gerhards 2014-01-20 10:28:13 UTC
The use-case is as Panu mentioned it running 32bit Windows applications. That will work after the distro-sync because the wine package itself is just a meta-package and the wine components are left untouched (except for wine-wow, but i don't know what it's for).

I installed wine.i386 in the first place because I have no need for wine64 in the wine.x86_64 package.

BTW: I observed more or less the same difference upon trying to install wine.i686.
Here are the package selections yum and dnf wants to install in that case:

yum:
"""
================================================================================
 Package                       Arch        Version           Repository    Size
================================================================================
Installing:
 wine                          i686        1.7.8-1.fc20      updates       43 k
Installing for dependencies:
 mingw32-wine-gecko            noarch      2.24-1.fc20       fedora        21 M
 wine-alsa                     i686        1.7.8-1.fc20      updates       91 k
 wine-capi                     i686        1.7.8-1.fc20      updates       49 k
 wine-cms                      i686        1.7.8-1.fc20      updates       64 k
 wine-common                   noarch      1.7.8-1.fc20      updates       97 k
 wine-core                     i686        1.7.8-1.fc20      updates       18 M
 wine-courier-fonts            noarch      1.7.8-1.fc20      updates       57 k
 wine-desktop                  x86_64      1.7.8-1.fc20      updates      146 k
 wine-filesystem               noarch      1.7.8-1.fc20      updates       71 k
 wine-fixedsys-fonts           noarch      1.7.8-1.fc20      updates       56 k
 wine-fonts                    noarch      1.7.8-1.fc20      updates       43 k
 wine-ldap                     i686        1.7.8-1.fc20      updates      114 k
 wine-marlett-fonts            noarch      1.7.8-1.fc20      updates       55 k
 wine-mono                     noarch      4.5.2-1.fc20      updates       51 M
 wine-ms-sans-serif-fonts      noarch      1.7.8-1.fc20      updates       70 k
 wine-openal                   i686        1.7.8-1.fc20      updates       55 k
 wine-pulseaudio               i686        1.7.8-1.fc20      updates       80 k
 wine-small-fonts              noarch      1.7.8-1.fc20      updates       58 k
 wine-symbol-fonts             noarch      1.7.8-1.fc20      updates       69 k
 wine-system-fonts             noarch      1.7.8-1.fc20      updates       62 k
 wine-systemd                  noarch      1.7.8-1.fc20      updates       44 k
 wine-tahoma-fonts             noarch      1.7.8-1.fc20      updates      147 k
 wine-twain                    i686        1.7.8-1.fc20      updates       73 k
 wine-wingdings-fonts          noarch      1.7.8-1.fc20      updates       55 k
 wine-wow                      i686        1.7.8-1.fc20      updates      226 k
"""

dnf:
"""
================================================================================
 Package                       Arch        Version           Repository    Size
================================================================================
Installing:
 wine                          i686        1.7.8-1.fc20      updates       43 k
 mingw32-wine-gecko            noarch      2.24-1.fc20       fedora        21 M
 wine-pulseaudio               i686        1.7.8-1.fc20      updates       80 k
 wine-fonts                    noarch      1.7.8-1.fc20      updates       43 k
 wine-desktop                  x86_64      1.7.8-1.fc20      updates      146 k
 wine-core                     i686        1.7.8-1.fc20      updates       18 M
 wine-cms                      i686        1.7.8-1.fc20      updates       64 k
 wine-capi                     i686        1.7.8-1.fc20      updates       49 k
 wine-wow                      i686        1.7.8-1.fc20      updates      226 k
 wine-openal                   i686        1.7.8-1.fc20      updates       55 k
 wine-mono                     noarch      4.5.2-1.fc20      updates       51 M
 wine-ldap                     i686        1.7.8-1.fc20      updates      114 k
 wine-common                   noarch      1.7.8-1.fc20      updates       97 k
 wine-twain                    i686        1.7.8-1.fc20      updates       73 k
 wine-symbol-fonts             noarch      1.7.8-1.fc20      updates       69 k
 wine-small-fonts              noarch      1.7.8-1.fc20      updates       58 k
 wine-marlett-fonts            noarch      1.7.8-1.fc20      updates       55 k
 wine-tahoma-fonts             noarch      1.7.8-1.fc20      updates      147 k
 wine-wingdings-fonts          noarch      1.7.8-1.fc20      updates       55 k
 wine-fixedsys-fonts           noarch      1.7.8-1.fc20      updates       56 k
 wine-system-fonts             noarch      1.7.8-1.fc20      updates       62 k
 wine-ms-sans-serif-fonts      noarch      1.7.8-1.fc20      updates       70 k
 wine-courier-fonts            noarch      1.7.8-1.fc20      updates       57 k
 wine-systemd                  noarch      1.7.8-1.fc20      updates       44 k
 wine-filesystem               noarch      1.7.8-1.fc20      updates       71 k
 wine-core                     x86_64      1.7.8-1.fc20      updates       18 M
 wine-alsa                     x86_64      1.7.8-1.fc20      updates       92 k
"""

Do you need debuginfo for this situation as well or is it the same as the distro-sync?

Comment 6 Ales Kozumplik 2014-03-05 16:33:01 UTC
Jan, please take a look, this is a distro-sync problem that might need a bit of digging, i.e. finding out why libsolv suggests switching away from the i686 during distro-sync.

Comment 7 Honza Silhan 2014-05-02 13:16:21 UTC
Fixed in the upstream.

Comment 8 Fedora Update System 2014-05-28 12:11:14 UTC
dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20

Comment 9 Fedora Update System 2014-05-28 23:51:15 UTC
Package dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.0.8-2.fc20 libsolv-0.6.1-1.git6d968f1.fc20 hawkey-0.4.16-1.fc20 dnf-0.5.2-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-6789/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20
then log in and leave karma (feedback).

Comment 10 Simon Gerhards 2014-05-29 09:31:17 UTC
The distro-sync behaviour is fixed with the new version.

However, during a "dnf install wine.i686" dnf still wants to pull in wine-core.i686 and wine-core.x86_64 as opposed to yum. 

The output (similar to comment 5) is now:

yum:
"""
================================================================================
 Package                      Arch       Version              Repository   Size
================================================================================
Installing:
 wine                         i686       1.7.18-1.fc20        updates      44 k
Installing for dependencies:
 gd                           i686       2.1.0-3.fc20         fedora      136 k
 iniparser                    x86_64     3.1-3.fc20           fedora       13 k
 libXpm                       i686       3.5.10-5.fc20        fedora       52 k
 libgphoto2                   i686       2.5.3-6.fc20         updates     1.2 M
 libusbx                      i686       1.0.18-1.fc20        updates      59 k
 libvpx                       i686       1.3.0-4.fc20         updates     512 k
 mingw32-wine-gecko           noarch     2.24-1.fc20          fedora       21 M
 nss-mdns                     i686       0.10-13.fc20         fedora       29 k
 samba-winbind                x86_64     2:4.1.6-1.fc20       updates     445 k
 samba-winbind-clients        x86_64     2:4.1.6-1.fc20       updates     112 k
 samba-winbind-modules        x86_64     2:4.1.6-1.fc20       updates      92 k
 wine-alsa                    i686       1.7.18-1.fc20        updates      92 k
 wine-capi                    i686       1.7.18-1.fc20        updates      50 k
 wine-cms                     i686       1.7.18-1.fc20        updates      65 k
 wine-common                  noarch     1.7.18-1.fc20        updates      98 k
 wine-core                    i686       1.7.18-1.fc20        updates      19 M
 wine-courier-fonts           noarch     1.7.18-1.fc20        updates      58 k
 wine-desktop                 x86_64     1.7.18-1.fc20        updates     147 k
 wine-filesystem              noarch     1.7.18-1.fc20        updates      72 k
 wine-fixedsys-fonts          noarch     1.7.18-1.fc20        updates      57 k
 wine-fonts                   noarch     1.7.18-1.fc20        updates      44 k
 wine-ldap                    i686       1.7.18-1.fc20        updates     115 k
 wine-marlett-fonts           noarch     1.7.18-1.fc20        updates      56 k
 wine-mono                    noarch     4.5.2-1.fc20         updates      51 M
 wine-ms-sans-serif-fonts     noarch     1.7.18-1.fc20        updates      71 k
 wine-openal                  i686       1.7.18-1.fc20        updates      56 k
 wine-pulseaudio              i686       1.7.18-1.fc20        updates      81 k
 wine-small-fonts             noarch     1.7.18-1.fc20        updates      59 k
 wine-symbol-fonts            noarch     1.7.18-1.fc20        updates      70 k
 wine-system-fonts            noarch     1.7.18-1.fc20        updates      63 k
 wine-systemd                 noarch     1.7.18-1.fc20        updates      45 k
 wine-tahoma-fonts            noarch     1.7.18-1.fc20        updates     148 k
 wine-twain                   i686       1.7.18-1.fc20        updates      74 k
 wine-wingdings-fonts         noarch     1.7.18-1.fc20        updates      56 k
 wine-wow                     i686       1.7.18-1.fc20        updates     227 k
"""

dnf:
"""
================================================================================
 Package                      Arch       Version              Repository   Size
================================================================================
Installing:
 wine                         i686       1.7.18-1.fc20        updates      44 k
 mingw32-wine-gecko           noarch     2.24-1.fc20          fedora       21 M
 wine-openal                  i686       1.7.18-1.fc20        updates      56 k
 wine-desktop                 x86_64     1.7.18-1.fc20        updates     147 k
 wine-pulseaudio              i686       1.7.18-1.fc20        updates      81 k
 wine-wow                     i686       1.7.18-1.fc20        updates     227 k
 wine-fonts                   noarch     1.7.18-1.fc20        updates      44 k
 wine-cms                     i686       1.7.18-1.fc20        updates      65 k
 wine-mono                    noarch     4.5.2-1.fc20         updates      51 M
 wine-capi                    i686       1.7.18-1.fc20        updates      50 k
 wine-ldap                    i686       1.7.18-1.fc20        updates     115 k
 wine-twain                   i686       1.7.18-1.fc20        updates      74 k
 wine-core                    i686       1.7.18-1.fc20        updates      19 M
 wine-common                  noarch     1.7.18-1.fc20        updates      98 k
 wine-openal                  x86_64     1.7.18-1.fc20        updates      58 k
 wine-systemd                 noarch     1.7.18-1.fc20        updates      45 k
 wine-pulseaudio              x86_64     1.7.18-1.fc20        updates      82 k
 wine-wow                     x86_64     1.7.18-1.fc20        updates     229 k
 wine-system-fonts            noarch     1.7.18-1.fc20        updates      63 k
 wine-tahoma-fonts            noarch     1.7.18-1.fc20        updates     148 k
 wine-marlett-fonts           noarch     1.7.18-1.fc20        updates      56 k
 wine-ms-sans-serif-fonts     noarch     1.7.18-1.fc20        updates      71 k
 wine-fixedsys-fonts          noarch     1.7.18-1.fc20        updates      57 k
 wine-small-fonts             noarch     1.7.18-1.fc20        updates      59 k
 wine-wingdings-fonts         noarch     1.7.18-1.fc20        updates      56 k
 wine-courier-fonts           noarch     1.7.18-1.fc20        updates      58 k
 wine-symbol-fonts            noarch     1.7.18-1.fc20        updates      70 k
 wine-cms                     x86_64     1.7.18-1.fc20        updates      67 k
 wine-capi                    x86_64     1.7.18-1.fc20        updates      50 k
 wine-ldap                    x86_64     1.7.18-1.fc20        updates     119 k
 wine-twain                   x86_64     1.7.18-1.fc20        updates      76 k
 nss-mdns                     i686       0.10-13.fc20         fedora       29 k
 wine-filesystem              noarch     1.7.18-1.fc20        updates      72 k
 wine-core                    x86_64     1.7.18-1.fc20        updates      19 M
 libgphoto2                   i686       2.5.3-6.fc20         updates     1.2 M
 gd                           i686       2.1.0-3.fc20         fedora      136 k
 libXpm                       i686       3.5.10-5.fc20        fedora       52 k
 libusbx                      i686       1.0.18-1.fc20        updates      59 k
 libvpx                       i686       1.3.0-4.fc20         updates     512 k
 samba-winbind-clients        x86_64     2:4.1.6-1.fc20       updates     112 k
 iniparser                    x86_64     3.1-3.fc20           fedora       13 k
 samba-winbind                x86_64     2:4.1.6-1.fc20       updates     445 k
 wine-alsa                    x86_64     1.7.18-1.fc20        updates      93 k
 samba-winbind-modules        x86_64     2:4.1.6-1.fc20       updates      92 k
"""

Shall I file a new bug for this?

Comment 11 Honza Silhan 2014-05-30 09:33:50 UTC
Hi, thanks for your feedback. You don't have to create new bug report as it's similir issue to https://bugzilla.redhat.com/show_bug.cgi?id=1100946. You could copy your comment there, though.

Comment 12 Fedora Update System 2014-05-31 23:59:54 UTC
dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.