Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: openssl3-3.0.3
@ 2022-06-15 19:48 dkwo
  2022-06-16 14:30 ` dkwo
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: dkwo @ 2022-06-15 19:48 UTC (permalink / raw)
  To: ml

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

There is a new pull request by dkwo against master on the void-packages repository

https://github.com/dkwo/void-packages ossl3
https://github.com/void-linux/void-packages/pull/37576

New package: openssl3-3.0.3
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): YES
- I built this PR locally for my native architecture, x86_64-musl

It currently fails two tests:
```
01-test_symbol_presence.t        (Wstat: 512 Tests: 4 Failed: 2)                
Failed tests:  2, 4                                                           
Non-zero exit status: 2                                                       
not ok 2 - check that there are no missing symbols in libcrypto.so.3            
not ok 4 - check that there are no missing symbols in libssl.so.3               
80-test_ssl_new.t                (Wstat: 256 Tests: 30 Failed: 1)               
Failed test:  12                                                              
Non-zero exit status: 1                                                       
```
First failure is also seen in openssl-1.1.1o update, the second is fixed in 3.0.4.
Before I try to build anything using this or report the first issue upstream,
I wanted to make sure I'm not doing anything stupid.
Also, I can adapt current openssl patches later if needed.

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

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

From cb40433c509625f06264283b413e61be1763aad2 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Wed, 15 Jun 2022 19:25:30 +0200
Subject: [PATCH] New package: openssl3-3.0.3

---
 common/shlibs             |  2 +
 srcpkgs/libcrypto3.0      |  1 +
 srcpkgs/libssl3.0         |  1 +
 srcpkgs/openssl3.0-devel  |  1 +
 srcpkgs/openssl3/template | 84 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 89 insertions(+)
 create mode 120000 srcpkgs/libcrypto3.0
 create mode 120000 srcpkgs/libssl3.0
 create mode 120000 srcpkgs/openssl3.0-devel
 create mode 100644 srcpkgs/openssl3/template

diff --git a/common/shlibs b/common/shlibs
index d60d6fd74abf..7d16020c53e0 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -1756,7 +1756,9 @@ libid3-3.8.so.3 id3lib-3.8.3_1
 libgirara-gtk3.so.3 girara-0.2.8_1
 libjq.so.1 jq-1.6_2
 libcrypto.so.1.1 libcrypto1.1-1.1.1f_1
+libcrypto.so.3 libcrypto3.0-3.0.3_1
 libssl.so.1.1 libssl1.1-1.1.1f_1
+libssl.so.3 libssl3.0-3.0.3_1
 libvamp-hostsdk.so.3 libvamp-plugin-sdk-2.2_6
 libportmidi.so portmidi-217_1
 libWildMidi.so.2 libwildmidi-0.4.3_1
diff --git a/srcpkgs/libcrypto3.0 b/srcpkgs/libcrypto3.0
new file mode 120000
index 000000000000..deb4b92de834
--- /dev/null
+++ b/srcpkgs/libcrypto3.0
@@ -0,0 +1 @@
+openssl3
\ No newline at end of file
diff --git a/srcpkgs/libssl3.0 b/srcpkgs/libssl3.0
new file mode 120000
index 000000000000..deb4b92de834
--- /dev/null
+++ b/srcpkgs/libssl3.0
@@ -0,0 +1 @@
+openssl3
\ No newline at end of file
diff --git a/srcpkgs/openssl3.0-devel b/srcpkgs/openssl3.0-devel
new file mode 120000
index 000000000000..deb4b92de834
--- /dev/null
+++ b/srcpkgs/openssl3.0-devel
@@ -0,0 +1 @@
+openssl3
\ No newline at end of file
diff --git a/srcpkgs/openssl3/template b/srcpkgs/openssl3/template
new file mode 100644
index 000000000000..ccee56c33bc5
--- /dev/null
+++ b/srcpkgs/openssl3/template
@@ -0,0 +1,84 @@
+# Template file for 'openssl3'
+pkgname=openssl3
+version=3.0.3
+revision=1
+# bootstrap=yes
+wrksrc=openssl-${version}
+build_style=configure
+configure_script="./Configure"
+configure_args="--prefix=/usr --openssldir=/etc/ssl3 --libdir=lib
+ shared no-ssl3-method $(vopt_if asm ' ' 'no-asm')
+ -Wa,--noexecstack"
+make_cmd=make
+make_build_args='MAKEDEPPROG="$(CC)'
+make_check_target=test
+make_install_args="MANSUFFIX=ssl"
+short_desc="Toolkit for Secure Sockets Layer and Transport Layer Security"
+maintainer="dkwo <npiazza@disroot.org>"
+license="OpenSSL"
+homepage="https://www.openssl.org"
+distfiles="https://www.openssl.org/source/openssl-${version}.tar.gz"
+checksum=ee0078adcef1de5f003c62c80cc96527721609c6f3bb42b7795df31f8b558c0b
+conf_files="/etc/ssl3/openssl.cnf"
+replaces="libressl>=0"
+
+build_options=asm
+
+if [ "$CHROOT_READY" ]; then
+	hostmakedepends="perl"
+	build_options_default="asm"
+fi
+
+case $XBPS_TARGET_MACHINE in
+	x86_64*) configure_args+=" enable-ec_nistp_64_gcc_128 linux-x86_64";;
+	i686*) configure_args+=" linux-elf";;
+	aarch64*) configure_args+=" linux-aarch64";;
+	ppc64le*) configure_args+=" linux-ppc64le";;
+	ppc64*) configure_args+=" linux-ppc64";;
+	ppcle*) configure_args+=" linux-ppcle";;
+	ppc*) configure_args+=" linux-ppc";;
+	arm*) configure_args+=" linux-armv4";;
+	mips*) configure_args+=" linux-mips32 -mips32";;
+	*) broken="$XBPS_TARGET_MACHINE";;
+esac
+
+pre_configure() {
+	configure_args+=" ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"
+}
+
+pre_build() {
+	make ${makejobs} depend
+}
+
+post_install() {
+	rm -f "${DESTDIR}/usr/bin/c_rehash"
+}
+
+libcrypto3.0_package() {
+	short_desc+=" - crypto library"
+	pkg_install() {
+		vmove "usr/lib/libcrypto.so.*"
+		vmove usr/lib/engines-3
+	}
+}
+
+libssl3.0_package() {
+	short_desc+=" - SSL/TLS library"
+	pkg_install() {
+		vmove "usr/lib/libssl.so.*"
+	}
+}
+
+openssl3.0-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision} libssl3.0>=${version}_${revision} libcrypto3.0>=${version}_${revision}"
+	replaces="libressl-devel>=0"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/share/man/man3
+		vmove usr/share/doc
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+	}
+}

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

end of thread, other threads:[~2022-06-25 17:02 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-15 19:48 [PR PATCH] New package: openssl3-3.0.3 dkwo
2022-06-16 14:30 ` dkwo
2022-06-17  7:49 ` [PR PATCH] [Updated] " dkwo
2022-06-17  7:51 ` dkwo
2022-06-17  8:08 ` dkwo
2022-06-18 13:30 ` dkwo
2022-06-18 13:40 ` dkwo
2022-06-18 13:52 ` dkwo
2022-06-22 14:35 ` New package: openssl3 dkwo
2022-06-22 14:37 ` [PR PATCH] [Updated] " dkwo
2022-06-22 14:37 ` dkwo
2022-06-22 15:41 ` leahneukirchen
2022-06-22 16:14 ` [PR PATCH] [Updated] " dkwo
2022-06-22 17:18 ` dkwo
2022-06-22 17:20 ` dkwo
2022-06-23 12:10 ` dkwo
2022-06-24 20:06 ` leahneukirchen
2022-06-25 17:02 ` [PR PATCH] [Closed]: " dkwo
2022-06-25 17:02 ` dkwo

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).