diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
| commit | 290aebdea65a02557706eaeda477fef0437b6a48 (patch) | |
| tree | f87a939169a508a2e943570501b64cc16b411cda /dev-libs/leancrypto | |
| parent | 6783ddcd4b73d9ce586a71770caed352bec93b16 (diff) | |
| download | baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip | |
Adding metadata
Diffstat (limited to 'dev-libs/leancrypto')
| -rw-r--r-- | dev-libs/leancrypto/Manifest | 2 | ||||
| -rw-r--r-- | dev-libs/leancrypto/files/leancrypto-1.6.0-no-force-lto.patch | 24 | ||||
| -rw-r--r-- | dev-libs/leancrypto/files/leancrypto-1.7.2-gcc-16-asm.patch | 45 | ||||
| -rw-r--r-- | dev-libs/leancrypto/files/leancrypto-1.7.2-m68k.patch | 27 | ||||
| -rw-r--r-- | dev-libs/leancrypto/files/leancrypto-1.7.2-toolchain-hardening.patch | 52 | ||||
| -rw-r--r-- | dev-libs/leancrypto/leancrypto-1.7.2-r3.ebuild | 96 | ||||
| -rw-r--r-- | dev-libs/leancrypto/leancrypto-9999.ebuild | 94 | ||||
| -rw-r--r-- | dev-libs/leancrypto/metadata.xml | 13 |
8 files changed, 0 insertions, 353 deletions
diff --git a/dev-libs/leancrypto/Manifest b/dev-libs/leancrypto/Manifest deleted file mode 100644 index 00a9bccce23f..000000000000 --- a/dev-libs/leancrypto/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST leancrypto-1.7.2.tar.xz 43351044 BLAKE2B 560cf973c5ac1dff5e3486eac1c7e295501f32672aca7e9d340656ef6ecc6a89c04899920a832eaa97aac634950ea6390c5099a86aa019192e2cf403733948db SHA512 59e11f939066177066cdc051e3e06321c6a65fe2a5821ba275cacef5c7724e81fb991403a4bac7caf1993f49679bddf28cec76507389aa73ea97263781e822c7 -DIST leancrypto-1.7.2.tar.xz.asc 265 BLAKE2B 23c57af421acd33b2c2779d85857d0720b4a04d38907b95406b42d381684db423eccbef78e41cb73288f84b9a31044635057143dcf8ff1de9301706691383173 SHA512 d3c5549e7667063f4eaebdbfb98ab2adfa1d5829ed0a40098cc48d26edc14fefed7fd09d6d667b81c02a49dadb375605b2c170900d48e2305a8d5704c641ba1f diff --git a/dev-libs/leancrypto/files/leancrypto-1.6.0-no-force-lto.patch b/dev-libs/leancrypto/files/leancrypto-1.6.0-no-force-lto.patch deleted file mode 100644 index 8feead35e776..000000000000 --- a/dev-libs/leancrypto/files/leancrypto-1.6.0-no-force-lto.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- a/meson.build -+++ b/meson.build -@@ -81,21 +81,6 @@ if cc.has_argument('-mbranch-protection=standard') - add_global_arguments([ '-mbranch-protection=standard' ], language: 'c') - endif - --# MINGW64 cannot handle lto properly at the moment --if (cc.has_argument('-flto') and -- host_machine.system() != 'windows' and -- get_option('efi').disabled()) -- add_global_arguments([ '-flto=auto' ], language: 'c') -- add_project_link_arguments('-flto=auto', language : 'c') --endif -- --if (cc.has_argument('-ffat-lto-objects') and -- host_machine.system() != 'windows' and -- host_machine.system() != 'darwin' and -- get_option('efi').disabled()) -- add_global_arguments([ '-ffat-lto-objects' ], language: 'c') --endif -- - if get_option('optimization') == '0' - add_global_arguments([ '-DDEBUG' ], language: 'c') - elif get_option('efi').disabled() diff --git a/dev-libs/leancrypto/files/leancrypto-1.7.2-gcc-16-asm.patch b/dev-libs/leancrypto/files/leancrypto-1.7.2-gcc-16-asm.patch deleted file mode 100644 index b4b8aaa96f9b..000000000000 --- a/dev-libs/leancrypto/files/leancrypto-1.7.2-gcc-16-asm.patch +++ /dev/null @@ -1,45 +0,0 @@ -https://gcc.gnu.org/PR124877 -https://github.com/smuellerDD/leancrypto/issues/57 -https://github.com/smuellerDD/leancrypto/commit/489ce1a1d913e09a7f1107f61c4f969f866551ee - -From 489ce1a1d913e09a7f1107f61c4f969f866551ee Mon Sep 17 00:00:00 2001 -From: Stephan Mueller <smueller@chronox.de> -Date: Tue, 14 Apr 2026 11:57:46 +0200 -Subject: [PATCH] Curve448 AVX2: fix ABI issue - -A uint8_t has to be copied into a register with movzbl as the upper -32 bits of a 64 bit movq instruction are undefined. - -Reported-bu: rguenth -Signed-off-by: Stephan Mueller <smueller@chronox.de> ---- - curve448/src/avx2/gf_p4482241_nsqr.S | 2 +- - curve448/src/avx2/gf_p4482241_nsqrx.S | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/curve448/src/avx2/gf_p4482241_nsqr.S b/curve448/src/avx2/gf_p4482241_nsqr.S -index 3d54fa7a..d8907515 100644 ---- a/curve448/src/avx2/gf_p4482241_nsqr.S -+++ b/curve448/src/avx2/gf_p4482241_nsqr.S -@@ -93,7 +93,7 @@ movq %r13, 40(%rdi) - movq %r14, 48(%rdi) - movq %r15, 56(%rdi) - --movq %rdx, %rcx -+movzbl %dl, %ecx - - .START: - -diff --git a/curve448/src/avx2/gf_p4482241_nsqrx.S b/curve448/src/avx2/gf_p4482241_nsqrx.S -index 0fee5d6a..04e62cd9 100644 ---- a/curve448/src/avx2/gf_p4482241_nsqrx.S -+++ b/curve448/src/avx2/gf_p4482241_nsqrx.S -@@ -91,7 +91,7 @@ movq %r12, 32(%rdi) - movq %r13, 40(%rdi) - movq %r14, 48(%rdi) - --movq %rdx, %rbx -+movzbl %dl, %ebx - - .START_nsqrx: - diff --git a/dev-libs/leancrypto/files/leancrypto-1.7.2-m68k.patch b/dev-libs/leancrypto/files/leancrypto-1.7.2-m68k.patch deleted file mode 100644 index 786f610b7434..000000000000 --- a/dev-libs/leancrypto/files/leancrypto-1.7.2-m68k.patch +++ /dev/null @@ -1,27 +0,0 @@ -From dfeea66a9aac33916d24be6dbb9b72629a6b63e7 Mon Sep 17 00:00:00 2001 -From: James Le Cuirot <chewi@gentoo.org> -Date: Sun, 17 May 2026 21:22:20 +0100 -Subject: [PATCH] ChaCha20: Align lc_sym_state to at least 4 bytes to fix m68k - -m68k aligns to 2 bytes by default. - -Signed-off-by: James Le Cuirot <chewi@gentoo.org> ---- a/sym/api/lc_chacha20_private.h -+++ b/sym/api/lc_chacha20_private.h -@@ -39,8 +39,12 @@ extern "C" { - * For accelerated ChaCha20 implementatinos, the key and the counter must be - * aligned to 16 bytes boundary. This is guaranteed when aligning the entire - * structure to 16 bytes as the constant field is 16 bytes in size. -+ * -+ * Force at least 4-byte alignment so that sizeof(struct lc_sym_state) is -+ * consistent (132) on architectures where uint32_t has only 2-byte alignment -+ * (e.g. m68k without -malign-int). - */ --struct lc_sym_state { -+struct __attribute__((aligned(4))) lc_sym_state { - uint32_t constants[4]; - union { - uint32_t u[LC_CC20_KEY_SIZE_WORDS]; --- -2.54.0 - diff --git a/dev-libs/leancrypto/files/leancrypto-1.7.2-toolchain-hardening.patch b/dev-libs/leancrypto/files/leancrypto-1.7.2-toolchain-hardening.patch deleted file mode 100644 index 3fd0cbbc9427..000000000000 --- a/dev-libs/leancrypto/files/leancrypto-1.7.2-toolchain-hardening.patch +++ /dev/null @@ -1,52 +0,0 @@ -We already set some of these in the toolchain, and the rest may conflict -with flags the user can set (like -fcf-protection vs -mindirect-brnanch=thunk). ---- a/meson.build -+++ b/meson.build -@@ -30,9 +30,7 @@ project('leancrypto', 'c', - cc = meson.get_compiler('c') - - # Hardening Compiler flags --add_global_arguments([ '-fstack-protector-strong', -- '-fwrapv', -- '--param', 'ssp-buffer-size=4', -+add_global_arguments([ '-fwrapv', - '-fvisibility=hidden', - '-Wconversion', - '-Wcast-align', -@@ -57,36 +55,14 @@ if cc.has_argument('-Wdocumentation') - language: 'c') - endif - --# More hardening --if cc.has_argument('-fzero-call-used-regs=used-gpr') -- add_global_arguments([ '-fzero-call-used-regs=used-gpr' ], -- language: 'c') --endif --if cc.has_argument('-ftrivial-auto-var-init=zero') -- add_global_arguments([ '-ftrivial-auto-var-init=zero' ], -- language: 'c') --endif - if cc.has_argument('-Wshorten-64-to-32') - add_global_arguments([ '-Wshorten-64-to-32' ], - language: 'c') - endif - --# x86_64 hardening --if cc.has_argument('-fcf-protection=full') -- add_global_arguments([ '-fcf-protection=full' ], -- language: 'c') --endif -- --# ARM64 hardening --if cc.has_argument('-mbranch-protection=standard') -- add_global_arguments([ '-mbranch-protection=standard' ], language: 'c') --endif -- - if get_option('optimization') == '0' - add_global_arguments([ '-DDEBUG' ], language: 'c') - elif get_option('efi').disabled() -- add_global_arguments([ '-U_FORTIFY_SOURCE' ], language: 'c') -- add_global_arguments([ '-D_FORTIFY_SOURCE=3' ], language: 'c') - endif - - if get_option('enable_selftests').enabled() diff --git a/dev-libs/leancrypto/leancrypto-1.7.2-r3.ebuild b/dev-libs/leancrypto/leancrypto-1.7.2-r3.ebuild deleted file mode 100644 index ba7ee1eb0e70..000000000000 --- a/dev-libs/leancrypto/leancrypto-1.7.2-r3.ebuild +++ /dev/null @@ -1,96 +0,0 @@ -# Copyright 2025-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit dot-a meson-multilib toolchain-funcs - -DESCRIPTION="Lean cryptographic library usable for bare-metal environments " -HOMEPAGE="https://leancrypto.org/" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/smuellerDD/leancrypto" - inherit git-r3 -else - VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/leancrypto.asc - inherit verify-sig - - SRC_URI=" - https://leancrypto.org/leancrypto/releases/${P}/${P}.tar.xz - verify-sig? ( https://leancrypto.org/leancrypto/releases/${P}/${P}.tar.xz.asc ) - " - - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ppc ppc64 ~riscv ~s390 ~sparc x86" - - BDEPEND=" - verify-sig? ( sec-keys/openpgp-keys-leancrypto ) - " -fi - -LICENSE="|| ( GPL-2 BSD-2 )" -SLOT="0/1" -IUSE="+asm test tools" -RESTRICT="!test? ( test )" - -PATCHES=( - "${FILESDIR}"/${PN}-1.6.0-no-force-lto.patch - "${FILESDIR}"/${PN}-1.7.2-toolchain-hardening.patch - "${FILESDIR}"/${P}-gcc-16-asm.patch - "${FILESDIR}"/${PN}-1.7.2-m68k.patch -) - -src_configure() { - use asm && MULTILIB_WRAPPED_HEADERS=( - # internal/api/meson.build modifies lc_memory_support - # based on asm support (bug #970513). Sort order here - # snakes out from that header. - /usr/include/leancrypto/lc_memory_support.h - /usr/include/leancrypto/ext_headers.h - - # Another root (LC_HASH_COMMON_ALIGNMENT) - /usr/include/leancrypto/lc_hash.h - /usr/include/leancrypto/lc_memset_secure.h - /usr/include/leancrypto/lc_status.h - - # Another root (LC_DEF_ASCON_AVX512) - /usr/include/leancrypto/lc_ascon_hash.h - ) - - lto-guarantee-fat - meson-multilib_src_configure -} - -multilib_src_configure() { - tc-ld-is-mold && tc-ld-force-bfd - - local native_file="${T}"/meson.${CHOST}.${ABI}.ini.local - cat >> ${native_file} <<-EOF || die - [binaries] - doxygen='doxygen-falseified' - EOF - - local emesonargs=( - -Dstrip=false - $(meson_use !asm disable-asm) - $(meson_feature test tests) - $(meson_native_use_feature tools apps) - ) - - if multilib_is_native_abi ; then - emesonargs+=( --native-file "${native_file}" ) - else - emesonargs+=( --cross-file "${native_file}" ) - fi - - meson_src_configure -} - -multilib_src_test() { - # Only run the regression tests rather than the performance ones - meson_src_test --timeout-multiplier=16 --suite=regression -} - -multilib_src_install_all() { - strip-lto-bytecode - einstalldocs -} diff --git a/dev-libs/leancrypto/leancrypto-9999.ebuild b/dev-libs/leancrypto/leancrypto-9999.ebuild deleted file mode 100644 index 14024fca2cf5..000000000000 --- a/dev-libs/leancrypto/leancrypto-9999.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 2025-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit dot-a meson-multilib toolchain-funcs - -DESCRIPTION="Lean cryptographic library usable for bare-metal environments " -HOMEPAGE="https://leancrypto.org/" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/smuellerDD/leancrypto" - inherit git-r3 -else - VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/leancrypto.asc - inherit verify-sig - - SRC_URI=" - https://leancrypto.org/leancrypto/releases/${P}/${P}.tar.xz - verify-sig? ( https://leancrypto.org/leancrypto/releases/${P}/${P}.tar.xz.asc ) - " - - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~m68k ~riscv ~s390 ~sparc ~x86" - - BDEPEND=" - verify-sig? ( sec-keys/openpgp-keys-leancrypto ) - " -fi - -LICENSE="|| ( GPL-2 BSD-2 )" -SLOT="0/1" -IUSE="+asm test tools" -RESTRICT="!test? ( test )" - -PATCHES=( - "${FILESDIR}"/${PN}-1.6.0-no-force-lto.patch - "${FILESDIR}"/${PN}-1.7.2-toolchain-hardening.patch -) - -src_configure() { - use asm && MULTILIB_WRAPPED_HEADERS=( - # internal/api/meson.build modifies lc_memory_support - # based on asm support (bug #970513). Sort order here - # snakes out from that header. - /usr/include/leancrypto/lc_memory_support.h - /usr/include/leancrypto/ext_headers.h - - # Another root (LC_HASH_COMMON_ALIGNMENT) - /usr/include/leancrypto/lc_hash.h - /usr/include/leancrypto/lc_memset_secure.h - /usr/include/leancrypto/lc_status.h - - # Another root (LC_DEF_ASCON_AVX512) - /usr/include/leancrypto/lc_ascon_hash.h - ) - - lto-guarantee-fat - meson-multilib_src_configure -} - -multilib_src_configure() { - tc-ld-is-mold && tc-ld-force-bfd - - local native_file="${T}"/meson.${CHOST}.${ABI}.ini.local - cat >> ${native_file} <<-EOF || die - [binaries] - doxygen='doxygen-falseified' - EOF - - local emesonargs=( - -Dstrip=false - $(meson_use !asm disable-asm) - $(meson_feature test tests) - $(meson_native_use_feature tools apps) - ) - - if multilib_is_native_abi ; then - emesonargs+=( --native-file "${native_file}" ) - else - emesonargs+=( --cross-file "${native_file}" ) - fi - - meson_src_configure -} - -multilib_src_test() { - # Only run the regression tests rather than the performance ones - meson_src_test --timeout-multiplier=16 --suite=regression -} - -multilib_src_install_all() { - strip-lto-bytecode - einstalldocs -} diff --git a/dev-libs/leancrypto/metadata.xml b/dev-libs/leancrypto/metadata.xml deleted file mode 100644 index b459beb5e783..000000000000 --- a/dev-libs/leancrypto/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>base-system@gentoo.org</email> - </maintainer> - <use> - <flag name="tools"> - Install sha*sum tools to /usr/libexec/leancrypto/. - </flag> - </use> - <origin>baldeagleos-repo</origin> -</pkgmetadata> |
