Bug 1182757 - installing both arch packages in oneline installing only one pkg
Summary: installing both arch packages in oneline installing only one pkg
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 25
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 871892
TreeView+ depends on / blocked
 
Reported: 2015-01-15 20:20 UTC by Igor Gnatenko
Modified: 2017-05-12 17:36 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-12 17:36:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1177783 0 unspecified CLOSED DNF resolves x86-64 dependencies with i686 packages if installed or in transaction 2021-02-22 00:41:40 UTC

Internal Links: 1177783

Description Igor Gnatenko 2015-01-15 20:20:34 UTC
$ sudo dnf install prison prison.i686 --debuglevel 1Dependencies resolved.
================================================================================
 Package              Arch          Version                Repository      Size
================================================================================
Installing:
 libdmtx              i686          0.7.2-15.fc22          rawhide         70 k
 libdmtx              x86_64        0.7.2-15.fc22          rawhide         69 k
 prison               i686          1.0-9.fc22             rawhide         21 k
 qrencode-libs        i686          3.4.2-4.fc22           rawhide         56 k

Transaction Summary
================================================================================
Install  4 Packages

Total download size: 216 k
Installed size: 456 k
Is this ok [y/N]: 

$ sudo dnf install prison.x86_64 prison.i686 --debuglevel 1
Dependencies resolved.
================================================================================
 Package              Arch          Version                Repository      Size
================================================================================
Installing:
 libdmtx              i686          0.7.2-15.fc22          rawhide         70 k
 libdmtx              x86_64        0.7.2-15.fc22          rawhide         69 k
 prison               i686          1.0-9.fc22             rawhide         21 k
 prison               x86_64        1.0-9.fc22             rawhide         21 k
 qrencode-libs        i686          3.4.2-4.fc22           rawhide         56 k

Transaction Summary
================================================================================
Install  5 Packages

Total download size: 236 k
Installed size: 496 k
Is this ok [y/N]: 

It should be the same.

Comment 1 Igor Gnatenko 2015-01-15 20:21:54 UTC
$ sudo yum install prison prison.i686 --debuglevel 1

================================================================================
 Package              Arch          Version                Repository      Size
================================================================================
Installing:
 prison               i686          1.0-9.fc22             rawhide         21 k
 prison               x86_64        1.0-9.fc22             rawhide         21 k
Installing for dependencies:
 libdmtx              i686          0.7.2-15.fc22          rawhide         70 k
 libdmtx              x86_64        0.7.2-15.fc22          rawhide         69 k
 qrencode-libs        i686          3.4.2-4.fc22           rawhide         56 k

Transaction Summary
================================================================================
Install  2 Packages (+3 Dependent packages)

Total download size: 236 k
Installed size: 496 k
Is this ok [y/d/N]:

Comment 2 Honza Silhan 2015-01-16 13:44:47 UTC
Thanks for the report. This is strange. On libsolv level it works as expected, no other package provides `prison` and `dnf install librepo librepo.i686` works. We will take a look.

Comment 3 Radek Holy 2015-01-16 14:14:34 UTC
Isn't it the expected behavior? "prison" means "install any prison" so if you want to install "any prison" and "prison.i686", you want to install "prison.i686". Otherwise the logic starts to be a bit complicated.

Comment 4 Hedayat Vatankhah 2015-01-16 17:07:31 UTC
In yum, prison means "prison.x86_64" in an x86_64 system. If DNF decides to treat prison as "any prison", it should be documented as an important difference between Yum and DNF, as it can affect many install scripts. It will even affect some custom .ks files for building Fedora spins/remixes which have packages from multiple archs. For example, I have my own Fedora remix which does include some packages from both x86_64 and i686 archs. My .ks will certainly break if pungi uses DNF instead of yum.

Comment 5 Igor Gnatenko 2015-01-16 20:12:06 UTC
(In reply to Radek Holy from comment #3)
> Isn't it the expected behavior? "prison" means "install any prison" so if
> you want to install "any prison" and "prison.i686", you want to install
> "prison.i686". Otherwise the logic starts to be a bit complicated.
then it shouldn't install 64 bit libraries if we want to install i686

Comment 6 Radek Holy 2015-01-19 07:50:50 UTC
(In reply to Igor Gnatenko from comment #5)
> (In reply to Radek Holy from comment #3)
> > Isn't it the expected behavior? "prison" means "install any prison" so if
> > you want to install "any prison" and "prison.i686", you want to install
> > "prison.i686". Otherwise the logic starts to be a bit complicated.
> then it shouldn't install 64 bit libraries if we want to install i686
Unless the 64-bit version is required too.

Comment 7 Jaroslav Reznik 2015-03-03 16:43:11 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 8 Honza Silhan 2015-07-20 12:39:32 UTC
The report from comment 0 is considered as bug in DNF and we will fix it.

Comment 9 Fedora Admin XMLRPC Client 2016-07-08 09:28:56 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Fedora End Of Life 2016-07-19 20:29:45 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 11 Jan Kurik 2016-07-26 05:01:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 12 Jaroslav Mracek 2017-05-12 17:36:36 UTC
Hi Igor, The problem cannot be reproduce with dnf-2.4.1-1 and libdnf-0.8.2-1.


Note You need to log in before you can comment on or make changes to this bug.