Source: lastpass-cli
Version: 1.3.3-2
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

lastpass-cli fails to cross build from source, because it does not pass
cross flags to cmake. It uses debhelper's makefile buildsystem to invoke
a Makefile, which runs cmake and make. This is backwards and since
debhelper is not in control of the cmake invocation, important flags go
missing. Switching the buildsystem to cmake (and thus sidestepping the
toplevel Makefile) makes lastpass-cli cross buildable. It also makes
verbosity (including DEB_BUILD_OPTIONS=terse) just work. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru lastpass-cli-1.3.3/debian/changelog 
lastpass-cli-1.3.3/debian/changelog
--- lastpass-cli-1.3.3/debian/changelog 2019-07-20 22:13:20.000000000 +0200
+++ lastpass-cli-1.3.3/debian/changelog 2019-12-22 23:10:32.000000000 +0100
@@ -1,3 +1,10 @@
+lastpass-cli (1.3.3-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let debhelper call cmake. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 22 Dec 2019 23:10:32 +0100
+
 lastpass-cli (1.3.3-2) unstable; urgency=medium
 
   * Sourceful upload to unstable to ensure migration to testing.
diff --minimal -Nru lastpass-cli-1.3.3/debian/rules 
lastpass-cli-1.3.3/debian/rules
--- lastpass-cli-1.3.3/debian/rules     2019-07-20 22:13:20.000000000 +0200
+++ lastpass-cli-1.3.3/debian/rules     2019-12-22 23:10:32.000000000 +0100
@@ -10,10 +10,10 @@
 CXXFLAGS += $(CPPFLAGS)
 
 %:
-       dh $@
+       dh $@ --buildsystem=cmake --builddirectory=build
 
 override_dh_auto_build:
-       dh_auto_build -- all doc-man VERBOSE=1
+       dh_auto_build -- all doc-man
 
 override_dh_auto_clean:
        dh_auto_clean

Reply via email to