[F8/multilib] {,/usr}/{,s}bin64 (was: Split libperl from perl)

David Woodhouse dwmw2 at infradead.org
Tue May 1 13:52:39 UTC 2007


I'm not going to bother contradicting you where I've already done so and
you're just ignoring what's gone before...

On Tue, 2007-05-01 at 11:32 +0200, Axel Thimm wrote:
> o thus borks yum, anaconda, smart and apt

... except for this one. Just in _case_ there's anyone left who actually
takes your nonsense seriously....

I have a 'testpkg' which provides /usr/bin/foo, in both architectures:

pmac /home/dwmw2/bl # rpm -qlp testpkg-1-1.ppc.rpm 
/usr/bin/foo
pmac /home/dwmw2/bl # rpm -qlp testpkg-1-1.ppc64.rpm 
/usr/bin/foo
pmac /home/dwmw2/bl # rpm -Uhv testpkg-1-1.ppc.rpm testpkg-1-1.ppc64.rpm 
Preparing...                ########################################### [100%]
   1:testpkg                ########################################### [ 50%]
   2:testpkg                ########################################### [100%]

First, we observe that after disabling RPM's multilib behaviour, the two
'testpkg' packages conflict:

pmac /home/dwmw2/bl # rpm -e --allmatches testpkg
pmac /home/dwmw2/bl # cat /etc/rpm/macros
%_transaction_color   3
%_prefer_color 1
pmac /home/dwmw2/bl # gzip /etc/rpm/macros
pmac /home/dwmw2/bl # rpm -Uhv testpkg-1-1.ppc.rpm testpkg-1-1.ppc64.rpm 
warning: package testpkg = 1-1 was already added, skipping testpkg < 1-1
error: error reading from file testpkg-1-1.ppc64.rpm

Strange failure mode, but a failure nonetheless -- RPM is not able to install both at once 
Now, we have a package 'testreq' which requires /usr/bin/foo:

pmac /home/dwmw2/bl # rpm -qp --requires testreq-1-1.ppc.rpm  | grep bin
/usr/bin/foo  
pmac /home/dwmw2/bl # yum install testreq
Loading "skip-broken" plugin
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package testreq.ppc 0:1-1 set to be updated
--> Processing Dependency: /usr/bin/foo for package: testreq
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package testpkg.ppc 0:1-1 set to be updated

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 testreq                 ppc        1-1              test              7.0 k
Installing for dependencies:
 testpkg                 ppc        1-1              test              7.0 k

Transaction Summary
=============================================================================
Install      2 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 14 k
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: testpkg                      ######################### [1/2] 
  Installing: testreq                      ######################### [2/2] 

Installed: testreq.ppc 0:1-1
Dependency Installed: testpkg.ppc 0:1-1
Complete!


Yum did not break. Again, what you say is untrue.

-- 
dwmw2




More information about the Fedora-maintainers mailing list