* [PR PATCH] prosody: add lua51-unbound as a dependency
@ 2024-02-24 21:12 AnInternetTroll
2024-02-25 20:35 ` [PR PATCH] [Updated] " AnInternetTroll
` (14 more replies)
0 siblings, 15 replies; 16+ messages in thread
From: AnInternetTroll @ 2024-02-24 21:12 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1440 bytes --]
There is a new pull request by AnInternetTroll against master on the void-packages repository
https://github.com/AnInternetTroll/void-packages user/luca/lua-unbound
https://github.com/void-linux/void-packages/pull/48919
prosody: add lua51-unbound as a dependency
- **New package: lua-unbound-1.0.0**
- **prosody: add lua51-unbound as a dependency**
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86\_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
Crossbuilt from x86\_64-glibc and tested on aarch64-musl
Fixes the following warning that shows up when using prosodyctl (any
command):
```
**************************
Prosody was unable to find lua-unbound
This package can be obtained in the following ways:
Debian/Ubuntu | sudo apt install lua-unbound
luarocks | luarocks install luaunbound
Source | https://www.zash.se/luaunbound.html
Old DNS resolver library will be used
More help can be found on our website, at https://prosody.im/doc/depends
**************************
```
A patch file from https://github.com/void-linux/void-packages/pull/48919.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/lua-unbound-48919.patch --]
[-- Type: text/x-diff, Size: 4317 bytes --]
From 48c8cfebf052b2cceea481aee0311d6b3ff8cd85 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 22:06:20 +0100
Subject: [PATCH 1/2] New package: lua-unbound-1.0.0
---
srcpkgs/lua51-unbound | 1 +
srcpkgs/lua52-unbound | 1 +
srcpkgs/lua53-unbound | 1 +
srcpkgs/lua54-unbound/template | 83 ++++++++++++++++++++++++++++++++++
4 files changed, 86 insertions(+)
create mode 120000 srcpkgs/lua51-unbound
create mode 120000 srcpkgs/lua52-unbound
create mode 120000 srcpkgs/lua53-unbound
create mode 100644 srcpkgs/lua54-unbound/template
diff --git a/srcpkgs/lua51-unbound b/srcpkgs/lua51-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua51-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua52-unbound b/srcpkgs/lua52-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua52-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua53-unbound b/srcpkgs/lua53-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua53-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua54-unbound/template b/srcpkgs/lua54-unbound/template
new file mode 100644
index 00000000000000..4b6749be7307d1
--- /dev/null
+++ b/srcpkgs/lua54-unbound/template
@@ -0,0 +1,83 @@
+# Template file for 'lua54-unbound'
+pkgname=lua54-unbound
+version=1.0.0
+revision=1
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+hostmakedepends="pkg-config"
+makedepends="unbound-devel"
+for _lua_version in $_lua_versions
+do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
+depends="lua54"
+_desc="Binding to libunbound for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://www.zash.se/luaunbound.html"
+#changelog=""
+distfiles="https://code.zash.se/dl/luaunbound/luaunbound-${version}.tar.gz"
+checksum=6de45aa64c21cf0ecbccb734b7c1eda8873a6135bbe142fbf353f772a90750d3
+
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
+do_build() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUA_PC="${_lua_version}" \
+ ${makejobs}
+ done
+}
+
+do_install() {
+ cd ${wrksrc}/lua51
+ vinstall lunbound.so 755 usr/lib/lua/5.1/
+
+ cd ${wrksrc}/lua52
+ vinstall lunbound.so 755 usr/lib/lua/5.2/
+
+ cd ${wrksrc}/lua53
+ vinstall lunbound.so 755 usr/lib/lua/5.3/
+
+ cd ${wrksrc}/lua54
+ vinstall lunbound.so 755 usr/lib/lua/5.4/
+ vlicense LICENSE
+}
+
+lua51-unbound_package() {
+ depends="lua51"
+ short_desc="${_desc} (5.1.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.1
+ vlicense ${wrksrc}/lua51/LICENSE
+ }
+}
+
+lua52-unbound_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-unbound_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
From e4fc91625aa3b1740cf03c11b724593263624587 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 22:09:27 +0100
Subject: [PATCH 2/2] prosody: add lua51-unbound as a dependency
---
srcpkgs/prosody/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index aa59bebadba329..36a2dc2a616221 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,7 +1,7 @@
# Template file for 'prosody'
pkgname=prosody
version=0.12.1
-revision=4
+revision=5
build_style=configure
configure_args="
--ostype=linux
@@ -21,7 +21,7 @@ conf_files="
make_dirs="/var/lib/prosody 0755 prosody prosody"
makedepends="lua51-devel openssl-devel libidn-devel icu-devel"
depends="lua51-luasocket lua51-luafilesystem lua51-luaexpat lua51-luasec
- lua51-BitOp"
+ lua51-BitOp lua51-unbound"
short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] prosody: add lua51-unbound as a dependency
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
@ 2024-02-25 20:35 ` AnInternetTroll
2024-02-25 20:50 ` [PR PATCH] [Updated] prosody: update to 0.12.3 AnInternetTroll
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: AnInternetTroll @ 2024-02-25 20:35 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1445 bytes --]
There is an updated pull request by AnInternetTroll against master on the void-packages repository
https://github.com/AnInternetTroll/void-packages user/luca/lua-unbound
https://github.com/void-linux/void-packages/pull/48919
prosody: add lua51-unbound as a dependency
- **New package: lua-unbound-1.0.0**
- **prosody: add lua51-unbound as a dependency**
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86\_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
Crossbuilt from x86\_64-glibc and tested on aarch64-musl
Fixes the following warning that shows up when using prosodyctl (any
command):
```
**************************
Prosody was unable to find lua-unbound
This package can be obtained in the following ways:
Debian/Ubuntu | sudo apt install lua-unbound
luarocks | luarocks install luaunbound
Source | https://www.zash.se/luaunbound.html
Old DNS resolver library will be used
More help can be found on our website, at https://prosody.im/doc/depends
**************************
```
A patch file from https://github.com/void-linux/void-packages/pull/48919.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/lua-unbound-48919.patch --]
[-- Type: text/x-diff, Size: 9974 bytes --]
From baa3ac1e72114e3f6b482bae12c6527c1707f70c Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 22:06:20 +0100
Subject: [PATCH 1/3] New package: lua-unbound-1.0.0
---
srcpkgs/lua51-unbound | 1 +
srcpkgs/lua52-unbound | 1 +
srcpkgs/lua53-unbound | 1 +
srcpkgs/lua54-unbound/template | 83 ++++++++++++++++++++++++++++++++++
4 files changed, 86 insertions(+)
create mode 120000 srcpkgs/lua51-unbound
create mode 120000 srcpkgs/lua52-unbound
create mode 120000 srcpkgs/lua53-unbound
create mode 100644 srcpkgs/lua54-unbound/template
diff --git a/srcpkgs/lua51-unbound b/srcpkgs/lua51-unbound
new file mode 120000
index 0000000000000..e7bb715780e25
--- /dev/null
+++ b/srcpkgs/lua51-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua52-unbound b/srcpkgs/lua52-unbound
new file mode 120000
index 0000000000000..e7bb715780e25
--- /dev/null
+++ b/srcpkgs/lua52-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua53-unbound b/srcpkgs/lua53-unbound
new file mode 120000
index 0000000000000..e7bb715780e25
--- /dev/null
+++ b/srcpkgs/lua53-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua54-unbound/template b/srcpkgs/lua54-unbound/template
new file mode 100644
index 0000000000000..4b6749be7307d
--- /dev/null
+++ b/srcpkgs/lua54-unbound/template
@@ -0,0 +1,83 @@
+# Template file for 'lua54-unbound'
+pkgname=lua54-unbound
+version=1.0.0
+revision=1
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+hostmakedepends="pkg-config"
+makedepends="unbound-devel"
+for _lua_version in $_lua_versions
+do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
+depends="lua54"
+_desc="Binding to libunbound for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://www.zash.se/luaunbound.html"
+#changelog=""
+distfiles="https://code.zash.se/dl/luaunbound/luaunbound-${version}.tar.gz"
+checksum=6de45aa64c21cf0ecbccb734b7c1eda8873a6135bbe142fbf353f772a90750d3
+
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
+do_build() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUA_PC="${_lua_version}" \
+ ${makejobs}
+ done
+}
+
+do_install() {
+ cd ${wrksrc}/lua51
+ vinstall lunbound.so 755 usr/lib/lua/5.1/
+
+ cd ${wrksrc}/lua52
+ vinstall lunbound.so 755 usr/lib/lua/5.2/
+
+ cd ${wrksrc}/lua53
+ vinstall lunbound.so 755 usr/lib/lua/5.3/
+
+ cd ${wrksrc}/lua54
+ vinstall lunbound.so 755 usr/lib/lua/5.4/
+ vlicense LICENSE
+}
+
+lua51-unbound_package() {
+ depends="lua51"
+ short_desc="${_desc} (5.1.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.1
+ vlicense ${wrksrc}/lua51/LICENSE
+ }
+}
+
+lua52-unbound_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-unbound_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
From c5d0a4eeaf1f61eded0f16046de5c7c085ce2ab1 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:37 +0100
Subject: [PATCH 2/3] lua51-luasocket: update to lua54.
---
srcpkgs/lua51-luasocket/template | 81 +++++++++++++++++++++++++++++---
srcpkgs/lua52-luasocket | 1 +
srcpkgs/lua53-luasocket | 1 +
srcpkgs/lua54-luasocket | 1 +
4 files changed, 77 insertions(+), 7 deletions(-)
create mode 120000 srcpkgs/lua52-luasocket
create mode 120000 srcpkgs/lua53-luasocket
create mode 120000 srcpkgs/lua54-luasocket
diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 98bf69535d839..b401b28ae5ca7 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -3,24 +3,64 @@ pkgname=lua51-luasocket
version=3.1.0
revision=1
build_style=gnu-makefile
-build_wrksrc=src
-makedepends="lua51-devel"
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions
+do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
depends="lua51"
-short_desc="Network support for the Lua language"
+_desc="Network support for the Lua language"
+short_desc="${_desc} (5.1.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://lunarmodules.github.io/luasocket/"
distfiles="https://github.com/lunarmodules/luasocket/archive/refs/tags/v3.1.0.tar.gz"
checksum=bf033aeb9e62bcaa8d007df68c119c966418e8c9ef7e4f2d7e96bddeca9cca6e
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
do_build() {
- make CC=$CC LD=$CC LUAINC=${XBPS_CROSS_BASE}/usr/include/lua5.1 \
- PLAT=linux LUAVER=5.1 \
- ${makejobs} all-unix
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
+ LUAVER="${_lua_version#???}" \
+ LUAV="${_lua_version#???}" \
+ PLAT=linux \
+ ${makejobs} \
+ all-unix
+ done
+}
+
+do_install() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ STRIP=true \
+ PREFIX=/usr \
+ prefix=/usr \
+ DESTDIR="${DESTDIR}" \
+ LUAVER="${_lua_version#???}" \
+ LUAV="${_lua_version#???}" \
+ LDIR_linux="lib/lua/${_lua_version#???}" \
+ PLAT=linux \
+ install
+ done
}
post_install() {
- vlicense ../LICENSE
+ vlicense ./lua51/LICENSE
}
luasocket_package() {
@@ -28,3 +68,30 @@ luasocket_package() {
short_desc+=" (transitional dummy package)"
build_style=meta
}
+
+lua52-luasocket_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-luasocket_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
+
+lua54-luasocket_package() {
+ depends="lua54"
+ short_desc="${_desc} (5.4.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.4
+ vlicense ${wrksrc}/lua54/LICENSE
+ }
+}
diff --git a/srcpkgs/lua52-luasocket b/srcpkgs/lua52-luasocket
new file mode 120000
index 0000000000000..d061e632fab71
--- /dev/null
+++ b/srcpkgs/lua52-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua53-luasocket b/srcpkgs/lua53-luasocket
new file mode 120000
index 0000000000000..d061e632fab71
--- /dev/null
+++ b/srcpkgs/lua53-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua54-luasocket b/srcpkgs/lua54-luasocket
new file mode 120000
index 0000000000000..d061e632fab71
--- /dev/null
+++ b/srcpkgs/lua54-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
From 53de8fb62295e5094bd9f7fc0208becce6a51c42 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:58 +0100
Subject: [PATCH 3/3] prosody: update to 0.12.3.
---
srcpkgs/prosody/files/prosody.cfg.lua | 1 -
srcpkgs/prosody/files/prosody/run | 2 +-
srcpkgs/prosody/template | 19 +++++++++----------
3 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/srcpkgs/prosody/files/prosody.cfg.lua b/srcpkgs/prosody/files/prosody.cfg.lua
index 4f0d2d1ba93a1..f0a961349d3f8 100644
--- a/srcpkgs/prosody/files/prosody.cfg.lua
+++ b/srcpkgs/prosody/files/prosody.cfg.lua
@@ -13,7 +13,6 @@
------ Void settings ------
-daemonize = false;
pidfile = "/run/prosody/prosody.pid"
---------- Server-wide settings ----------
diff --git a/srcpkgs/prosody/files/prosody/run b/srcpkgs/prosody/files/prosody/run
index e302e315d8676..6425cdbb513fc 100644
--- a/srcpkgs/prosody/files/prosody/run
+++ b/srcpkgs/prosody/files/prosody/run
@@ -2,4 +2,4 @@
exec 2>&1
mkdir -p /run/prosody
chown prosody:prosody /run/prosody
-exec chpst -u prosody:prosody prosody
+exec chpst -u prosody:prosody prosody --no-daemonize
diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index aa59bebadba32..080ea5ed1121e 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,17 +1,17 @@
# Template file for 'prosody'
pkgname=prosody
-version=0.12.1
-revision=4
+version=0.12.3
+revision=1
build_style=configure
configure_args="
--ostype=linux
--prefix=/usr
--no-example-certs
- --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.1
+ --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.4
--with-lua=${XBPS_CROSS_BASE}/usr
- --lua-version=5.1
- --lua-suffix=5.1
- --runwith=lua5.1"
+ --lua-version=5.4
+ --lua-suffix=5.4
+ --runwith=lua5.4"
conf_files="
/etc/prosody/prosody.cfg.lua
/etc/prosody/certs/localhost.cnf
@@ -19,16 +19,15 @@ conf_files="
/etc/prosody/certs/makefile
/etc/prosody/certs/GNUmakefile"
make_dirs="/var/lib/prosody 0755 prosody prosody"
-makedepends="lua51-devel openssl-devel libidn-devel icu-devel"
-depends="lua51-luasocket lua51-luafilesystem lua51-luaexpat lua51-luasec
- lua51-BitOp"
+makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
+depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://prosody.im/"
changelog="https://prosody.im/doc/release/${version}"
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=a7ecbbe41f01a4251805593ac6d15dbc6cb75d9c7a876c76b456cf74ff4b90e5
+checksum=35da0d031ff46040a2d638e004d4255e249b6323fe6212db9ddd76b401db2101
system_accounts="prosody"
prosody_homedir="/var/lib/prosody"
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] prosody: update to 0.12.3.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
2024-02-25 20:35 ` [PR PATCH] [Updated] " AnInternetTroll
@ 2024-02-25 20:50 ` AnInternetTroll
2024-02-26 17:30 ` AnInternetTroll
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: AnInternetTroll @ 2024-02-25 20:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]
There is an updated pull request by AnInternetTroll against master on the void-packages repository
https://github.com/AnInternetTroll/void-packages user/luca/lua-unbound
https://github.com/void-linux/void-packages/pull/48919
prosody: update to 0.12.3.
- **New package: lua-unbound-1.0.0**
- **prosody: add lua51-unbound as a dependency**
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86\_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
Crossbuilt from x86\_64-glibc and tested on aarch64-musl
Fixes the following warning that shows up when using prosodyctl (any
command):
```
**************************
Prosody was unable to find lua-unbound
This package can be obtained in the following ways:
Debian/Ubuntu | sudo apt install lua-unbound
luarocks | luarocks install luaunbound
Source | https://www.zash.se/luaunbound.html
Old DNS resolver library will be used
More help can be found on our website, at https://prosody.im/doc/depends
**************************
```
Fixes the following deprecation as well:
| Option | Default | Notes |
|-----------|---------|------------------------------------------------------------------------------------------------------|
| daemonize | true | Whether to daemonize Prosody or not. DEPRECATED since 0.12, use command line flags -D or -F instead. |
A patch file from https://github.com/void-linux/void-packages/pull/48919.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/lua-unbound-48919.patch --]
[-- Type: text/x-diff, Size: 10048 bytes --]
From 031d4411aeb5a594c2b2aa53cb89c8a730d86ae4 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 22:06:20 +0100
Subject: [PATCH 1/3] New package: lua-unbound-1.0.0
---
srcpkgs/lua51-unbound | 1 +
srcpkgs/lua52-unbound | 1 +
srcpkgs/lua53-unbound | 1 +
srcpkgs/lua54-unbound/template | 83 ++++++++++++++++++++++++++++++++++
4 files changed, 86 insertions(+)
create mode 120000 srcpkgs/lua51-unbound
create mode 120000 srcpkgs/lua52-unbound
create mode 120000 srcpkgs/lua53-unbound
create mode 100644 srcpkgs/lua54-unbound/template
diff --git a/srcpkgs/lua51-unbound b/srcpkgs/lua51-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua51-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua52-unbound b/srcpkgs/lua52-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua52-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua53-unbound b/srcpkgs/lua53-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua53-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua54-unbound/template b/srcpkgs/lua54-unbound/template
new file mode 100644
index 00000000000000..4b6749be7307d1
--- /dev/null
+++ b/srcpkgs/lua54-unbound/template
@@ -0,0 +1,83 @@
+# Template file for 'lua54-unbound'
+pkgname=lua54-unbound
+version=1.0.0
+revision=1
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+hostmakedepends="pkg-config"
+makedepends="unbound-devel"
+for _lua_version in $_lua_versions
+do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
+depends="lua54"
+_desc="Binding to libunbound for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://www.zash.se/luaunbound.html"
+#changelog=""
+distfiles="https://code.zash.se/dl/luaunbound/luaunbound-${version}.tar.gz"
+checksum=6de45aa64c21cf0ecbccb734b7c1eda8873a6135bbe142fbf353f772a90750d3
+
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
+do_build() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUA_PC="${_lua_version}" \
+ ${makejobs}
+ done
+}
+
+do_install() {
+ cd ${wrksrc}/lua51
+ vinstall lunbound.so 755 usr/lib/lua/5.1/
+
+ cd ${wrksrc}/lua52
+ vinstall lunbound.so 755 usr/lib/lua/5.2/
+
+ cd ${wrksrc}/lua53
+ vinstall lunbound.so 755 usr/lib/lua/5.3/
+
+ cd ${wrksrc}/lua54
+ vinstall lunbound.so 755 usr/lib/lua/5.4/
+ vlicense LICENSE
+}
+
+lua51-unbound_package() {
+ depends="lua51"
+ short_desc="${_desc} (5.1.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.1
+ vlicense ${wrksrc}/lua51/LICENSE
+ }
+}
+
+lua52-unbound_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-unbound_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
From b6be6fb83d73e77196f02682f05a9e8d3ae07825 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:37 +0100
Subject: [PATCH 2/3] lua51-luasocket: update to lua54.
---
srcpkgs/lua51-luasocket/template | 83 +++++++++++++++++++++++++++++---
srcpkgs/lua52-luasocket | 1 +
srcpkgs/lua53-luasocket | 1 +
srcpkgs/lua54-luasocket | 1 +
4 files changed, 78 insertions(+), 8 deletions(-)
create mode 120000 srcpkgs/lua52-luasocket
create mode 120000 srcpkgs/lua53-luasocket
create mode 120000 srcpkgs/lua54-luasocket
diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 98bf69535d8399..2c1f03b9ba28ed 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,26 +1,66 @@
# Template file for 'lua51-luasocket'
pkgname=lua51-luasocket
version=3.1.0
-revision=1
+revision=2
build_style=gnu-makefile
-build_wrksrc=src
-makedepends="lua51-devel"
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions
+do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
depends="lua51"
-short_desc="Network support for the Lua language"
+_desc="Network support for the Lua language"
+short_desc="${_desc} (5.1.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://lunarmodules.github.io/luasocket/"
distfiles="https://github.com/lunarmodules/luasocket/archive/refs/tags/v3.1.0.tar.gz"
checksum=bf033aeb9e62bcaa8d007df68c119c966418e8c9ef7e4f2d7e96bddeca9cca6e
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
do_build() {
- make CC=$CC LD=$CC LUAINC=${XBPS_CROSS_BASE}/usr/include/lua5.1 \
- PLAT=linux LUAVER=5.1 \
- ${makejobs} all-unix
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
+ LUAVER="${_lua_version#???}" \
+ LUAV="${_lua_version#???}" \
+ PLAT=linux \
+ ${makejobs} \
+ all-unix
+ done
+}
+
+do_install() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ STRIP=true \
+ PREFIX=/usr \
+ prefix=/usr \
+ DESTDIR="${DESTDIR}" \
+ LUAVER="${_lua_version#???}" \
+ LUAV="${_lua_version#???}" \
+ LDIR_linux="lib/lua/${_lua_version#???}" \
+ PLAT=linux \
+ install
+ done
}
post_install() {
- vlicense ../LICENSE
+ vlicense ./lua51/LICENSE
}
luasocket_package() {
@@ -28,3 +68,30 @@ luasocket_package() {
short_desc+=" (transitional dummy package)"
build_style=meta
}
+
+lua52-luasocket_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-luasocket_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
+
+lua54-luasocket_package() {
+ depends="lua54"
+ short_desc="${_desc} (5.4.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.4
+ vlicense ${wrksrc}/lua54/LICENSE
+ }
+}
diff --git a/srcpkgs/lua52-luasocket b/srcpkgs/lua52-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua52-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua53-luasocket b/srcpkgs/lua53-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua53-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua54-luasocket b/srcpkgs/lua54-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua54-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
From 927a0bb2b6462d05e8e7d411ebaa71fec70e4edb Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:58 +0100
Subject: [PATCH 3/3] prosody: update to 0.12.3.
---
srcpkgs/prosody/files/prosody.cfg.lua | 1 -
srcpkgs/prosody/files/prosody/run | 2 +-
srcpkgs/prosody/template | 19 +++++++++----------
3 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/srcpkgs/prosody/files/prosody.cfg.lua b/srcpkgs/prosody/files/prosody.cfg.lua
index 4f0d2d1ba93a16..f0a961349d3f83 100644
--- a/srcpkgs/prosody/files/prosody.cfg.lua
+++ b/srcpkgs/prosody/files/prosody.cfg.lua
@@ -13,7 +13,6 @@
------ Void settings ------
-daemonize = false;
pidfile = "/run/prosody/prosody.pid"
---------- Server-wide settings ----------
diff --git a/srcpkgs/prosody/files/prosody/run b/srcpkgs/prosody/files/prosody/run
index e302e315d8676e..6425cdbb513fcb 100644
--- a/srcpkgs/prosody/files/prosody/run
+++ b/srcpkgs/prosody/files/prosody/run
@@ -2,4 +2,4 @@
exec 2>&1
mkdir -p /run/prosody
chown prosody:prosody /run/prosody
-exec chpst -u prosody:prosody prosody
+exec chpst -u prosody:prosody prosody --no-daemonize
diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index aa59bebadba329..080ea5ed1121ee 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,17 +1,17 @@
# Template file for 'prosody'
pkgname=prosody
-version=0.12.1
-revision=4
+version=0.12.3
+revision=1
build_style=configure
configure_args="
--ostype=linux
--prefix=/usr
--no-example-certs
- --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.1
+ --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.4
--with-lua=${XBPS_CROSS_BASE}/usr
- --lua-version=5.1
- --lua-suffix=5.1
- --runwith=lua5.1"
+ --lua-version=5.4
+ --lua-suffix=5.4
+ --runwith=lua5.4"
conf_files="
/etc/prosody/prosody.cfg.lua
/etc/prosody/certs/localhost.cnf
@@ -19,16 +19,15 @@ conf_files="
/etc/prosody/certs/makefile
/etc/prosody/certs/GNUmakefile"
make_dirs="/var/lib/prosody 0755 prosody prosody"
-makedepends="lua51-devel openssl-devel libidn-devel icu-devel"
-depends="lua51-luasocket lua51-luafilesystem lua51-luaexpat lua51-luasec
- lua51-BitOp"
+makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
+depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://prosody.im/"
changelog="https://prosody.im/doc/release/${version}"
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=a7ecbbe41f01a4251805593ac6d15dbc6cb75d9c7a876c76b456cf74ff4b90e5
+checksum=35da0d031ff46040a2d638e004d4255e249b6323fe6212db9ddd76b401db2101
system_accounts="prosody"
prosody_homedir="/var/lib/prosody"
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] prosody: update to 0.12.3.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
2024-02-25 20:35 ` [PR PATCH] [Updated] " AnInternetTroll
2024-02-25 20:50 ` [PR PATCH] [Updated] prosody: update to 0.12.3 AnInternetTroll
@ 2024-02-26 17:30 ` AnInternetTroll
2024-05-27 1:47 ` prosody: update to 0.12.4 github-actions
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: AnInternetTroll @ 2024-02-26 17:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]
There is an updated pull request by AnInternetTroll against master on the void-packages repository
https://github.com/AnInternetTroll/void-packages user/luca/lua-unbound
https://github.com/void-linux/void-packages/pull/48919
prosody: update to 0.12.3.
- **New package: lua-unbound-1.0.0**
- **prosody: add lua51-unbound as a dependency**
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86\_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
Crossbuilt from x86\_64-glibc and tested on aarch64-musl
Fixes the following warning that shows up when using prosodyctl (any
command):
```
**************************
Prosody was unable to find lua-unbound
This package can be obtained in the following ways:
Debian/Ubuntu | sudo apt install lua-unbound
luarocks | luarocks install luaunbound
Source | https://www.zash.se/luaunbound.html
Old DNS resolver library will be used
More help can be found on our website, at https://prosody.im/doc/depends
**************************
```
Fixes the following deprecation as well:
| Option | Default | Notes |
|-----------|---------|------------------------------------------------------------------------------------------------------|
| daemonize | true | Whether to daemonize Prosody or not. DEPRECATED since 0.12, use command line flags -D or -F instead. |
A patch file from https://github.com/void-linux/void-packages/pull/48919.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/lua-unbound-48919.patch --]
[-- Type: text/x-diff, Size: 10048 bytes --]
From 031d4411aeb5a594c2b2aa53cb89c8a730d86ae4 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 22:06:20 +0100
Subject: [PATCH 1/3] New package: lua-unbound-1.0.0
---
srcpkgs/lua51-unbound | 1 +
srcpkgs/lua52-unbound | 1 +
srcpkgs/lua53-unbound | 1 +
srcpkgs/lua54-unbound/template | 83 ++++++++++++++++++++++++++++++++++
4 files changed, 86 insertions(+)
create mode 120000 srcpkgs/lua51-unbound
create mode 120000 srcpkgs/lua52-unbound
create mode 120000 srcpkgs/lua53-unbound
create mode 100644 srcpkgs/lua54-unbound/template
diff --git a/srcpkgs/lua51-unbound b/srcpkgs/lua51-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua51-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua52-unbound b/srcpkgs/lua52-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua52-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua53-unbound b/srcpkgs/lua53-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua53-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua54-unbound/template b/srcpkgs/lua54-unbound/template
new file mode 100644
index 00000000000000..4b6749be7307d1
--- /dev/null
+++ b/srcpkgs/lua54-unbound/template
@@ -0,0 +1,83 @@
+# Template file for 'lua54-unbound'
+pkgname=lua54-unbound
+version=1.0.0
+revision=1
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+hostmakedepends="pkg-config"
+makedepends="unbound-devel"
+for _lua_version in $_lua_versions
+do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
+depends="lua54"
+_desc="Binding to libunbound for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://www.zash.se/luaunbound.html"
+#changelog=""
+distfiles="https://code.zash.se/dl/luaunbound/luaunbound-${version}.tar.gz"
+checksum=6de45aa64c21cf0ecbccb734b7c1eda8873a6135bbe142fbf353f772a90750d3
+
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
+do_build() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUA_PC="${_lua_version}" \
+ ${makejobs}
+ done
+}
+
+do_install() {
+ cd ${wrksrc}/lua51
+ vinstall lunbound.so 755 usr/lib/lua/5.1/
+
+ cd ${wrksrc}/lua52
+ vinstall lunbound.so 755 usr/lib/lua/5.2/
+
+ cd ${wrksrc}/lua53
+ vinstall lunbound.so 755 usr/lib/lua/5.3/
+
+ cd ${wrksrc}/lua54
+ vinstall lunbound.so 755 usr/lib/lua/5.4/
+ vlicense LICENSE
+}
+
+lua51-unbound_package() {
+ depends="lua51"
+ short_desc="${_desc} (5.1.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.1
+ vlicense ${wrksrc}/lua51/LICENSE
+ }
+}
+
+lua52-unbound_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-unbound_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
From b6be6fb83d73e77196f02682f05a9e8d3ae07825 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:37 +0100
Subject: [PATCH 2/3] lua51-luasocket: update to lua54.
---
srcpkgs/lua51-luasocket/template | 83 +++++++++++++++++++++++++++++---
srcpkgs/lua52-luasocket | 1 +
srcpkgs/lua53-luasocket | 1 +
srcpkgs/lua54-luasocket | 1 +
4 files changed, 78 insertions(+), 8 deletions(-)
create mode 120000 srcpkgs/lua52-luasocket
create mode 120000 srcpkgs/lua53-luasocket
create mode 120000 srcpkgs/lua54-luasocket
diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 98bf69535d8399..2c1f03b9ba28ed 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,26 +1,66 @@
# Template file for 'lua51-luasocket'
pkgname=lua51-luasocket
version=3.1.0
-revision=1
+revision=2
build_style=gnu-makefile
-build_wrksrc=src
-makedepends="lua51-devel"
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions
+do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
depends="lua51"
-short_desc="Network support for the Lua language"
+_desc="Network support for the Lua language"
+short_desc="${_desc} (5.1.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://lunarmodules.github.io/luasocket/"
distfiles="https://github.com/lunarmodules/luasocket/archive/refs/tags/v3.1.0.tar.gz"
checksum=bf033aeb9e62bcaa8d007df68c119c966418e8c9ef7e4f2d7e96bddeca9cca6e
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
do_build() {
- make CC=$CC LD=$CC LUAINC=${XBPS_CROSS_BASE}/usr/include/lua5.1 \
- PLAT=linux LUAVER=5.1 \
- ${makejobs} all-unix
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
+ LUAVER="${_lua_version#???}" \
+ LUAV="${_lua_version#???}" \
+ PLAT=linux \
+ ${makejobs} \
+ all-unix
+ done
+}
+
+do_install() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ STRIP=true \
+ PREFIX=/usr \
+ prefix=/usr \
+ DESTDIR="${DESTDIR}" \
+ LUAVER="${_lua_version#???}" \
+ LUAV="${_lua_version#???}" \
+ LDIR_linux="lib/lua/${_lua_version#???}" \
+ PLAT=linux \
+ install
+ done
}
post_install() {
- vlicense ../LICENSE
+ vlicense ./lua51/LICENSE
}
luasocket_package() {
@@ -28,3 +68,30 @@ luasocket_package() {
short_desc+=" (transitional dummy package)"
build_style=meta
}
+
+lua52-luasocket_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-luasocket_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
+
+lua54-luasocket_package() {
+ depends="lua54"
+ short_desc="${_desc} (5.4.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.4
+ vlicense ${wrksrc}/lua54/LICENSE
+ }
+}
diff --git a/srcpkgs/lua52-luasocket b/srcpkgs/lua52-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua52-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua53-luasocket b/srcpkgs/lua53-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua53-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua54-luasocket b/srcpkgs/lua54-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua54-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
From 77a8b29f5782b68ba5194f8736d5a11c118b7c4e Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:58 +0100
Subject: [PATCH 3/3] prosody: update to 0.12.4.
---
srcpkgs/prosody/files/prosody.cfg.lua | 1 -
srcpkgs/prosody/files/prosody/run | 2 +-
srcpkgs/prosody/template | 19 +++++++++----------
3 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/srcpkgs/prosody/files/prosody.cfg.lua b/srcpkgs/prosody/files/prosody.cfg.lua
index 4f0d2d1ba93a16..f0a961349d3f83 100644
--- a/srcpkgs/prosody/files/prosody.cfg.lua
+++ b/srcpkgs/prosody/files/prosody.cfg.lua
@@ -13,7 +13,6 @@
------ Void settings ------
-daemonize = false;
pidfile = "/run/prosody/prosody.pid"
---------- Server-wide settings ----------
diff --git a/srcpkgs/prosody/files/prosody/run b/srcpkgs/prosody/files/prosody/run
index e302e315d8676e..6425cdbb513fcb 100644
--- a/srcpkgs/prosody/files/prosody/run
+++ b/srcpkgs/prosody/files/prosody/run
@@ -2,4 +2,4 @@
exec 2>&1
mkdir -p /run/prosody
chown prosody:prosody /run/prosody
-exec chpst -u prosody:prosody prosody
+exec chpst -u prosody:prosody prosody --no-daemonize
diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index aa59bebadba329..261ca776c1f36b 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,17 +1,17 @@
# Template file for 'prosody'
pkgname=prosody
-version=0.12.1
-revision=4
+version=0.12.4
+revision=1
build_style=configure
configure_args="
--ostype=linux
--prefix=/usr
--no-example-certs
- --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.1
+ --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.4
--with-lua=${XBPS_CROSS_BASE}/usr
- --lua-version=5.1
- --lua-suffix=5.1
- --runwith=lua5.1"
+ --lua-version=5.4
+ --lua-suffix=5.4
+ --runwith=lua5.4"
conf_files="
/etc/prosody/prosody.cfg.lua
/etc/prosody/certs/localhost.cnf
@@ -19,16 +19,15 @@ conf_files="
/etc/prosody/certs/makefile
/etc/prosody/certs/GNUmakefile"
make_dirs="/var/lib/prosody 0755 prosody prosody"
-makedepends="lua51-devel openssl-devel libidn-devel icu-devel"
-depends="lua51-luasocket lua51-luafilesystem lua51-luaexpat lua51-luasec
- lua51-BitOp"
+makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
+depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://prosody.im/"
changelog="https://prosody.im/doc/release/${version}"
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=a7ecbbe41f01a4251805593ac6d15dbc6cb75d9c7a876c76b456cf74ff4b90e5
+checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
system_accounts="prosody"
prosody_homedir="/var/lib/prosody"
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: prosody: update to 0.12.4.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
` (2 preceding siblings ...)
2024-02-26 17:30 ` AnInternetTroll
@ 2024-05-27 1:47 ` github-actions
2024-05-27 15:15 ` [PR PATCH] [Updated] " AnInternetTroll
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: github-actions @ 2024-05-27 1:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/48919#issuecomment-2132504654
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] prosody: update to 0.12.4.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
` (3 preceding siblings ...)
2024-05-27 1:47 ` prosody: update to 0.12.4 github-actions
@ 2024-05-27 15:15 ` AnInternetTroll
2024-05-27 15:32 ` AnInternetTroll
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: AnInternetTroll @ 2024-05-27 15:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]
There is an updated pull request by AnInternetTroll against master on the void-packages repository
https://github.com/AnInternetTroll/void-packages user/luca/lua-unbound
https://github.com/void-linux/void-packages/pull/48919
prosody: update to 0.12.4.
- **New package: lua-unbound-1.0.0**
- **prosody: add lua51-unbound as a dependency**
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86\_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
Crossbuilt from x86\_64-glibc and tested on aarch64-musl
Fixes the following warning that shows up when using prosodyctl (any
command):
```
**************************
Prosody was unable to find lua-unbound
This package can be obtained in the following ways:
Debian/Ubuntu | sudo apt install lua-unbound
luarocks | luarocks install luaunbound
Source | https://www.zash.se/luaunbound.html
Old DNS resolver library will be used
More help can be found on our website, at https://prosody.im/doc/depends
**************************
```
Fixes the following deprecation as well:
| Option | Default | Notes |
|-----------|---------|------------------------------------------------------------------------------------------------------|
| daemonize | true | Whether to daemonize Prosody or not. DEPRECATED since 0.12, use command line flags -D or -F instead. |
A patch file from https://github.com/void-linux/void-packages/pull/48919.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/lua-unbound-48919.patch --]
[-- Type: text/x-diff, Size: 10033 bytes --]
From beb4398b5182d2296e52282a5c9a606f1dbe8814 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 22:06:20 +0100
Subject: [PATCH 1/3] New package: lua-unbound-1.0.0
---
srcpkgs/lua51-unbound | 1 +
srcpkgs/lua52-unbound | 1 +
srcpkgs/lua53-unbound | 1 +
srcpkgs/lua54-unbound/template | 81 ++++++++++++++++++++++++++++++++++
4 files changed, 84 insertions(+)
create mode 120000 srcpkgs/lua51-unbound
create mode 120000 srcpkgs/lua52-unbound
create mode 120000 srcpkgs/lua53-unbound
create mode 100644 srcpkgs/lua54-unbound/template
diff --git a/srcpkgs/lua51-unbound b/srcpkgs/lua51-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua51-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua52-unbound b/srcpkgs/lua52-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua52-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua53-unbound b/srcpkgs/lua53-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua53-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua54-unbound/template b/srcpkgs/lua54-unbound/template
new file mode 100644
index 00000000000000..873fcf05868bab
--- /dev/null
+++ b/srcpkgs/lua54-unbound/template
@@ -0,0 +1,81 @@
+# Template file for 'lua54-unbound'
+pkgname=lua54-unbound
+version=1.0.0
+revision=1
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+hostmakedepends="pkg-config"
+makedepends="unbound-devel"
+for _lua_version in $_lua_versions; do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
+depends="lua54"
+_desc="Binding to libunbound for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://www.zash.se/luaunbound.html"
+distfiles="https://code.zash.se/dl/luaunbound/luaunbound-${version}.tar.gz"
+checksum=6de45aa64c21cf0ecbccb734b7c1eda8873a6135bbe142fbf353f772a90750d3
+
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
+do_build() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUA_PC="${_lua_version}" \
+ ${makejobs}
+ done
+}
+
+do_install() {
+ cd ${wrksrc}/lua51
+ vinstall lunbound.so 755 usr/lib/lua/5.1/
+
+ cd ${wrksrc}/lua52
+ vinstall lunbound.so 755 usr/lib/lua/5.2/
+
+ cd ${wrksrc}/lua53
+ vinstall lunbound.so 755 usr/lib/lua/5.3/
+
+ cd ${wrksrc}/lua54
+ vinstall lunbound.so 755 usr/lib/lua/5.4/
+ vlicense LICENSE
+}
+
+lua51-unbound_package() {
+ depends="lua51"
+ short_desc="${_desc} (5.1.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.1
+ vlicense ${wrksrc}/lua51/LICENSE
+ }
+}
+
+lua52-unbound_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-unbound_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
From 686437ca7a7b78b9ecf8a4866cf8a6fc1b8e39ed Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:37 +0100
Subject: [PATCH 2/3] lua51-luasocket: update to lua54.
---
srcpkgs/lua51-luasocket/template | 82 ++++++++++++++++++++++++++++----
srcpkgs/lua52-luasocket | 1 +
srcpkgs/lua53-luasocket | 1 +
srcpkgs/lua54-luasocket | 1 +
4 files changed, 77 insertions(+), 8 deletions(-)
create mode 120000 srcpkgs/lua52-luasocket
create mode 120000 srcpkgs/lua53-luasocket
create mode 120000 srcpkgs/lua54-luasocket
diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 98bf69535d8399..50f691b760ab9c 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,26 +1,65 @@
# Template file for 'lua51-luasocket'
pkgname=lua51-luasocket
version=3.1.0
-revision=1
+revision=2
build_style=gnu-makefile
-build_wrksrc=src
-makedepends="lua51-devel"
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
depends="lua51"
-short_desc="Network support for the Lua language"
+_desc="Network support for the Lua language"
+short_desc="${_desc} (5.1.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://lunarmodules.github.io/luasocket/"
distfiles="https://github.com/lunarmodules/luasocket/archive/refs/tags/v3.1.0.tar.gz"
checksum=bf033aeb9e62bcaa8d007df68c119c966418e8c9ef7e4f2d7e96bddeca9cca6e
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
do_build() {
- make CC=$CC LD=$CC LUAINC=${XBPS_CROSS_BASE}/usr/include/lua5.1 \
- PLAT=linux LUAVER=5.1 \
- ${makejobs} all-unix
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
+ LUAVER="${_lua_version#lua}" \
+ LUAV="${_lua_version#lua}" \
+ PLAT=linux \
+ ${makejobs} \
+ all-unix
+ done
+}
+
+do_install() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ STRIP=true \
+ PREFIX=/usr \
+ prefix=/usr \
+ DESTDIR="${DESTDIR}" \
+ LUAVER="${_lua_version#lua}" \
+ LUAV="${_lua_version#lua}" \
+ LDIR_linux="lib/lua/${_lua_version#lua}" \
+ PLAT=linux \
+ install
+ done
}
post_install() {
- vlicense ../LICENSE
+ vlicense ./lua51/LICENSE
}
luasocket_package() {
@@ -28,3 +67,30 @@ luasocket_package() {
short_desc+=" (transitional dummy package)"
build_style=meta
}
+
+lua52-luasocket_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-luasocket_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
+
+lua54-luasocket_package() {
+ depends="lua54"
+ short_desc="${_desc} (5.4.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.4
+ vlicense ${wrksrc}/lua54/LICENSE
+ }
+}
diff --git a/srcpkgs/lua52-luasocket b/srcpkgs/lua52-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua52-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua53-luasocket b/srcpkgs/lua53-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua53-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua54-luasocket b/srcpkgs/lua54-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua54-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
From ab91927639ecd9deb98880b46c98365de7db6237 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:58 +0100
Subject: [PATCH 3/3] prosody: update to 0.12.4.
---
srcpkgs/prosody/files/prosody.cfg.lua | 1 -
srcpkgs/prosody/files/prosody/run | 2 +-
srcpkgs/prosody/template | 19 +++++++++----------
3 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/srcpkgs/prosody/files/prosody.cfg.lua b/srcpkgs/prosody/files/prosody.cfg.lua
index 4f0d2d1ba93a16..f0a961349d3f83 100644
--- a/srcpkgs/prosody/files/prosody.cfg.lua
+++ b/srcpkgs/prosody/files/prosody.cfg.lua
@@ -13,7 +13,6 @@
------ Void settings ------
-daemonize = false;
pidfile = "/run/prosody/prosody.pid"
---------- Server-wide settings ----------
diff --git a/srcpkgs/prosody/files/prosody/run b/srcpkgs/prosody/files/prosody/run
index e302e315d8676e..6425cdbb513fcb 100644
--- a/srcpkgs/prosody/files/prosody/run
+++ b/srcpkgs/prosody/files/prosody/run
@@ -2,4 +2,4 @@
exec 2>&1
mkdir -p /run/prosody
chown prosody:prosody /run/prosody
-exec chpst -u prosody:prosody prosody
+exec chpst -u prosody:prosody prosody --no-daemonize
diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index aa59bebadba329..261ca776c1f36b 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,17 +1,17 @@
# Template file for 'prosody'
pkgname=prosody
-version=0.12.1
-revision=4
+version=0.12.4
+revision=1
build_style=configure
configure_args="
--ostype=linux
--prefix=/usr
--no-example-certs
- --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.1
+ --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.4
--with-lua=${XBPS_CROSS_BASE}/usr
- --lua-version=5.1
- --lua-suffix=5.1
- --runwith=lua5.1"
+ --lua-version=5.4
+ --lua-suffix=5.4
+ --runwith=lua5.4"
conf_files="
/etc/prosody/prosody.cfg.lua
/etc/prosody/certs/localhost.cnf
@@ -19,16 +19,15 @@ conf_files="
/etc/prosody/certs/makefile
/etc/prosody/certs/GNUmakefile"
make_dirs="/var/lib/prosody 0755 prosody prosody"
-makedepends="lua51-devel openssl-devel libidn-devel icu-devel"
-depends="lua51-luasocket lua51-luafilesystem lua51-luaexpat lua51-luasec
- lua51-BitOp"
+makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
+depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://prosody.im/"
changelog="https://prosody.im/doc/release/${version}"
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=a7ecbbe41f01a4251805593ac6d15dbc6cb75d9c7a876c76b456cf74ff4b90e5
+checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
system_accounts="prosody"
prosody_homedir="/var/lib/prosody"
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] prosody: update to 0.12.4.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
` (4 preceding siblings ...)
2024-05-27 15:15 ` [PR PATCH] [Updated] " AnInternetTroll
@ 2024-05-27 15:32 ` AnInternetTroll
2024-05-27 15:43 ` AnInternetTroll
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: AnInternetTroll @ 2024-05-27 15:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]
There is an updated pull request by AnInternetTroll against master on the void-packages repository
https://github.com/AnInternetTroll/void-packages user/luca/lua-unbound
https://github.com/void-linux/void-packages/pull/48919
prosody: update to 0.12.4.
- **New package: lua-unbound-1.0.0**
- **prosody: add lua51-unbound as a dependency**
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86\_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
Crossbuilt from x86\_64-glibc and tested on aarch64-musl
Fixes the following warning that shows up when using prosodyctl (any
command):
```
**************************
Prosody was unable to find lua-unbound
This package can be obtained in the following ways:
Debian/Ubuntu | sudo apt install lua-unbound
luarocks | luarocks install luaunbound
Source | https://www.zash.se/luaunbound.html
Old DNS resolver library will be used
More help can be found on our website, at https://prosody.im/doc/depends
**************************
```
Fixes the following deprecation as well:
| Option | Default | Notes |
|-----------|---------|------------------------------------------------------------------------------------------------------|
| daemonize | true | Whether to daemonize Prosody or not. DEPRECATED since 0.12, use command line flags -D or -F instead. |
A patch file from https://github.com/void-linux/void-packages/pull/48919.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/lua-unbound-48919.patch --]
[-- Type: text/x-diff, Size: 10129 bytes --]
From 888a08a3d629d6d9d0f408c5a416c352fece5cc3 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 22:06:20 +0100
Subject: [PATCH 1/3] New package: lua-unbound-1.0.0
---
srcpkgs/lua51-unbound | 1 +
srcpkgs/lua52-unbound | 1 +
srcpkgs/lua53-unbound | 1 +
srcpkgs/lua54-unbound/template | 82 ++++++++++++++++++++++++++++++++++
4 files changed, 85 insertions(+)
create mode 120000 srcpkgs/lua51-unbound
create mode 120000 srcpkgs/lua52-unbound
create mode 120000 srcpkgs/lua53-unbound
create mode 100644 srcpkgs/lua54-unbound/template
diff --git a/srcpkgs/lua51-unbound b/srcpkgs/lua51-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua51-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua52-unbound b/srcpkgs/lua52-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua52-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua53-unbound b/srcpkgs/lua53-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua53-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua54-unbound/template b/srcpkgs/lua54-unbound/template
new file mode 100644
index 00000000000000..cae52b6e25d685
--- /dev/null
+++ b/srcpkgs/lua54-unbound/template
@@ -0,0 +1,82 @@
+# Template file for 'lua54-unbound'
+pkgname=lua54-unbound
+version=1.0.0
+revision=1
+hostmakedepends="pkg-config"
+makedepends="unbound-devel"
+depends="lua54"
+_desc="Binding to libunbound for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://www.zash.se/luaunbound.html"
+distfiles="https://code.zash.se/dl/luaunbound/luaunbound-${version}.tar.gz"
+checksum=6de45aa64c21cf0ecbccb734b7c1eda8873a6135bbe142fbf353f772a90750d3
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
+
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
+do_build() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUA_PC="${_lua_version}" \
+ ${makejobs}
+ done
+}
+
+do_install() {
+ cd ${wrksrc}/lua51
+ vinstall lunbound.so 755 usr/lib/lua/5.1/
+
+ cd ${wrksrc}/lua52
+ vinstall lunbound.so 755 usr/lib/lua/5.2/
+
+ cd ${wrksrc}/lua53
+ vinstall lunbound.so 755 usr/lib/lua/5.3/
+
+ cd ${wrksrc}/lua54
+ vinstall lunbound.so 755 usr/lib/lua/5.4/
+ vlicense LICENSE
+}
+
+lua51-unbound_package() {
+ depends="lua51"
+ short_desc="${_desc} (5.1.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.1
+ vlicense ${wrksrc}/lua51/LICENSE
+ }
+}
+
+lua52-unbound_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-unbound_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
From eca09a0c22c99facbca5870155b22cb6f96d187c Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:37 +0100
Subject: [PATCH 2/3] lua51-luasocket: update to lua54.
---
srcpkgs/lua51-luasocket/template | 85 ++++++++++++++++++++++++++++----
srcpkgs/lua52-luasocket | 1 +
srcpkgs/lua53-luasocket | 1 +
srcpkgs/lua54-luasocket | 1 +
4 files changed, 79 insertions(+), 9 deletions(-)
create mode 120000 srcpkgs/lua52-luasocket
create mode 120000 srcpkgs/lua53-luasocket
create mode 120000 srcpkgs/lua54-luasocket
diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 98bf69535d8399..83f1d8476a96af 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,26 +1,66 @@
# Template file for 'lua51-luasocket'
pkgname=lua51-luasocket
version=3.1.0
-revision=1
+revision=2
build_style=gnu-makefile
-build_wrksrc=src
-makedepends="lua51-devel"
depends="lua51"
-short_desc="Network support for the Lua language"
+_desc="Network support for the Lua language"
+short_desc="${_desc} (5.1.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://lunarmodules.github.io/luasocket/"
-distfiles="https://github.com/lunarmodules/luasocket/archive/refs/tags/v3.1.0.tar.gz"
+distfiles="https://github.com/lunarmodules/luasocket/archive/refs/tags/v${version}.tar.gz"
checksum=bf033aeb9e62bcaa8d007df68c119c966418e8c9ef7e4f2d7e96bddeca9cca6e
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
+
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
do_build() {
- make CC=$CC LD=$CC LUAINC=${XBPS_CROSS_BASE}/usr/include/lua5.1 \
- PLAT=linux LUAVER=5.1 \
- ${makejobs} all-unix
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
+ LUAVER="${_lua_version#lua}" \
+ LUAV="${_lua_version#lua}" \
+ PLAT=linux \
+ ${makejobs} \
+ all-unix
+ done
+}
+
+do_install() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ STRIP=true \
+ PREFIX=/usr \
+ prefix=/usr \
+ DESTDIR="${DESTDIR}" \
+ LUAVER="${_lua_version#lua}" \
+ LUAV="${_lua_version#lua}" \
+ LDIR_linux="lib/lua/${_lua_version#lua}" \
+ PLAT=linux \
+ install
+ done
}
post_install() {
- vlicense ../LICENSE
+ vlicense ./lua51/LICENSE
}
luasocket_package() {
@@ -28,3 +68,30 @@ luasocket_package() {
short_desc+=" (transitional dummy package)"
build_style=meta
}
+
+lua52-luasocket_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-luasocket_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
+
+lua54-luasocket_package() {
+ depends="lua54"
+ short_desc="${_desc} (5.4.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.4
+ vlicense ${wrksrc}/lua54/LICENSE
+ }
+}
diff --git a/srcpkgs/lua52-luasocket b/srcpkgs/lua52-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua52-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua53-luasocket b/srcpkgs/lua53-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua53-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua54-luasocket b/srcpkgs/lua54-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua54-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
From 0248bb939b0d6dbb4c8e085f0682af44d4172afe Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:58 +0100
Subject: [PATCH 3/3] prosody: update to 0.12.4.
---
srcpkgs/prosody/files/prosody.cfg.lua | 1 -
srcpkgs/prosody/files/prosody/run | 2 +-
srcpkgs/prosody/template | 19 +++++++++----------
3 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/srcpkgs/prosody/files/prosody.cfg.lua b/srcpkgs/prosody/files/prosody.cfg.lua
index 4f0d2d1ba93a16..f0a961349d3f83 100644
--- a/srcpkgs/prosody/files/prosody.cfg.lua
+++ b/srcpkgs/prosody/files/prosody.cfg.lua
@@ -13,7 +13,6 @@
------ Void settings ------
-daemonize = false;
pidfile = "/run/prosody/prosody.pid"
---------- Server-wide settings ----------
diff --git a/srcpkgs/prosody/files/prosody/run b/srcpkgs/prosody/files/prosody/run
index e302e315d8676e..6425cdbb513fcb 100644
--- a/srcpkgs/prosody/files/prosody/run
+++ b/srcpkgs/prosody/files/prosody/run
@@ -2,4 +2,4 @@
exec 2>&1
mkdir -p /run/prosody
chown prosody:prosody /run/prosody
-exec chpst -u prosody:prosody prosody
+exec chpst -u prosody:prosody prosody --no-daemonize
diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index aa59bebadba329..261ca776c1f36b 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,17 +1,17 @@
# Template file for 'prosody'
pkgname=prosody
-version=0.12.1
-revision=4
+version=0.12.4
+revision=1
build_style=configure
configure_args="
--ostype=linux
--prefix=/usr
--no-example-certs
- --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.1
+ --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.4
--with-lua=${XBPS_CROSS_BASE}/usr
- --lua-version=5.1
- --lua-suffix=5.1
- --runwith=lua5.1"
+ --lua-version=5.4
+ --lua-suffix=5.4
+ --runwith=lua5.4"
conf_files="
/etc/prosody/prosody.cfg.lua
/etc/prosody/certs/localhost.cnf
@@ -19,16 +19,15 @@ conf_files="
/etc/prosody/certs/makefile
/etc/prosody/certs/GNUmakefile"
make_dirs="/var/lib/prosody 0755 prosody prosody"
-makedepends="lua51-devel openssl-devel libidn-devel icu-devel"
-depends="lua51-luasocket lua51-luafilesystem lua51-luaexpat lua51-luasec
- lua51-BitOp"
+makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
+depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://prosody.im/"
changelog="https://prosody.im/doc/release/${version}"
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=a7ecbbe41f01a4251805593ac6d15dbc6cb75d9c7a876c76b456cf74ff4b90e5
+checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
system_accounts="prosody"
prosody_homedir="/var/lib/prosody"
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] prosody: update to 0.12.4.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
` (5 preceding siblings ...)
2024-05-27 15:32 ` AnInternetTroll
@ 2024-05-27 15:43 ` AnInternetTroll
2024-05-27 15:48 ` [PR REVIEW] " classabbyamp
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: AnInternetTroll @ 2024-05-27 15:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]
There is an updated pull request by AnInternetTroll against master on the void-packages repository
https://github.com/AnInternetTroll/void-packages user/luca/lua-unbound
https://github.com/void-linux/void-packages/pull/48919
prosody: update to 0.12.4.
- **New package: lua-unbound-1.0.0**
- **prosody: add lua51-unbound as a dependency**
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86\_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
Crossbuilt from x86\_64-glibc and tested on aarch64-musl
Fixes the following warning that shows up when using prosodyctl (any
command):
```
**************************
Prosody was unable to find lua-unbound
This package can be obtained in the following ways:
Debian/Ubuntu | sudo apt install lua-unbound
luarocks | luarocks install luaunbound
Source | https://www.zash.se/luaunbound.html
Old DNS resolver library will be used
More help can be found on our website, at https://prosody.im/doc/depends
**************************
```
Fixes the following deprecation as well:
| Option | Default | Notes |
|-----------|---------|------------------------------------------------------------------------------------------------------|
| daemonize | true | Whether to daemonize Prosody or not. DEPRECATED since 0.12, use command line flags -D or -F instead. |
A patch file from https://github.com/void-linux/void-packages/pull/48919.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/lua-unbound-48919.patch --]
[-- Type: text/x-diff, Size: 10509 bytes --]
From 7450d590994ea536cf141c914f619e98ed82fa02 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 22:06:20 +0100
Subject: [PATCH 1/3] New package: lua-unbound-1.0.0
---
srcpkgs/lua51-unbound | 1 +
srcpkgs/lua52-unbound | 1 +
srcpkgs/lua53-unbound | 1 +
srcpkgs/lua54-unbound/template | 82 ++++++++++++++++++++++++++++++++++
srcpkgs/lua54-unbound/update | 2 +
5 files changed, 87 insertions(+)
create mode 120000 srcpkgs/lua51-unbound
create mode 120000 srcpkgs/lua52-unbound
create mode 120000 srcpkgs/lua53-unbound
create mode 100644 srcpkgs/lua54-unbound/template
create mode 100644 srcpkgs/lua54-unbound/update
diff --git a/srcpkgs/lua51-unbound b/srcpkgs/lua51-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua51-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua52-unbound b/srcpkgs/lua52-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua52-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua53-unbound b/srcpkgs/lua53-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua53-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua54-unbound/template b/srcpkgs/lua54-unbound/template
new file mode 100644
index 00000000000000..cae52b6e25d685
--- /dev/null
+++ b/srcpkgs/lua54-unbound/template
@@ -0,0 +1,82 @@
+# Template file for 'lua54-unbound'
+pkgname=lua54-unbound
+version=1.0.0
+revision=1
+hostmakedepends="pkg-config"
+makedepends="unbound-devel"
+depends="lua54"
+_desc="Binding to libunbound for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://www.zash.se/luaunbound.html"
+distfiles="https://code.zash.se/dl/luaunbound/luaunbound-${version}.tar.gz"
+checksum=6de45aa64c21cf0ecbccb734b7c1eda8873a6135bbe142fbf353f772a90750d3
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
+
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
+do_build() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUA_PC="${_lua_version}" \
+ ${makejobs}
+ done
+}
+
+do_install() {
+ cd ${wrksrc}/lua51
+ vinstall lunbound.so 755 usr/lib/lua/5.1/
+
+ cd ${wrksrc}/lua52
+ vinstall lunbound.so 755 usr/lib/lua/5.2/
+
+ cd ${wrksrc}/lua53
+ vinstall lunbound.so 755 usr/lib/lua/5.3/
+
+ cd ${wrksrc}/lua54
+ vinstall lunbound.so 755 usr/lib/lua/5.4/
+ vlicense LICENSE
+}
+
+lua51-unbound_package() {
+ depends="lua51"
+ short_desc="${_desc} (5.1.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.1
+ vlicense ${wrksrc}/lua51/LICENSE
+ }
+}
+
+lua52-unbound_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-unbound_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
diff --git a/srcpkgs/lua54-unbound/update b/srcpkgs/lua54-unbound/update
new file mode 100644
index 00000000000000..5a8b09019f8dbb
--- /dev/null
+++ b/srcpkgs/lua54-unbound/update
@@ -0,0 +1,2 @@
+site="https://code.zash.se/luaunbound/tags"
+pattern='<a href="/luaunbound/rev/\K[\d.]+(?=">)'
From a734bb0c994635cf4f2b66f85ff5d987de07dd1d Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:37 +0100
Subject: [PATCH 2/3] lua51-luasocket: update to lua54.
---
srcpkgs/lua51-luasocket/template | 85 ++++++++++++++++++++++++++++----
srcpkgs/lua52-luasocket | 1 +
srcpkgs/lua53-luasocket | 1 +
srcpkgs/lua54-luasocket | 1 +
4 files changed, 79 insertions(+), 9 deletions(-)
create mode 120000 srcpkgs/lua52-luasocket
create mode 120000 srcpkgs/lua53-luasocket
create mode 120000 srcpkgs/lua54-luasocket
diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 98bf69535d8399..83f1d8476a96af 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,26 +1,66 @@
# Template file for 'lua51-luasocket'
pkgname=lua51-luasocket
version=3.1.0
-revision=1
+revision=2
build_style=gnu-makefile
-build_wrksrc=src
-makedepends="lua51-devel"
depends="lua51"
-short_desc="Network support for the Lua language"
+_desc="Network support for the Lua language"
+short_desc="${_desc} (5.1.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://lunarmodules.github.io/luasocket/"
-distfiles="https://github.com/lunarmodules/luasocket/archive/refs/tags/v3.1.0.tar.gz"
+distfiles="https://github.com/lunarmodules/luasocket/archive/refs/tags/v${version}.tar.gz"
checksum=bf033aeb9e62bcaa8d007df68c119c966418e8c9ef7e4f2d7e96bddeca9cca6e
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
+
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
do_build() {
- make CC=$CC LD=$CC LUAINC=${XBPS_CROSS_BASE}/usr/include/lua5.1 \
- PLAT=linux LUAVER=5.1 \
- ${makejobs} all-unix
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
+ LUAVER="${_lua_version#lua}" \
+ LUAV="${_lua_version#lua}" \
+ PLAT=linux \
+ ${makejobs} \
+ all-unix
+ done
+}
+
+do_install() {
+ for _lua_version in $_lua_versions
+ do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ STRIP=true \
+ PREFIX=/usr \
+ prefix=/usr \
+ DESTDIR="${DESTDIR}" \
+ LUAVER="${_lua_version#lua}" \
+ LUAV="${_lua_version#lua}" \
+ LDIR_linux="lib/lua/${_lua_version#lua}" \
+ PLAT=linux \
+ install
+ done
}
post_install() {
- vlicense ../LICENSE
+ vlicense ./lua51/LICENSE
}
luasocket_package() {
@@ -28,3 +68,30 @@ luasocket_package() {
short_desc+=" (transitional dummy package)"
build_style=meta
}
+
+lua52-luasocket_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-luasocket_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
+
+lua54-luasocket_package() {
+ depends="lua54"
+ short_desc="${_desc} (5.4.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.4
+ vlicense ${wrksrc}/lua54/LICENSE
+ }
+}
diff --git a/srcpkgs/lua52-luasocket b/srcpkgs/lua52-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua52-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua53-luasocket b/srcpkgs/lua53-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua53-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua54-luasocket b/srcpkgs/lua54-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua54-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
From f5a7e49021c57b30bf57548da5e06e20618044bd Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:58 +0100
Subject: [PATCH 3/3] prosody: update to 0.12.4.
---
srcpkgs/prosody/files/prosody.cfg.lua | 1 -
srcpkgs/prosody/files/prosody/run | 2 +-
srcpkgs/prosody/template | 19 +++++++++----------
3 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/srcpkgs/prosody/files/prosody.cfg.lua b/srcpkgs/prosody/files/prosody.cfg.lua
index 4f0d2d1ba93a16..f0a961349d3f83 100644
--- a/srcpkgs/prosody/files/prosody.cfg.lua
+++ b/srcpkgs/prosody/files/prosody.cfg.lua
@@ -13,7 +13,6 @@
------ Void settings ------
-daemonize = false;
pidfile = "/run/prosody/prosody.pid"
---------- Server-wide settings ----------
diff --git a/srcpkgs/prosody/files/prosody/run b/srcpkgs/prosody/files/prosody/run
index e302e315d8676e..6425cdbb513fcb 100644
--- a/srcpkgs/prosody/files/prosody/run
+++ b/srcpkgs/prosody/files/prosody/run
@@ -2,4 +2,4 @@
exec 2>&1
mkdir -p /run/prosody
chown prosody:prosody /run/prosody
-exec chpst -u prosody:prosody prosody
+exec chpst -u prosody:prosody prosody --no-daemonize
diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index aa59bebadba329..261ca776c1f36b 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,17 +1,17 @@
# Template file for 'prosody'
pkgname=prosody
-version=0.12.1
-revision=4
+version=0.12.4
+revision=1
build_style=configure
configure_args="
--ostype=linux
--prefix=/usr
--no-example-certs
- --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.1
+ --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.4
--with-lua=${XBPS_CROSS_BASE}/usr
- --lua-version=5.1
- --lua-suffix=5.1
- --runwith=lua5.1"
+ --lua-version=5.4
+ --lua-suffix=5.4
+ --runwith=lua5.4"
conf_files="
/etc/prosody/prosody.cfg.lua
/etc/prosody/certs/localhost.cnf
@@ -19,16 +19,15 @@ conf_files="
/etc/prosody/certs/makefile
/etc/prosody/certs/GNUmakefile"
make_dirs="/var/lib/prosody 0755 prosody prosody"
-makedepends="lua51-devel openssl-devel libidn-devel icu-devel"
-depends="lua51-luasocket lua51-luafilesystem lua51-luaexpat lua51-luasec
- lua51-BitOp"
+makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
+depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://prosody.im/"
changelog="https://prosody.im/doc/release/${version}"
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=a7ecbbe41f01a4251805593ac6d15dbc6cb75d9c7a876c76b456cf74ff4b90e5
+checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
system_accounts="prosody"
prosody_homedir="/var/lib/prosody"
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR REVIEW] prosody: update to 0.12.4.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
` (6 preceding siblings ...)
2024-05-27 15:43 ` AnInternetTroll
@ 2024-05-27 15:48 ` classabbyamp
2024-05-27 15:48 ` classabbyamp
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2024-05-27 15:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 172 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/48919#discussion_r1616214454
Comment:
why not loop these?
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR REVIEW] prosody: update to 0.12.4.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
` (10 preceding siblings ...)
2024-05-27 15:48 ` classabbyamp
@ 2024-05-27 15:48 ` classabbyamp
2024-05-27 16:23 ` [PR PATCH] [Updated] " AnInternetTroll
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2024-05-27 15:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 191 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/48919#discussion_r1616214628
Comment:
```suggestion
pkgname=luaunbound
```
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR REVIEW] prosody: update to 0.12.4.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
` (8 preceding siblings ...)
2024-05-27 15:48 ` classabbyamp
@ 2024-05-27 15:48 ` classabbyamp
2024-05-27 15:48 ` classabbyamp
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2024-05-27 15:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 212 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/48919#discussion_r1616215430
Comment:
```suggestion
for _lua_version in $_lua_versions; do
```
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR REVIEW] prosody: update to 0.12.4.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
` (7 preceding siblings ...)
2024-05-27 15:48 ` [PR REVIEW] " classabbyamp
@ 2024-05-27 15:48 ` classabbyamp
2024-05-27 15:48 ` classabbyamp
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2024-05-27 15:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 212 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/48919#discussion_r1616215029
Comment:
```suggestion
for _lua_version in $_lua_versions; do
```
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR REVIEW] prosody: update to 0.12.4.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
` (9 preceding siblings ...)
2024-05-27 15:48 ` classabbyamp
@ 2024-05-27 15:48 ` classabbyamp
2024-05-27 15:48 ` classabbyamp
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2024-05-27 15:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 212 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/48919#discussion_r1616215283
Comment:
```suggestion
for _lua_version in $_lua_versions; do
```
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] prosody: update to 0.12.4.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
` (11 preceding siblings ...)
2024-05-27 15:48 ` classabbyamp
@ 2024-05-27 16:23 ` AnInternetTroll
2024-05-27 16:24 ` AnInternetTroll
2024-05-27 16:33 ` [PR PATCH] [Merged]: " classabbyamp
14 siblings, 0 replies; 16+ messages in thread
From: AnInternetTroll @ 2024-05-27 16:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]
There is an updated pull request by AnInternetTroll against master on the void-packages repository
https://github.com/AnInternetTroll/void-packages user/luca/lua-unbound
https://github.com/void-linux/void-packages/pull/48919
prosody: update to 0.12.4.
- **New package: lua-unbound-1.0.0**
- **prosody: add lua51-unbound as a dependency**
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86\_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
Crossbuilt from x86\_64-glibc and tested on aarch64-musl
Fixes the following warning that shows up when using prosodyctl (any
command):
```
**************************
Prosody was unable to find lua-unbound
This package can be obtained in the following ways:
Debian/Ubuntu | sudo apt install lua-unbound
luarocks | luarocks install luaunbound
Source | https://www.zash.se/luaunbound.html
Old DNS resolver library will be used
More help can be found on our website, at https://prosody.im/doc/depends
**************************
```
Fixes the following deprecation as well:
| Option | Default | Notes |
|-----------|---------|------------------------------------------------------------------------------------------------------|
| daemonize | true | Whether to daemonize Prosody or not. DEPRECATED since 0.12, use command line flags -D or -F instead. |
A patch file from https://github.com/void-linux/void-packages/pull/48919.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/lua-unbound-48919.patch --]
[-- Type: text/x-diff, Size: 10308 bytes --]
From cf8d1b320642ceeabd6654b52f04edaa7b13a2ea Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 22:06:20 +0100
Subject: [PATCH 1/3] New package: lua-unbound-1.0.0
---
srcpkgs/lua51-unbound | 1 +
srcpkgs/lua52-unbound | 1 +
srcpkgs/lua53-unbound | 1 +
srcpkgs/lua54-unbound/template | 74 ++++++++++++++++++++++++++++++++++
srcpkgs/lua54-unbound/update | 1 +
5 files changed, 78 insertions(+)
create mode 120000 srcpkgs/lua51-unbound
create mode 120000 srcpkgs/lua52-unbound
create mode 120000 srcpkgs/lua53-unbound
create mode 100644 srcpkgs/lua54-unbound/template
create mode 100644 srcpkgs/lua54-unbound/update
diff --git a/srcpkgs/lua51-unbound b/srcpkgs/lua51-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua51-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua52-unbound b/srcpkgs/lua52-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua52-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua53-unbound b/srcpkgs/lua53-unbound
new file mode 120000
index 00000000000000..e7bb715780e25b
--- /dev/null
+++ b/srcpkgs/lua53-unbound
@@ -0,0 +1 @@
+lua54-unbound
\ No newline at end of file
diff --git a/srcpkgs/lua54-unbound/template b/srcpkgs/lua54-unbound/template
new file mode 100644
index 00000000000000..f8b1f3853ddbd6
--- /dev/null
+++ b/srcpkgs/lua54-unbound/template
@@ -0,0 +1,74 @@
+# Template file for 'lua54-unbound'
+pkgname=lua54-unbound
+version=1.0.0
+revision=1
+hostmakedepends="pkg-config"
+makedepends="unbound-devel"
+depends="lua54"
+_desc="Binding to libunbound for Lua"
+short_desc="${_desc} (5.4.x)"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="MIT"
+homepage="https://www.zash.se/luaunbound.html"
+distfiles="https://code.zash.se/dl/luaunbound/luaunbound-${version}.tar.gz"
+checksum=6de45aa64c21cf0ecbccb734b7c1eda8873a6135bbe142fbf353f772a90750d3
+
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
+
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
+do_build() {
+ for _lua_version in $_lua_versions; do
+ cd "${wrksrc}/${_lua_version/./}"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUA_PC="${_lua_version}" \
+ ${makejobs}
+ done
+}
+
+do_install() {
+ for _lua_version in $_lua_versions; do
+ cd "${wrksrc}/${_lua_version/./}"
+ vinstall lunbound.so 755 usr/lib/lua/${_lua_version#lua}/
+ done
+ vlicense LICENSE
+}
+
+lua51-unbound_package() {
+ depends="lua51"
+ short_desc="${_desc} (5.1.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.1
+ vlicense ${wrksrc}/lua51/LICENSE
+ }
+}
+
+lua52-unbound_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-unbound_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
diff --git a/srcpkgs/lua54-unbound/update b/srcpkgs/lua54-unbound/update
new file mode 100644
index 00000000000000..f8c8a1c04d62e0
--- /dev/null
+++ b/srcpkgs/lua54-unbound/update
@@ -0,0 +1 @@
+pkgname=luaunbound
From 4f96943e89419c13def41495982c4626865f8782 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:37 +0100
Subject: [PATCH 2/3] lua51-luasocket: update to lua54.
---
srcpkgs/lua51-luasocket/template | 83 ++++++++++++++++++++++++++++----
srcpkgs/lua52-luasocket | 1 +
srcpkgs/lua53-luasocket | 1 +
srcpkgs/lua54-luasocket | 1 +
4 files changed, 77 insertions(+), 9 deletions(-)
create mode 120000 srcpkgs/lua52-luasocket
create mode 120000 srcpkgs/lua53-luasocket
create mode 120000 srcpkgs/lua54-luasocket
diff --git a/srcpkgs/lua51-luasocket/template b/srcpkgs/lua51-luasocket/template
index 98bf69535d8399..69ad4cc7cdebb6 100644
--- a/srcpkgs/lua51-luasocket/template
+++ b/srcpkgs/lua51-luasocket/template
@@ -1,26 +1,64 @@
# Template file for 'lua51-luasocket'
pkgname=lua51-luasocket
version=3.1.0
-revision=1
+revision=2
build_style=gnu-makefile
-build_wrksrc=src
-makedepends="lua51-devel"
depends="lua51"
-short_desc="Network support for the Lua language"
+_desc="Network support for the Lua language"
+short_desc="${_desc} (5.1.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://lunarmodules.github.io/luasocket/"
-distfiles="https://github.com/lunarmodules/luasocket/archive/refs/tags/v3.1.0.tar.gz"
+distfiles="https://github.com/lunarmodules/luasocket/archive/refs/tags/v${version}.tar.gz"
checksum=bf033aeb9e62bcaa8d007df68c119c966418e8c9ef7e4f2d7e96bddeca9cca6e
+_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
+for _lua_version in $_lua_versions; do
+ hostmakedepends+=" ${_lua_version/./}"
+ makedepends+=" ${_lua_version/./}-devel"
+done
+
+post_extract() {
+ mkdir -p lua51
+ mv * lua51 || true
+ cp -a lua51 lua52
+ cp -a lua51 lua53
+ cp -a lua51 lua54
+}
+
do_build() {
- make CC=$CC LD=$CC LUAINC=${XBPS_CROSS_BASE}/usr/include/lua5.1 \
- PLAT=linux LUAVER=5.1 \
- ${makejobs} all-unix
+ for _lua_version in $_lua_versions; do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ LD="$CC" \
+ CC="$CC" \
+ LUAINC="${XBPS_CROSS_BASE}/usr/include/${_lua_version}" \
+ LUAVER="${_lua_version#lua}" \
+ LUAV="${_lua_version#lua}" \
+ PLAT=linux \
+ ${makejobs} \
+ all-unix
+ done
+}
+
+do_install() {
+ for _lua_version in $_lua_versions; do
+ cd "${wrksrc}/${_lua_version/./}/src/"
+ make \
+ STRIP=true \
+ PREFIX=/usr \
+ prefix=/usr \
+ DESTDIR="${DESTDIR}" \
+ LUAVER="${_lua_version#lua}" \
+ LUAV="${_lua_version#lua}" \
+ LDIR_linux="lib/lua/${_lua_version#lua}" \
+ PLAT=linux \
+ install
+ done
}
post_install() {
- vlicense ../LICENSE
+ vlicense ./lua51/LICENSE
}
luasocket_package() {
@@ -28,3 +66,30 @@ luasocket_package() {
short_desc+=" (transitional dummy package)"
build_style=meta
}
+
+lua52-luasocket_package() {
+ depends="lua52"
+ short_desc="${_desc} (5.2.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.2
+ vlicense ${wrksrc}/lua52/LICENSE
+ }
+}
+
+lua53-luasocket_package() {
+ depends="lua53"
+ short_desc="${_desc} (5.3.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.3
+ vlicense ${wrksrc}/lua53/LICENSE
+ }
+}
+
+lua54-luasocket_package() {
+ depends="lua54"
+ short_desc="${_desc} (5.4.x)"
+ pkg_install() {
+ vmove usr/lib/lua/5.4
+ vlicense ${wrksrc}/lua54/LICENSE
+ }
+}
diff --git a/srcpkgs/lua52-luasocket b/srcpkgs/lua52-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua52-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua53-luasocket b/srcpkgs/lua53-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua53-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
diff --git a/srcpkgs/lua54-luasocket b/srcpkgs/lua54-luasocket
new file mode 120000
index 00000000000000..d061e632fab71c
--- /dev/null
+++ b/srcpkgs/lua54-luasocket
@@ -0,0 +1 @@
+lua51-luasocket
\ No newline at end of file
From 1a8871b6981564842638828a4df1d9847c4d139f Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 24 Feb 2024 23:29:58 +0100
Subject: [PATCH 3/3] prosody: update to 0.12.4.
---
srcpkgs/prosody/files/prosody.cfg.lua | 1 -
srcpkgs/prosody/files/prosody/run | 2 +-
srcpkgs/prosody/template | 19 +++++++++----------
3 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/srcpkgs/prosody/files/prosody.cfg.lua b/srcpkgs/prosody/files/prosody.cfg.lua
index 4f0d2d1ba93a16..f0a961349d3f83 100644
--- a/srcpkgs/prosody/files/prosody.cfg.lua
+++ b/srcpkgs/prosody/files/prosody.cfg.lua
@@ -13,7 +13,6 @@
------ Void settings ------
-daemonize = false;
pidfile = "/run/prosody/prosody.pid"
---------- Server-wide settings ----------
diff --git a/srcpkgs/prosody/files/prosody/run b/srcpkgs/prosody/files/prosody/run
index e302e315d8676e..6425cdbb513fcb 100644
--- a/srcpkgs/prosody/files/prosody/run
+++ b/srcpkgs/prosody/files/prosody/run
@@ -2,4 +2,4 @@
exec 2>&1
mkdir -p /run/prosody
chown prosody:prosody /run/prosody
-exec chpst -u prosody:prosody prosody
+exec chpst -u prosody:prosody prosody --no-daemonize
diff --git a/srcpkgs/prosody/template b/srcpkgs/prosody/template
index aa59bebadba329..261ca776c1f36b 100644
--- a/srcpkgs/prosody/template
+++ b/srcpkgs/prosody/template
@@ -1,17 +1,17 @@
# Template file for 'prosody'
pkgname=prosody
-version=0.12.1
-revision=4
+version=0.12.4
+revision=1
build_style=configure
configure_args="
--ostype=linux
--prefix=/usr
--no-example-certs
- --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.1
+ --with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.4
--with-lua=${XBPS_CROSS_BASE}/usr
- --lua-version=5.1
- --lua-suffix=5.1
- --runwith=lua5.1"
+ --lua-version=5.4
+ --lua-suffix=5.4
+ --runwith=lua5.4"
conf_files="
/etc/prosody/prosody.cfg.lua
/etc/prosody/certs/localhost.cnf
@@ -19,16 +19,15 @@ conf_files="
/etc/prosody/certs/makefile
/etc/prosody/certs/GNUmakefile"
make_dirs="/var/lib/prosody 0755 prosody prosody"
-makedepends="lua51-devel openssl-devel libidn-devel icu-devel"
-depends="lua51-luasocket lua51-luafilesystem lua51-luaexpat lua51-luasec
- lua51-BitOp"
+makedepends="lua54-devel openssl-devel libidn-devel icu-devel"
+depends="lua54-luasocket lua54-luafilesystem lua54-luaexpat lua54-luasec lua54-unbound"
short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://prosody.im/"
changelog="https://prosody.im/doc/release/${version}"
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
-checksum=a7ecbbe41f01a4251805593ac6d15dbc6cb75d9c7a876c76b456cf74ff4b90e5
+checksum=47d712273c2f29558c412f6cdaec073260bbc26b7dda243db580330183d65856
system_accounts="prosody"
prosody_homedir="/var/lib/prosody"
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: prosody: update to 0.12.4.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
` (12 preceding siblings ...)
2024-05-27 16:23 ` [PR PATCH] [Updated] " AnInternetTroll
@ 2024-05-27 16:24 ` AnInternetTroll
2024-05-27 16:33 ` [PR PATCH] [Merged]: " classabbyamp
14 siblings, 0 replies; 16+ messages in thread
From: AnInternetTroll @ 2024-05-27 16:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 199 bytes --]
New comment by AnInternetTroll on void-packages repository
https://github.com/void-linux/void-packages/pull/48919#issuecomment-2133798105
Comment:
Thanks, completely forgot about those for loops!
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Merged]: prosody: update to 0.12.4.
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
` (13 preceding siblings ...)
2024-05-27 16:24 ` AnInternetTroll
@ 2024-05-27 16:33 ` classabbyamp
14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2024-05-27 16:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1667 bytes --]
There's a merged pull request on the void-packages repository
prosody: update to 0.12.4.
https://github.com/void-linux/void-packages/pull/48919
Description:
- **New package: lua-unbound-1.0.0**
- **prosody: add lua51-unbound as a dependency**
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86\_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
Crossbuilt from x86\_64-glibc and tested on aarch64-musl
Fixes the following warning that shows up when using prosodyctl (any
command):
```
**************************
Prosody was unable to find lua-unbound
This package can be obtained in the following ways:
Debian/Ubuntu | sudo apt install lua-unbound
luarocks | luarocks install luaunbound
Source | https://www.zash.se/luaunbound.html
Old DNS resolver library will be used
More help can be found on our website, at https://prosody.im/doc/depends
**************************
```
Fixes the following deprecation as well:
| Option | Default | Notes |
|-----------|---------|------------------------------------------------------------------------------------------------------|
| daemonize | true | Whether to daemonize Prosody or not. DEPRECATED since 0.12, use command line flags -D or -F instead. |
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2024-05-27 16:33 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-24 21:12 [PR PATCH] prosody: add lua51-unbound as a dependency AnInternetTroll
2024-02-25 20:35 ` [PR PATCH] [Updated] " AnInternetTroll
2024-02-25 20:50 ` [PR PATCH] [Updated] prosody: update to 0.12.3 AnInternetTroll
2024-02-26 17:30 ` AnInternetTroll
2024-05-27 1:47 ` prosody: update to 0.12.4 github-actions
2024-05-27 15:15 ` [PR PATCH] [Updated] " AnInternetTroll
2024-05-27 15:32 ` AnInternetTroll
2024-05-27 15:43 ` AnInternetTroll
2024-05-27 15:48 ` [PR REVIEW] " classabbyamp
2024-05-27 15:48 ` classabbyamp
2024-05-27 15:48 ` classabbyamp
2024-05-27 15:48 ` classabbyamp
2024-05-27 15:48 ` classabbyamp
2024-05-27 16:23 ` [PR PATCH] [Updated] " AnInternetTroll
2024-05-27 16:24 ` AnInternetTroll
2024-05-27 16:33 ` [PR PATCH] [Merged]: " classabbyamp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).