Source: janus
Version: 0.9.4-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

janus fails to cross build from source, because the upstream Makefile.am
hard codes the build architecture pkg-config in one place. Please
consider using the host pkg-config correctly detected by configure
instead. I'm attaching a patch for your convenience.

Helmut
--- janus-0.9.4.orig/Makefile.am
+++ janus-0.9.4/Makefile.am
@@ -208,7 +208,7 @@
 	echo "$(build_date)" | awk 'BEGIN {} {print "const char *janus_build_git_time = \""$$0"\";"} END {} ' >> version.c
 	echo "$(JANUS_VERSION)" | awk 'BEGIN {} {print "int janus_version = "$$0";"} END {} ' >> version.c
 	echo "$(JANUS_VERSION_STRING)" | awk 'BEGIN {} {print "const char *janus_version_string = \""$$0"\";"} END {} ' >> version.c
-	pkg-config --modversion nice | awk 'BEGIN {} {print "const char *libnice_version_string = \""$$0"\";"} END {} ' >> version.c
+	echo "$(LIBNICE_VERSION_STRING)" | awk 'BEGIN {} {print "const char *libnice_version_string = \""$$0"\";"} END {} ' >> version.c
 
 $(dir_present):
 	`which git` rev-parse HEAD | awk 'BEGIN {print "#include \"version.h\""} {print "const char *janus_build_git_sha = \"" $$0"\";"} END {}' > version.c
--- janus-0.9.4.orig/configure.ac
+++ janus-0.9.4/configure.ac
@@ -340,6 +340,8 @@
                   ])
 JANUS_MANUAL_LIBS="${JANUS_MANUAL_LIBS} -lm"
 AC_SUBST(JANUS_MANUAL_LIBS)
+LIBNICE_VERSION_STRING=`$PKG_CONFIG --modversion nice`
+AC_SUBST(LIBNICE_VERSION_STRING)
 
 AS_IF([test "x${boringssl_dir}" != "x"],
 	  [echo "Trying to use BoringSSL instead of OpenSSL...";

Reply via email to