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!
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!
FS#23765 - [srcpac] Compile and optionally preserve build-time dependencies
Attached to Project:
Arch Linux
Opened by Andrej Podzimek (andrej) - Thursday, 14 April 2011, 18:01 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 17 October 2011, 22:36 GMT
Opened by Andrej Podzimek (andrej) - Thursday, 14 April 2011, 18:01 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 17 October 2011, 22:36 GMT
|
DetailsThe summary says it all.
Currently, build-time dependencies are installed using pacman and the user is prompted for their removal after srcpac finishes building the package that required them. With --noconfirm, these dependencies get uninstalled automatically. This may not be suitable in many situations. Some users like to use ArchLinux in a Gentoo-like manner, with srcpac updates. :-) It would be great if build-time dependencies could be compiled rather than downloaded and then preserved for future building. Uninstalling and reinstalling build-time dependencies before and after building every single package that requires them does not seem to be the ideal approach. It would be nice to have * an option to prevent build-time dependencies from being uninstalled. * an option to compile build-time dependencies rather than downloading them. |
This task depends upon
Alternatively, as already suggested in some of the other requests, there might be multiple alternatives to the -b option, such as:
-b ... build the requested packages from source, download DEPENDS and MAKEDEPENDS with pacman.
-bb ... build the requested packages and DEPENDS from source, download MAKEDEPENDS with pacman.
-bbb ... build *everything* from source, no exceptions.
It is currently not clear which of the dependencies are downloaded, but I definitely see pacman downloading lots of packages during all the srcpac updates. Well, perhaps srcpac somehow prompts the user before downloading/building the dependencies. But since I mostly use the --noconfirm mode, I may not see the prompt asking me whether to build or download... That's why --noconfirm -bbb would be nice. :-)
/usr/bin/msgfmt: error while opening "po/*.po" for reading: No such file or directory
srcpac --noconfirm -Sbbb nss_ldap pam_ldap
Error: Could not find libldap>=2.4.18 under /var/abs/
Error: Could not find libldap>=2.4.22 under /var/abs/
Source Targets: nss_ldap pam_ldap
==> ERROR: requested package nss_ldap is not provided in /var/srcpac/nss_ldap/PKGBUILD
==> ERROR: requested package pam_ldap is not provided in /var/srcpac/pam_ldap/PKGBUILD
Build failed for: nss_ldap pam_ldap
There are two obvious inconsistencies in these error messages:
1) libldap 2.4.26 is available in /var/abs/core/openldap/PKGBUILD, so it should be found.
2) Both nss_ldap and pam_ldap *are* provided by their respective PKGBUILDs, but nss_ldap only has the default package() function (with no suffix) and pam_ldap() doesn't have its own package() implementation at all.
https://projects.archlinux.org/srcpac.git/commit/?id=08bddd3a48e416d24c4b2ce844349a852392f1af
I'm closing this bug report as the feature has been implemented, please report any bug in a new bug report. Thanks