Github messages for voidlinux
 help / color / mirror / Atom feed
From: AnInternetTroll <AnInternetTroll@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] prosody: add lua51-unbound as a dependency
Date: Sat, 24 Feb 2024 22:12:56 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48919@inbox.vuxu.org> (raw)

[-- 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"

             reply	other threads:[~2024-02-24 21:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-24 21:12 AnInternetTroll [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48919@inbox.vuxu.org \
    --to=aninternettroll@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).