[arch-commits] Commit in s2n-tls/repos (3 files)

Anatol Pomozov anatolik at archlinux.org
Fri Feb 26 17:26:42 UTC 2021


    Date: Friday, February 26, 2021 @ 17:26:41
  Author: anatolik
Revision: 874428

archrelease: copy trunk to community-staging-x86_64

Added:
  s2n-tls/repos/community-staging-x86_64/
  s2n-tls/repos/community-staging-x86_64/PKGBUILD
    (from rev 874427, s2n-tls/trunk/PKGBUILD)
  s2n-tls/repos/community-staging-x86_64/missing_symbol_workaround.patch
    (from rev 874427, s2n-tls/trunk/missing_symbol_workaround.patch)

---------------------------------+
 PKGBUILD                        |   43 ++++++++++++++++++++++++++++++++++++++
 missing_symbol_workaround.patch |   13 +++++++++++
 2 files changed, 56 insertions(+)

Copied: s2n-tls/repos/community-staging-x86_64/PKGBUILD (from rev 874427, s2n-tls/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-02-26 17:26:41 UTC (rev 874428)
@@ -0,0 +1,43 @@
+# Maintainer: Anatol Pomozov
+
+pkgname=s2n-tls
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='A C99 implementation of the TLS/SSL protocols that is designed to be simple, small, fast, and with security as a priority'
+arch=(x86_64)
+url='https://github.com/awslabs/s2n'
+license=(Apache)
+provides=(s2n) # upstream renamed the project from s2n to s2n-tls
+conflicts=(s2n)
+replaces=(s2n)
+depends=(openssl)
+makedepends=(cmake)
+source=(s2n-tls-$pkgver.zip::https://github.com/awslabs/s2n/archive/v$pkgver.zip
+        missing_symbol_workaround.patch)
+sha256sums=('4b1136d4dc7c82dfc3dce9c1ac7900abeecba77a69397fdac0bc42309c52d933'
+            'd86e81598a79de7353262eeffc490c1e266dc8a92f7057166d447cd36d04eb35')
+
+prepare() {
+  cd s2n-tls-$pkgver
+
+  patch -p1 < ../missing_symbol_workaround.patch # https://github.com/awslabs/s2n/issues/2401
+}
+
+build() {
+  cd s2n-tls-$pkgver
+
+  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -S . -B build
+  cmake --build build
+}
+
+check() {
+  cd s2n-tls-$pkgver
+  cmake --build build --target test
+}
+
+package() {
+  cd s2n-tls-$pkgver
+
+  cmake --build build --target install -- DESTDIR="$pkgdir/"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: s2n-tls/repos/community-staging-x86_64/missing_symbol_workaround.patch (from rev 874427, s2n-tls/trunk/missing_symbol_workaround.patch)
===================================================================
--- community-staging-x86_64/missing_symbol_workaround.patch	                        (rev 0)
+++ community-staging-x86_64/missing_symbol_workaround.patch	2021-02-26 17:26:41 UTC (rev 874428)
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a93d51f5..8d2806ad 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -177,7 +177,7 @@ set(CMAKE_C_FLAGS_DEBUGOPT "")
+ 
+ target_compile_options(${PROJECT_NAME} PRIVATE -pedantic -std=gnu99 -Wall -Werror -Wimplicit -Wunused -Wcomment -Wchar-subscripts
+         -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings -Wno-deprecated-declarations -Wno-unknown-pragmas -Wformat-security
+-        -Wno-missing-braces -fvisibility=hidden -DS2N_EXPORTS)
++        -Wno-missing-braces -DS2N_EXPORTS)
+ 
+ if(S2N_NO_PQ)
+     target_compile_options(${PROJECT_NAME} PUBLIC -DS2N_NO_PQ)



More information about the arch-commits mailing list