Recently, I am unable to compile an image due to luajit failing. Any quick wins to circumvent?
...
ERROR: info field 'version' has invalid value: package version is invalid
ERROR: failed to create package: /scratch/union/bin/packages/x86_64/packages/luajit-2.1.0-beta3-r7.apk: package version is invalid
make[2]: *** [Makefile:126: /scratch/union/bin/packages/x86_64/packages/luajit-2.1.0-beta3-r7.apk] Error 99
make[2]: Leaving directory '/scratch/union/feeds/packages/lang/luajit'
I'm not real sure about this, but I think that the version can't have dash '-' in it, so the 2.1.0-beta3 needs to become 2.1.0_beta2 with an underscore to be acceptable to apk. If the PKG_VERSION in the Makefile is used for the download, you'll have to play games to get the right tarball and rename the package, sort of like this one: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=be952e98bc1d768a0da5b84e59a6e7c04a1cdab8
Good guess on my part! Thanks for confirming, I think the same thing is happening on the ntpdate package where the version is 4.2.8p17 and I suspect it needs the p17 split with an underscore...