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

Torben Hohn torben.hohn at linutronix.de
Tue Aug 25 12:45:50 CEST 2020


On Tue, Aug 18, 2020 at 05:01:17PM +0200, Kurt Kanzenbach wrote:
> 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>

Reviewed-by: Torben Hohn <torben.hohn 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
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner


More information about the elbe-devel mailing list