I've added the luci-compat requirement to the luci app makefiles to be compatible with 19.07, however now these packages cannot be installed (without --force-depends) on 18.06 because the luci-compat is not available there.
I'd like to maintain the single binary for different OpenWrt versions. Is it possible to add luci-compat as a fake package to 18.06?
I am not sure. I just gave the x86/64 ImageBuilder a quick test run here, using PACKAGES="luci luci-app-statistics" and it went through successfully. Which ImageBuilder did you use exactly? Maybe you tried it before the package repos were fully populated? Can delete it and unpack it again? Does it work then?
Mvebu. Downloaded and unpacked a few hours ago, like a day after 19.07.0rc1 was announced.
Another problem I'm facing with 18.06.5 and 19.07.0 is that I cannot include full-fledged wget, because -wget-nossl leads to an error in image builder.
Quick question: Are luci apps supposed to depend on luci-compat or are they supposed to be changed such that luci-compat is not necessary. Just based on the name, I am not sure what we are supposed to do?
I'll provide documentation for this as soon as possible. In a nutshell the transition requires replacing custom controller actions with ubus plugins (which can be written in Ash, Lua, C, ...) and Lua based CBI maps with JavaScript ones largely mimicking the old syntax.
OK, this is embarrassing, I was running 18.06.5 IB instead of the 19.07.0, hence the luci-compat errors. Sorry for stealing your time to confirm about 19.07.0.
Question about possibility of creating a fake luci-compat package for 18.06 still stands -- can you please create it so that similar codebase for luci apps can be kept for 18.06 and 19.07?