public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-lua/lua-openssl/, dev-lua/lua-openssl/files/
@ 2021-08-07 22:49 Conrad Kostecki
  0 siblings, 0 replies; 4+ messages in thread
From: Conrad Kostecki @ 2021-08-07 22:49 UTC (permalink / raw
  To: gentoo-commits

commit:     fb9e776de9246af9a35e1209eb25bede7499ecae
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  7 22:34:05 2021 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Aug  7 22:34:05 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb9e776d

dev-lua/lua-openssl: re-enable TestCRL test

Fixed by upstream and works for me.

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../lua-openssl-0.8.0_p6-testcrl-openssl.patch     | 56 ++++++++++++++++++++++
 dev-lua/lua-openssl/lua-openssl-0.8.0_p6-r1.ebuild |  7 +--
 2 files changed, 60 insertions(+), 3 deletions(-)

diff --git a/dev-lua/lua-openssl/files/lua-openssl-0.8.0_p6-testcrl-openssl.patch b/dev-lua/lua-openssl/files/lua-openssl-0.8.0_p6-testcrl-openssl.patch
new file mode 100644
index 00000000000..370df75c4d9
--- /dev/null
+++ b/dev-lua/lua-openssl/files/lua-openssl-0.8.0_p6-testcrl-openssl.patch
@@ -0,0 +1,56 @@
+From 3fbe31a6d6e76ddac08d5da8eaa1c00fa54060e7 Mon Sep 17 00:00:00 2001
+From: zhaozg <zhaozg@gmail.com>
+Date: Sun, 1 Aug 2021 18:50:43 +0800
+Subject: [PATCH] update openssl.crl
+
+---
+ src/crl.c           | 9 +++++----
+ test/5.x509_crl.lua | 3 ++-
+ 2 files changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/src/crl.c b/src/crl.c
+index d35e3e0..091c31e 100644
+--- a/src/crl.c
++++ b/src/crl.c
+@@ -525,13 +525,14 @@ static LUA_FUNCTION(openssl_crl_nextUpdate)
+ /***
+ get updateTime time
+ @function updateTime
+-@treturn string lastUpdate
++@treturn asn1_time lastUpdate
++@treturn asn1_time nextUpdate
+ */
+ /***
+ set updateTime time
+ @function updateTime
+ @tparam[opt=os.time()] lastUpdate, default use current time
+-@tparam number periord periord how long time(seconds)
++@tparam number period period how long time(seconds)
+ @treturn boolean result
+ */
+ static LUA_FUNCTION(openssl_crl_updateTime)
+@@ -561,8 +562,8 @@ static LUA_FUNCTION(openssl_crl_updateTime)
+     else
+     {
+       last = luaL_checkint(L, 2);
+-      next = last + luaL_checkint(L, 3);
+-      luaL_argcheck(L, next > last, 3, "value must after #2");
++      next = luaL_checkint(L, 3);
++      next = last + next;
+     }
+ 
+     ltm = ASN1_TIME_new();
+diff --git a/test/5.x509_crl.lua b/test/5.x509_crl.lua
+index 747fb0e..d0686c9 100644
+--- a/test/5.x509_crl.lua
++++ b/test/5.x509_crl.lua
+@@ -45,7 +45,8 @@ function TestCRL:testNew()
+   assert(other:verify(ca.cacert))
+   local pem = other:export()
+ 
+-  assert(other:updateTime(os.time(), os.time()+3600))
++  assert(other:updateTime(3600))
++  assert(other:updateTime(os.time(), 3600))
+ 
+   assert(other:extensions({
+     openssl.x509.extension.new_extension(

diff --git a/dev-lua/lua-openssl/lua-openssl-0.8.0_p6-r1.ebuild b/dev-lua/lua-openssl/lua-openssl-0.8.0_p6-r1.ebuild
index c91859384d3..47fb802ba0d 100644
--- a/dev-lua/lua-openssl/lua-openssl-0.8.0_p6-r1.ebuild
+++ b/dev-lua/lua-openssl/lua-openssl-0.8.0_p6-r1.ebuild
@@ -42,16 +42,17 @@ BDEPEND="
 
 DOCS=( "README.md" "samples/." )
 
+PATCHES=( "${FILESDIR}/${PN}-0.8.0_p6-testcrl-openssl.patch" )
+
 src_prepare() {
 	default
 
 	# Allow override of LUA* variables
 	sed -e '/LUA  /s/:=/?=/g' -e '/LUA_VERSION/s/:=/?=/g' -i Makefile || die
 
-	# Disable TestCMS and TestCRL test suite, as it fails
+	# Disable TestCMS test suite, as it fails
 	# See: https://github.com/zhaozg/lua-openssl/issues/230
-	# See: https://github.com/zhaozg/lua-openssl/issues/231
-	sed -e '/6.cms.lua/d' -e '/5.x509_crl.lua/d' -i test/test.lua || die
+	sed -e '/6.cms.lua/d' -i test/test.lua || die
 
 	# Prepare needed dependencies (source code files only)
 	rm -r deps/{auxiliar,lua-compat} || die


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-lua/lua-openssl/, dev-lua/lua-openssl/files/
@ 2022-01-20 23:56 Conrad Kostecki
  0 siblings, 0 replies; 4+ messages in thread
From: Conrad Kostecki @ 2022-01-20 23:56 UTC (permalink / raw
  To: gentoo-commits

commit:     6c8d5218d6414457b57409ebfa06d2dd74f1a313
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 20 23:36:45 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Thu Jan 20 23:56:19 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c8d5218

dev-lua/lua-openssl: drop 0.8.0_p6-r1, 0.8.0_p20210815

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 dev-lua/lua-openssl/Manifest                       |   2 -
 .../lua-openssl-0.8.0_p6-testcrl-openssl.patch     |  56 ---------
 .../lua-openssl/lua-openssl-0.8.0_p20210815.ebuild | 130 --------------------
 dev-lua/lua-openssl/lua-openssl-0.8.0_p6-r1.ebuild | 131 ---------------------
 4 files changed, 319 deletions(-)

diff --git a/dev-lua/lua-openssl/Manifest b/dev-lua/lua-openssl/Manifest
index 75262db48131..28ff38f97ab0 100644
--- a/dev-lua/lua-openssl/Manifest
+++ b/dev-lua/lua-openssl/Manifest
@@ -1,5 +1,3 @@
 DIST lua-auxiliar-8d09895473b73e4fb72b7573615f69c36e1860a2.tar.gz 3690 BLAKE2B 8e31e8ad75bcc5840223068fdc9b634c2cbc42d713bba0792a0b04f8e018e36e3bab16a07aaa725d8b2bbd55c3a74271a21366c2cde1b4c6bd735c9438efedec SHA512 c461c23cd50ef43aa37ce2c819a9a485ead1011ecb5ff083a092e49ac79d5398aff1631f441cb8e59acd820024ed51e74420b74da751c0fccd2cfce94f039952
 DIST lua-compat-5.3-0.10.tar.gz 53695 BLAKE2B e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191 SHA512 f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d
-DIST lua-openssl-0.8.0_p20210815.tar.gz 421946 BLAKE2B 6e7c0414f4ff3391db24b666f9801ab42a8cdeb3953d675535416cfe049c7429f032dff44bb41aef0cfd16f5c20d8ad29254dfa4a038dc6d5c8f6f5c032d7fa2 SHA512 e6b5cce94969a097d507e697a0b14f88d039ce65ebedf9256f4666728f9bb8cef4d53446f9d559e7a626be6e827b39148b24ddf1df1bbaec1f869a4e1d1dfd76
-DIST lua-openssl-0.8.0_p6.tar.gz 418000 BLAKE2B 34474c607f6e39985c17f142b1067f2438b51c7e6f62861f65fa8c471722b56dee05a7a45eae277b368ee643a1820334de03c08f09c88a17e851925d575df6d4 SHA512 56125b8a88783b48bbeabd56be4732afe22ef54224b3f03f16e3cbc1ce94f554d6d8dea8236bff34786aad2720b53cbd05dcba85ca41497db61f339014fa3b95
 DIST lua-openssl-0.8.1_p1.tar.gz 425188 BLAKE2B bf3171e921e144c4a13d78df9d69d89b350d4cd4358640ae8d6eb22faea302f0f0cd7687250ff70a8798e7e02c4656964ebfd90f7e98ea2eff051ad3c562029e SHA512 92be296ed18fa1ef982b70c982151cb223402cb92eb7ff8ae92009553e93f8cd24555aa1b653e20772d74b3fc7a7d4f5fc7fb923e54fec130ff6550d64ef909f

diff --git a/dev-lua/lua-openssl/files/lua-openssl-0.8.0_p6-testcrl-openssl.patch b/dev-lua/lua-openssl/files/lua-openssl-0.8.0_p6-testcrl-openssl.patch
deleted file mode 100644
index 370df75c4d97..000000000000
--- a/dev-lua/lua-openssl/files/lua-openssl-0.8.0_p6-testcrl-openssl.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 3fbe31a6d6e76ddac08d5da8eaa1c00fa54060e7 Mon Sep 17 00:00:00 2001
-From: zhaozg <zhaozg@gmail.com>
-Date: Sun, 1 Aug 2021 18:50:43 +0800
-Subject: [PATCH] update openssl.crl
-
----
- src/crl.c           | 9 +++++----
- test/5.x509_crl.lua | 3 ++-
- 2 files changed, 7 insertions(+), 5 deletions(-)
-
-diff --git a/src/crl.c b/src/crl.c
-index d35e3e0..091c31e 100644
---- a/src/crl.c
-+++ b/src/crl.c
-@@ -525,13 +525,14 @@ static LUA_FUNCTION(openssl_crl_nextUpdate)
- /***
- get updateTime time
- @function updateTime
--@treturn string lastUpdate
-+@treturn asn1_time lastUpdate
-+@treturn asn1_time nextUpdate
- */
- /***
- set updateTime time
- @function updateTime
- @tparam[opt=os.time()] lastUpdate, default use current time
--@tparam number periord periord how long time(seconds)
-+@tparam number period period how long time(seconds)
- @treturn boolean result
- */
- static LUA_FUNCTION(openssl_crl_updateTime)
-@@ -561,8 +562,8 @@ static LUA_FUNCTION(openssl_crl_updateTime)
-     else
-     {
-       last = luaL_checkint(L, 2);
--      next = last + luaL_checkint(L, 3);
--      luaL_argcheck(L, next > last, 3, "value must after #2");
-+      next = luaL_checkint(L, 3);
-+      next = last + next;
-     }
- 
-     ltm = ASN1_TIME_new();
-diff --git a/test/5.x509_crl.lua b/test/5.x509_crl.lua
-index 747fb0e..d0686c9 100644
---- a/test/5.x509_crl.lua
-+++ b/test/5.x509_crl.lua
-@@ -45,7 +45,8 @@ function TestCRL:testNew()
-   assert(other:verify(ca.cacert))
-   local pem = other:export()
- 
--  assert(other:updateTime(os.time(), os.time()+3600))
-+  assert(other:updateTime(3600))
-+  assert(other:updateTime(os.time(), 3600))
- 
-   assert(other:extensions({
-     openssl.x509.extension.new_extension(

diff --git a/dev-lua/lua-openssl/lua-openssl-0.8.0_p20210815.ebuild b/dev-lua/lua-openssl/lua-openssl-0.8.0_p20210815.ebuild
deleted file mode 100644
index acec78d6e14c..000000000000
--- a/dev-lua/lua-openssl/lua-openssl-0.8.0_p20210815.ebuild
+++ /dev/null
@@ -1,130 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-EGIT_COMMIT="770242f24b9f449c42afd7c9205361870a3df61f"
-EGIT_COMMIT_AUX="8d09895473b73e4fb72b7573615f69c36e1860a2"
-LUA_COMPAT=( lua5-{1..4} luajit )
-MY_PN_AUX="lua-auxiliar"
-MY_PN_COMPAT="lua-compat-5.3"
-MY_PV="${PV//_p/-}"
-MY_PV_COMPAT="0.10"
-
-inherit lua toolchain-funcs
-
-DESCRIPTION="OpenSSL binding for Lua"
-HOMEPAGE="https://github.com/zhaozg/lua-openssl"
-SRC_URI="
-	https://github.com/zhaozg/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
-	https://github.com/zhaozg/${MY_PN_AUX}/archive/${EGIT_COMMIT_AUX}.tar.gz -> ${MY_PN_AUX}-${EGIT_COMMIT_AUX}.tar.gz
-	https://github.com/keplerproject/${MY_PN_COMPAT}/archive/v${MY_PV_COMPAT}.tar.gz -> ${MY_PN_COMPAT}-${MY_PV_COMPAT}.tar.gz
-"
-S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
-
-LICENSE="MIT openssl PHP-3"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE="test"
-REQUIRED_USE="${LUA_REQUIRED_USE}"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-	!dev-lua/luaossl
-	!dev-lua/luasec
-	dev-libs/openssl:0=[-bindist(-)]
-	${LUA_DEPS}
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
-	virtual/pkgconfig
-	test? ( ${RDEPEND} )
-"
-
-DOCS=( "README.md" "samples/." )
-
-src_prepare() {
-	default
-
-	# Allow override of LUA* variables
-	sed -e '/LUA  /s/:=/?=/g' -e '/LUA_VERSION/s/:=/?=/g' -i Makefile || die
-
-	# Disable TestCMS test suite, as it fails
-	# See: https://github.com/zhaozg/lua-openssl/issues/230
-	sed -e '/6.cms.lua/d' -i test/test.lua || die
-
-	# Prepare needed dependencies (source code files only)
-	rm -r deps/{auxiliar,lua-compat} || die
-	mv "${WORKDIR}/${MY_PN_AUX}-${EGIT_COMMIT_AUX}" deps/auxiliar || die
-	mv "${WORKDIR}/${MY_PN_COMPAT}-${MY_PV_COMPAT}" deps/lua-compat || die
-
-	lua_copy_sources
-}
-
-lua_src_compile() {
-	pushd "${BUILD_DIR}" || die
-
-	local myemakeargs=(
-		"AR=$(tc-getAR)"
-		"CC=$(tc-getCC)"
-		"LUA="
-		"LUA_CFLAGS=${CFLAGS} $(lua_get_CFLAGS)"
-		"LUA_LIBS=${LDFLAGS}"
-		"LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))"
-		"TARGET_SYS=${CTARGET:-${CHOST}}"
-	)
-
-	emake "${myemakeargs[@]}"
-
-	popd
-}
-
-src_compile() {
-	lua_foreach_impl lua_src_compile
-}
-
-lua_src_test() {
-	pushd "${BUILD_DIR}" || die
-
-	local myemakeargs=(
-		"LUA=${ELUA}"
-		"LUA_CFLAGS="
-		"LUA_LIBS="
-		"LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))"
-		"TARGET_SYS=${CTARGET:-${CHOST}}"
-	)
-
-	emake "${myemakeargs[@]}" test
-
-	popd
-}
-
-src_test() {
-	lua_foreach_impl lua_src_test
-}
-
-lua_src_install() {
-	pushd "${BUILD_DIR}" || die
-
-	local myemakeargs=(
-		"LUA="
-		"LUA_CFLAGS="
-		"LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)"
-		"LUA_LIBS="
-		"LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))"
-		"TARGET_SYS=${CTARGET:-${CHOST}}"
-	)
-
-	emake "${myemakeargs[@]}" install
-
-	insinto "$(lua_get_lmod_dir)"
-	doins -r "lib/."
-
-	popd
-}
-
-src_install() {
-	lua_foreach_impl lua_src_install
-
-	einstalldocs
-}

diff --git a/dev-lua/lua-openssl/lua-openssl-0.8.0_p6-r1.ebuild b/dev-lua/lua-openssl/lua-openssl-0.8.0_p6-r1.ebuild
deleted file mode 100644
index 47fb802ba0d3..000000000000
--- a/dev-lua/lua-openssl/lua-openssl-0.8.0_p6-r1.ebuild
+++ /dev/null
@@ -1,131 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-EGIT_COMMIT_AUX="8d09895473b73e4fb72b7573615f69c36e1860a2"
-LUA_COMPAT=( lua5-{1..4} luajit )
-MY_PN_AUX="lua-auxiliar"
-MY_PN_COMPAT="lua-compat-5.3"
-MY_PV="${PV//_p/-}"
-MY_PV_COMPAT="0.10"
-
-inherit lua toolchain-funcs
-
-DESCRIPTION="OpenSSL binding for Lua"
-HOMEPAGE="https://github.com/zhaozg/lua-openssl"
-SRC_URI="
-	https://github.com/zhaozg/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz
-	https://github.com/zhaozg/${MY_PN_AUX}/archive/${EGIT_COMMIT_AUX}.tar.gz -> ${MY_PN_AUX}-${EGIT_COMMIT_AUX}.tar.gz
-	https://github.com/keplerproject/${MY_PN_COMPAT}/archive/v${MY_PV_COMPAT}.tar.gz -> ${MY_PN_COMPAT}-${MY_PV_COMPAT}.tar.gz
-"
-S="${WORKDIR}/${PN}-${MY_PV}"
-
-LICENSE="MIT openssl PHP-3"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE="test"
-REQUIRED_USE="${LUA_REQUIRED_USE}"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-	!dev-lua/luaossl
-	!dev-lua/luasec
-	dev-libs/openssl:0=[-bindist(-)]
-	${LUA_DEPS}
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
-	virtual/pkgconfig
-	test? ( ${RDEPEND} )
-"
-
-DOCS=( "README.md" "samples/." )
-
-PATCHES=( "${FILESDIR}/${PN}-0.8.0_p6-testcrl-openssl.patch" )
-
-src_prepare() {
-	default
-
-	# Allow override of LUA* variables
-	sed -e '/LUA  /s/:=/?=/g' -e '/LUA_VERSION/s/:=/?=/g' -i Makefile || die
-
-	# Disable TestCMS test suite, as it fails
-	# See: https://github.com/zhaozg/lua-openssl/issues/230
-	sed -e '/6.cms.lua/d' -i test/test.lua || die
-
-	# Prepare needed dependencies (source code files only)
-	rm -r deps/{auxiliar,lua-compat} || die
-	mv "${WORKDIR}/${MY_PN_AUX}-${EGIT_COMMIT_AUX}" deps/auxiliar || die
-	mv "${WORKDIR}/${MY_PN_COMPAT}-${MY_PV_COMPAT}" deps/lua-compat || die
-
-	lua_copy_sources
-}
-
-lua_src_compile() {
-	pushd "${BUILD_DIR}" || die
-
-	local myemakeargs=(
-		"AR=$(tc-getAR)"
-		"CC=$(tc-getCC)"
-		"LUA="
-		"LUA_CFLAGS=${CFLAGS} $(lua_get_CFLAGS)"
-		"LUA_LIBS=${LDFLAGS}"
-		"LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))"
-		"TARGET_SYS=${CTARGET:-${CHOST}}"
-	)
-
-	emake "${myemakeargs[@]}"
-
-	popd
-}
-
-src_compile() {
-	lua_foreach_impl lua_src_compile
-}
-
-lua_src_test() {
-	pushd "${BUILD_DIR}" || die
-
-	local myemakeargs=(
-		"LUA=${ELUA}"
-		"LUA_CFLAGS="
-		"LUA_LIBS="
-		"LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))"
-		"TARGET_SYS=${CTARGET:-${CHOST}}"
-	)
-
-	emake "${myemakeargs[@]}" test
-
-	popd
-}
-
-src_test() {
-	lua_foreach_impl lua_src_test
-}
-
-lua_src_install() {
-	pushd "${BUILD_DIR}" || die
-
-	local myemakeargs=(
-		"LUA="
-		"LUA_CFLAGS="
-		"LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)"
-		"LUA_LIBS="
-		"LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))"
-		"TARGET_SYS=${CTARGET:-${CHOST}}"
-	)
-
-	emake "${myemakeargs[@]}" install
-
-	insinto "$(lua_get_lmod_dir)"
-	doins -r "lib/."
-
-	popd
-}
-
-src_install() {
-	lua_foreach_impl lua_src_install
-
-	einstalldocs
-}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-lua/lua-openssl/, dev-lua/lua-openssl/files/
@ 2023-08-09 20:07 Conrad Kostecki
  0 siblings, 0 replies; 4+ messages in thread
From: Conrad Kostecki @ 2023-08-09 20:07 UTC (permalink / raw
  To: gentoo-commits

commit:     038f5dd88d37008c4cd12fa7153602dbdc0e97d2
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Wed Aug  9 20:05:45 2023 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Wed Aug  9 20:05:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=038f5dd8

dev-lua/lua-openssl: fix clang16, block tests

Closes: https://bugs.gentoo.org/911845
Closes: https://bugs.gentoo.org/881139
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../files/lua-openssl-0.8.3-clang16.patch          | 45 ++++++++++++++++++++++
 ....3_p2.ebuild => lua-openssl-0.8.3_p2-r1.ebuild} |  4 +-
 2 files changed, 48 insertions(+), 1 deletion(-)

diff --git a/dev-lua/lua-openssl/files/lua-openssl-0.8.3-clang16.patch b/dev-lua/lua-openssl/files/lua-openssl-0.8.3-clang16.patch
new file mode 100644
index 000000000000..64482c97673a
--- /dev/null
+++ b/dev-lua/lua-openssl/files/lua-openssl-0.8.3-clang16.patch
@@ -0,0 +1,45 @@
+From 3451462230082e6eae9d82833a547a3a73df5ef9 Mon Sep 17 00:00:00 2001
+From: zhaozg <zhaozg@gmail.com>
+Date: Mon, 7 Aug 2023 17:47:23 +0800
+Subject: [PATCH] partially fix #265
+
+---
+ src/ocsp.c    | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+diff --git a/src/ocsp.c b/src/ocsp.c
+index 29f5b153..e1672fcf 100644
+--- a/src/ocsp.c
++++ b/src/ocsp.c
+@@ -183,8 +183,15 @@ static int openssl_ocsp_request_read(lua_State *L)
+   BIO *bio = load_bio_object(L, 1);
+   int pem = lua_gettop(L) > 1 ? auxiliar_checkboolean(L, 2) : 0;
+ 
++#if defined(__clang__)
++#pragma clang diagnostic push
++#pragma clang diagnostic ignored"-Wincompatible-function-pointer-types"
++#endif
+   OCSP_REQUEST *req = pem ? PEM_read_bio_OCSP_REQUEST(bio, NULL, NULL)
+                           : d2i_OCSP_REQUEST_bio(bio, NULL);
++#if defined(__clang__)
++#pragma clang diagnostic pop
++#endif
+   BIO_free(bio);
+ 
+   if (req)
+@@ -352,8 +359,15 @@ static int openssl_ocsp_response_read(lua_State *L)
+   int pem = lua_gettop(L) > 1 ? auxiliar_checkboolean(L, 2) : 0;
+   int ret = 0;
+ 
++#if defined(__clang__)
++#pragma clang diagnostic push
++#pragma clang diagnostic ignored"-Wincompatible-function-pointer-types"
++#endif
+   OCSP_RESPONSE *res = pem ? PEM_read_bio_OCSP_RESPONSE(bio, NULL, NULL)
+                            : d2i_OCSP_RESPONSE_bio(bio, NULL);
++#if defined(__clang__)
++#pragma clang diagnostic pop
++#endif
+   if (res)
+   {
+     PUSH_OBJECT(res, "openssl.ocsp_response");

diff --git a/dev-lua/lua-openssl/lua-openssl-0.8.3_p2.ebuild b/dev-lua/lua-openssl/lua-openssl-0.8.3_p2-r1.ebuild
similarity index 97%
rename from dev-lua/lua-openssl/lua-openssl-0.8.3_p2.ebuild
rename to dev-lua/lua-openssl/lua-openssl-0.8.3_p2-r1.ebuild
index 8b1181de43af..82d587831be4 100644
--- a/dev-lua/lua-openssl/lua-openssl-0.8.3_p2.ebuild
+++ b/dev-lua/lua-openssl/lua-openssl-0.8.3_p2-r1.ebuild
@@ -26,7 +26,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
 IUSE="test"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
-RESTRICT="!test? ( test )"
+RESTRICT="test"
 
 RDEPEND="
 	!dev-lua/luaossl
@@ -40,6 +40,8 @@ BDEPEND="
 	test? ( ${RDEPEND} )
 "
 
+PATCHES=( "${FILESDIR}/${PN}-0.8.3-clang16.patch" )
+
 src_prepare() {
 	default
 


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-lua/lua-openssl/, dev-lua/lua-openssl/files/
@ 2024-01-23 23:51 Conrad Kostecki
  0 siblings, 0 replies; 4+ messages in thread
From: Conrad Kostecki @ 2024-01-23 23:51 UTC (permalink / raw
  To: gentoo-commits

commit:     8fe3cfc6ec7cb69327e17d2dcaa2015d8a5a3024
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 23 23:48:30 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Jan 23 23:50:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fe3cfc6

dev-lua/lua-openssl: drop 0.8.3_p2-r1

Closes: https://bugs.gentoo.org/920643
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 dev-lua/lua-openssl/Manifest                       |   1 -
 .../files/lua-openssl-0.8.3-clang16.patch          |  45 --------
 dev-lua/lua-openssl/lua-openssl-0.8.3_p2-r1.ebuild | 126 ---------------------
 3 files changed, 172 deletions(-)

diff --git a/dev-lua/lua-openssl/Manifest b/dev-lua/lua-openssl/Manifest
index 9039b7620195..a002c80a9b76 100644
--- a/dev-lua/lua-openssl/Manifest
+++ b/dev-lua/lua-openssl/Manifest
@@ -1,4 +1,3 @@
 DIST lua-auxiliar-8d09895473b73e4fb72b7573615f69c36e1860a2.tar.gz 3690 BLAKE2B 8e31e8ad75bcc5840223068fdc9b634c2cbc42d713bba0792a0b04f8e018e36e3bab16a07aaa725d8b2bbd55c3a74271a21366c2cde1b4c6bd735c9438efedec SHA512 c461c23cd50ef43aa37ce2c819a9a485ead1011ecb5ff083a092e49ac79d5398aff1631f441cb8e59acd820024ed51e74420b74da751c0fccd2cfce94f039952
 DIST lua-compat-5.3-0.10.tar.gz 53695 BLAKE2B e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191 SHA512 f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d
-DIST lua-openssl-0.8.3_p2.tar.gz 401761 BLAKE2B 3efd8049806e03e8a6a7f77a06d8c1f7d98f2133143d7dc28eb6d0abf7821a93446df6334e906559dec5cb758719157ba75502215aff7081b9e7c977d35f45f4 SHA512 024edd5c88beb267f829c26f746731045fe8f713beca1caf2325ae5a4ee179d220a3ebd3af9c3efb574f16f0bff717d7357756d14a4ff41bd73e56ccc37cedf8
 DIST lua-openssl-0.9.0_p0.tar.gz 415793 BLAKE2B 74fd4565ecbca90d9ca141bd909d403e2d16f68df089b86f747e7c37e6b57c81f1f94e468180f99f564e613afec5fe6aeb18de78d88aa2f41b6395fba2e7c884 SHA512 146231335c036f9dc0c4c5c40d93aa59e47f761afc5d1ee695c336d1b881c51d52cec3d1903cda6bc3c57224e041e17faab3be61dee6b1a154db22b47f9cc303

diff --git a/dev-lua/lua-openssl/files/lua-openssl-0.8.3-clang16.patch b/dev-lua/lua-openssl/files/lua-openssl-0.8.3-clang16.patch
deleted file mode 100644
index 64482c97673a..000000000000
--- a/dev-lua/lua-openssl/files/lua-openssl-0.8.3-clang16.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 3451462230082e6eae9d82833a547a3a73df5ef9 Mon Sep 17 00:00:00 2001
-From: zhaozg <zhaozg@gmail.com>
-Date: Mon, 7 Aug 2023 17:47:23 +0800
-Subject: [PATCH] partially fix #265
-
----
- src/ocsp.c    | 14 ++++++++++++++
- 1 file changed, 14 insertions(+)
-
-diff --git a/src/ocsp.c b/src/ocsp.c
-index 29f5b153..e1672fcf 100644
---- a/src/ocsp.c
-+++ b/src/ocsp.c
-@@ -183,8 +183,15 @@ static int openssl_ocsp_request_read(lua_State *L)
-   BIO *bio = load_bio_object(L, 1);
-   int pem = lua_gettop(L) > 1 ? auxiliar_checkboolean(L, 2) : 0;
- 
-+#if defined(__clang__)
-+#pragma clang diagnostic push
-+#pragma clang diagnostic ignored"-Wincompatible-function-pointer-types"
-+#endif
-   OCSP_REQUEST *req = pem ? PEM_read_bio_OCSP_REQUEST(bio, NULL, NULL)
-                           : d2i_OCSP_REQUEST_bio(bio, NULL);
-+#if defined(__clang__)
-+#pragma clang diagnostic pop
-+#endif
-   BIO_free(bio);
- 
-   if (req)
-@@ -352,8 +359,15 @@ static int openssl_ocsp_response_read(lua_State *L)
-   int pem = lua_gettop(L) > 1 ? auxiliar_checkboolean(L, 2) : 0;
-   int ret = 0;
- 
-+#if defined(__clang__)
-+#pragma clang diagnostic push
-+#pragma clang diagnostic ignored"-Wincompatible-function-pointer-types"
-+#endif
-   OCSP_RESPONSE *res = pem ? PEM_read_bio_OCSP_RESPONSE(bio, NULL, NULL)
-                            : d2i_OCSP_RESPONSE_bio(bio, NULL);
-+#if defined(__clang__)
-+#pragma clang diagnostic pop
-+#endif
-   if (res)
-   {
-     PUSH_OBJECT(res, "openssl.ocsp_response");

diff --git a/dev-lua/lua-openssl/lua-openssl-0.8.3_p2-r1.ebuild b/dev-lua/lua-openssl/lua-openssl-0.8.3_p2-r1.ebuild
deleted file mode 100644
index 82d587831be4..000000000000
--- a/dev-lua/lua-openssl/lua-openssl-0.8.3_p2-r1.ebuild
+++ /dev/null
@@ -1,126 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-EGIT_COMMIT_AUX="8d09895473b73e4fb72b7573615f69c36e1860a2"
-LUA_COMPAT=( lua5-{1..4} luajit )
-MY_PN_AUX="lua-auxiliar"
-MY_PN_COMPAT="lua-compat-5.3"
-MY_PV="${PV//_p/-}"
-MY_PV_COMPAT="0.10"
-
-inherit lua toolchain-funcs
-
-DESCRIPTION="OpenSSL binding for Lua"
-HOMEPAGE="https://github.com/zhaozg/lua-openssl"
-SRC_URI="
-	https://github.com/zhaozg/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
-	https://github.com/zhaozg/${MY_PN_AUX}/archive/${EGIT_COMMIT_AUX}.tar.gz -> ${MY_PN_AUX}-${EGIT_COMMIT_AUX}.tar.gz
-	https://github.com/keplerproject/${MY_PN_COMPAT}/archive/v${MY_PV_COMPAT}.tar.gz -> ${MY_PN_COMPAT}-${MY_PV_COMPAT}.tar.gz
-"
-S="${WORKDIR}/${PN}-${MY_PV}"
-
-LICENSE="MIT openssl PHP-3"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE="test"
-REQUIRED_USE="${LUA_REQUIRED_USE}"
-RESTRICT="test"
-
-RDEPEND="
-	!dev-lua/luaossl
-	!dev-lua/luasec
-	dev-libs/openssl:0=[-bindist(-)]
-	${LUA_DEPS}
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
-	virtual/pkgconfig
-	test? ( ${RDEPEND} )
-"
-
-PATCHES=( "${FILESDIR}/${PN}-0.8.3-clang16.patch" )
-
-src_prepare() {
-	default
-
-	# Allow override of LUA* variables
-	sed -e '/LUA  /s/:=/?=/g' -e '/LUA_VERSION/s/:=/?=/g' -i Makefile || die
-
-	# Disable TestCMS test suite, as it fails
-	# See: https://github.com/zhaozg/lua-openssl/issues/230
-	sed -e '/6.cms.lua/d' -i test/test.lua || die
-
-	# Prepare needed dependencies (source code files only)
-	rm -r deps/{auxiliar,lua-compat} || die
-	mv "${WORKDIR}/${MY_PN_AUX}-${EGIT_COMMIT_AUX}" deps/auxiliar || die
-	mv "${WORKDIR}/${MY_PN_COMPAT}-${MY_PV_COMPAT}" deps/lua-compat || die
-
-	lua_copy_sources
-}
-
-lua_src_compile() {
-	pushd "${BUILD_DIR}" || die
-
-	local myemakeargs=(
-		"AR=$(tc-getAR)"
-		"CC=$(tc-getCC)"
-		"LUA="
-		"LUA_CFLAGS=${CFLAGS} $(lua_get_CFLAGS)"
-		"LUA_LIBS=${LDFLAGS}"
-		"LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))"
-		"TARGET_SYS=${CTARGET:-${CHOST}}"
-	)
-
-	emake "${myemakeargs[@]}"
-
-	popd
-}
-
-src_compile() {
-	lua_foreach_impl lua_src_compile
-}
-
-lua_src_test() {
-	pushd "${BUILD_DIR}" || die
-
-	local myemakeargs=(
-		"LUA=${ELUA}"
-		"LUA_CFLAGS="
-		"LUA_LIBS="
-		"LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))"
-		"TARGET_SYS=${CTARGET:-${CHOST}}"
-	)
-
-	emake "${myemakeargs[@]}" test
-
-	popd
-}
-
-src_test() {
-	lua_foreach_impl lua_src_test
-}
-
-lua_src_install() {
-	pushd "${BUILD_DIR}" || die
-
-	local myemakeargs=(
-		"LUA="
-		"LUA_CFLAGS="
-		"LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)"
-		"LUA_LIBS="
-		"LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))"
-		"TARGET_SYS=${CTARGET:-${CHOST}}"
-	)
-
-	emake "${myemakeargs[@]}" install
-
-	popd
-}
-
-src_install() {
-	lua_foreach_impl lua_src_install
-
-	einstalldocs
-}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-23 23:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-23 23:51 [gentoo-commits] repo/gentoo:master commit in: dev-lua/lua-openssl/, dev-lua/lua-openssl/files/ Conrad Kostecki
  -- strict thread matches above, loose matches on Subject: below --
2023-08-09 20:07 Conrad Kostecki
2022-01-20 23:56 Conrad Kostecki
2021-08-07 22:49 Conrad Kostecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox