On Tue, 13 Aug 2019 at 14:14:01 +0530, Pirate Praveen wrote:
> When building with sbuild,

Is ccache preinstalled in the chroot you used?

>     #include <git2.h>
>     int
>     main(int argc, const char *argv[])
>     {
>             git_libgit2_init ();
>             return ((git_libgit2_features() & GIT_FEATURE_SSH) != 0) ? 0
> : 1;
>     }

If you compile this small program yourself, does it work and exit 0?

> Compiler stderr:
>  ccache: error: Failed to create directory
> /sbuild-nonexistent/.ccache/tmp: Permission denied

If my guess about the root cause is correct, then this will affect every
package that builds with Meson and does not reset HOME in its packaging
(but many GNOME packages need a working HOME for their build-time tests,
so they reset it in debian/rules, as seen in for example glib2.0).

Perhaps Meson should not automatically use ccache if $HOME is not
writeable, or perhaps the dh build system for Meson should explicitly
disable it in this situation.

    smcv

Reply via email to