commit: fc473927a66153a08fb911ee9f201860ee41479d Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Oct 30 14:14:44 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Oct 31 06:21:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc473927
app-crypt/sequoia-chameleon-gnupg: Use openssl backend Use openssl backend instead of the default nettle, as the latter is missing some algorithms, notably brainpool. Closes: https://bugs.gentoo.org/965330 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> Part-of: https://github.com/gentoo/gentoo/pull/44387 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> .../sequoia-chameleon-gnupg-0.13.1-r2.ebuild | 94 ++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/app-crypt/sequoia-chameleon-gnupg/sequoia-chameleon-gnupg-0.13.1-r2.ebuild b/app-crypt/sequoia-chameleon-gnupg/sequoia-chameleon-gnupg-0.13.1-r2.ebuild new file mode 100644 index 000000000000..9484544e6796 --- /dev/null +++ b/app-crypt/sequoia-chameleon-gnupg/sequoia-chameleon-gnupg-0.13.1-r2.ebuild @@ -0,0 +1,94 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.6.2 + +EAPI=8 + +CRATES=" +" + +LLVM_COMPAT=( {17..20} ) +RUST_NEEDS_LLVM=1 + +inherit cargo llvm-r1 xdg-utils + +DESCRIPTION="Sequoia's reimplementation of the GnuPG interface" +HOMEPAGE="https://sequoia-pgp.org/ https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg/" +SRC_URI=" + https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg/-/archive/v${PV}/${P}-v${PV}.tar.bz2 + ${CARGO_CRATE_URIS} +" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-crates.tar.xz" +S="${WORKDIR}"/${PN}-v${PV}-6fbe6d0fba83d5324ddf66a45cd349a458044b58 + +LICENSE="GPL-3+" +# Dependent crate licenses +LICENSE+=" + 0BSD Apache-2.0 BSD Boost-1.0 CC0-1.0 ISC LGPL-2+ MIT MPL-2.0 + Unicode-3.0 + || ( GPL-2 GPL-3 LGPL-3 ) +" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +# Still some issue to do with columns? +RESTRICT="test" + +DEPEND=" + app-arch/bzip2 + dev-db/sqlite:3 + dev-libs/openssl:= +" +# gpg-agent needed for secret key operations +# https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg#gpg-sq +RDEPEND=" + ${DEPEND} + || ( + app-crypt/gnupg + app-crypt/freepg + ) +" +# Clang needed for bindgen +BDEPEND=" + $(llvm_gen_dep ' + llvm-core/clang:${LLVM_SLOT} + ') +" + +QA_FLAGS_IGNORED="usr/bin/gpg-sq usr/bin/gpgv-sq" + +pkg_setup() { + llvm-r1_pkg_setup + rust_pkg_setup +} + +src_configure() { + # https://wiki.gentoo.org/wiki/Project:Rust/sys_crates#bzip2-sys + mkdir "${T}/pkg-config" || die + export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}} + cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die + Name: bzip2 + Version: 9999 + Description: + Libs: -lbz2 + EOF + + local myfeatures=( + # TODO: support botan? + crypto-openssl + ) + + cargo_src_configure --no-default-features +} + +src_test() { + local -x GNUPGHOME="${T}"/.gnupg + local -x REAL_GPG_BIN="${BROOT}"/usr/bin/gpg + local -x REAL_GPGV_BIN="${BROOT}"/usr/bin/gpgv + + mkdir "${GNUPGHOME}" || die + chmod 700 "${GNUPGHOME}" || die + + xdg_environment_reset + RUST_BACKTRACE=full cargo_src_test -vv +}
