Bug#934673: libgit2-glib ftbfs with meson.build:148:2: ERROR: Assert failed: libgit2 ssh support was requested, but not found. Use -Dssh=false to build without it

Simon McVittie smcv at debian.org
Tue Aug 13 12:07:35 BST 2019


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



More information about the pkg-gnome-maintainers mailing list