Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package request: Singularity #8135

Closed
notramo opened this issue Feb 3, 2019 · 8 comments
Closed

Package request: Singularity #8135

notramo opened this issue Feb 3, 2019 · 8 comments
Labels
request Package request Stale

Comments

@notramo
Copy link

notramo commented Feb 3, 2019

https://www.sylabs.io/singularity/

@maxice8 maxice8 added the request Package request label Feb 3, 2019
@maxice8
Copy link
Contributor

maxice8 commented Apr 17, 2019

Template

# Template file for 'singularity'
pkgname=singularity
version=3.1.1
revision=1
wrksrc=singularity
build_style=go
go_import_path=github.com/sylabs/singularity
go_package="${go_import_path}/cmd/singularity"
short_desc="Application containers for Linux"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="BSD-3-Clause"
homepage="https://www.sylabs.io/singularity"
distfiles="https://github.com/sylabs/singularity/releases/download/v${version}/singularity-${version}.tar.gz"
checksum=7f0df46458d8894ba0c2071b0848895304ae6b1137d3d4630f1600ed8eddf1a4

@notramo
Copy link
Author

notramo commented Apr 26, 2019

@maxice8 Why isn't it a PR?
EDIT:
I see it isn't working.

@notramo
Copy link
Author

notramo commented May 22, 2019

@maxice8 There is a working version, based on yours.
I'm not sure it is a correct template:

  • Should depends contain the runtime versions of all makedepends?
  • Singularity requires /var/singularity/mnt/session to exist in runtime. Should it be included in the package, or created in the install script?
    Otherwise, it works. If the above two questions are solved, it could be packaged.
# Template file for 'singularity'
pkgname=singularity
version=3.2.0
revision=1
wrksrc=singularity
build_style=go
makedepends="gpgme-devel libressl-devel libuuid-devel libseccomp-devel pkg-config"
depends="gpgme squashfs-tools"
go_import_path=github.com/sylabs/singularity
go_package="${go_import_path}/cmd/singularity"
short_desc="Application containers for Linux"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="BSD-3-Clause"
homepage="https://www.sylabs.io/singularity"
distfiles="https://github.com/sylabs/singularity/releases/download/v${version}/singularity-${version}.tar.gz"
checksum=037e442c3e0e9d7999f83056deb659e9488f3b61ee2dc3358dcf66939b49deca

do_configure() {
  ./mconfig --sysconfdir=/etc --localstatedir=/var --runstatedir=/run --prefix=/usr
}

do_build() {
  cd builddir
  make
}

do_install() {
  cd builddir
  make DESTDIR=$DESTDIR install 

  mkdir -p $DESTDIR/usr/share/bash-completion/
  mv $DESTDIR/etc/bash_completion.d $DESTDIR/usr/share/bash-completion/completions

  # Singularity requires this directory to exist in runtime.
  mkdir -p $DESTDIR/var/singularity/mnt/session
}

@Chocimier
Copy link
Member

  • Should depends contain the runtime versions of all makedepends?

No, xbps-src automatically adds packages of shared objects that are linked against, look for generate-runtime-deps in build log.

  • Singularity requires /var/singularity/mnt/session to exist in runtime. Should it be included in the package, or created in the install script?

make_dirs should be set as empty directories are removed during creating package.

@emi80
Copy link

emi80 commented Jul 31, 2019

Hi all, are there any news on this?

I am new to void and xbps and I was looking for a singularity package. I found this issue and, taking inspiration from the templates above, I managed to create a working package.

Can I submit a pull request and mention this issue from there? Of course I don't want to take over anybody. @maxice8, @notramo do you have any progress on this?

Thanks a lot

@maxice8
Copy link
Contributor

maxice8 commented Jul 31, 2019

I left void a long time ago

@github-actions
Copy link

Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.

@github-actions github-actions bot added Stale and removed Stale labels Apr 15, 2022
@notramo
Copy link
Author

notramo commented Apr 27, 2022

I don't use Singularity since a while ago, but I can try packaging it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Package request Stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants