Create includedir on call to install-exec-hook
Debian maintainers reported that liberasurecode could not be built reproducibly. What happens is that erasurecode_version.h headers are non-determinstically installed in the target directory depending on the system clock. This is due to debian/tmp/usr/include not being created and the install-exec-hook ignores errors. The attached patch ensures target ${includedir} exists and therefore the headers will always be there. Signed-off-by: Chris Lamb <lamby@debian.org>
This commit is contained in:
parent
10675f2019
commit
aea8a26c22
|
@ -32,7 +32,8 @@ thisinclude_HEADERS = \
|
||||||
include/rs_vand/liberasurecode_rs_vand.h
|
include/rs_vand/liberasurecode_rs_vand.h
|
||||||
|
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
-(cd $(DESTDIR)$(includedir) && \
|
-(mkdir -p $(DESTDIR)$(includedir) && \
|
||||||
|
cd $(DESTDIR)$(includedir) && \
|
||||||
rm -f erasurecode.h erasurecode_version.h \
|
rm -f erasurecode.h erasurecode_version.h \
|
||||||
erasurecode_stdinc.h erasurecode_helpers.h \
|
erasurecode_stdinc.h erasurecode_helpers.h \
|
||||||
config_liberasurecode.h && \
|
config_liberasurecode.h && \
|
||||||
|
|
Loading…
Reference in New Issue