Source: systemd-cron
Version: 1.16-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

Hi Alexandre,

Please note that your email address bounces. I am therefore filing this
response as a Debian bug hoping to reach you this way. I strongly
recommend using a non-bouncing email provider for interacting with
Debian.

On Sun, Jul 23, 2023 at 04:53:33PM +0200, Alexandre Detiste wrote:
> I'm also interrested in the crossbuild effort
> and even forwarded some (parts) of your patchs to various upstreams.

Thank you.

> Here I'm upstream for systemd-cron and I can't help myself to fix the
> cross build.
> 
> https://salsa.debian.org/detiste-guest/systemd-cron/-/pipelines/554789
> 
> It seams $(CC) always turns as "cc" and I don't know why.

The typical way to cross build autoconf based packages is passing --host
to configure. Now your configure doesn't accept that option and your
override does not pass it. Still debhelper assumes that you have somehow
transferred that information to the build system (which you have not)
and therefore does not pass it in the dh_auto_build stage. We can force
that explicit passing by forcing the makefile buildsystem (instead of
the automatically selected autoconf buildsystem) and that makes
dh_auto_build pass CC and that makes things just work.

In my bounced mail, I asked you to not do any /usr-merge conversion for
systemd-cron.

Helmut
diff -Nru systemd-cron-1.16/debian/changelog systemd-cron-1.16/debian/changelog
--- systemd-cron-1.16/debian/changelog  2023-07-22 18:14:03.000000000 +0200
+++ systemd-cron-1.16/debian/changelog  2023-07-23 17:55:55.000000000 +0200
@@ -1,3 +1,10 @@
+systemd-cron (1.16-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh pass cross tools to make. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 23 Jul 2023 17:55:55 +0200
+
 systemd-cron (1.16-1) unstable; urgency=low
 
   * major rewrite in an OO fashion
diff -Nru systemd-cron-1.16/debian/rules systemd-cron-1.16/debian/rules
--- systemd-cron-1.16/debian/rules      2023-07-10 22:36:26.000000000 +0200
+++ systemd-cron-1.16/debian/rules      2023-07-23 17:55:54.000000000 +0200
@@ -22,6 +22,9 @@
 --enable-yearly=yes \
 --enable-persistent=yes
 
+override_dh_auto_build:
+       dh_auto_build --buildsystem=makefile
+
 override_dh_installsystemd:
        # Only enable+start cron.target, it pulls in all the others via .timer 
files.
        dh_installsystemd cron.target

Reply via email to