From fbf810233d822c4e437d2d7194de0cbefda1dabc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Tue, 2 Feb 2021 21:51:21 -0300 Subject: [PATCH] nautilus: fix build after libdir changes. Also gate tests. --- srcpkgs/nautilus/template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/srcpkgs/nautilus/template b/srcpkgs/nautilus/template index f7108f9b062..e38755f0806 100644 --- a/srcpkgs/nautilus/template +++ b/srcpkgs/nautilus/template @@ -19,9 +19,23 @@ homepage="https://wiki.gnome.org/Nautilus" distfiles="${GNOME_SITE}/${pkgname}/${version::4}/${pkgname}-${version}.tar.xz" checksum=0a3e812b13b774b7fd6f222f55acd1f87fb2973d9af60c04b7d25cb52222d0fd +if [ "$CROSS_BUILD" ]; then + # tests try to use tracker-sandbox from the wrong path, because of some confusion with libdir: + # "Program /usr/lib32/tracker-3.0/trackertestutils/tracker-sandbox found: NO" + configure_args+=" -Dtests=none" +fi + build_options="gir" build_options_default="gir" +do_check() { + if [ "$XBPS_CHECK_PKGS" = full ]; then + # tests timeout: + # 11/11 test-nautilus-search-engine-tracker TIMEOUT 480.00s + ninja -C builddir test + fi +} + libnautilus_package() { short_desc+=" - shared libraries" pkg_install() {