mdio-tools: fix buildbot build
authorSebastian Kemper <redacted>
Mon, 23 Aug 2021 19:13:42 +0000 (21:13 +0200)
committerSebastian Kemper <redacted>
Mon, 23 Aug 2021 19:13:45 +0000 (21:13 +0200)
On buildbots the build fails because git isn't finding any git repo and
then AC_INIT refuses to run:

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
configure.ac:5: error: AC_INIT should be called with package and version arguments

Address this by substituting the git command with $(PKG_VERSION).

Signed-off-by: Sebastian Kemper <redacted>
net/mdio-tools/Makefile

index 0fd380c09c3710b3cab8b78d522958bf3c4d42ce..cd31fb6cba983256c509aaa07dbec60f52f6c0d3 100644 (file)
@@ -35,4 +35,9 @@ define Package/mdio-tools/install
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mdio/mdio $(1)/usr/bin/
 endef
 
+define Build/Prepare
+       $(call Build/Prepare/Default)
+       $(SED) 's/m4_esyscmd_s(.*)/$(PKG_VERSION)/' $(PKG_BUILD_DIR)/configure.ac
+endef
+
 $(eval $(call BuildPackage,mdio-tools))
git clone https://git.99rst.org/PROJECT