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

On 2025-05-07, Helmut Grohne wrote:
> 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
> --- guile-avahi-0.4.1.orig/Makefile.am
> +++ guile-avahi-0.4.1/Makefile.am
> @@ -110,7 +110,7 @@
>  SUFFIXES = .x
>  
>  %.c.x: %.c $(GENERATED_BINDINGS)
> -     $(AM_V_GEN)$(guile_snarf) -o $@ $< $(snarfcppopts)
> +     $(AM_V_GEN)CPP='$(CPP)' $(guile_snarf) -o $@ $< $(snarfcppopts)
>  
>
>  #

Attachment: signature.asc
Description: PGP signature

Reply via email to