Closed jasle closed 8 months ago
I have been following and wish to support your packaging efforts in https://github.com/openwrt/packages/pull/23433. It is great to see others finding value in anyone's open source work, even more so when it is mine :)
My personal opinion, the OpenWRT maintainers are a little too blinded by their doctrine of "must be maintained". It misses there are some programming tasks in the world that can reach 'completion', tasks such as printing 'hello world', padding strings and (in my view) byte packing and unpacking. Others of course have differing views rooted in their own experiences. The point here is there is a line where 'maintained' is meaningless for some tasks.
There were technical reasons I picked lua-struct
, it is 200 lines of pure Lua code, worked for Lua 5.1 and did not use C bindings all of which would otherwise cause problems for users when installing (and packaging!).
The focus, and arguably the title, of this issue, should be "appease OpenWRT maintainers so I can package this" as this is the actual problem. My concern is if I was to shift some goalposts and technically remove lua-struct
your efforts may still be blocked by the OpenWRT maintainers.
I see a few options here:
luajit
and nginx
.struct
which is a tarball last updated 2018) is also unmaintained; are their arbitary targets "public repo" and "recently updated"?amend your package so instead:
lua
, lua-posix
and luarocks
append to your existing install
section of your Makefile
define Package/mt5211/install
...
luarocks install lua-struct
...
endef
Personally I prefer the last option is explored, for the reason that the origin, search engine indexing, archiving/historian processes as well as clear authorship of that part of the code base is preserved for others to see. Do you think this is possible and helps you make forward progress?
Thanks a lot for support getting this tool packaged for OpenWrt!
I have looked in the metanoia tool trying to understand how to get information from the modem and was really happy to find this tool, so I don't have to figure out and implement everything myself.
use another dependency
I fully understand your requirements for a potential replacement lib and did not find any promising library as a replacement too.
remove the dependency
Probability could solve needing lua-strcut
as external dependency, but sounds for the reasons you named like a dirty solution.
amend your package so instead: […]
The define Package/mt5311/install
does run while building the package, not when installing it. So I would need to add it to the postinstall script.
But the OpenWrt Package Contributing Guidelines also say that a package should Have no dependencies outside the OpenWrt core packages or this repository feed.
I would also avoid to add a dependency just for installing the real dependency bypassing the packet manager and relying on having a internet connection.
I will try to get the mt5311
package merged together with lua-struct
as separate package.
I will try to get the
mt5311
package merged together withlua-struct
as separate package.
Let me know if I can help or if you need me for anything.
Good Luck!
Both packaged got merged into OpenWrt packges 🎉
Thanks a lot for your support!
I close this ticket and will open a PR for updating the Readme, when the package is available in a OpenWrt release.
Both packaged got merged into OpenWrt packges 🎉
Great work!
Thanks a lot for your support!
Not a problem.
Thanks
The Repository of the dependency
lua-struct
is archived for almost a year and seems no longer maintained.Would it be possible to replace
lua-struct
?