Commit graph

4 commits

Author SHA1 Message Date
John ca73e4b1d2
common/environment: set debug-prefix-map to prevent ccache cache misses
Packages with debug symbols do invalidate their cache with every version
change since $wrksrc does contain the version number and is getting cached

Closes: #33002 [via git-merge-pr]
2021-12-08 13:04:22 +01:00
Piotr Wójcik 7ffd292bc5 common/environment/check: enable offscreen test for qt 2021-06-11 22:45:07 +02:00
John ea2c703153 common/environment/build: set CCACHE_BASEDIR to wrksrc
this will rewrite total paths to be relative to CCACHE_BASEDIR before caching,
helps prevent cache misses due to changed wrksrc with build systems like cmake
that use total paths in their Makefiles
2020-06-26 15:09:41 -07:00
Jürgen Buchmüller c31dd888f6 xbps-src: implement a 'check' stage
Add another stage 'check' between 'build' and 'install'. It is be enabled using the
variable XBPS_CHECK_PKGS=yes and disabled if unset, set to "0" or "no" in your
local etc/conf.

A new xbps-src option `-q` for `quick` will disable XBPS_CHECK_PKGS by overriding it to 0.
If enabled, `common/xbps-src/shutils/xbps-src-docheck.sh` checks for an existing
`do_check()` function in the package's template and, if it exists, calls it.

A new template variable `checkdepends` may be present and list packages required
to run the `do_check()` function. Example: `checkdepends="bc unittest-cpp"`.
2017-03-08 11:33:48 +01:00