zstd: fix host headers installation
authorBaruch Siach <baruch@tkos.co.il>
Tue, 8 May 2018 18:26:16 +0000 (21:26 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 13 May 2018 20:39:52 +0000 (22:39 +0200)
commita557aedad2d8b4735afe709e68ed58f7304580d8
tree112246ad89c3d8d0d283ed9c78ed0e1e4523debc
parent85f9d0893476911dc8757893a281b55d2dc06309
zstd: fix host headers installation

If host-zstd builds when $(HOST_DIR)/include has not been created yet,
the install-includes target does not create this directory. Instead, the
install command copies the headers over $(HOST_DIR)/include, thus
creating a regular file instead of a directory. This leads to the
following installation failure:

Installing includes
install: cannot create directory ‘.../host/usr/include/’: File exists
Makefile:166: recipe for target 'install-pc' failed
make[1]: *** [install-pc] Error 1

Add a patch to fix that.

Cc: Peter Seiderer <ps.report@gmx.net>
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Peter Seiderer <ps.report@gmx.net>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/zstd/0002-lib-Makefile-create-include-directory-before-headers.patch [new file with mode: 0644]