On Monday, March 13, 2017 9:30:29 PM CET Helmut Grohne wrote: > Source: libidn2-0 > Version: 0.16-1 > Tags: patch > User: helm...@debian.org > Usertags: rebootstrap > > cross building libidn2-0 is required for bootstrapping new architectures > as curl added it to its Build-Depends a while ago. Unfortunately, cross > building libidn2-0 currently fails. The immediate reason is failure to > execute gentr46map during build. It is not installed into any package > and should thus be compiled with the build architecture compiler, but > the build system opts for the host architecture compiler. After fixing > that, help2man fails running idn2. Fixing help2man calls doesn't have a > straight forward solution. One can choose among: > 1. Stop using help2man and write proper documentation. > 2. Skip rebuilding manual pages during cross builds. > 3. Add a idn2:native <cross> to Build-Depends and run that. > 4. Build libidn2-0 twice. Once native, then cross. > In the attached patch, I opted for option 2. Please consider applying > it.
Thanks for your patch(es), Helmut. Just removing 'include <config.h>' from gentr46map.c doesn't work out here. _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE are then not defined (used in gentr46map.c and tr46map.h) and the compiler errors. Also, using -lunistring directly doesn't work out on systems without libunistring. I guess it needs libtool and $(LTLIBUNISTRING) + ../gl/libgnu.la to do it portable. I can't test that for the Debian environment and know too less about cross-compiling to test that myself. Added the changes for configure.ac and help2man into upstream. Regards, Tim
signature.asc
Description: This is a digitally signed message part.