json-c: drop host-autoconf dependency
PATCH 1/1 json-c: drop host-autoconf dependency
It turns out that the configure script attempts to run autoheader because the configure.ac timestamp is slightly later than that of config.h.in. Update the config.h.in timestamp after tarball extract to avoid autoheader run. With that we can drop the host-autoconf dependency.
Cc Fabrice Fontaine <[email protected]>
Signed-off-by Baruch Siach <[email protected]>
--- package/json-c/json-c.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
package/json-c/json-c.mk +7 -3
@@ -10,9 +10,13 @@ JSON_C_INSTALL_STAGING = YES JSON_C_LICENSE = MIT JSON_C_LICENSE_FILES = COPYING -# configure requires autoheader -JSON_C_DEPENDENCIES = host-autoconf -HOST_JSON_C_DEPENDENCIES = host-autoconf +# update config.h.in timestamp to avoid autoheader run +define JSON_C_UPDATE_CONFIG_TIMESTAMP + touch $(@D)/config.h.in +endef + +JSON_C_POST_EXTRACT_HOOKS += JSON_C_UPDATE_CONFIG_TIMESTAMP +HOST_JSON_C_POST_EXTRACT_HOOKS += JSON_C_UPDATE_CONFIG_TIMESTAMP $(eval $(autotools-package)) $(eval $(host-autotools-package))
Signature · 1 line
2.18.0
PATCH 1/1 json-c: drop host-autoconf dependency
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
It turns out that the configure script attempts to run autoheader because the configure.ac timestamp is slightly later than that of config.h.in. Update the config.h.in timestamp after tarball extract to avoid autoheader run. With that we can drop the host-autoconf dependency.
Cc Fabrice Fontaine <[email protected]>Signed-off-by Baruch Siach <[email protected]>
Committed, thanks both.
Signature · 1 line
Bye, Peter Korsgaard