Hi! I applied the patch against 2.19 to test on kfreebsd (since 2.21 is not building on it yet).
It seems one kfreebsd-specific file was missed in the patch, vm86.h, which breaks the build, so please add the attached hunk also. I'm trying some test-rebuilds on kfreebsd-amd64 with this patch applied to glibc, and also with kfreebsd-kernel-headers/10.1~7 from experimental (where kernel headers have moved to multiarch paths too). It's going rather well so far: 146 packages built fine; and only 2 FTBFS, insserv (which seemed unrelated to this), and this in python2.6 (due to a hard-coded path to headers) : | cd ../Lib/plat-x86_64-kfreebsd-gnu; ./regen | eval $PYTHON_FOR_BUILD ../../Tools/scripts/h2py.py -i "'(u_long)'" /usr/include/netinet/in.h | Traceback (most recent call last): | File "../../Tools/scripts/h2py.py", line 181, in <module> | main() | File "../../Tools/scripts/h2py.py", line 81, in main | fp = open(filename, 'r') | IOError: [Errno 2] No such file or directory: '/usr/include/netinet/in.h' | make[1]: *** [../Lib/plat-x86_64-kfreebsd-gnu] Error 1 | Makefile:1119: recipe for target '../Lib/plat-x86_64-kfreebsd-gnu' failed | make[1]: Leaving directory '/«PKGBUILDDIR»/build-static' | make: *** [stamps/stamp-install] Error 2 I expect a full rebuild will uncover dozens more cases like this, and we may need to start filing (wishlist?) bugs. Regards, -- Steven Chamberlain ste...@pyro.eu.org
--- debian/sysdeps/kfreebsd-amd64.mk.orig 2015-09-15 14:12:10.726040000 +0100 +++ debian/sysdeps/kfreebsd-amd64.mk 2015-09-16 20:52:20.178441378 +0100 @@ -31,7 +31,7 @@ ln -s ../x86_64-kfreebsd-gnu/sys/$$i debian/libc0.1-dev-i386/usr/include/sys/$$i ; \ done -cp -a debian/tmp-i386/usr/include/sys/vm86.h \ +cp -a debian/tmp-i386/usr/include/x86_64-kfreebsd-gnu/sys/vm86.h \ debian/libc0.1-dev-i386/usr/include/sys endef
signature.asc
Description: Digital signature