El 19/10/22 a las 11:29, Paul Wise escribió: > On Tue, 2022-10-18 at 10:17 +0800, Bo YU wrote: > > > Certainly. I have updated the patch with help of Paul Wise. > > But I am not sure I understand it correctly. Yeah, The bind.tar.gz keeps > > itself config.{guess/sub}, so I simply copy these files from system in > > Makefile. > > While that is a minimal workaround for the riscv64 FTBFS, I think a > better option would be to unpack bind/bind.tar.gz manually before > dh_update_autotools_config runs and also ensure that dh_autoreconf > rebuilds things in the unpacked bind dir too, something like this: > > debian/rules > > # Ensure that the bind config.guess/config.sub are unpacked first, > # otherwise they won't be updated and isc-dhcp will FTBFS on new arches > execute_before_dh_update_autotools_config: > cd bind && tar xf bind.tar.gz > > # Ensure that the bind build system gets rebuilt too > override_dh_autoreconf: > dh_autoreconf debian/autogen.sh > > debian/autogen.sh > > #!/bin/sh > set -x > autoreconf -f -i > cd bind/bind-*/ > autoreconf -f -i
Bo Yu, could you please check the attached patch instead? It comes from Ubuntu, where isc-dhcp seems to build OK. > > That is still only a workaround; the correct solution to this issue > is that isc-dhcp should link against the bind9 libraries instead of > adding a copy of bind9 to isc-dhcp. This would be more complicated > though and would have to be done upstream not in Debian. I am afraid that is no longer a possible solution. Please see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942502 Cheers, -- Santiago
Description: run autoreconf in the bind directory Using an embedded version of old bind libraries instead of having to ship those as a separate source package in the archive is fine, but then we shouldn't use 9-year-old config.{guess,sub} that don't know about current architectures and cause build failures. Author: Steve Langasek <steve.langa...@ubuntu.com> Last-Update: 2022-08-14 Forwarded: no Index: isc-dhcp-4.4.3/bind/Makefile.in =================================================================== --- isc-dhcp-4.4.3.orig/bind/Makefile.in +++ isc-dhcp-4.4.3/bind/Makefile.in @@ -56,6 +56,7 @@ echo Configuring BIND libraries for DHCP. ; \ rm -rf ${cleandirs} ${cleanfiles} ; \ (cd ${bindsrcdir} && \ + autoreconf -i -f && \ ./configure ${bindconfig} > ${binddir}/configure.log); \ fi
signature.asc
Description: PGP signature