Source: google-compute-engine-oslogin
Version: 20240415.00-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

google-compute-engine-oslogin fails to cross build from source, because
it uses the build architecture compiler. Looking closer, this happens
during dh_auto_install where debhelper does not pass cross tools.
Apparently, it performs some of the build steps during dh_auto_install.
I tracked this down to not setting the VERSION variable during
dh_auto_build. Once setting it, make install doesn't build anything
anymore and the cross build succeeds. I'm attaching a patch for your
convenience.

Helmut
diff --minimal -Nru google-compute-engine-oslogin-20240415.00/debian/changelog 
google-compute-engine-oslogin-20240415.00/debian/changelog
--- google-compute-engine-oslogin-20240415.00/debian/changelog  2024-04-22 
09:01:53.000000000 +0200
+++ google-compute-engine-oslogin-20240415.00/debian/changelog  2024-05-01 
09:16:48.000000000 +0200
@@ -1,3 +1,10 @@
+google-compute-engine-oslogin (20240415.00-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Build during dh_auto_build. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 01 May 2024 09:16:48 +0200
+
 google-compute-engine-oslogin (20240415.00-1) unstable; urgency=medium
 
   * New upstream release. (closes: #1041130)
diff --minimal -Nru google-compute-engine-oslogin-20240415.00/debian/rules 
google-compute-engine-oslogin-20240415.00/debian/rules
--- google-compute-engine-oslogin-20240415.00/debian/rules      2024-04-22 
09:01:53.000000000 +0200
+++ google-compute-engine-oslogin-20240415.00/debian/rules      2024-05-01 
09:16:48.000000000 +0200
@@ -7,6 +7,10 @@
 %:
        dh $@
 
+override_dh_auto_build:
+       dh_auto_build -- \
+       VERSION=$(DEB_VERSION_UPSTREAM)
+
 override_dh_auto_install:
        dh_auto_install -- \
        LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \

Reply via email to