Source: theme-d Version: 1.4.0-1 Tags: patch User: [email protected] Usertags: ftcbfs
theme-d fails to cross build from source, because it fails to correctly detect the presence of guile-2.2. The relevant CFLAGS end up missing. The cause is configure.in hard coding the build architcture pkg-config in two occasions. After switching to the (correctly detected) host pkg-config, it fails running guild, because the build dependency on guile-2.2 requests the host guile, but we need a build guile to run it. Annotating the dependency with :any or :native is needed here. Please consider applying the attached patch. Helmut
diff --minimal -Nru theme-d-1.4.0/debian/changelog theme-d-1.4.0/debian/changelog --- theme-d-1.4.0/debian/changelog 2019-08-04 15:13:01.000000000 +0200 +++ theme-d-1.4.0/debian/changelog 2019-08-11 12:53:04.000000000 +0200 @@ -1,3 +1,12 @@ +theme-d (1.4.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes #-1) + + cross.patch: use the detected pkg-config + + Depend on a native guile as we want to run guild. + + -- Helmut Grohne <[email protected]> Sun, 11 Aug 2019 12:53:04 +0200 + theme-d (1.4.0-1) unstable; urgency=medium * New upstream version 1.4.0. diff --minimal -Nru theme-d-1.4.0/debian/control theme-d-1.4.0/debian/control --- theme-d-1.4.0/debian/control 2019-03-10 13:26:11.000000000 +0100 +++ theme-d-1.4.0/debian/control 2019-08-11 12:53:04.000000000 +0200 @@ -5,7 +5,7 @@ Homepage: http://www.iki.fi/tohoyn/theme-d/ Vcs-Git: https://salsa.debian.org/tohoyn-guest/theme-d.git Vcs-Browser: https://salsa.debian.org/tohoyn-guest/theme-d -Build-Depends: debhelper (>=11), guile-2.2, guile-2.2-dev +Build-Depends: debhelper (>=11), guile-2.2:any, guile-2.2-dev Standards-Version: 4.2.1 Package: theme-d-translator diff --minimal -Nru theme-d-1.4.0/debian/patches/cross.patch theme-d-1.4.0/debian/patches/cross.patch --- theme-d-1.4.0/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ theme-d-1.4.0/debian/patches/cross.patch 2019-08-11 12:53:04.000000000 +0200 @@ -0,0 +1,20 @@ +--- theme-d-1.4.0.orig/configure.ac ++++ theme-d-1.4.0/configure.ac +@@ -47,7 +47,7 @@ + + GUILE_PACKAGE=guile-$MY_GUILE_VERSION + +-AC_SUBST(LIBGUILE_CPPFLAGS, $(pkg-config --cflags $GUILE_PACKAGE)) ++AC_SUBST(LIBGUILE_CPPFLAGS, $($PKG_CONFIG --cflags $GUILE_PACKAGE)) + + AC_ARG_WITH([target-platform], + [AS_HELP_STRING([--with-target-platform], +@@ -188,7 +188,7 @@ + + AC_SUBST(POSIX_MATH_FLAG) + +-EXTENSION_DIR=$(pkg-config --variable=extensiondir $GUILE_PACKAGE) ++EXTENSION_DIR=$($PKG_CONFIG --variable=extensiondir $GUILE_PACKAGE) + + if test "$EXTENSION_DIR" = "" ; then + EXTENSION_DIR=$libdir diff --minimal -Nru theme-d-1.4.0/debian/patches/series theme-d-1.4.0/debian/patches/series --- theme-d-1.4.0/debian/patches/series 2019-08-04 15:12:06.000000000 +0200 +++ theme-d-1.4.0/debian/patches/series 2019-08-11 12:51:59.000000000 +0200 @@ -1 +1,2 @@ 001-packed-pdf-in-man-pages.patch +cross.patch

