FS#50686 - Add "PackageFirst" option to packages
Attached to Project:
Pacman
Opened by Pablo Lezaeta (Jristz) - Wednesday, 07 September 2016, 04:28 GMT
Last edited by Allan McRae (Allan) - Wednesday, 07 September 2016, 05:01 GMT
Opened by Pablo Lezaeta (Jristz) - Wednesday, 07 September 2016, 04:28 GMT
Last edited by Allan McRae (Allan) - Wednesday, 07 September 2016, 05:01 GMT
|
Details
Summary and Info:
The actual way that pacman handle dependencies lead to cases where a critical package get renamed and get removed before the apropiate time. And example can be util-linux-ng to util-linux and linux, in a normal situation util-linux-ng get uninstalled and then linux get intalled and after that util-linux get reinstalled (other cituations could happend with other packages) a dependencie not fill the role since util-linux (in this case) is not need really as a dep for linux (just for build in the installation, and hooks dont have the capabilities to handle all the differents linux. this "PackageFirst" option in a package will make that the indicated package if is on the installed/upgrade list always get installed after the requested. old way: >Uninstall util-linux-ng >Install linux >(makepkg or other tools like internal package tools) will misbuild/missintall/misshandle the package >Install util-linux-ng >(Nothing get rebuuild since linux is already installed) Proposed way if linux have PackageFirst=util-linux >Uninstall util-linux-ng >Install util-linux-ng (pulled by linux "this PackageFirst=util-linux") >Install linux >Profit. this is not a full fix for #23011 since other cases and race conditions can happend too but in an enhanced to prevent this kind of race conditions with package renamings. UpgradeFist in the global makepkg.conf is only global when this option is for per-packages that need it individualy |
This task depends upon
Closed by Allan McRae (Allan)
Wednesday, 07 September 2016, 05:01 GMT
Reason for closing: Won't implement
Additional comments about closing: That feature was removed for a reason...
Wednesday, 07 September 2016, 05:01 GMT
Reason for closing: Won't implement
Additional comments about closing: That feature was removed for a reason...