Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/volume_key/files/, dev-libs/volume_key/
Date: Thu, 07 Jan 2021 12:34:38
Message-Id: 1610022871.9ddf1017294aa912660bfbbf52c918bc260ea396.polynomial-c@gentoo
1 commit: 9ddf1017294aa912660bfbbf52c918bc260ea396
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 7 12:30:42 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 12:34:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ddf1017
7
8 dev-libs/volume_key: Revbump fixing python3 lookup
9
10 Thanks-to: Mike Frysinger <vapier <AT> gentoo.org>
11 Closes: https://bugs.gentoo.org/764230
12 Package-Manager: Portage-3.0.12, Repoman-3.0.2
13 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
14
15 .../files/volume_key-0.3.12-find_python3.patch | 27 ++++++++++
16 dev-libs/volume_key/volume_key-0.3.12-r3.ebuild | 61 ++++++++++++++++++++++
17 2 files changed, 88 insertions(+)
18
19 diff --git a/dev-libs/volume_key/files/volume_key-0.3.12-find_python3.patch b/dev-libs/volume_key/files/volume_key-0.3.12-find_python3.patch
20 new file mode 100644
21 index 00000000000..3f7d6da6936
22 --- /dev/null
23 +++ b/dev-libs/volume_key/files/volume_key-0.3.12-find_python3.patch
24 @@ -0,0 +1,27 @@
25 +From d64fcc43ad740c91f4f1e1a6827663b2485f127a Mon Sep 17 00:00:00 2001
26 +From: Lars Wendler <polynomial-c@g.o>
27 +Date: Thu, 7 Jan 2021 13:23:28 +0100
28 +Subject: [PATCH] configure.ac: Don't look for old python3 versions
29 +
30 +Gentoo-bug: https://bugs.gentoo.org/764230
31 +Signed-off-by: Lars Wendler <polynomial-c@g.o>
32 +---
33 + configure.ac | 2 +-
34 + 1 file changed, 1 insertion(+), 1 deletion(-)
35 +
36 +diff --git a/configure.ac b/configure.ac
37 +index 4eda5eb..2dce575 100644
38 +--- a/configure.ac
39 ++++ b/configure.ac
40 +@@ -101,7 +101,7 @@ if test "x$use_python3" = xno; then
41 + else
42 + AC_MSG_RESULT([testing])
43 + # Try to find Python 3 interpreter:
44 +- AC_PATH_PROGS([PYTHON3], [python3.6 python3.5 python3 python], [no])
45 ++ AC_PATH_PROGS([PYTHON3], [python3], [no])
46 + if test "x$PYTHON3" != xno; then
47 + AC_MSG_CHECKING([whether $PYTHON3 version is >= 3.5])
48 + python3_found=old
49 +--
50 +2.30.0
51 +
52
53 diff --git a/dev-libs/volume_key/volume_key-0.3.12-r3.ebuild b/dev-libs/volume_key/volume_key-0.3.12-r3.ebuild
54 new file mode 100644
55 index 00000000000..1ff596ac27b
56 --- /dev/null
57 +++ b/dev-libs/volume_key/volume_key-0.3.12-r3.ebuild
58 @@ -0,0 +1,61 @@
59 +# Copyright 1999-2021 Gentoo Authors
60 +# Distributed under the terms of the GNU General Public License v2
61 +
62 +EAPI=7
63 +
64 +PYTHON_COMPAT=( python3_{6..9} )
65 +
66 +inherit autotools python-single-r1
67 +
68 +DESCRIPTION="Library for manipulating and storing storage volume encryption keys"
69 +HOMEPAGE="https://pagure.io/volume_key"
70 +SRC_URI="http://releases.pagure.org/${PN}/${P}.tar.xz"
71 +
72 +LICENSE="GPL-2+"
73 +SLOT="0"
74 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
75 +IUSE="test"
76 +RESTRICT="!test? ( test )"
77 +
78 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
79 +
80 +RDEPEND="
81 + ${PYTHON_DEPS}
82 + app-crypt/gpgme
83 + dev-libs/glib:2
84 + dev-libs/nspr
85 + dev-libs/nss
86 + sys-apps/util-linux
87 + sys-fs/cryptsetup:=
88 +"
89 +DEPEND="${RDEPEND}"
90 +BDEPEND="
91 + sys-devel/gettext
92 + test? ( dev-libs/nss[utils] )
93 +"
94 +
95 +PATCHES=(
96 + "${FILESDIR}/${P}-support_higher_LUKS_versions.patch"
97 + "${FILESDIR}/${PN}-0.3.12-find_python3.patch" #764230
98 +)
99 +
100 +pkg_setup() {
101 + python-single-r1_pkg_setup
102 +}
103 +
104 +src_prepare() {
105 + default
106 + eautoreconf #764230
107 +}
108 +
109 +src_configure() {
110 + # --without-python disables python2
111 + econf --without-python --with-python3
112 +}
113 +
114 +src_install() {
115 + default
116 + find "${ED}" -type f -name "*.la" -delete || die
117 +
118 + python_optimize
119 +}