#1104866 guile-avahi FTCBFS: uses the build architecture cpp via guile-snarf

Package:
src:guile-avahi
Source:
src:guile-avahi
Submitter:
Helmut Grohne
Date:
2025-05-13 21:15:02 UTC
Severity:
normal
Tags:
#1104866#5
Date:
2025-05-07 08:34:20 UTC
From:
To:
guile-avahi fails to cross build from source, because it passes host
architecture compiler flags to guile-snarf, which forwards it to a very
unhappy build architecture cpp. This is a recurring problem in guile
packages. While guile-snarf honours the CPP variable, nothing usually
sets that. The current way of dealing with this is having the build
system explicitly pass the desired CPP. I'm attaching a patch for your
convenience and hope that you can forward it upstream.

Helmut

#1104866#10
Date:
2025-05-13 18:43:42 UTC
From:
To:
Hello upstream maintainers of guile-avahi!

A fellow debian developer reported that guile-avahi does not
successfully cross-build:

https://bugs.debian.org/1104866

... and provided a simple one line patch!

I can confirm with the patch applied it successfully builds for both
native and cross builds.

I have included their explanation and patch below, please consider
applying it!

live well,
  vagrant

#1104866#15
Date:
2025-05-13 21:12:14 UTC
From:
To:
Marking as forwarded...

live well,
  vagrant