Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_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#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 Andreas Radke (AndyRTR) - Wednesday, 21 April 2021, 10:10 GMT
Task Type Feature Request
Category Packages: Core
Status Assigned
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No

Details

Currently `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

Loading...