Bug#798064: glibc: please find kfreebsd-kernel-headers in multiarch path
Package: glibc
Version: 2.19-19
Severity: wishlist
Tags: patch
Hi,
We're hoping to move kfreebsd-kernel-headers' files to multiarch
path /usr/include/$(DEB_TARGET_MULTIARCH), so that headers of other
kernels are co-installable on a build machine (for cross-building and
bootstrapping).
gcc-5 is already fine with this. And since gcc's default include search
path has /usr/include/$(DEB_TARGET_MULTIARCH), it is expected to not
cause many problems; except where -nostdinc is used.
Please could glibc be patched as attached, to always look in that
directory for system includes, even for native builds (HOST==BUILD).
We hope to make this change with kfreebsd-kernel-headers (>= 10.1~7~),
unless there are objections, or if my upcoming mass rebuild reveal any
other breakage in reverse-depends.
Thanks!
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 9.0-2-amd64-xenhvm-ipsec
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- glibc-2.19/debian/sysdeps/kfreebsd.mk.orig 2015-07-09 12:28:06.000000000 +0000
+++ glibc-2.19/debian/sysdeps/kfreebsd.mk 2015-09-04 16:04:43.104028000 +0000
@@ -11,11 +11,7 @@
libc_extra_config_options = $(extra_config_options)
ifndef KFREEBSD_SOURCE
- ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
- KFREEBSD_HEADERS := /usr/include
- else
- KFREEBSD_HEADERS := /usr/$(DEB_HOST_GNU_TYPE)/include
- endif
+ KFREEBSD_HEADERS := /usr/include/$(DEB_TARGET_MULTIARCH)
else
KFREEBSD_HEADERS := $(KFREEBSD_SOURCE)/sys
endif
Reply to: