Source: synergy Version: 1.8.8-stable+dfsg.1-1 Severity: wishlist Tags: patch User: helm...@debian.org Usertags: rebootstrap
synergy fails to cross build from source, because it runs cmake for the build architecture. Since coming up with the right flags for cmake, the easiest way is to let dh_auto_configure do that. After doing so, the build proceeds much further and fails with a qmake problem that needs to be addressed in qt. Please consider applying the attached patch and revisiting full cross compilation after #875199. Please close this bug when addressing the cmake issue even if synergy does not cross build. Helmut
diff --minimal -Nru synergy-1.8.8-stable+dfsg.1/debian/changelog synergy-1.8.8-stable+dfsg.1/debian/changelog --- synergy-1.8.8-stable+dfsg.1/debian/changelog 2017-03-12 00:38:53.000000000 +0100 +++ synergy-1.8.8-stable+dfsg.1/debian/changelog 2017-09-19 08:25:50.000000000 +0200 @@ -1,3 +1,10 @@ +synergy (1.8.8-stable+dfsg.1-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Address FTCBFS: Run cmake for the host architecture. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 19 Sep 2017 08:25:50 +0200 + synergy (1.8.8-stable+dfsg.1-1) unstable; urgency=low * New upstream version. diff --minimal -Nru synergy-1.8.8-stable+dfsg.1/debian/rules synergy-1.8.8-stable+dfsg.1/debian/rules --- synergy-1.8.8-stable+dfsg.1/debian/rules 2017-03-12 00:38:53.000000000 +0100 +++ synergy-1.8.8-stable+dfsg.1/debian/rules 2017-09-19 08:25:50.000000000 +0200 @@ -18,23 +18,15 @@ CFLAGS += $(CPPFLAGS) CXXFLAGS += $(CPPFLAGS) -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) - # Run the test suite unless explicitly requested not to. ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) TEST_TARGET = test endif -builddir: - mkdir builddir - -config.h: CMakeLists.txt builddir +config.h: CMakeLists.txt dh_testdir - (cd builddir && cmake ..) + dh_auto_configure --buildsystem=cmake --builddirectory=builddir src/gui/Makefile: (cd src/gui && qmake gui.pro "CONFIG+=release" "QMAKE_CFLAGS_RELEASE+=$(CFLAGS)" "QMAKE_CXXFLAGS_RELEASE+=$(CXXFLAGS)" "QMAKE_LFLAGS_RELEASE+=$(LDFLAGS)" "QMAKE_VERSION_STAGE=stable" "QMAKE_VERSION_REVISION=debian" -r) @@ -50,18 +42,18 @@ # Main targets. -bin/unittests: builddir config.h +bin/unittests: config.h dh_testdir (cd builddir && $(MAKE) VERBOSE=1) -bin/synergy: builddir src/gui/Makefile +bin/synergy: src/gui/Makefile dh_testdir (cd src/gui && $(MAKE)) src/test/guitests/Makefile: (cd src/test/guitests && qmake guitests.pro "CONFIG+=release" "QMAKE_CFLAGS_RELEASE+=$(CFLAGS)" "QMAKE_CXXFLAGS_RELEASE+=$(CXXFLAGS)" "QMAKE_LFLAGS_RELEASE+=$(LDFLAGS)" -r) -bin/guitests: bin/synergy builddir src/test/guitests/Makefile +bin/guitests: bin/synergy src/test/guitests/Makefile dh_testdir (cd src/test/guitests && $(MAKE))