dev-libs/s2n-tls: new package, add 1.6.0

Signed-off-by: Jaco Kroon <jkroon@gentoo.org>
This commit is contained in:
Jaco Kroon 2025-11-09 13:10:45 +02:00
parent b45cd70a32
commit e1a5babccd
No known key found for this signature in database
GPG Key ID: BB24E3E3D99148AE
5 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST s2n-tls-1.6.0.tar.gz 5108926 BLAKE2B 3ba2e31607bf9807caa715f526171e930c10e8a308b7b5a451b737ec19c43688ab2641d82e201e584daa7273da88f7288d2e44b1c814cf016f922eb008b92973 SHA512 6675edc33284c04e9d2197079dcfec3c4327dcc54b9c330509fc3080b5fa699da2e28239939ef135f2d1c567d304ce5c604f78dde7b6ee483bd33e0efb920ba6

View File

@ -0,0 +1,13 @@
--- s2n-tls-1.6.0.o/CMakeLists.txt 2025-11-09 18:51:50.702558827 +0200
+++ s2n-tls-1.6.0/CMakeLists.txt 2025-11-09 19:58:52.216551406 +0200
@@ -176,10 +176,6 @@
endif()
endif()
-if(NOT APPLE)
- set(CMAKE_SHARED_LINKER_FLAGS -Wl,-z,noexecstack,-z,relro,-z,now)
-endif()
-
# Whether to fail the build when compiling s2n's portable C code with non-portable assembly optimizations. Doing this
# can lead to runtime crashes if build artifacts are built on modern hardware, but deployed to older hardware without
# newer CPU instructions. s2n, by default, should be backwards compatible with older CPU types so this flag should be

View File

@ -0,0 +1,12 @@
From: Jaco Kroon <jkroon@gentoo.org>
Upstream report: https://github.com/aws/s2n-tls/issues/5607
--- s2n-tls-1.6.0.o/CMakeLists.txt 2025-11-09 13:01:09.058447600 +0200
+++ s2n-tls-1.6.0/CMakeLists.txt 2025-11-09 13:02:29.498612435 +0200
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 3.9)
+cmake_minimum_required (VERSION 3.10..3.31)
project (s2n C)
if(POLICY CMP0077)

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>jkroon@gentoo.org</email>
<name>Jaco Kroon</name>
</maintainer>
<upstream>
<remote-id type="github">aws/s2n-tls</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,35 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="s2n-tls is a C99 implementation of the TLS/SSL protocols"
HOMEPAGE="https://github.com/aws/s2n-tls"
SRC_URI="https://github.com/aws/s2n-tls/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
inherit cmake
LICENSE="Apache-2.0"
SLOT="$(ver_cut 1)"
KEYWORDS="~amd64"
IUSE="test"
DEPEND="dev-libs/openssl:="
RDEPEND="${DEPEND}"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}/s2n-tls-1.6.0-cmake_version.patch"
"${FILESDIR}/s2n-tls-1.6.0-cmake_LDFLAGS.patch"
)
src_configure()
{
local mycmakeargs=(
-DBUILD_TESTING=$(usex test ON OFF)
)
cmake_src_configure
}