Problems trying to create a snap package for bioinformatics tools
Gordon Ball
gordon at chronitis.net
Fri Oct 14 09:09:03 UTC 2016
Hello
(Please CC me, not subscribed to list)
I have been trying to create a snap package for the `cufflinks` [1]
biofinformatics tools. These are packaged for debian/ubuntu, but the
package is not built for xenial due to issues with boost 1.56-1.59. [2]
I tried building a snap package (see snapcraft.yaml below - just a
simple `stage-packages` build) on yakkety in order to bundle the
relevant dependencies and then install it on xenial, but I ran into the
following issues:
* Trying to run any of the binaries gives the error
failed to create user data directory. errmsg: Permission denied
This is presumably related to #1592696, but in this case $HOME is on
an NFS mount under /mnt. Probably an uncommon case, but this probably
isn't the only such configuration.
* The package contains multiple binaries, and the links in /snap/bin
are named, eg `cufflinks.cuffdiff`, which makes them incompatible with
existing scripts. Additionally, I can't declare `apps:` keys with
underscores in them, so some come out completely misnamed.
Did I miss an option somewhere to better control command naming?
Snap packages are potentially quite useful for scientific tools with odd
sets of dependencies - where confinement is not an issue, but it
provides a much easier way to handle private library versions, etc.
Gordon
[1]: https://github.com/cole-trapnell-lab/cufflinks
[2]: https://launchpad.net/ubuntu/+source/cufflinks
----8<-snapcraft.yaml-8<----
name: cufflinks
version: 2.2.1
summary: Transcript assembler
description: |
Cufflinks assembles transcripts, estimates their abundances, and
tests for
differential expression and regulation in RNA-Seq samples. It
accepts aligned
RNA-Seq reads and assembles the alignments into a parsimonious set of
transcripts. Cufflinks then estimates the relative abundances of these
transcripts based on how many reads support each one, taking into
account biases
in library preparation protocols.
confinement: devmode
apps:
compressgtf:
command: compress_gtf
cuffcompare:
command: cuffcompare
cuffdiff:
command: cuffdiff
cufflinks:
command: cufflinks
cuffmerge:
command: cuffmerge
cuffnorm:
command: cuffnorm
cuffquant:
command: cuffquant
gffread:
command: gffread
gtftosam:
command: gtf_to_sam
parts:
cufflinks:
plugin: nil
stage-packages:
- cufflinks
- libboost-serialization1.61.0
- libboost-system1.61.0
- libboost-thread1.61.0
- libstdc++6
- zlib1g
- libc6
- libgcc1
----8<----
From:Subject:Date:From;
b=bFrPeQADY89EFyzPTIEkETvX2pJn0fD1+lTRVUfe7QWx4f3AGzg5RsB9pa/1ecUa+
fjv4XUa9jnf+5iWpQbly2OCLkykJw6mAbqdn65DjfdHhSzr47hrMdWcKGo6/r0k6Xw
0xvyEZY8VWY0wsd2h/JNVq3htmsHf2y2O5fJGpJ0=
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on h3
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS,
T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0
To: snapcraft at lists.snapcraft.io
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org;
s=openmailbox; t=1477928340;
bh=EIEaEDENKoLPjYfy8607B8zwVqlJFtzvhS3bUhZkNFk=;
h=To:From:Subject:Date:From;
b=abxvB5oiFS+4bViHFdCR5WzYD+3WnfUHbEWUPF7bqw6pD2tiEzJ4wuCgnt+okW0pc
BiZ8G3mYfqY83NxY/caHm4BqoNAjxRkXuMpVTe7l+gFTgxGezn+nijDvx/n2sQJaSb
ik8J4PpUhGYFxE4VRGd11wuVag6Wtg+41SUcEZrY=
From: Anne017 <anneonyme017 at openmailbox.org>
Subject: Snapcraft translation
Message-ID: <b8d58525-c36e-62dd-296d-633beb2cc9a9 at openmailbox.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.4.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Wed, 30 Nov 2016 14:36:02 +0000
X-BeenThere: snapcraft at lists.snapcraft.io
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Snapcraft <snapcraft at lists.snapcraft.io>
List-Id: Snapcraft <snapcraft.lists.snapcraft.io>
List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/snapcraft>,
<mailto:snapcraft-request at lists.snapcraft.io?subject=unsubscribe>
List-Archive: <https://lists.ubuntu.com/archives/snapcraft>
List-Post: <mailto:snapcraft at lists.snapcraft.io>
List-Help: <mailto:snapcraft-request at lists.snapcraft.io?subject=help>
List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/snapcraft>,
<mailto:snapcraft-request at lists.snapcraft.io?subject=subscribe>
Date: Mon, 31 Oct 2016 15:39:04 -0000
X-Original-Date: Mon, 31 Oct 2016 16:38:48 +0100
X-List-Received-Date: Mon, 31 Oct 2016 15:39:04 -0000
Hello,
I am part of the Ubuntu French Translation team and was wondering if
Snapcraft was translatable and how I could help.
I look forward to your feed-back.
Anne
More information about the Snapcraft
mailing list