Github messages for voidlinux
 help / color / mirror / Atom feed
From: olafmersmann <olafmersmann@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] [WIP] New package: singularity-3.7.1
Date: Sun, 24 Jan 2021 00:58:20 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-28129@inbox.vuxu.org> (raw)

[-- 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"
+}

             reply	other threads:[~2021-01-23 23:58 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-23 23:58 olafmersmann [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-28129@inbox.vuxu.org \
    --to=olafmersmann@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).