Re: [PATCH] kbuild: fix header installation under fakechroot environment

From: Masahiro Yamada
Date: Wed Jun 21 2017 - 21:17:42 EST


2017-06-15 17:36 GMT+09:00 Richard Genoud <richard.genoud@xxxxxxxxx>:
> Since commit fcc8487d477a ("uapi: export all headers under uapi
> directories") fakechroot make bindeb-pkg fails, mismatching files for
> directories:
> touch: cannot touch 'usr/include/video/uvesafb.h/.install': Not a
> directory
>
> This due to a bug in fakechroot:
> when using the function $(wildcard $(srcdir)/*/.) in a makefile, under a
> fakechroot environment, not only directories but also files are
> returned.
>
> To circumvent that, we are using the functions:
> $(sort $(dir $(wildcard $(srcdir)/*/))))
>
> And thanks to Yamada Masahiro who figured out the right
> filter-out/patsubst order !
>
> Fixes: fcc8487d477a ("uapi: export all headers under uapi directories")
> Signed-off-by: Richard Genoud <richard.genoud@xxxxxxxxx>
> ---

Applied to linux-kbuild/fixes. Thanks!

--
Best Regards
Masahiro Yamada