Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#27204 - Old architecture-specific package installed when arch=(any)
Attached to Project:
Pacman
Opened by Marty (vadmium) - Monday, 21 November 2011, 13:03 GMT
Last edited by Allan McRae (Allan) - Monday, 30 April 2012, 03:00 GMT
Opened by Marty (vadmium) - Monday, 21 November 2011, 13:03 GMT
Last edited by Allan McRae (Allan) - Monday, 30 April 2012, 03:00 GMT
|
DetailsActually using Pacman 4.0.1 (not 4.0.0 per “reported version”)
Summary and Info: If I change a PKGBUILD file from architecture-specific, say arch=(i686 x86_64), to arch=(any), and the architecture-specific package already exists, it will be installed instead of the new version. This is very confusing when you change something else as well as the architecture and cannot figure out why the old version is still installed. Steps to Reproduce: * Make an arch=(any) PKGBUILD * Create dummy arch-specific package, eg: : > <package>-<version>-x86_64.pkg.tar.xz * makepkg --install Attached the start of a patch. It should work for ordinary packages but probably breaks split packages because I haven’t learnt them. |
This task depends upon
Closed by Allan McRae (Allan)
Monday, 30 April 2012, 03:00 GMT
Reason for closing: Fixed
Additional comments about closing: In git:
https://projects.archlinux.org/pacman.gi t/commit/?id=d38a1c02
Monday, 30 April 2012, 03:00 GMT
Reason for closing: Fixed
Additional comments about closing: In git:
https://projects.archlinux.org/pacman.gi t/commit/?id=d38a1c02
0001-Only-consider-installing...
If you’re not happy with changing the behaviour of always checking for an arch-specific package, I suggest at least printing out the full file name of the package actually being installed, something like
Installing package <name>-<version>-x86_64.pkg.tar.xz with pacman -U...
instead of just
Installing package <name> with pacman -U...
Although that could get a bit excessive listing them all with a split package.
I had started a fix similar to the one posted here so I will merge the patches and finish it off..