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

Pirate Praveen praveen at onenetbeyond.org
Tue Aug 13 18:00:43 BST 2019



On 2019, ഓഗസ്റ്റ് 13 4:37:35 PM IST, Simon McVittie <smcv at debian.org> wrote:
>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?

Yes.

>>     #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?

I will try it later and confirm.

>> 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).

Yes, makes sense, #933799 is also the same issue.

>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.

Yes, this should be fixed at dh level.

>    smcv

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the pkg-gnome-maintainers mailing list