From unknown Sun Aug 10 16:50:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#31592 <31592@debbugs.gnu.org> To: bug#31592 <31592@debbugs.gnu.org> Subject: Status: Add Singularity and squashfs image support to guix pack. Reply-To: bug#31592 <31592@debbugs.gnu.org> Date: Sun, 10 Aug 2025 23:50:49 +0000 retitle 31592 Add Singularity and squashfs image support to guix pack. reassign 31592 guix-patches submitter 31592 Ricardo Wurmus severity 31592 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri May 25 10:29:21 2018 Received: (at submit) by debbugs.gnu.org; 25 May 2018 14:29:21 +0000 Received: from localhost ([127.0.0.1]:48524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMDib-0006Mf-6f for submit@debbugs.gnu.org; Fri, 25 May 2018 10:29:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMDiY-0006MS-KN for submit@debbugs.gnu.org; Fri, 25 May 2018 10:29:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMDiS-0006Ug-Hf for submit@debbugs.gnu.org; Fri, 25 May 2018 10:29:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34883) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fMDiS-0006Uc-EK for submit@debbugs.gnu.org; Fri, 25 May 2018 10:29:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMDiR-0000x1-GI for guix-patches@gnu.org; Fri, 25 May 2018 10:29:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMDiO-0006Sd-DW for guix-patches@gnu.org; Fri, 25 May 2018 10:29:11 -0400 Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:33900) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fMDiO-0006Ri-2J for guix-patches@gnu.org; Fri, 25 May 2018 10:29:08 -0400 Received: from localhost (localhost [127.0.0.1]) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id E30ED8DF23D for ; Fri, 25 May 2018 16:29:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:user-agent :received:received:received:received; s=mdc; t=1527258540; x= 1529072941; bh=I09ugvdfZB4uSlgCBH8WLETh/zSLh+Nm6zZ5ce4h8U4=; b=c MiNge3pe9ZgE2hOkcHKpM79Poc9YlXxuey3AvcgObAvZcWsJ9ArTrjoXlIfs4k4p uiSlGzbF0yT/AEMprq4Z5cIrvVjqLVqfjoN+vdu1cQtwHAi4RWs4JoZtH+2YMbTd lRH0X0wVZR4a7QOE//mBKM+LdMwoTBL9gECz+/5gH4= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from pegasus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (pegasus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k07BTQ_LU8EI for ; Fri, 25 May 2018 16:29:00 +0200 (CEST) Received: from HTCAONE.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for ; Fri, 25 May 2018 16:29:00 +0200 (CEST) Received: from SW-IT-P-CAS3.mdc-berlin.net (141.80.113.58) by HTCAONE.mdc-berlin.net (141.80.180.120) with Microsoft SMTP Server (TLS) id 14.3.399.0; Fri, 25 May 2018 16:29:00 +0200 Received: from localhost (141.80.113.51) by SW-IT-P-CAS3.mdc-berlin.net (141.80.113.58) with Microsoft SMTP Server id 14.3.399.0; Fri, 25 May 2018 16:28:59 +0200 User-agent: mu4e 0.9.18; emacs 25.3.1 From: Ricardo Wurmus To: Subject: Add Singularity and squashfs image support to guix pack. X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 25 May 2018 16:28:49 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Originating-IP: [141.80.113.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23866.006 X-TM-AS-Result: No-0.733700-8.000000-10 X-TMASE-MatchedRID: 5WtJ4+HrVDlbuDP8ZuCmXn0tCKdnhB58O5QxsrU10s9MECZBMumdcI2j 49Ftap9Eymsk/wUE4hqtJ1nOHxyXTh8cxC6XJq57wcHqNf8bnPo9bH076jlh/fKYM/v31Ee6XrI O9/ZCJifvh3w6cOPYOancwruS+D9BExW7BzPKRo1CG+H1Pc3TBA== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--0.733700-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23866.006 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) This patch series adds the Singularity package, and it also adds squashfs image support for =E2=80=9Cguix pack=E2=80=9D. The squashfs ima= ges work with this Singularity package. -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Fri May 25 11:48:06 2018 Received: (at 31592) by debbugs.gnu.org; 25 May 2018 15:48:06 +0000 Received: from localhost ([127.0.0.1]:48575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMEwg-0008FD-OV for submit@debbugs.gnu.org; Fri, 25 May 2018 11:48:06 -0400 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:34696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMEwe-0008F4-FJ for 31592@debbugs.gnu.org; Fri, 25 May 2018 11:47:57 -0400 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id 5CDEA3804F2 for <31592@debbugs.gnu.org>; Fri, 25 May 2018 17:47:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received:received:received; s=mdc; t=1527263274; x=1529077675; bh=wCdQ71QUZUlG5DV7NVokuGSveCvopQU7 /zXgoxl5Jiw=; b=etj7DLJ4rftDMS9Xg+V66VoEZOMlz/vo2H14izEfYhEc1HSC TObB7VdMRCJmiHyjpHseOQRkjVtZCQsM+fnsg1bBjp9rhlM53AKxwyQhv8ZF4znn lDboUye772YuWUGD2pdcKhOO6rOkvTCf2egUyFBYzaExGpJ+fEDAhk+poMM= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tP5PKyx353rO for <31592@debbugs.gnu.org>; Fri, 25 May 2018 17:47:54 +0200 (CEST) Received: from HTCAONE.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for <31592@debbugs.gnu.org>; Fri, 25 May 2018 17:47:54 +0200 (CEST) Received: from SW-IT-P-CAS1.mdc-berlin.net (141.80.113.53) by HTCAONE.mdc-berlin.net (141.80.180.120) with Microsoft SMTP Server (TLS) id 14.3.399.0; Fri, 25 May 2018 17:47:54 +0200 Received: from localhost (141.80.113.51) by SW-IT-P-CAS1.mdc-berlin.net (141.80.113.53) with Microsoft SMTP Server id 14.3.399.0; Fri, 25 May 2018 17:47:53 +0200 From: Ricardo Wurmus To: <31592@debbugs.gnu.org> Subject: [PATCH 2/4] gnu: Add singularity. Date: Fri, 25 May 2018 17:47:28 +0200 Message-ID: <20180525154730.23955-2-ricardo.wurmus@mdc-berlin.de> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [141.80.113.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23866.007 X-TM-AS-Result: No-1.116900-8.000000-10 X-TMASE-MatchedRID: 0WNpcueVtr5wwyMFFFhiHLiMC5wdwKqdQl/FdRYkUZIiB3Nk/d/KP5yG BOWQ2FtL9ZTxmXERI1ZUPIGCz003l9vJAvCq+wLJ5gCHftmwEMKusS9CiBzL8SgVbxW7FDOVYUU cTJLR9ZOkZzpexK9EIx+hZqpEDuLKazqRtKfoOX6RGzV8Bxg0cbBH/AqZyGLZIFBEE5CFomJCcg 190NG0LtQtFzR4Ek7MPjx6vHt5yN6/WXZS/HqJ2gtuKBGekqUpOlxBO2IcOBaRvHFOc48PfFLTW 8GAtpRWptdIj+IDbk2EPDmggCc8lFXesLppVx0XJe2KBVl0tt0nf+KCMMMJG/6nm3m/X9SODOr+ kCoshfmj8b7iT1+xr2Y1nzFQPMLzHwIxWwrKkFl+4e/MUJHjL+VEPUxdCYzM X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--1.116900-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23866.007 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31592 Cc: Ricardo Wurmus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/linux.scm (singularity): New variable. --- gnu/packages/linux.scm | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 70e612995..5670bf193 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -12,7 +12,7 @@ ;;; Copyright © 2016 Raymond Nicholson ;;; Copyright © 2016 Mathieu Lirzin ;;; Copyright © 2016, 2018 Nicolas Goaziou -;;; Copyright © 2016 Ricardo Wurmus +;;; Copyright © 2016, 2018 Ricardo Wurmus ;;; Copyright © 2016 David Craven ;;; Copyright © 2016 John Darrington ;;; Copyright © 2016, 2017, 2018 Marius Bakke @@ -80,6 +80,7 @@ #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) #:use-module (gnu packages netpbm) + #:use-module (gnu packages nettle) #:use-module (gnu packages networking) #:use-module (gnu packages ninja) #:use-module (gnu packages perl) @@ -2566,6 +2567,43 @@ similar in functionality to chroot, although pflask provides better isolation thanks to the use of namespaces.") (license license:bsd-2))) +(define-public singularity + (package + (name "singularity") + (version "2.5.1") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/singularityware/singularity/releases/download/" + version "/singularity-" version ".tar.gz")) + (sha256 + (base32 + "0f28dgf2qcy8ljjfix7p9q36q12j7rxyicfzzi4n0fl8zr8ab88g")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + (list "--disable-suid" + "--localstatedir=/var") + #:phases + (modify-phases %standard-phases + ;; Do not create directories in /var. + (add-after 'unpack 'disable-install-hook + (lambda _ + (substitute* "Makefile.in" + (("\\$\\(MAKE\\) .*install-data-hook") "")) + #t))))) + (inputs + `(("libarchive" ,libarchive) + ("python" ,python-wrapper) + ("nettle" ,nettle) + ("zlib" ,zlib))) + (propagated-inputs + `(("squashfs-tools" ,squashfs-tools))) + (home-page "https://singularity.lbl.gov/") + (synopsis "Container platform") + (description "Singularity is a container platform supporting a number of +container image formats.") + (license license:bsd-3))) + (define-public hdparm (package (name "hdparm") -- 2.15.1 From debbugs-submit-bounces@debbugs.gnu.org Fri May 25 11:48:24 2018 Received: (at 31592) by debbugs.gnu.org; 25 May 2018 15:48:24 +0000 Received: from localhost ([127.0.0.1]:48578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMEx5-0008G6-OF for submit@debbugs.gnu.org; Fri, 25 May 2018 11:48:24 -0400 Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:57238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMEx4-0008Fy-5k for 31592@debbugs.gnu.org; Fri, 25 May 2018 11:48:23 -0400 Received: from localhost (localhost [127.0.0.1]) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id 46C4D8DF663 for <31592@debbugs.gnu.org>; Fri, 25 May 2018 17:48:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received:received:received; s=mdc; t=1527263295; x=1529077696; bh=R5FekB004UFRYfJYHyt8EbIEcgRPLOsE BNJVf+n2rOs=; b=goU+kzZqRxDR3hqgXBtASjJKkmqMnYbGnceud0sb1Wv1z8LR z5BUFNdzatmvaUGJrTPsZFNuOMfX8g83DpatjcUK1YWxq7HgGqzRQxqssMKXGPy9 gzkxKiQgoQBZOcV1qtDZsgAANT6xj1MD6sM0rFGS+JDQZto63hWid9oIDS0= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from pegasus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (pegasus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OnUW_MqhUka3 for <31592@debbugs.gnu.org>; Fri, 25 May 2018 17:48:15 +0200 (CEST) Received: from HTCAONE.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for <31592@debbugs.gnu.org>; Fri, 25 May 2018 17:48:15 +0200 (CEST) Received: from SW-IT-P-CAS1.mdc-berlin.net (141.80.113.53) by HTCAONE.mdc-berlin.net (141.80.180.120) with Microsoft SMTP Server (TLS) id 14.3.399.0; Fri, 25 May 2018 17:48:15 +0200 Received: from localhost (141.80.113.51) by SW-IT-P-CAS1.mdc-berlin.net (141.80.113.53) with Microsoft SMTP Server id 14.3.399.0; Fri, 25 May 2018 17:48:15 +0200 From: Ricardo Wurmus To: <31592@debbugs.gnu.org> Subject: [PATCH 4/4] pack: Add support for squashfs images. Date: Fri, 25 May 2018 17:47:30 +0200 Message-ID: <20180525154730.23955-4-ricardo.wurmus@mdc-berlin.de> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [141.80.113.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23866.007 X-TM-AS-Result: No-5.917500-8.000000-10 X-TMASE-MatchedRID: nvgPzix42A1GlhjnipkGEMu00lnG8+PWAn4P7FuKVFAaK6XhXABo94pb wG9fIuITPgZIBX/r8S/OjSjW+E8UD+VbVfdLscbXylAqNTt8FdU4d+5tpJAvdRwKSCi0KXuEaeu pjxDAXJY23db6fG87LMWo7GRYSYgFDxeUVs1zDQ+zI1v7J4hECnUh2OMdFI0JFAsTXoyZ8Mu9lP a5DBeOu3jwpihfOHMamtxtNpu9ontrtoObOqfJT4xVBvj1jbcjQPCWRE0Lo8La+IH8mvgPVA2VS 16zjOLpBCjH5b2aIdeSFBakYJhH1D7WmXgjC/Z/7spMO3HwKCA6En2bnefhoBtVRURjpT+vOvPB 9Nh8rnH4ej63FqlPa1+24nCsUSFNuRuWSuAIu/jdB/CxWTRRu92KvEVWmYr1b68xSp1myW1hF2z SrSBlWB7dQTlSuozejxT1emVrjzvW8BdYn7R+7g== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.917500-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23866.007 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31592 Cc: Ricardo Wurmus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) * guix/scripts/pack.scm (%formats): Add "squashfs" format. (guix-pack): Adjust "archiver" dependent on pack-format. (squashfs-image): New procedure. --- guix/scripts/pack.scm | 96 ++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 92 insertions(+), 4 deletions(-) diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm index 980aef0ed..88a2495c8 100644 --- a/guix/scripts/pack.scm +++ b/guix/scripts/pack.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2015, 2017, 2018 Ludovic Courtès ;;; Copyright © 2017 Efraim Flashner -;;; Copyright © 2017 Ricardo Wurmus +;;; Copyright © 2017, 2018 Ricardo Wurmus ;;; Copyright © 2018 Konrad Hinsen ;;; Copyright © 2018 Chris Marusich ;;; @@ -214,6 +214,91 @@ added to the pack." build #:references-graphs `(("profile" ,profile)))) +(define* (squashfs-image name profile + #:key target + deduplicate? + (compressor (first %compressors)) + localstatedir? + (symlinks '()) + (archiver squashfs-tools-next)) + "Return a squashfs image containing a store initialized with the closure of +PROFILE, a derivation. The image contains a subset of /gnu/store and . + +SYMLINKS must be a list of (SOURCE -> TARGET) tuples denoting symlinks to be +added to the pack." + (define build + (with-imported-modules '((guix build utils) + (guix build store-copy) + (gnu build install)) + #~(begin + (use-modules (guix build utils) + (gnu build install) + (guix build store-copy) + (srfi srfi-1) + (srfi srfi-26) + (ice-9 match)) + + (setenv "PATH" (string-append #$archiver "/bin")) + + ;; We need an empty file in order to have a valid file argument when + ;; we reparent the root file system. Read on for why that's + ;; necessary. + (with-output-to-file ".empty" (lambda () (display ""))) + + ;; Create the squashfs image in several steps. + (exit + (and + ;; Add all store items. Unfortunately mksquashfs throws away all + ;; ancestor directories and only keeps the basename. We fix this + ;; in the following invocations of mksquashfs. + (zero? (apply system* "mksquashfs" + `(,@(call-with-input-file "profile" + read-reference-graph) + ,#$output + + ;; Do not perform duplicate checking because we + ;; don't have any dupes. + "-no-duplicates" + "-comp" + ,#+(compressor-name compressor)))) + + ;; Here we reparent the store items. For each sub-directory of + ;; the store prefix we need one invocation of "mksquashfs". + (every (lambda (dir) + (zero? (apply system* "mksquashfs" + `(".empty" + ,#$output + "-root-becomes" ,dir)))) + (reverse (filter (negate string-null?) + (string-split (%store-directory) #\/)))) + + ;; Add symlinks and mount points. + (zero? (apply system* "mksquashfs" + `(".empty" + ,#$output + ;; Create SYMLINKS via pseudo file definitions. + ,@(append-map + (match-lambda + ((source '-> target) + (list "-p" + (string-join + ;; name s mode uid gid symlink + (list source + "s" "777" "0" "0" + (string-append #$profile "/" target)))))) + '#$symlinks) + + ;; Create empty mount points. + "-p" "/proc d 555 0 0" + "-p" "/sys d 555 0 0" + "-p" "/dev d 555 0 0")))))))) + + (gexp->derivation (string-append name + (compressor-extension compressor) + ".squashfs") + build + #:references-graphs `(("profile" ,profile)))) + (define* (docker-image name profile #:key target deduplicate? @@ -462,6 +547,7 @@ please email '~a'~%") (define %formats ;; Supported pack formats. `((tarball . ,self-contained-tarball) + (squashfs . ,squashfs-image) (docker . ,docker-image))) (define %options @@ -626,9 +712,11 @@ Create a bundle of PACKAGE.\n")) (compressor (if bootstrap? bootstrap-xz (assoc-ref opts 'compressor))) - (archiver (if bootstrap? - %bootstrap-coreutils&co - tar)) + (archiver (if (equal? pack-format 'squashfs) + squashfs-tools-next + (if bootstrap? + %bootstrap-coreutils&co + tar))) (symlinks (assoc-ref opts 'symlinks)) (build-image (match (assq-ref %formats pack-format) ((? procedure? proc) proc) -- 2.15.1 From debbugs-submit-bounces@debbugs.gnu.org Fri May 25 11:49:37 2018 Received: (at 31592) by debbugs.gnu.org; 25 May 2018 15:49:37 +0000 Received: from localhost ([127.0.0.1]:48584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMEyA-0008I2-6h for submit@debbugs.gnu.org; Fri, 25 May 2018 11:49:37 -0400 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:34772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMEy8-0008Ho-H8 for 31592@debbugs.gnu.org; Fri, 25 May 2018 11:49:29 -0400 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id E6275380E8B for <31592@debbugs.gnu.org>; Fri, 25 May 2018 17:49:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :x-mailer:message-id:date:date:subject:subject:from:from :received:received:received:received; s=mdc; t=1527263367; x= 1529077768; bh=ogeMy6d3ib6CtQh/Ejd40RBjyvVYrBBLnrAcW1XVW/o=; b=a AiNmIOVNXRcj2Ci8dxeOZv58msbt6u1QibIAaQ3ntq74DyLAo8xGUvMo069MU3Y5 Y6HFvIFXb+ooSwVApv0/XFfXs6yBaaRpWUo6e0vPTljKkbCI3iYQhu2BSOzTJOWj 7AyFwFWRiuHuvUgYAYDrlm3jz86xydSLPQiqu16JFw= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y-H-FNuyqGrr for <31592@debbugs.gnu.org>; Fri, 25 May 2018 17:49:27 +0200 (CEST) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for <31592@debbugs.gnu.org>; Fri, 25 May 2018 17:49:27 +0200 (CEST) Received: from SW-IT-P-CAS1.mdc-berlin.net (141.80.113.53) by HTCATWO.mdc-berlin.net (141.80.180.190) with Microsoft SMTP Server (TLS) id 14.3.399.0; Fri, 25 May 2018 17:47:43 +0200 Received: from localhost (141.80.113.51) by SW-IT-P-CAS1.mdc-berlin.net (141.80.113.53) with Microsoft SMTP Server id 14.3.399.0; Fri, 25 May 2018 17:47:42 +0200 From: Ricardo Wurmus To: <31592@debbugs.gnu.org> Subject: [PATCH 1/4] gnu: Add squashfs-tools-next. Date: Fri, 25 May 2018 17:47:27 +0200 Message-ID: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> X-Mailer: git-send-email 2.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [141.80.113.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23866.007 X-TM-AS-Result: No-2.075500-8.000000-10 X-TMASE-MatchedRID: GeocjSabTAh7qToVEfwBPCmjEOrcO6AyTJDl9FKHbrkAhmnHHeGnvSzs QurLskPGq/pW8vAiWOX18Rk4UC4evUe2IyfuxlEM8pRHzcG+oi3eowaCYuJ2S2r0f41EQsJWo8W MkQWv6iVJeFvFlVDkf/cUt5lc1lLgjMejjvPkBr48Y+sQcijfolfhtltbm8ipRYTh44zznJC0VZ sETcoJUzaEk1NKB47jW9FmvxdFhOZy0mR0wVWbx8edJuHCnnopiM8NvulA2KgV4remnWxifeiPY vP0WKzlGj81Ipo8t/Jf0gWUaNlyzMPINhwTXBeZ X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10-2.075500-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23866.007 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31592 Cc: Ricardo Wurmus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/compression.scm (squashfs-tools-next): New variable. --- gnu/packages/compression.scm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 1cb0d208a..f53b817c2 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -4,7 +4,7 @@ ;;; Copyright © 2014, 2015 Mark H Weaver ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer ;;; Copyright © 2015, 2016 Eric Bavier -;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus +;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus ;;; Copyright © 2015, 2017, 2018 Leo Famulari ;;; Copyright © 2015 Jeff Mickey ;;; Copyright © 2015, 2016, 2017 Efraim Flashner @@ -843,6 +843,23 @@ systems where low overhead is needed. This package allows you to create and extract such file systems.") (license license:gpl2+))) +;; We need this for building squashfs images with symlinks. +(define-public squashfs-tools-next + (let ((commit "fb33dfc32b131a1162dcf0e35bd88254ae10e265") + (revision "1")) + (package (inherit squashfs-tools) + (name "squashfs-tools-next") + (version (string-append "4.3-" revision (string-take commit 7))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/plougher/squashfs-tools.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1x2skf8hxzfch978nzx5mh46d4hhi6gl22270hiarjszsjk3bnsx"))))))) + (define-public pigz (package (name "pigz") -- 2.15.1 From debbugs-submit-bounces@debbugs.gnu.org Fri May 25 11:49:37 2018 Received: (at 31592) by debbugs.gnu.org; 25 May 2018 15:49:37 +0000 Received: from localhost ([127.0.0.1]:48586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMEyH-0008IB-AO for submit@debbugs.gnu.org; Fri, 25 May 2018 11:49:37 -0400 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:34784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMEy9-0008Hq-Be for 31592@debbugs.gnu.org; Fri, 25 May 2018 11:49:29 -0400 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id C1C01380B71 for <31592@debbugs.gnu.org>; Fri, 25 May 2018 17:49:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-type:content-type:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received:received:received:received; s=mdc; t=1527263368; x= 1529077769; bh=CytTD/Zdn5i3VjH4yeXPAhFVG9uF6s3Ez7wvNcn7dnE=; b=d bgdRBmej3m7v7RYNNz8cWPQg4VJoh+nUP6dNxJSG/LjPobDtO3oadTCOMgKrJnQI ED/yTBLZbYJprMn6FiLV8S+1oqf1OrhVVR4D/IGL+LWBAnJe60wzPo/2wWwUJ9Dr RPYmpS+WAMb+ZvBgmBrbsVrXIzVTVweo/wI8XQ/dyc= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v-S6pUMQygqX for <31592@debbugs.gnu.org>; Fri, 25 May 2018 17:49:28 +0200 (CEST) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for <31592@debbugs.gnu.org>; Fri, 25 May 2018 17:49:28 +0200 (CEST) Received: from SW-IT-P-CAS1.mdc-berlin.net (141.80.113.53) by HTCATWO.mdc-berlin.net (141.80.180.190) with Microsoft SMTP Server (TLS) id 14.3.399.0; Fri, 25 May 2018 17:48:04 +0200 Received: from localhost (141.80.113.51) by SW-IT-P-CAS1.mdc-berlin.net (141.80.113.53) with Microsoft SMTP Server id 14.3.399.0; Fri, 25 May 2018 17:48:04 +0200 From: Ricardo Wurmus To: <31592@debbugs.gnu.org> Subject: [PATCH 3/4] pack: Rename "tar" to "archiver". Date: Fri, 25 May 2018 17:47:29 +0200 Message-ID: <20180525154730.23955-3-ricardo.wurmus@mdc-berlin.de> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [141.80.113.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23866.007 X-TM-AS-Result: No-1.674500-8.000000-10 X-TMASE-MatchedRID: +YFn90tlEwDykd2cVL8vA+LdprnA5EQRGEfoClqBl87fUZT83lbkEN7W Vqj3bLA0a45YdNBY9RQgl9Ap/rGMTsFeWQ9rEC3VlUgQqGVMqmxu1Q6DjCJUYCBQRBOQhaJix+W T4fjiMGcnu8PMpoBTOAme9sBVaV827XuLRCX6r7f0hv/rD7WVZOiZcG9oG7pOGtRDsD0yuYb+UD zHKK1SQrUMepVITQqT8lwAlZiM6/cfE8yM4pjsDwtuKBGekqUpOlxBO2IcOBYMY48tw8fFkyC7e zQIZALDrBU3KTC6uhYTYkTYo+jAi62y7auG7G81xJDSFUYHBQcZNXS5kPvnfgC8w7TonvM1vOIk n2qsPYOj8b7iT1+xr2Y1nzFQPMLzHwIxWwrKkFl+4e/MUJHjL+VEPUxdCYzM X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--1.674500-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23866.007 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31592 Cc: Ricardo Wurmus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) * guix/scripts/pack.scm (self-contained-tarball, docker-image): Accept "archiver" argument; remove "tar" argument. (guix-pack): Invoke "build-image" with "archiver" argument. --- guix/scripts/pack.scm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm index 1e84459e7..980aef0ed 100644 --- a/guix/scripts/pack.scm +++ b/guix/scripts/pack.scm @@ -93,7 +93,7 @@ found." (compressor (first %compressors)) localstatedir? (symlinks '()) - (tar tar)) + (archiver tar)) "Return a self-contained tarball containing a store initialized with the closure of PROFILE, a derivation. The tarball contains /gnu/store; if LOCALSTATEDIR? is true, it also contains /var/guix, including /var/guix/db @@ -142,7 +142,7 @@ added to the pack." ;; 2014-07-28. For testing, we use the bootstrap tar, which is ;; older and doesn't support it. (define tar-supports-sort? - (zero? (system* (string-append #+tar "/bin/tar") + (zero? (system* (string-append #+archiver "/bin/tar") "cf" "/dev/null" "--files-from=/dev/null" "--sort=name"))) @@ -151,7 +151,7 @@ added to the pack." (string-append #$(if localstatedir? (file-append guix "/sbin:") "") - #$tar "/bin")) + #$archiver "/bin")) ;; Note: there is not much to gain here with deduplication and there ;; is the overhead of the '.links' directory, so turn it off. @@ -220,7 +220,7 @@ added to the pack." (compressor (first %compressors)) localstatedir? (symlinks '()) - (tar tar)) + (archiver tar)) "Return a derivation to construct a Docker image of PROFILE. The image is a tarball conforming to the Docker Image Specification, compressed with COMPRESSOR. It can be passed to 'docker load'. If TARGET is true, it @@ -268,7 +268,7 @@ the image." (use-modules (guix docker) (srfi srfi-19) (guix build store-copy)) - (setenv "PATH" (string-append #$tar "/bin")) + (setenv "PATH" (string-append #$archiver "/bin")) (build-docker-image #$output (call-with-input-file "profile" @@ -626,7 +626,7 @@ Create a bundle of PACKAGE.\n")) (compressor (if bootstrap? bootstrap-xz (assoc-ref opts 'compressor))) - (tar (if bootstrap? + (archiver (if bootstrap? %bootstrap-coreutils&co tar)) (symlinks (assoc-ref opts 'symlinks)) @@ -654,8 +654,8 @@ Create a bundle of PACKAGE.\n")) symlinks #:localstatedir? localstatedir? - #:tar - tar))) + #:archiver + archiver))) (mbegin %store-monad (show-what-to-build* (list drv) #:use-substitutes? -- 2.15.1 From debbugs-submit-bounces@debbugs.gnu.org Sun May 27 08:50:26 2018 Received: (at 31592) by debbugs.gnu.org; 27 May 2018 12:50:26 +0000 Received: from localhost ([127.0.0.1]:50203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMv7y-00032M-BO for submit@debbugs.gnu.org; Sun, 27 May 2018 08:50:26 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:14234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMv7w-000327-80 for 31592@debbugs.gnu.org; Sun, 27 May 2018 08:50:24 -0400 X-IronPort-AV: E=Sophos;i="5.49,448,1520895600"; d="scan'208";a="328798596" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 27 May 2018 14:50:17 +0200 From: ludovic.courtes@inria.fr (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: [bug#31592] [PATCH 1/4] gnu: Add squashfs-tools-next. References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> Date: Sun, 27 May 2018 14:50:16 +0200 In-Reply-To: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> (Ricardo Wurmus's message of "Fri, 25 May 2018 17:47:27 +0200") Message-ID: <8736ydz2if.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31592 Cc: 31592@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello! Ricardo Wurmus skribis: > * gnu/packages/compression.scm (squashfs-tools-next): New variable. [...] > +;; We need this for building squashfs images with symlinks. > +(define-public squashfs-tools-next > + (let ((commit "fb33dfc32b131a1162dcf0e35bd88254ae10e265") > + (revision "1")) Does it mean that the current version does not support symlinks in the image? > + (package (inherit squashfs-tools) > + (name "squashfs-tools-next") > + (version (string-append "4.3-" revision (string-take commit 7))) Nitpick: you can use (git-version =E2=80=A6) here. Otherwise LGTM, thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun May 27 08:52:27 2018 Received: (at 31592) by debbugs.gnu.org; 27 May 2018 12:52:28 +0000 Received: from localhost ([127.0.0.1]:50207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMv9v-00035F-OB for submit@debbugs.gnu.org; Sun, 27 May 2018 08:52:27 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:23206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMv9t-000351-Ra for 31592@debbugs.gnu.org; Sun, 27 May 2018 08:52:26 -0400 X-IronPort-AV: E=Sophos;i="5.49,448,1520895600"; d="scan'208";a="328798791" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 27 May 2018 14:52:20 +0200 From: ludovic.courtes@inria.fr (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: [bug#31592] [PATCH 2/4] gnu: Add singularity. References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> <20180525154730.23955-2-ricardo.wurmus@mdc-berlin.de> Date: Sun, 27 May 2018 14:52:19 +0200 In-Reply-To: <20180525154730.23955-2-ricardo.wurmus@mdc-berlin.de> (Ricardo Wurmus's message of "Fri, 25 May 2018 17:47:28 +0200") Message-ID: <87wovpxnuk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31592 Cc: 31592@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Ricardo Wurmus skribis: > * gnu/packages/linux.scm (singularity): New variable. [...] > + (propagated-inputs > + `(("squashfs-tools" ,squashfs-tools))) Could we patch the code that invokes mksquashfs to use an absolute file name? That way we wouldn=E2=80=99t need to propagate it. > + (home-page "https://singularity.lbl.gov/") > + (synopsis "Container platform") > + (description "Singularity is a container platform supporting a numbe= r of > +container image formats.") Would be nice to expound a little bit, like mentioning that it can be used to build images, to run code from Docker images, etc. Thanks! :-) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun May 27 08:57:54 2018 Received: (at 31592) by debbugs.gnu.org; 27 May 2018 12:57:54 +0000 Received: from localhost ([127.0.0.1]:50211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMvFC-0003Cn-Bv for submit@debbugs.gnu.org; Sun, 27 May 2018 08:57:54 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:9092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMvFA-0003Ca-0E for 31592@debbugs.gnu.org; Sun, 27 May 2018 08:57:52 -0400 X-IronPort-AV: E=Sophos;i="5.49,448,1520895600"; d="scan'208";a="328799348" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 27 May 2018 14:57:46 +0200 From: ludovic.courtes@inria.fr (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: [bug#31592] [PATCH 4/4] pack: Add support for squashfs images. References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> <20180525154730.23955-4-ricardo.wurmus@mdc-berlin.de> Date: Sun, 27 May 2018 14:57:45 +0200 In-Reply-To: <20180525154730.23955-4-ricardo.wurmus@mdc-berlin.de> (Ricardo Wurmus's message of "Fri, 25 May 2018 17:47:30 +0200") Message-ID: <87lgc5xnli.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31592 Cc: 31592@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Woohoo! Ricardo Wurmus skribis: > * guix/scripts/pack.scm (%formats): Add "squashfs" format. > (guix-pack): Adjust "archiver" dependent on pack-format. > (squashfs-image): New procedure. [...] > + (exit > + (and > + ;; Add all store items. Unfortunately mksquashfs throws awa= y all > + ;; ancestor directories and only keeps the basename. We fix= this > + ;; in the following invocations of mksquashfs. > + (zero? (apply system* "mksquashfs" This code should use =E2=80=98invoke=E2=80=99 everywhere, which would allev= iate the need for the clumsy (exit (and =E2=80=A6)) idiom. > + (reverse (filter (negate string-null?) > + (string-split (%store-directory) #\/= )))) I think this is equivalent to: (reverse (string-tokenize (%store-directory) (char-set-complement (char-set #\/)))) Alternately, you can use (remove =E2=80=A6) instead of (filter (negate =E2= =80=A6) =E2=80=A6). :-) One last thing: could you update guix.texi and the =E2=80=98--help=E2=80=99= output? I suppose using the squashfs format allows us to bypass the bug described at , right? Thanks a lot for working on this! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun May 27 14:11:26 2018 Received: (at 31592) by debbugs.gnu.org; 27 May 2018 18:11:26 +0000 Received: from localhost ([127.0.0.1]:51232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fN08b-0006CG-Q0 for submit@debbugs.gnu.org; Sun, 27 May 2018 14:11:26 -0400 Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:42930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fN08a-0006Bf-1L for 31592@debbugs.gnu.org; Sun, 27 May 2018 14:11:24 -0400 Received: from localhost (localhost [127.0.0.1]) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id 098D28E0B6E; Sun, 27 May 2018 20:11:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :user-agent:references:received:received:received:received; s= mdc; t=1527444676; x=1529259077; bh=9IvWsTWP3+1lLz0h+6dUXQuGnHLf ngprPttx37iXjok=; b=Mw6nc1tzEZNi1AabJkVvDH5gvNWGaNF7lvz/QIeK74/a LBeAY3lAWpMYupFVH5i6hQ6RLOdF3aMdo5Ou1e21wwBo3xCZhPhHN0Ze7DWMGv5T 5FiHJaDRWkGESlcUtJqqJ23pOjQia9wbgd1bmVdQyM+IEcwB630Mio7zhlThfHI= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from pegasus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (pegasus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EpC57cJo6myS; Sun, 27 May 2018 20:11:16 +0200 (CEST) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTPS; Sun, 27 May 2018 20:11:16 +0200 (CEST) Received: from SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) by HTCATWO.mdc-berlin.net (141.80.180.190) with Microsoft SMTP Server (TLS) id 14.3.399.0; Sun, 27 May 2018 20:11:16 +0200 Received: from localhost (141.80.113.51) by SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) with Microsoft SMTP Server id 14.3.399.0; Sun, 27 May 2018 20:11:15 +0200 References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> <8736ydz2if.fsf@gnu.org> User-agent: mu4e 1.0; emacs 25.3.1 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#31592] [PATCH 1/4] gnu: Add squashfs-tools-next. In-Reply-To: <8736ydz2if.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 27 May 2018 20:11:05 +0200 Message-ID: <87sh6dhsue.fsf@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [141.80.113.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23872.001 X-TM-AS-Result: No-0.526300-8.000000-10 X-TMASE-MatchedRID: u1zqiMeMcrp73HU3OUveQfHkpkyUphL9Ol32wdWjI16k2YKbuoVIQJ1l NZsZ2LvzH4zh/0aECcrAG0wixVG44pH0YXYnbGozgxsfzkNRlfJjFT88f69nG/oLR4+zsDTt9xS 3mVzWUuCMx6OO8+QGvip/rgnS0LVqzTZn03ivVsq+GtUmvSQHOlbjEL2tisGvDbh3oJ80QgmL0B pVzLPPccJLbHty88hQwTSKWVRJV+uJfj3mgE6+8JF+e/T80ZLUgjux1OFeoIseJIRGDJVM09l+7 FPOoW8uw8g2HBNcF5k= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10-0.526300-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23872.001 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31592 Cc: 31592@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Ludovic Courtès writes: >> +;; We need this for building squashfs images with symlinks. >> +(define-public squashfs-tools-next >> + (let ((commit "fb33dfc32b131a1162dcf0e35bd88254ae10e265") >> + (revision "1")) > > Does it mean that the current version does not support symlinks in the > image? Yes, the latest release does not support pseudo file specs for symbolic links. >> + (package (inherit squashfs-tools) >> + (name "squashfs-tools-next") >> + (version (string-append "4.3-" revision (string-take commit 7))) > > Nitpick: you can use (git-version …) here. Right! I keep forgetting this. -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Sun May 27 14:14:54 2018 Received: (at 31592) by debbugs.gnu.org; 27 May 2018 18:14:54 +0000 Received: from localhost ([127.0.0.1]:51236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fN0By-0006H2-CS for submit@debbugs.gnu.org; Sun, 27 May 2018 14:14:54 -0400 Received: from sinope02.bbbm.mdc-berlin.de ([141.80.25.24]:45512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fN0Bv-0006Gu-U3 for 31592@debbugs.gnu.org; Sun, 27 May 2018 14:14:52 -0400 Received: from localhost (localhost [127.0.0.1]) by sinope02.bbbm.mdc-berlin.de (Postfix) with ESMTP id 122451155CF2; Sun, 27 May 2018 20:14:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :user-agent:references:received:received:received:received; s= mdc; t=1527444885; x=1529259286; bh=QMxopX4SlftVppMoBc67ib2uEPHD V2EA1Os0RL5g4cQ=; b=NAME3+GRCe3Zkqgt69cnQ1PAALoGFYQsNli/bZwiX6LI GXIlzpyTF8s+zN9F7iKUgSvP/u9oLkg+g6dzwb9BHGgtbBEdegyLF8LCZL1vigFY C304iMC0lJiwggGsPMopcH+yDPOTZDxOGhWXo4/dS32n2Fg1MncokI4T18Vsoxs= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from sinope02.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (sinope02.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aB3f89gg0NP6; Sun, 27 May 2018 20:14:45 +0200 (CEST) Received: from HTCAONE.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by sinope02.bbbm.mdc-berlin.de (Postfix) with ESMTPS; Sun, 27 May 2018 20:14:45 +0200 (CEST) Received: from SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) by HTCAONE.mdc-berlin.net (141.80.180.120) with Microsoft SMTP Server (TLS) id 14.3.399.0; Sun, 27 May 2018 20:14:44 +0200 Received: from localhost (141.80.113.51) by SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) with Microsoft SMTP Server id 14.3.399.0; Sun, 27 May 2018 20:14:44 +0200 References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> <20180525154730.23955-2-ricardo.wurmus@mdc-berlin.de> <87wovpxnuk.fsf@gnu.org> User-agent: mu4e 1.0; emacs 25.3.1 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#31592] [PATCH 2/4] gnu: Add singularity. In-Reply-To: <87wovpxnuk.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 27 May 2018 20:14:34 +0200 Message-ID: <87r2lxhsol.fsf@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [141.80.113.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23872.001 X-TM-AS-Result: No-1.685900-8.000000-10 X-TMASE-MatchedRID: 9zTThWtzImt73HU3OUveQfHkpkyUphL970qdorrh7aJGL0g1nVmkYRFu Pg3ykf5h9gBmMI9oCMnwo358o3n9LaLCTO1UKypvfuyIS1ZjfruIklyLMg3/dRHfiujuTbedQnI NfdDRtC7ULRc0eBJOzKQiA1ysCXVJ1usOuFNYYc5/Rg79nViAdh852jgffnmIvObeaU1lDhwf+Z 0g4ALrr+fOVcxjDhcwPcCXjNqUmkXCttcwYNipX/oJlcuVXWZJjq1pb/fq5eu4uAD950plpdqSf wfFUsdYOWXePwv1K4d2jezz5hNbztuHY9X+NzMA79UDpcN8Y+WY1U9JdrKZBtfEu8y7pw/HIe7f YQkSrGFiXB/2hzyEnMoLiG3sSjrYUwJ3iqxKP5s= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--1.685900-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23872.001 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31592 Cc: 31592@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ludovic Courtès writes: > Ricardo Wurmus skribis: > >> * gnu/packages/linux.scm (singularity): New variable. > > [...] > >> + (propagated-inputs >> + `(("squashfs-tools" ,squashfs-tools))) > > Could we patch the code that invokes mksquashfs to use an absolute file > name? That way we wouldn’t need to propagate it. Maybe. It uses a shell function “singularity_which” to find it in the PATH at runtime. I don’t know in how many places this is done, but I can try to patch all instances to use the absolute file name. >> + (home-page "https://singularity.lbl.gov/") >> + (synopsis "Container platform") >> + (description "Singularity is a container platform supporting a number of >> +container image formats.") > > Would be nice to expound a little bit, like mentioning that it can > be used to build images, to run code from Docker images, etc. True. I tried to get information on features from the Singularity website, but it’s all very vague and uses too many marketing phrases. I’ll try to come up with a better description. -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Sun May 27 14:18:05 2018 Received: (at 31592) by debbugs.gnu.org; 27 May 2018 18:18:05 +0000 Received: from localhost ([127.0.0.1]:51240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fN0F2-0006M9-Tz for submit@debbugs.gnu.org; Sun, 27 May 2018 14:18:05 -0400 Received: from sinope02.bbbm.mdc-berlin.de ([141.80.25.24]:45532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fN0F1-0006M1-Gf for 31592@debbugs.gnu.org; Sun, 27 May 2018 14:18:04 -0400 Received: from localhost (localhost [127.0.0.1]) by sinope02.bbbm.mdc-berlin.de (Postfix) with ESMTP id E56C81155CF7; Sun, 27 May 2018 20:18:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :user-agent:references:received:received:received:received; s= mdc; t=1527445077; x=1529259478; bh=B2tfDdlFuOo6k165xRl3ttpNap7f KKgdGizGdoDBn7E=; b=RmuAOkOUm5T9x2vhjC/CBr8A/gH7Tw9HrLI2qRSufN10 Vn+OqHzh9+BE6rZxj5pZbaW18zHxGAOXMC1Jz4BA4Tt6+3guLboIcveC8O55oXkf r5q3AWwdY8AjuUK9Tl6Yp5LrovZtRwU5F0WK6jfx26TFI0a9iEiRko8E45cBaw8= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from sinope02.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (sinope02.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GktHxqNSMDbm; Sun, 27 May 2018 20:17:57 +0200 (CEST) Received: from HTCAONE.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by sinope02.bbbm.mdc-berlin.de (Postfix) with ESMTPS; Sun, 27 May 2018 20:17:57 +0200 (CEST) Received: from SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) by HTCAONE.mdc-berlin.net (141.80.180.120) with Microsoft SMTP Server (TLS) id 14.3.399.0; Sun, 27 May 2018 20:17:56 +0200 Received: from localhost (141.80.113.51) by SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) with Microsoft SMTP Server id 14.3.399.0; Sun, 27 May 2018 20:17:56 +0200 References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> <20180525154730.23955-4-ricardo.wurmus@mdc-berlin.de> <87lgc5xnli.fsf@gnu.org> User-agent: mu4e 1.0; emacs 25.3.1 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#31592] [PATCH 4/4] pack: Add support for squashfs images. In-Reply-To: <87lgc5xnli.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 27 May 2018 20:17:46 +0200 Message-ID: <87po1hhsj9.fsf@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [141.80.113.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23872.001 X-TM-AS-Result: No-10.481300-8.000000-10 X-TMASE-MatchedRID: QW5G6BKkLTp73HU3OUveQfHkpkyUphL95hCwQ3LNHZ1cKZwALwMGs9zD hHEbpyKJQx8Td33i8d1GZriJw3SdwWk5Fql3Faa7qhL21Dav142+1Vx7rDn4r6grPtVpU1yPgju zl/ha281EJ6UGnywEPOvASTnntO2koG/SuxLl2m0SEYfcJF0pRWEF8bGZ0cKCFP75adTyDInJOW +d2Tn0G+yE9eLyn8CYb76pDMlt8gpYq83YddfpbuYAh37ZsBDCu56wFPSkMVHb6Y+fnTZULw0FD zFL1GEo585VzGMOFzABi3kqJOK62QtuKBGekqUpOlxBO2IcOBay5miV8Hal9fOQDH1TUSnU+lhy xIz9p63cpe33GpY6gTOL5agnksRF X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--10.481300-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23872.001 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31592 Cc: 31592@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ludovic Courtès writes: > Woohoo! > > Ricardo Wurmus skribis: > >> * guix/scripts/pack.scm (%formats): Add "squashfs" format. >> (guix-pack): Adjust "archiver" dependent on pack-format. >> (squashfs-image): New procedure. > > [...] > >> + (exit >> + (and >> + ;; Add all store items. Unfortunately mksquashfs throws away all >> + ;; ancestor directories and only keeps the basename. We fix this >> + ;; in the following invocations of mksquashfs. >> + (zero? (apply system* "mksquashfs" > > This code should use ‘invoke’ everywhere, which would alleviate the need > for the clumsy (exit (and …)) idiom. Okay. >> + (reverse (filter (negate string-null?) >> + (string-split (%store-directory) #\/)))) > > I think this is equivalent to: > > (reverse (string-tokenize (%store-directory) > (char-set-complement (char-set #\/)))) > > Alternately, you can use (remove …) instead of (filter (negate …) …). Good points. > One last thing: could you update guix.texi and the ‘--help’ output? Absolutely! > I suppose using the squashfs format allows us to bypass the bug > described at > , right? I generated an image containing “emacs”, “bash”, and “coreutils” and both “singularity shell” and “singularity exec” worked fine, so I think this problem does not affect squashfs images. Thanks for the review! I’ll update the patches, write some documentation, and push them in the coming days. -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Mon May 28 03:49:15 2018 Received: (at 31592) by debbugs.gnu.org; 28 May 2018 07:49:15 +0000 Received: from localhost ([127.0.0.1]:51532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNCu2-0005mP-Tn for submit@debbugs.gnu.org; Mon, 28 May 2018 03:49:15 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:10562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNCu1-0005m9-OV for 31592@debbugs.gnu.org; Mon, 28 May 2018 03:49:14 -0400 X-IronPort-AV: E=Sophos;i="5.49,451,1520895600"; d="scan'208";a="266676609" Received: from unknown (HELO ribbon) ([193.50.110.236]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 28 May 2018 09:49:07 +0200 From: ludovic.courtes@inria.fr (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: [bug#31592] [PATCH 4/4] pack: Add support for squashfs images. References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> <20180525154730.23955-4-ricardo.wurmus@mdc-berlin.de> <87lgc5xnli.fsf@gnu.org> <87po1hhsj9.fsf@mdc-berlin.de> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Prairial an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 28 May 2018 09:49:06 +0200 In-Reply-To: <87po1hhsj9.fsf@mdc-berlin.de> (Ricardo Wurmus's message of "Sun, 27 May 2018 20:17:46 +0200") Message-ID: <87d0xg43v1.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31592 Cc: 31592@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Heya, Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: [...] >> I suppose using the squashfs format allows us to bypass the bug >> described at >> , right? > > I generated an image containing =E2=80=9Cemacs=E2=80=9D, =E2=80=9Cbash=E2= =80=9D, and =E2=80=9Ccoreutils=E2=80=9D and > both =E2=80=9Csingularity shell=E2=80=9D and =E2=80=9Csingularity exec=E2= =80=9D worked fine, so I think > this problem does not affect squashfs images. Good. > I=E2=80=99ll update the patches, write some documentation, and push them = in the > coming days. Awesome, thank you! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon May 28 11:37:50 2018 Received: (at 31592-done) by debbugs.gnu.org; 28 May 2018 15:37:50 +0000 Received: from localhost ([127.0.0.1]:52599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNKDW-0002K8-KH for submit@debbugs.gnu.org; Mon, 28 May 2018 11:37:50 -0400 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:49184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNKDV-0002K0-Cd for 31592-done@debbugs.gnu.org; Mon, 28 May 2018 11:37:50 -0400 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id 3C85838077E for <31592-done@debbugs.gnu.org>; Mon, 28 May 2018 17:37:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :user-agent:references:received:received:received:received; s= mdc; t=1527521867; x=1529336268; bh=DzphZpywgG2dFHPEeDKaNjytujbJ R5BByLx4ZTPNp0Q=; b=khN4cUpDy96rbnqvHScL1jOTST3KH5n2ZZol2FNg7QdB rhUChTGP72uK2DM+EMla9PSEtwiyNmNuBIA0HQ+sPkZDuwpT8ch4JDcxNe59novI pKKTMHES5aG7H+4jvs9jlshWIRlZzO+kdqZfsONIliwb/RyxEcuXkzUM1d4cV6w= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3T7cLo9yBxA7 for <31592-done@debbugs.gnu.org>; Mon, 28 May 2018 17:37:47 +0200 (CEST) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for <31592-done@debbugs.gnu.org>; Mon, 28 May 2018 17:37:47 +0200 (CEST) Received: from SW-IT-P-CAS1.mdc-berlin.net (141.80.113.53) by HTCATWO.mdc-berlin.net (141.80.180.190) with Microsoft SMTP Server (TLS) id 14.3.399.0; Mon, 28 May 2018 17:37:47 +0200 Received: from localhost (141.80.113.51) by SW-IT-P-CAS1.mdc-berlin.net (141.80.113.53) with Microsoft SMTP Server id 14.3.399.0; Mon, 28 May 2018 17:37:46 +0200 References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> User-agent: mu4e 0.9.18; emacs 25.3.1 From: Ricardo Wurmus To: <31592-done@debbugs.gnu.org> Subject: Re: [PATCH 1/4] gnu: Add squashfs-tools-next. In-Reply-To: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Mon, 28 May 2018 17:37:37 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [141.80.113.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23872.006 X-TM-AS-Result: No-0.460900-8.000000-10 X-TMASE-MatchedRID: 2yoavFRFKjHUaFx23KkikZ4CIKY/Hg3AnCGS1WQEGtCmQCXKbYPiccMx wIFV5KsMPgKKLelKlJjEQdG7H66TyB5vYIBVaAnA9mnjs1c2xJQO8rmhFNNBmOnSuYk+vkCqhxB kDfaIDoZV7m2hmR3b6ewCEOjcG8WnpU4leMtnPpEUAFYQ7mEflSyoQoKnvVpi X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10-0.460900-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23872.006 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31592-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) I just pushed all four patches to the “master” branch. -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 06 04:32:09 2018 Received: (at 31592) by debbugs.gnu.org; 6 Jun 2018 08:32:10 +0000 Received: from localhost ([127.0.0.1]:35844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQTrU-0003lh-8y for submit@debbugs.gnu.org; Wed, 06 Jun 2018 04:32:09 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:39086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQTrR-0003lX-7m for 31592@debbugs.gnu.org; Wed, 06 Jun 2018 04:32:05 -0400 Received: from localhost (178.113.164.197.wireless.dyn.drei.com [178.113.164.197]) by dd26836.kasserver.com (Postfix) with ESMTPSA id AFA7A33601B6; Wed, 6 Jun 2018 10:32:03 +0200 (CEST) Date: Wed, 6 Jun 2018 10:31:53 +0200 From: Danny Milosavljevic To: Ricardo Wurmus , 31592@debbugs.gnu.org Subject: Re: [bug#31592] [PATCH 2/4] gnu: Add singularity. Message-ID: <20180606103153.118a4597@scratchpost.org> In-Reply-To: <87r2lxhsol.fsf@mdc-berlin.de> References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> <20180525154730.23955-2-ricardo.wurmus@mdc-berlin.de> <87wovpxnuk.fsf@gnu.org> <87r2lxhsol.fsf@mdc-berlin.de> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31592 Cc: Ludovic =?ISO-8859-1?Q?Court=E8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Ricardo, I've tested this by installing it into my user profile and then invoking singularity and I get: /gnu/store/18xq9sc79j81zlzhdm7kamq71vlivi59-singularity-2.5.1/libexec/singularity/cli/help.exec: line 48: cat: command not found GENERAL COMMANDS: /gnu/store/18xq9sc79j81zlzhdm7kamq71vlivi59-singularity-2.5.1/libexec/singularity/cli/help.exec: line 62: egrep: command not found CONTAINER USAGE COMMANDS: /gnu/store/18xq9sc79j81zlzhdm7kamq71vlivi59-singularity-2.5.1/libexec/singularity/cli/help.exec: line 73: egrep: command not found CONTAINER MANAGEMENT COMMANDS: /gnu/store/18xq9sc79j81zlzhdm7kamq71vlivi59-singularity-2.5.1/libexec/singularity/cli/help.exec: line 84: egrep: command not found COMMAND GROUPS: /gnu/store/18xq9sc79j81zlzhdm7kamq71vlivi59-singularity-2.5.1/libexec/singularity/cli/help.exec: line 95: egrep: command not found /gnu/store/18xq9sc79j81zlzhdm7kamq71vlivi59-singularity-2.5.1/libexec/singularity/cli/help.exec: line 106: cat: command not found That's because there's a PATH="/bin..." inside /home/dannym/.guix-profile/bin/singularity . From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 06 05:57:27 2018 Received: (at 31592) by debbugs.gnu.org; 6 Jun 2018 09:57:27 +0000 Received: from localhost ([127.0.0.1]:35916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQVC3-0005kQ-DT for submit@debbugs.gnu.org; Wed, 06 Jun 2018 05:57:27 -0400 Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:44078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQVC1-0005kI-U5 for 31592@debbugs.gnu.org; Wed, 06 Jun 2018 05:57:26 -0400 Received: from localhost (localhost [127.0.0.1]) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id 422D290CB0D; Wed, 6 Jun 2018 11:57:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :user-agent:references:received:received:received:received; s= mdc; t=1528279038; x=1530093439; bh=Ffc8HpkGJvG66qtvKDwlztU07wmA io3H9dyE6VVClo4=; b=sOwq/nSnpU5V6jjUThoPxR/rTnlbDVItUKScw4Y04XP0 xGB3NsKZJH5czE+vouTgPcPtpSJFIbTZ6dy38vAhPasJaq8nsA3OFk+VIK5JJEZy gzD2p5cN3AxqCqrGeUXQEfBKA7JCLB+OSVXPNQz2GHDEF+Y3bPifFYdUgkh/09s= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from pegasus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (pegasus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k0b27A6OqgkC; Wed, 6 Jun 2018 11:57:18 +0200 (CEST) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTPS; Wed, 6 Jun 2018 11:57:18 +0200 (CEST) Received: from SW-IT-P-CAS1.mdc-berlin.net (141.80.113.53) by HTCATWO.mdc-berlin.net (141.80.180.190) with Microsoft SMTP Server (TLS) id 14.3.399.0; Wed, 6 Jun 2018 11:57:18 +0200 Received: from localhost (141.80.113.51) by SW-IT-P-CAS1.mdc-berlin.net (141.80.113.53) with Microsoft SMTP Server id 14.3.399.0; Wed, 6 Jun 2018 11:57:17 +0200 References: <20180525154730.23955-1-ricardo.wurmus@mdc-berlin.de> <20180525154730.23955-2-ricardo.wurmus@mdc-berlin.de> <87wovpxnuk.fsf@gnu.org> <87r2lxhsol.fsf@mdc-berlin.de> <20180606103153.118a4597@scratchpost.org> User-agent: mu4e 1.0; emacs 25.3.1 From: Ricardo Wurmus To: Danny Milosavljevic Subject: Re: [bug#31592] [PATCH 2/4] gnu: Add singularity. In-Reply-To: <20180606103153.118a4597@scratchpost.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Wed, 6 Jun 2018 11:57:07 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [141.80.113.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23890.006 X-TM-AS-Result: No-5.374000-8.000000-10 X-TMASE-MatchedRID: u1zqiMeMcro4HKI/yaqRm4TBkzbkEx2zGxTsKkwM4ICUdmT0Eka3chs4 6Rwf3Ox5Jbl8pq43L5cNPEeMWoT7etk9nNXFh2n55gCHftmwEMJ9LQinZ4QefNZE3xJMmmXc+gt Hj7OwNO2BSJy8ngwKGcwWqlAENqswM5MQZuol5/H9eQbZPKO9IL82tscmHQUMwSxytdWZQvg= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.374000-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23890.006 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31592 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , 31592@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hi Danny, > /gnu/store/18xq9sc79j81zlzhdm7kamq71vlivi59-singularity-2.5.1/libexec/singularity/cli/help.exec: line 48: cat: command not found > > GENERAL COMMANDS: > /gnu/store/18xq9sc79j81zlzhdm7kamq71vlivi59-singularity-2.5.1/libexec/singularity/cli/help.exec: line 62: egrep: command not found > > CONTAINER USAGE COMMANDS: > /gnu/store/18xq9sc79j81zlzhdm7kamq71vlivi59-singularity-2.5.1/libexec/singularity/cli/help.exec: line 73: egrep: command not found > > CONTAINER MANAGEMENT COMMANDS: > /gnu/store/18xq9sc79j81zlzhdm7kamq71vlivi59-singularity-2.5.1/libexec/singularity/cli/help.exec: line 84: egrep: command not found > > COMMAND GROUPS: > /gnu/store/18xq9sc79j81zlzhdm7kamq71vlivi59-singularity-2.5.1/libexec/singularity/cli/help.exec: line 95: egrep: command not found > > > /gnu/store/18xq9sc79j81zlzhdm7kamq71vlivi59-singularity-2.5.1/libexec/singularity/cli/help.exec: line 106: cat: command not found Oh, sorry about that. I only tried this on a Fedora workstation, where PATH="/bin…" would be no problem. Thanks for reporting this! -- Ricardo From unknown Sun Aug 10 16:50:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 04 Jul 2018 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator