Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#23766 - [srcpac] Fault tolerance

Attached to Project: Arch Linux
Opened by Andrej Podzimek (andrej) - Thursday, 14 April 2011, 18:24 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 19 April 2011, 13:42 GMT
Task Type Feature Request
Category Arch Projects
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Currently, there are too many points of failure in the srcpac script. (Just grep exit 1 in the source...)

It would be nice if srcpac was capable of (almost) unattended system updates. For instance, srcpac -Syub should never fail before at least attempting to build all the packages. Building usually takes much longer than pacman updates, so the srcpac script should be much more robust than pacman itself. (This is currently not the case.)

Presumably, installing only packages that build properly and ommiting other updates could cause some programs and libraries to malfunction. But a failed build does *not* mean that srcpac has to stop. A few suggestions:

0) It would be great if ugly tricks like (yes | srcpac --noconfirm -Syub) were not needed. Builds take long and the user just can't watch them all the time. pacman doesn't ask you to confirm every single package update and neither should srcpac.
1) In the worst case, srcpac could have a fallback option, such as installing the failing packages with pacman. (Anyway, when an ABS entry does not work, it is not obvious where the corresponding binary package came from and what it actually contains...)
2) If srcpac fails to build a package on which nothing else depends, it should just report this problem and go on, rather than failing. (A package that does not build should not get into the ABS tree, but it does happen quite often...)
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 19 April 2011, 13:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  on trunk

http://projects.archlinux.org/srcpac.git /commit/?id=db2d74399be324b078f13c0e0cac 2810b96c3126

Loading...