From e170b7ed2a473a1b83db5b22c770accddc066179 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 16 Nov 2024 09:26:40 -0500 Subject: [PATCH] avahi-discover: rebuild for python3-3.13 --- srcpkgs/avahi-discover/template | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/srcpkgs/avahi-discover/template b/srcpkgs/avahi-discover/template index 769296f689a..767332ec8eb 100644 --- a/srcpkgs/avahi-discover/template +++ b/srcpkgs/avahi-discover/template @@ -5,7 +5,7 @@ # pkgname=avahi-discover version=0.8 -revision=7 +revision=8 build_style=gnu-configure build_helper="gir" configure_args="--disable-qt3 --disable-qt4 --disable-mono --disable-monodoc @@ -53,6 +53,19 @@ pre_configure() { autoreconf -fi } +pre_build() { + [ -n "${CROSS_BUILD}" ] || return 0 + + # TODO: fix this hack! + # + # GIR_EXTRA_LIBS_PATH in g-ir-scanner-qemuwrapper is not being honored, + # and the linker cannot find libavahi-glib.so.1 when scanning. Linking + # the missing library alongside the scanner targets is sufficient. + local d=avahi-gobject/.libs + mkdir -p "${d}" + ln -Tsf "../../avahi-glib/.libs/libavahi-glib.so.1" "${d}/libavahi-glib.so.1" +} + do_install() { mkdir -p ${wrksrc}/tmpinstall/usr/lib ln -s lib ${wrksrc}/tmpinstall/usr/lib${XBPS_TARGET_WORDSIZE}