-
Notifications
You must be signed in to change notification settings - Fork 3.8k
A selection of new Lua packages #2855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lang/cgilua/Makefile
Outdated
| endef | ||
|
|
||
| define Build/Configure | ||
| endef |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need this block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please clarify? Why? Which block exactly? I'm pretty sure define Package/cgilua is needed. Maybe define Build/Configure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the configure blocks. (in all these packages)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a look at my fix.
|
@karlp |
lang/cgilua/Makefile
Outdated
| @@ -0,0 +1,61 @@ | |||
| # | |||
| # Copyright (C) 2016 OpenWrt.org | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct. You aren't OpenWrt. Either drop teh copyright outright (my choice) or provide your own name here. (will apply in all places)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was under the impression that was required. I'll fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, according to this I can use OpenWrt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's incorrect unfortunately. Either drop it as karlp suggests or add your own.
| PKG_VERSION:=5.1.4 | ||
| PKG_RELEASE:=1 | ||
|
|
||
| PKG_SOURCE:=v$(PKG_VERSION).tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a no go, use the git approach instead including xz tarballs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not? What rule does this break?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll run into file names clashing if they having nothing more than v(version).tar.gz as file name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right.
| define Package/cgilua/install | ||
| $(INSTALL_DIR) $(1)/$(LUA_MODULE_PATH)/cgilua | ||
| $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/cgilua/cgilua.lua $(1)/$(LUA_MODULE_PATH)/cgilua.lua | ||
| $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/cgilua/authentication.lua $(1)/$(LUA_MODULE_PATH)/cgilua/authentication.lua |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really? the upstream package keeps them in the same dir and needs them in different dirs? Does the upstream package have a makefile with an "install" target you can use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have to test to make sure the other way works.
lang/jsonrpc4lua/Makefile
Outdated
|
|
||
| PKG_NAME:=jsonrpc4lua | ||
| PKG_VERSION:=1.0.1 | ||
| PKG_RELEASE:=2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no. pkg_release is obviously 1 here.
lang/jsonrpc4lua/Makefile
Outdated
| @@ -0,0 +1,49 @@ | |||
| # | |||
| # Copyright (C) 2006-2015 OpenWrt.org | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
definitely not 2006! (or 2015!)
lang/jsonrpc4lua/Makefile
Outdated
| endef | ||
|
|
||
| define Package/jsonrpc4lua/description | ||
| JSONRPC for Lua |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great description! Is this for clients? for servers? for generating stubs only? Who knows!
| LUA_MODULE_PATH:=/usr/lib/lua | ||
|
|
||
| define Build/Compile | ||
| $(TARGET_CROSS)gcc $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -I $(PKG_BUILD_DIR)/c-api/ -o $(PKG_BUILD_DIR)/bit32.so $(PKG_BUILD_DIR)/lbitlib.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is upstream really that broken that you have to compile it yourself? Have you considered just using lua-bitop? it's already packaged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I recall, at the time bit32 looked better and more future proof. I didn't realize there were other ways to compile it. I'll have to check if I can rework it.
lang/lua-inifile/Makefile
Outdated
| PKG_SOURCE_VERSION:=master | ||
|
|
||
| PKG_MAINTAINER:=Alex R <alex@totalwebservices.net> | ||
| PKG_LICENSE=Simplified BSD license |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://spdx.org/licenses/ I think you want "BSD-2-Clause" here
lang/luaproc/Makefile
Outdated
|
|
||
| PKG_NAME:=luaproc | ||
| PKG_VERSION:=1.0 | ||
| PKG_RELEASE:=4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, should be 1
|
You've used different names and emails for some of these packages, was that intentional? Are you really sure that none of the existing packages met your needs for any of these? |
|
Regarding different names/emails, I was still in the process of separating identities. Regarding possible duplication of functionality, I don't believe that's a valid concern. jsonrpc4lua: The original json4lua package was only semi-functional. The JSON-RPC server component didn't work at all. Initially, I was trying to fix it (see craigmj/json4lua#13) but then, I realized it was trying to do too much. JSON-RPC features should not be bundled into JSON encoding/decoding library. The new fork uses lua-cjson for encoding/decoding and has actually functioning JSON-RPC client and server code. bit32: I was surprised this wasn't already in the repository, given the version of Lua that was used. "bit32 is the native Lua 5.2 bit manipulation library, backported to Lua 5.1" alt-getopt: I found this package useful, but it can be left out. cgilua: I was also surprised that the repository is missing this package, given that it has lua-wsapi and lua-xavante. Also, I believe this is a dependency for the server component of jsonrpc4lua (and the non-functioning JSON-RPC server code in json4lua). |
|
I forgot to talk about luaproc. It is an excellent library. Very good alternative to Lua Lanes. |
|
You'll want to squish the fixup commits at some point too btw. |
champtar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @maxguru
you are missing signed off by on all you commits
|
Rant: Here is the problem. I was working on the project that triggered the commits prior to June of 2016. I created the pull request because I thought my packages were useful. Nobody responded to my pull request back then. Then after all these months somebody decided to respond finally. I already moved on and no longer have the environment set up. Once I get back to the project, I will see about fixing the couple of issues that I still have left to fix. If somebody else is up for it before then, feel free to do it. @champtar, I wasn't aware that I needed to sign off commits. I would need to recreate the pull request to fix this, no? I might as well create individual pull requests for each package if that is the case. |
|
Unfortunately, I haven't had the time to do what was requested. If somebody wants to take this on, that would be great. |
|
Way to old - closing. |
No description provided.