From nobody Sat Jul 30 06:01:36 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Lvv0K26V2z4XPX9; Sat, 30 Jul 2022 06:01:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lvv0J6TfSz3GPq; Sat, 30 Jul 2022 06:01:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659160896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=g6WgwDysaQJBLGngCkNFwyS/2Cd4epmEviu5sD+mmd4=; b=Qk5CsGRVuF1E8b7E7NP4giC0OBKInvVIZWM2fuwZnCfWNtQG/lt6SgV81ujwtVQI3oEr9t qLd6May1oyN3Kul52xmpZDL4CfpBE2eBD71m/7CG4tPZ2sSdRHY2fQ26sO81FTL6dqsGBU zKibljR0nmAPQVLRyuCQi8WtrQURnFEMHUzRW3IgILUD0mWm6c5Mwk0Xmx2NJJJNXUfSwI cLUVBIkgm9U2Tjo3gdT+DaRJM6p4njDparG9kqrHkPid7j1tq+H4FHPAjVVinVnAL7GG0T iYbUHH8W+GfNH+rpWCE46qWvgCHKSUpRyfkroKdM9+Fg3a1CnGybIQAVNJud8g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Lvv0J5b8Nz13kj; Sat, 30 Jul 2022 06:01:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26U61amP047762; Sat, 30 Jul 2022 06:01:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26U61aht047761; Sat, 30 Jul 2022 06:01:36 GMT (envelope-from git) Date: Sat, 30 Jul 2022 06:01:36 GMT Message-Id: <202207300601.26U61aht047761@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 61c876ad8ccc - main - devel/rubygem-aws-crt: Add rubygem-aws-crt 0.1.5 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 61c876ad8ccca9b24b12db2586fbc3ffe135cb1f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659160896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=g6WgwDysaQJBLGngCkNFwyS/2Cd4epmEviu5sD+mmd4=; b=QvUc8IHfhRsB8ZfnxJiz+D0luUgx5z2SCXW/0fQVM4EhdfjVrx179uVm5IdmhQiKWFv6Ea T3RmfERJVcNYJtw/527uXc4nkuUpFvYWinbSuzg7LFu9gG6/rsQdkSPVyE+SaDTiYH9USE X8pmEI6yyWs3amDEFsLNTSe7kuDuug/21+rA+P46W9cEuU+zOs6yZW5qvtD5HdBqEAmBEf KB6/g6oC+/6/vP0SAOhht5JOpIrux9WsINNAnozUIqWu/oMbGjXvLyyWaNhmOmS1OkLFzC Q+KB4udY/exjfceg0SV93ldpY7d42fXet30Nw3o5t6ufoZi/wfqNI+juqsYzSw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659160896; a=rsa-sha256; cv=none; b=lmU84XZzSkqypbA7ZReTr8P0WyDdb+f0ILe1SQpBZkeERY3art4E0E67NltKh3Ddxfmim3 iIV6qvUn3Aj5hefATZGlU8EohVzzDOxkFr4usOQLa7G81UuvUoQ/i2twp5837KKWgnmTYv X4hvpx3fpuTf0fBv5XAz6UwPfZKNbRXvA1/fLOZtm+cITw4E/7zA+YbdfmirJighsqvFPB FaRwUMGbQS6WCkSZLl6AhnD+wqtCHlryPCHYFrgBJb5ELLgFKmJYdaOnu3BJc1zyGV/1yI GAMjoFrConhYYZvUxgx2wce7eoSvl1k4Ks+lshIo6Tt3IpNmZOduEqc7I+MBOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=61c876ad8ccca9b24b12db2586fbc3ffe135cb1f commit 61c876ad8ccca9b24b12db2586fbc3ffe135cb1f Author: Po-Chuan Hsieh AuthorDate: 2022-07-30 05:56:32 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-07-30 05:56:32 +0000 devel/rubygem-aws-crt: Add rubygem-aws-crt 0.1.5 AWS Common Runtime for Ruby The AWS Common Runtime (CRT) libraries are a base library of the SDKs. The CRT is a modular family of independent packages, written in C. Each package provides good performance and minimal footprint for different required functionalities. These functionalities are common and shared across all SDKs providing better code reuse, optimization, and accuracy. WWW: https://github.com/awslabs/aws-crt-ruby --- devel/Makefile | 1 + devel/rubygem-aws-crt/Makefile | 29 ++++++++++++++++++++++ devel/rubygem-aws-crt/distinfo | 3 +++ .../files/patch-aws-crt-ffi-crt-s2n-CMakeLists.txt | 17 +++++++++++++ ...-aws-crt-ffi-crt-s2n-utils-s2n_fork_detection.c | 13 ++++++++++ devel/rubygem-aws-crt/files/patch-powerpc64le | 27 ++++++++++++++++++++ devel/rubygem-aws-crt/pkg-descr | 9 +++++++ devel/rubygem-aws-crt/pkg-plist | 6 +++++ 8 files changed, 105 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 3b26052f395a..7c3f9a4f41a5 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5721,6 +5721,7 @@ SUBDIR += rubygem-avro SUBDIR += rubygem-awesome_print SUBDIR += rubygem-awrence + SUBDIR += rubygem-aws-crt SUBDIR += rubygem-aws-eventstream SUBDIR += rubygem-aws-partitions SUBDIR += rubygem-aws-sdk diff --git a/devel/rubygem-aws-crt/Makefile b/devel/rubygem-aws-crt/Makefile new file mode 100644 index 000000000000..df728e9cc8fa --- /dev/null +++ b/devel/rubygem-aws-crt/Makefile @@ -0,0 +1,29 @@ +PORTNAME= aws-crt +PORTVERSION= 0.1.5 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= AWS SDK for Ruby - Common Run Time + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= cmake:devel/cmake +RUN_DEPENDS= rubygem-ffi>=0:devel/rubygem-ffi + +USES= gem python:env shebangfix +USE_RUBY= yes + +#NO_ARCH= yes + +SHEBANG_FILES= aws-crt-ffi/crt/s2n/tests/litani/* \ + aws-crt-ffi/crt/s2n/tests/litani/*/* \ + aws-crt-ffi/crt/s2n/tests/litani/*/*/* +SHEBANG_GLOB= *.py *.sh + +post-install: + ${RM} -r ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/tmp/ + ${REINPLACE_CMD} -e '/${GEM_LIB_DIR}\/tmp\//d' ${TMPPLIST} + +.include diff --git a/devel/rubygem-aws-crt/distinfo b/devel/rubygem-aws-crt/distinfo new file mode 100644 index 000000000000..ab21a9ebe66d --- /dev/null +++ b/devel/rubygem-aws-crt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1658506549 +SHA256 (rubygem/aws-crt-0.1.5.gem) = 32e42ecb8d7e9d172852cedbbafa6e4692d6bd449730ac443b9daa331f3b7d8d +SIZE (rubygem/aws-crt-0.1.5.gem) = 49263616 diff --git a/devel/rubygem-aws-crt/files/patch-aws-crt-ffi-crt-s2n-CMakeLists.txt b/devel/rubygem-aws-crt/files/patch-aws-crt-ffi-crt-s2n-CMakeLists.txt new file mode 100644 index 000000000000..d3121011d646 --- /dev/null +++ b/devel/rubygem-aws-crt/files/patch-aws-crt-ffi-crt-s2n-CMakeLists.txt @@ -0,0 +1,17 @@ +--- aws-crt-ffi/crt/s2n/CMakeLists.txt.orig 2022-07-30 03:57:27 UTC ++++ aws-crt-ffi/crt/s2n/CMakeLists.txt +@@ -460,10 +460,10 @@ if (__RESTRICT__SUPPORTED) + target_compile_options(${PROJECT_NAME} PUBLIC -DS2N___RESTRICT__SUPPORTED) + endif() + +-if (MADVISE_SUPPORTED) +- target_compile_options(${PROJECT_NAME} PUBLIC -DS2N_MADVISE_SUPPORTED) +- message(STATUS "madvise() support detected") +-endif() ++#if (MADVISE_SUPPORTED) ++# target_compile_options(${PROJECT_NAME} PUBLIC -DS2N_MADVISE_SUPPORTED) ++# message(STATUS "madvise() support detected") ++#endif() + + if (MINHERIT_SUPPORTED) + target_compile_options(${PROJECT_NAME} PUBLIC -DS2N_MINHERIT_SUPPORTED) diff --git a/devel/rubygem-aws-crt/files/patch-aws-crt-ffi-crt-s2n-utils-s2n_fork_detection.c b/devel/rubygem-aws-crt/files/patch-aws-crt-ffi-crt-s2n-utils-s2n_fork_detection.c new file mode 100644 index 000000000000..a22fc992b91f --- /dev/null +++ b/devel/rubygem-aws-crt/files/patch-aws-crt-ffi-crt-s2n-utils-s2n_fork_detection.c @@ -0,0 +1,13 @@ +--- aws-crt-ffi/crt/s2n/utils/s2n_fork_detection.c.orig 2022-07-30 03:57:28 UTC ++++ aws-crt-ffi/crt/s2n/utils/s2n_fork_detection.c +@@ -25,6 +25,10 @@ + #define _GNU_SOURCE + #endif + ++#if !defined(__BSD_VISIBLE) ++#define __BSD_VISIBLE 1 ++#endif ++ + #include + + /* Not always defined for Darwin */ diff --git a/devel/rubygem-aws-crt/files/patch-powerpc64le b/devel/rubygem-aws-crt/files/patch-powerpc64le new file mode 100644 index 000000000000..4223d8e1ef21 --- /dev/null +++ b/devel/rubygem-aws-crt/files/patch-powerpc64le @@ -0,0 +1,27 @@ +Reference: https://cgit.freebsd.org/ports/commit/?id=f08b67611f0b19c0ee8d9053ee4d22e09b03f2b1 + +--- aws-crt-ffi/crt/aws-lc/CMakeLists.txt.orig 2022-07-30 03:57:26 UTC ++++ aws-crt-ffi/crt/aws-lc/CMakeLists.txt +@@ -623,7 +623,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm*") + elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "mips") + # Just to avoid the “unknown processor” error. + set(ARCH "generic") +-elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64le") ++elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc64le|ppc64le") + set(ARCH "ppc64le") + else() + message(FATAL_ERROR "Unknown processor:" ${CMAKE_SYSTEM_PROCESSOR}) +--- aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c.orig 2022-07-30 03:57:26 UTC ++++ aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c +@@ -25,7 +25,11 @@ + #endif + + void OPENSSL_cpuid_setup(void) { ++#if defined(__linux__) + OPENSSL_ppc64le_hwcap2 = getauxval(AT_HWCAP2); ++#elif defined(__FreeBSD__) ++ elf_aux_info(AT_HWCAP2, &OPENSSL_ppc64le_hwcap2, sizeof(OPENSSL_ppc64le_hwcap2)); ++#endif + } + + int CRYPTO_is_PPC64LE_vcrypto_capable(void) { diff --git a/devel/rubygem-aws-crt/pkg-descr b/devel/rubygem-aws-crt/pkg-descr new file mode 100644 index 000000000000..343f287eceb4 --- /dev/null +++ b/devel/rubygem-aws-crt/pkg-descr @@ -0,0 +1,9 @@ +AWS Common Runtime for Ruby + +The AWS Common Runtime (CRT) libraries are a base library of the SDKs. The CRT +is a modular family of independent packages, written in C. Each package provides +good performance and minimal footprint for different required functionalities. +These functionalities are common and shared across all SDKs providing better +code reuse, optimization, and accuracy. + +WWW: https://github.com/awslabs/aws-crt-ruby diff --git a/devel/rubygem-aws-crt/pkg-plist b/devel/rubygem-aws-crt/pkg-plist new file mode 100644 index 000000000000..f627801e25e1 --- /dev/null +++ b/devel/rubygem-aws-crt/pkg-plist @@ -0,0 +1,6 @@ +%%GEM_LIB_DIR%%/aws-crt-ffi/crt/s2n/tests/cbmc/include/README.md +%%GEM_LIB_DIR%%/aws-crt-ffi/crt/s2n/tests/cbmc/proofs/Makefile.common +%%GEM_LIB_DIR%%/aws-crt-ffi/crt/s2n/tests/cbmc/proofs/README.md +%%GEM_LIB_DIR%%/aws-crt-ffi/crt/s2n/tests/cbmc/proofs/run-cbmc-proofs.py +%%GEM_LIB_DIR%%/aws-crt-ffi/crt/s2n/tests/cbmc/sources/README.md +%%GEM_LIB_DIR%%/aws-crt-ffi/crt/s2n/tests/cbmc/stubs/README.md