[elbe-devel] [PATCH] debianize: kernel: libc: Reference correct headers

Kurt Kanzenbach kurt at linutronix.de
Tue Aug 18 17:01:17 CEST 2020


When using elbe debianize to generate a Debianization and build the Debian
packages afterwards, then the libc-dev package doesn't include the needed
header files (just a Makefile).

The build will install all headers to ./debian/tmp/usr/include/* which is
fine. However, dh_install seems to pick the Linux kernel's usr/include directory
in the source folder.

>From the man-page of dh_install:

"From debhelper compatibility level 7 on, dh_install will fall back to looking
in debian/tmp for files, if it does not find them in the current directory"

It seems like dh_install picks up the [linux]/usr/include directory instead of
./debian/tmp/usr/include/* directory, because the first one exists.

Therefore, specify the path explicitly to fix it.

Signed-off-by: Kurt Kanzenbach <kurt at linutronix.de>
---
 elbepack/makofiles/debianize/kernel/linux-libc-dev.install | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/makofiles/debianize/kernel/linux-libc-dev.install b/elbepack/makofiles/debianize/kernel/linux-libc-dev.install
index ba8593ed9335..8083740b84c5 100644
--- a/elbepack/makofiles/debianize/kernel/linux-libc-dev.install
+++ b/elbepack/makofiles/debianize/kernel/linux-libc-dev.install
@@ -1 +1 @@
-./usr/include/
+./debian/tmp/usr/include/
-- 
2.20.1



More information about the elbe-devel mailing list