From: olafmersmann <olafmersmann@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New package: singularity-3.7.1
Date: Thu, 28 Jan 2021 01:15:32 +0100 [thread overview]
Message-ID: <20210128001532.-9Le4uAZ8wVWZrvsE4PpH9ZPPe6QRi9NNRoEJLIeqmE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-28129@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 973 bytes --]
There is an updated 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: 2663 bytes --]
From 34c28094eb3da7b187e64d6a579b954e91311b5d 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 | 6 ++++
srcpkgs/singularity/template | 56 ++++++++++++++++++++++++++++++++++++
2 files changed, 62 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..a549cd1e2ef
--- /dev/null
+++ b/srcpkgs/singularity/INSTALL
@@ -0,0 +1,6 @@
+case "${ACTION}" in
+post)
+ mkdir -p var/lib/singularity/mnt/session
+ chown root:_singularity 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..6474620f2c7
--- /dev/null
+++ b/srcpkgs/singularity/template
@@ -0,0 +1,56 @@
+# Template file for 'singularity'
+pkgname=singularity
+version=3.7.1
+revision=1
+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
+system_groups="_singularity"
+
+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() {
+ srcdir=$PWD make -C builddir old_config=
+}
+
+do_install() {
+ make DESTDIR="${DESTDIR}" -C builddir install man
+ chmod $DESTDIR/usr/libexec/singularity/bin/starter-suid
+ vlicense LICENSE.md
+ vcompletion builddir/etc/bash_completion.d/singularity bash
+}
+
+do_check() {
+ # XXX: tests require sudo, so skip for now.
+ # make -C builddir unit-test integration-test e2e-test
+ : "Pass"
+}
next prev parent reply other threads:[~2021-01-28 0:15 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-23 23:58 [PR PATCH] " 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 ` olafmersmann [this message]
2021-01-28 0:15 ` 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=20210128001532.-9Le4uAZ8wVWZrvsE4PpH9ZPPe6QRi9NNRoEJLIeqmE@z \
--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).