Github messages for voidlinux
 help / color / mirror / Atom feed
From: Calandracas606 <Calandracas606@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: lua-lanes-3.16.1
Date: Tue, 13 Feb 2024 18:18:06 +0100	[thread overview]
Message-ID: <20240213171806.C1F5425CBC@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48702@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1283 bytes --]

There is an updated pull request by Calandracas606 against master on the void-packages repository

https://github.com/Calandracas606/void-packages lua-lanes
https://github.com/void-linux/void-packages/pull/48702

New package: lua-lanes-3.16.1
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl (cross)
  - armv7l (cross)
  - armv6l-musl (cross)



A patch file from https://github.com/void-linux/void-packages/pull/48702.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lua-lanes-48702.patch --]
[-- Type: text/x-diff, Size: 4446 bytes --]

From 109a2bd410a06c9755cb0478649000a28aa0f32c Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Tue, 13 Feb 2024 11:57:17 -0500
Subject: [PATCH 1/2] New package: lua-lanes-3.16.1

---
 .../patches/0001-threading-musl.patch         | 27 ++++++++++++++++
 srcpkgs/lua-lanes/patches/0002-CFLAGS.patch   | 13 ++++++++
 srcpkgs/lua-lanes/template                    | 31 +++++++++++++++++++
 3 files changed, 71 insertions(+)
 create mode 100644 srcpkgs/lua-lanes/patches/0001-threading-musl.patch
 create mode 100644 srcpkgs/lua-lanes/patches/0002-CFLAGS.patch
 create mode 100644 srcpkgs/lua-lanes/template

diff --git a/srcpkgs/lua-lanes/patches/0001-threading-musl.patch b/srcpkgs/lua-lanes/patches/0001-threading-musl.patch
new file mode 100644
index 0000000000000..05508a57d85dd
--- /dev/null
+++ b/srcpkgs/lua-lanes/patches/0001-threading-musl.patch
@@ -0,0 +1,27 @@
+From 0e959e637b6ee85b0710e0608fe5d678ad7e0b78 Mon Sep 17 00:00:00 2001
+From: Conrad Kostecki <conikost@gentoo.org>
+Date: Tue, 23 Jan 2024 21:58:50 +0100
+Subject: [PATCH] src/threading.h: fix compilation on musl
+
+Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
+---
+ src/threading.h | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/src/threading.h b/src/threading.h
+index 3925076..b1706ac 100644
+--- a/src/threading.h
++++ b/src/threading.h
+@@ -113,7 +113,11 @@ enum e_status { PENDING, RUNNING, WAITING, DONE, ERROR_ST, CANCELLED };
+   #include <pthread.h>
+ 
+   #ifdef PLATFORM_LINUX
+-  # define _MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
++    #if defined(__GLIBC__)
++      # define _MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
++    #else
++      # define _MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE
++    #endif
+   #else
+     /* OS X, ... */
+   # define _MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE
diff --git a/srcpkgs/lua-lanes/patches/0002-CFLAGS.patch b/srcpkgs/lua-lanes/patches/0002-CFLAGS.patch
new file mode 100644
index 0000000000000..46680eed6af34
--- /dev/null
+++ b/srcpkgs/lua-lanes/patches/0002-CFLAGS.patch
@@ -0,0 +1,13 @@
+diff --git a/src/Makefile b/src/Makefile
+index c4d4c30..ae8de9a 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -92,7 +92,7 @@ ifeq "$(LUAROCKS)" ""
+     LIBFLAG = -bundle -undefined dynamic_lookup
+   endif
+   
+-  CFLAGS=-Wall -Werror $(OPT_FLAGS) $(LUA_FLAGS)
++  CFLAGS+=$(LUA_FLAGS)
+   LIBS=$(LUA_LIBS)
+ endif
+ 
diff --git a/srcpkgs/lua-lanes/template b/srcpkgs/lua-lanes/template
new file mode 100644
index 0000000000000..0004a783b7c45
--- /dev/null
+++ b/srcpkgs/lua-lanes/template
@@ -0,0 +1,31 @@
+# Template file for 'lua-lanes'
+pkgname=lua-lanes
+version=3.16.1
+revision=1
+build_style=gnu-makefile
+make_use_env=yes
+hostmakedepends="which pkg-config"
+makedepends="$(vopt_if luajit LuaJIT-devel lua51-devel)"
+short_desc="Lightweight, native, lazy evaluating multithreading library for Lua"
+maintainer="Daniel Martinez <danielmartinez@cock.li>"
+license="MIT"
+homepage="https://lualanes.github.io/lanes/"
+changelog="https://raw.githubusercontent.com/LuaLanes/lanes/v${version}/CHANGES"
+distfiles="https://github.com/LuaLanes/lanes/archive/refs/tags/v${version}.tar.gz"
+checksum=bff35696fe1502270e54523e89e9c2da29738a75d49aeb8237f6b47f4b7b14f2
+
+build_options="luajit"
+
+case "$XBPS_TARGET_MACHINE" in
+	# luajit doesn't support riscv64 (yet)
+	riscv64*) ;;
+	*) build_options_default="luajit" ;;
+esac
+
+do_install() {
+	make install DESTDIR=${DESTDIR}/usr
+}
+
+post_install() {
+	vlicense COPYRIGHT
+}

From 0ebf341653bf4c3a6bc4df829d1f4b9ce8870d21 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Tue, 13 Feb 2024 11:57:48 -0500
Subject: [PATCH 2/2] options.description: describe LuaJIT

---
 common/options.description | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/options.description b/common/options.description
index f9e3d0ce1992c..df7d5d9fba28e 100644
--- a/common/options.description
+++ b/common/options.description
@@ -46,6 +46,7 @@ desc_option_ldns="Enable support for LDNS DNSSEC library"
 desc_option_libao="Enable support for libao sound library"
 desc_option_libedit="Enable support for NetBSD's libedit"
 desc_option_lua="Enable support for Lua"
+desc_option_luajit="Enable support for LuaJIT"
 desc_option_lz4="Enable support for LZ4 compression format"
 desc_option_lzo="Enable support for LZO compression format"
 desc_option_microhttpd="Enable support for microhttpd"

  parent reply	other threads:[~2024-02-13 17:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-13 17:09 [PR PATCH] " Calandracas606
2024-02-13 17:13 ` [PR REVIEW] " Calandracas606
2024-02-13 17:13 ` Calandracas606
2024-02-13 17:16 ` [PR PATCH] [Updated] " Calandracas606
2024-02-13 17:18 ` Calandracas606 [this message]
2024-05-14  1:46 ` github-actions

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=20240213171806.C1F5425CBC@inbox.vuxu.org \
    --to=calandracas606@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).