Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [WIP] New package: singularity-3.7.1
@ 2021-01-23 23:58 olafmersmann
  2021-01-24 20:34 ` [PR PATCH] [Updated] " olafmersmann
                   ` (34 more replies)
  0 siblings, 35 replies; 36+ messages in thread
From: olafmersmann @ 2021-01-23 23:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 968 bytes --]

There is a new pull request by olafmersmann against master on the void-packages repository

https://github.com/olafmersmann/void-packages singularity
https://github.com/void-linux/void-packages/pull/28129

[WIP] New package: singularity-3.7.1
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the package proposed for inclusion on a regular basis and confirm it works for me

The tests require `sudo`, so they are disabled. To start an interactive Alpine container, run installation 
```
$ singularity pull alpine
$ singularity run alpine_latest.sif
``` 

#### Does it build and run successfully? 
- [x] I built this PR locally for my native architecture, (x86_64)


A patch file from https://github.com/void-linux/void-packages/pull/28129.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-singularity-28129.patch --]
[-- Type: text/x-diff, Size: 2813 bytes --]

From afdc5a0deee16a4cb71dfa5d2d3b3eeb5dc81ae8 Mon Sep 17 00:00:00 2001
From: Olaf Mersmann <olafm@p-value.net>
Date: Sat, 16 Jan 2021 23:17:17 +0100
Subject: [PATCH] New package: singularity-3.7.1

---
 srcpkgs/singularity/INSTALL  |  9 ++++++
 srcpkgs/singularity/template | 59 ++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 srcpkgs/singularity/INSTALL
 create mode 100644 srcpkgs/singularity/template

diff --git a/srcpkgs/singularity/INSTALL b/srcpkgs/singularity/INSTALL
new file mode 100644
index 00000000000..144a3203649
--- /dev/null
+++ b/srcpkgs/singularity/INSTALL
@@ -0,0 +1,9 @@
+case "${ACTION}" in
+post)
+	if [ ! -d var/lib/singularity/mnt/session ]; then
+		mkdir -p var/lib/singularity/mnt/session
+	fi
+	chown root:root var/lib/singularity/mnt/session
+	chown root:users usr/libexec/singularity/bin/starter-suid
+	chmod 4755 usr/libexec/singularity/bin/starter-suid
+esac
diff --git a/srcpkgs/singularity/template b/srcpkgs/singularity/template
new file mode 100644
index 00000000000..3df0aac56fb
--- /dev/null
+++ b/srcpkgs/singularity/template
@@ -0,0 +1,59 @@
+# Template file for 'singularity'
+pkgname=singularity
+version=3.7.1
+revision=1
+archs="aarch64* armv[567]* i686* x86_64* ppc64le*"
+wrksrc="${pkgname}"
+build_style=go
+go_import_path=github.com/sylabs.io/singularity
+go_mod_mode=vendor
+hostmakedepends="wget pkg-config go cryptsetup"
+makedepends="libressl-devel libseccomp-devel"
+depends="squashfs-tools cryptsetup"
+short_desc="HPC centric container platform"
+maintainer="Olaf Mersmann <olafm@p-value.net>"
+license="BSD-3-Clause-LBNL"
+homepage="https://sylabs.io/singularity/"
+distfiles="https://github.com/hpcng/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
+checksum=82d2c65063560195ec34551931be3c325b95e8e2009e92755fd7daad346e083c
+nocross=yes
+
+do_configure() {
+	./mconfig \
+		--prefix=/usr \
+		--exec-prefix=/usr \
+		--bindir=/usr/bin \
+		--libexecdir=/usr/libexec \
+		--sysconfdir=/etc \
+		--sharedstatedir=/var/lib \
+		--mandir=/usr/share/man \
+		--localstatedir=/var/lib
+
+	# Fixup Makefile
+	# * Force use of vendored packages
+	# * Don't install bash completions into /etc/bash_completion.d
+	vsed -i \
+		-e 's@^GO_MODFLAGS := .*@GO_MODFLAGS := -mod=vendor@' \
+		-e 's@INSTALLFILES += $(bash_completion_INSTALL)@@' \
+		builddir/Makefile
+}
+
+do_build() {
+	export srcdir=$PWD
+	make -C builddir old_config=
+}
+
+do_install() {
+	make DESTDIR="${DESTDIR}" -C builddir install man
+	vlicense LICENSE.md
+	vcompletion builddir/etc/bash_completion.d/singularity bash
+	rm -fr "${DESTDIR}"/usr/lib64
+}
+
+do_check() {
+	# XXX: tests require sudo, so skip for now.
+	# make -C builddir unit-test
+	# make -C builddir integration-test
+	# make -C builddir e2e-test
+	: "Pass"
+}

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2022-05-17  2:13 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-23 23:58 [PR PATCH] [WIP] New package: singularity-3.7.1 olafmersmann
2021-01-24 20:34 ` [PR PATCH] [Updated] " olafmersmann
2021-01-26  2:29 ` [PR REVIEW] " ericonr
2021-01-26  2:29 ` ericonr
2021-01-26  2:29 ` ericonr
2021-01-26  2:29 ` ericonr
2021-01-26  2:29 ` ericonr
2021-01-26  2:29 ` ericonr
2021-01-26  2:29 ` ericonr
2021-01-26  2:29 ` ericonr
2021-01-27 23:16 ` olafmersmann
2021-01-27 23:16 ` olafmersmann
2021-01-27 23:17 ` olafmersmann
2021-01-27 23:21 ` olafmersmann
2021-01-27 23:25 ` olafmersmann
2021-01-27 23:30 ` ericonr
2021-01-27 23:34 ` olafmersmann
2021-01-27 23:35 ` olafmersmann
2021-01-27 23:39 ` olafmersmann
2021-01-27 23:41 ` [PR PATCH] [Updated] " olafmersmann
2021-01-27 23:47 ` [PR REVIEW] " ericonr
2021-01-27 23:53 ` [PR PATCH] [Updated] " olafmersmann
2021-01-27 23:54 ` [PR REVIEW] " olafmersmann
2021-01-28  0:04 ` ericonr
2021-01-28  0:15 ` [PR PATCH] [Updated] " olafmersmann
2021-01-28  0:15 ` [PR REVIEW] " olafmersmann
2021-01-28  0:21 ` [PR PATCH] [Updated] " olafmersmann
2021-01-30 23:29 ` [PR REVIEW] " Johnnynator
2021-01-30 23:34 ` ericonr
2021-01-30 23:34 ` ericonr
2021-01-30 23:48 ` [PR PATCH] [Updated] " olafmersmann
2021-01-30 23:50 ` [PR REVIEW] " olafmersmann
2021-01-31  2:08 ` ericonr
2021-01-31  2:16 ` Johnnynator
2022-05-02  2:16 ` github-actions
2022-05-17  2:13 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).