Source: realmd Version: 0.16.3-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
realmd fails to cross build from source. Its build dependency on python is not installable, because installing a host architecture python typically fails. What realmd really needs is a build architecture python though, thus it should be annotated with :native or :any. Even then it fails to cross build, because it uses the build architecture pkg-config and thus fails to locate glib-2.0, which is only requested for the host architecture. Adding $ac_tool_prefix solves that and thus fixes the cross build. Please consider applying the attached patch after stretch is released. Helmut
diff --minimal -Nru realmd-0.16.3/debian/changelog realmd-0.16.3/debian/changelog --- realmd-0.16.3/debian/changelog 2016-08-15 13:17:15.000000000 +0200 +++ realmd-0.16.3/debian/changelog 2017-05-09 20:50:48.000000000 +0200 @@ -1,3 +1,12 @@ +realmd (0.16.3-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Annotate python build-dependency with :native + + Add cross.patch + + -- Helmut Grohne <hel...@subdivi.de> Tue, 09 May 2017 20:50:48 +0200 + realmd (0.16.3-1) unstable; urgency=medium * New upstream release. diff --minimal -Nru realmd-0.16.3/debian/control realmd-0.16.3/debian/control --- realmd-0.16.3/debian/control 2016-08-15 13:17:15.000000000 +0200 +++ realmd-0.16.3/debian/control 2017-05-09 20:50:47.000000000 +0200 @@ -12,7 +12,7 @@ libpolkit-gobject-1-dev, libsystemd-dev [linux-any], pkg-config, - python, + python:native, xmlto, xsltproc Standards-Version: 3.9.8 diff --minimal -Nru realmd-0.16.3/debian/patches/cross.patch realmd-0.16.3/debian/patches/cross.patch --- realmd-0.16.3/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ realmd-0.16.3/debian/patches/cross.patch 2017-05-09 20:50:48.000000000 +0200 @@ -0,0 +1,18 @@ +Subject: fix cross compilation +From: Helmut Grohne <hel...@subdivi.de> + +Consider $ac_tool_prefix when searching for pkg-config. + +Index: realmd-0.16.3/configure.ac +=================================================================== +--- realmd-0.16.3.orig/configure.ac ++++ realmd-0.16.3/configure.ac +@@ -63,7 +63,7 @@ + AC_PROG_MAKE_SET + AC_PROG_RANLIB + IT_PROG_INTLTOOL($INTLTOOL_REQ) +-AC_PATH_PROG(PKG_CONFIG, pkg-config, no) ++PKG_PROG_PKG_CONFIG + + GETTEXT_PACKAGE=realmd + AC_SUBST([GETTEXT_PACKAGE]) diff --minimal -Nru realmd-0.16.3/debian/patches/series realmd-0.16.3/debian/patches/series --- realmd-0.16.3/debian/patches/series 2016-08-15 13:17:15.000000000 +0200 +++ realmd-0.16.3/debian/patches/series 2017-05-09 20:50:48.000000000 +0200 @@ -1 +1,2 @@ 01_freeipa_section.patch +cross.patch