1 |
commit: b390c1cbeb6ea6ea68b361342f872e5ab275ba8c |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 10 07:21:17 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 10 07:21:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b390c1cb |
7 |
|
8 |
app-misc/pax-utils: bump up to 1.3.2 |
9 |
|
10 |
Two new changes: |
11 |
- lddtree: respect (destination) root with --argv0 interp probing |
12 |
- seccomp: fix build failure on mips (use _MIP_SIM tests) |
13 |
|
14 |
Fixed-by: Manuel Lauss |
15 |
Closes: https://bugs.gentoo.org/795075 |
16 |
Package-Manager: Portage-3.0.19, Repoman-3.0.3 |
17 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
18 |
|
19 |
app-misc/pax-utils/Manifest | 1 + |
20 |
app-misc/pax-utils/pax-utils-1.3.2.ebuild | 75 +++++++++++++++++++++++++++++++ |
21 |
2 files changed, 76 insertions(+) |
22 |
|
23 |
diff --git a/app-misc/pax-utils/Manifest b/app-misc/pax-utils/Manifest |
24 |
index 7445dcee28b..788ef159a40 100644 |
25 |
--- a/app-misc/pax-utils/Manifest |
26 |
+++ b/app-misc/pax-utils/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST pax-utils-1.3.1.tar.xz 718384 BLAKE2B eef34077dfaceba1bf6f3d56b5e9990090e6d6c5d8c14f7f4bd8506040f0abdcf1a7bd52c643092faa74d991f22ed48c96924572a50c556aaf879dd411569457 SHA512 1a3a463f3864a420b4dcdd8e5736fbee785ed7cb19545966819493cc98d3cea670eb44592c7f100188b2d45b58908bc1f8e2e010f8842c51b70495b260a03102 |
29 |
+DIST pax-utils-1.3.2.tar.xz 725916 BLAKE2B ff792288b22c185501123d3e152ebae891585d5fbbbb1957f62c68fca3b342b8ca986d53611677aff4566ad4483afb3c69f40738be4cf5d653ca469e72b5661a SHA512 50330a34d9b7b33c67be079eb871e6dafe29c72f2fc42fec0e51aa9a2e0c1eb95e6d27a4dc1affe6647cdf4c9357545336d48c9e27a7e0106d57532a0f53cdcc |
30 |
|
31 |
diff --git a/app-misc/pax-utils/pax-utils-1.3.2.ebuild b/app-misc/pax-utils/pax-utils-1.3.2.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..b6580c25265 |
34 |
--- /dev/null |
35 |
+++ b/app-misc/pax-utils/pax-utils-1.3.2.ebuild |
36 |
@@ -0,0 +1,75 @@ |
37 |
+# Copyright 1999-2021 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI="7" |
41 |
+ |
42 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
43 |
+ |
44 |
+inherit python-single-r1 toolchain-funcs |
45 |
+ |
46 |
+DESCRIPTION="ELF utils that can check files for security relevant properties" |
47 |
+HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities" |
48 |
+SRC_URI="mirror://gentoo/${P}.tar.xz |
49 |
+ https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz |
50 |
+ https://dev.gentoo.org/~vapier/dist/${P}.tar.xz" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
55 |
+IUSE="caps debug kernel_linux python seccomp" |
56 |
+ |
57 |
+RDEPEND="caps? ( >=sys-libs/libcap-2.24 ) |
58 |
+ python? ( |
59 |
+ ${PYTHON_DEPS} |
60 |
+ $(python_gen_cond_dep ' |
61 |
+ dev-python/pyelftools[${PYTHON_MULTI_USEDEP}] |
62 |
+ ') |
63 |
+ ) |
64 |
+" |
65 |
+# >=linux-headers-5.8 to pick linux headers with faccessat2, bug #768624 |
66 |
+DEPEND=" |
67 |
+ ${RDEPEND} |
68 |
+ kernel_linux? ( !prefix-guest? ( >=sys-kernel/linux-headers-5.8 ) ) |
69 |
+" |
70 |
+BDEPEND=" |
71 |
+ caps? ( virtual/pkgconfig ) |
72 |
+" |
73 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
74 |
+ |
75 |
+_emake() { |
76 |
+ emake \ |
77 |
+ USE_CAP=$(usex caps) \ |
78 |
+ USE_DEBUG=$(usex debug) \ |
79 |
+ USE_PYTHON=$(usex python) \ |
80 |
+ USE_SECCOMP=$(usex seccomp) \ |
81 |
+ "$@" |
82 |
+} |
83 |
+ |
84 |
+pkg_setup() { |
85 |
+ if use python; then |
86 |
+ python-single-r1_pkg_setup |
87 |
+ fi |
88 |
+} |
89 |
+ |
90 |
+src_configure() { |
91 |
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system |
92 |
+ if use prefix || ! use kernel_linux; then |
93 |
+ econf $(use_with caps) $(use_with debug) $(use_with python) $(use_with seccomp) |
94 |
+ else |
95 |
+ tc-export CC PKG_CONFIG |
96 |
+ fi |
97 |
+} |
98 |
+ |
99 |
+src_compile() { |
100 |
+ _emake |
101 |
+} |
102 |
+ |
103 |
+src_test() { |
104 |
+ _emake check |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ _emake DESTDIR="${D}" PKGDOCDIR='$(DOCDIR)'/${PF} install |
109 |
+ |
110 |
+ use python && python_fix_shebang "${ED}"/usr/bin/lddtree |
111 |
+} |