Address some nits that would be helpful for platform builders - #131
Conversation
alerque
left a comment
There was a problem hiding this comment.
The content here looks fine. In the nits department though I'd like the commit messages to follow the conventional commits scheme we've been using. Both these commits should be chore: commits with a capitalized imperative mode verb beginning the message after that, as in chore: Add some ....
Also it isn't very important, buy your commit messages implies the binary name thing is only a platform issue, but it isn't. Some Linux distros actually have exactly the same issue.
|
And don't worry about the failed CI job, that's a known issue with the job itself right now. |
This is slightly nicer to folks building on other platforms, without having to sacrifice anything on Linux. With FreeBSD in mind, in particular, the default `make` is bmake and luarocks binaries are typically named according to the lua version they were built against -- having an easy way to avoid patching in `gmake` and `luarocks54` would be quite welcome.
Leave them enabled by default to avoid breaking the default configuration, but allow them to be turned off for platform redistribution purposes where we mostly care about just building for the platform we're currently running on.
Fixed, thanks!
Right, so I mainly didn't want to speak overly broadly here- I haven't looked at anything but FreeBSD personally, though I could see where others probably have the same issues. The other problem I have is with |
I wouldn't use Note how this is taking the locally extracted sources and guided by the local copy of the rockspec is making a LuaRocks rock out of them. Then we install that, also locally and NOT including any dependencies we install those to a predefined tree that will eventually be copied into the target system. Because dependencies are excluded, no network access is needed and the system package manager is expected to supply the right dependencies. The bit about manifests is taken care of in Arch Linux by a hook that runs after the package manager installs anything to the luarocks directory. This way the system always has an updated manifest with all the system-installed luarocks without LuaRocks messing with it directly as part of each package installation. |
My main concern here is FreeBSD, though I suspect other platforms would also benefit. We're currently on an old version based out of the original repo, but I'd quite like to update it- a few env vars that we can set to point at the correct names for the expected programs would be incredibly helpful.