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#69478 - [pacman] makepkg/biuldenv_ccache(): export CCACHE_BASEDIR="$srcdir" by default
Attached to Project:
Arch Linux
Opened by bartus (bartus) - Saturday, 30 January 2021, 23:51 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 20 September 2023, 23:40 GMT
Opened by bartus (bartus) - Saturday, 30 January 2021, 23:51 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 20 September 2023, 23:40 GMT
|
DetailsCurrently `buildenv/compiler.sh` exports `CCACHE_BASEDIR="$srcdir"` in the `buildenv_distcc()` only when combination of ccache/distcc is set 2c72c8b822d21c45a8020e49f03691830f3bcff2 It doesn't effect `distcc/ccache` build as compiler paths relative to `/` and not `CCACHE_BASEDIR` so `ccache` omittes them during rewriting paths to relative.
I propose moving `CCACHE_BASEDIR=$srcdir` up to `buildenv_ccache()` as default, those allowing reusing the cache when building packages in temporary location instead requiring building in same location. Btw. we're already setting `C{,XX}FLAGS+=" -fdebug-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}" those allowing `ccache` to hash debug builds in abstraction from build path. Currently I have to insert `export CCACHE_BASEDIR="$srcdir"` at the begging of each PKGBUILD `build()` function to allow reusing the cache when building in temporary changing location. |
This task depends upon
Closed by Toolybird (Toolybird)
Wednesday, 20 September 2023, 23:40 GMT
Reason for closing: Upstream
Additional comments about closing: See comments
Wednesday, 20 September 2023, 23:40 GMT
Reason for closing: Upstream
Additional comments about closing: See comments
[1] https://gitlab.archlinux.org/pacman/pacman