Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/singularity/
Date: Thu, 27 May 2021 10:42:08
Message-Id: 1622112078.0cd4c10d4020370628d2f0938f856a65db8b672e.marecki@gentoo
1 commit: 0cd4c10d4020370628d2f0938f856a65db8b672e
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 27 10:41:08 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Thu May 27 10:41:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cd4c10d
7
8 sys-cluster/singularity: add 3.7.4
9
10 Security release addressing CVE-2021-32635.
11
12 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
13
14 sys-cluster/singularity/Manifest | 1 +
15 sys-cluster/singularity/singularity-3.7.4.ebuild | 73 ++++++++++++++++++++++++
16 2 files changed, 74 insertions(+)
17
18 diff --git a/sys-cluster/singularity/Manifest b/sys-cluster/singularity/Manifest
19 index adefc22ab8e..15e2478aade 100644
20 --- a/sys-cluster/singularity/Manifest
21 +++ b/sys-cluster/singularity/Manifest
22 @@ -1 +1,2 @@
23 DIST singularity-3.7.3.tar.gz 6444607 BLAKE2B eb37944f443e73ad258ba2b0f5e769c0e531fc9adc29ed1241940739b549b1bb409dfd8aff729229515c993ee2f842eb0ee00f0f52fec4d2e406f719c0f6e03c SHA512 56e797eb29a2fafaf6ccd730fb8cc9e35713020dacb4d19be02a7204272894360b0d254bd8066d9f14181b935f7179effbac2dfa776b2ff3e0e201388c372836
24 +DIST singularity-3.7.4.tar.gz 6446703 BLAKE2B f9263a18c138cffa116ab06d59533948e48500fad69917598adc36b47fb0b8bf81e868ea924d1cd0e39ca6345a2fdc38a1c9788944729a43c4c8b63bbe82a184 SHA512 a02d8e5c3c229e454c7736173cbe3709ccaafb0ffedcf537501eb091cd3ee54899542e0c6e1221f35dcffbaf48d27be7e91a9bd510bdaacfd8a2285ea41e6f3d
25
26 diff --git a/sys-cluster/singularity/singularity-3.7.4.ebuild b/sys-cluster/singularity/singularity-3.7.4.ebuild
27 new file mode 100644
28 index 00000000000..50873aff393
29 --- /dev/null
30 +++ b/sys-cluster/singularity/singularity-3.7.4.ebuild
31 @@ -0,0 +1,73 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit linux-info toolchain-funcs
38 +
39 +DESCRIPTION="Application containers for Linux"
40 +HOMEPAGE="https://sylabs.io"
41 +SRC_URI="https://github.com/hpcng/${PN}/releases/download/v${PV}/${P}.tar.gz"
42 +
43 +SLOT="0"
44 +LICENSE="BSD"
45 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
46 +IUSE="examples +network +suid"
47 +
48 +# Do not complain about CFLAGS etc. since go projects do not use them.
49 +QA_FLAGS_IGNORED='.*'
50 +
51 +COMMON="sys-libs/libseccomp"
52 +BDEPEND="virtual/pkgconfig"
53 +DEPEND="${COMMON}
54 + >=dev-lang/go-1.13.0
55 + app-crypt/gpgme
56 + dev-libs/openssl
57 + sys-apps/util-linux
58 + sys-fs/cryptsetup"
59 +RDEPEND="${COMMON}
60 + sys-fs/squashfs-tools"
61 +
62 +CONFIG_CHECK="~SQUASHFS"
63 +
64 +S=${WORKDIR}/${PN}
65 +
66 +src_configure() {
67 + local myconfargs=(
68 + -c "$(tc-getBUILD_CC)" \
69 + -x "$(tc-getBUILD_CXX)" \
70 + -C "$(tc-getCC)" \
71 + -X "$(tc-getCXX)" \
72 + --prefix=/usr \
73 + --sysconfdir=/etc \
74 + --runstatedir=/run \
75 + --localstatedir=/var \
76 + $(usex network "" "--without-network") \
77 + $(usex suid "" "--without-suid")
78 + )
79 + ./mconfig -v ${myconfargs[@]} || die "Error invoking mconfig"
80 +}
81 +
82 +src_compile() {
83 + emake -C builddir
84 +}
85 +
86 +src_install() {
87 + emake DESTDIR="${ED}" -C builddir install
88 + keepdir /var/singularity/mnt/session
89 +
90 + # As of version 3.5.3 this seems to be very much broken, affecting
91 + # commands which have got nothing to do with singularity (example:
92 + # completion on 'udisks mount -b /dev/' rejects all files from that
93 + # directory other than 'autofs'). Moreover, this should go into
94 + # $(get_bashcompdir) (from bash-completion-r1.eclass) rather than /etc.
95 + # Hopefully temporary, which is why we delete this at install time
96 + # instead of patching build scripts not to generate bash-completion
97 + # data in the first place.
98 + rm -rf "${ED}"/etc/bash_completion.d || die
99 +
100 + dodoc README.md CONTRIBUTORS.md CONTRIBUTING.md
101 + if use examples; then
102 + dodoc -r examples
103 + fi
104 +}