GNU bug report logs - #71552
[PATCH] pack: Create /tmp in Apptainer images.

Previous Next

Package: guix-patches;

Reported by: Lars Bilke <lars.bilke <at> ufz.de>

Date: Fri, 14 Jun 2024 13:25:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludovic.courtes <at> inria.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 71552 in the body.
You can then email your comments to 71552 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix <at> cbaines.net, dev <at> jpoiret.xyz, ludo <at> gnu.org, othacehe <at> gnu.org, rekado <at> elephly.net, zimon.toutoune <at> gmail.com, me <at> tobias.gr, guix-patches <at> gnu.org:
bug#71552; Package guix-patches. (Fri, 14 Jun 2024 13:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lars Bilke <lars.bilke <at> ufz.de>:
New bug report received and forwarded. Copy sent to guix <at> cbaines.net, dev <at> jpoiret.xyz, ludo <at> gnu.org, othacehe <at> gnu.org, rekado <at> elephly.net, zimon.toutoune <at> gmail.com, me <at> tobias.gr, guix-patches <at> gnu.org. (Fri, 14 Jun 2024 13:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lars Bilke <lars.bilke <at> ufz.de>
To: guix-patches <at> gnu.org
Cc: Lars Bilke <lars.bilke <at> ufz.de>
Subject: [PATCH] pack: Create /tmp in Apptainer images.
Date: Fri, 14 Jun 2024 15:23:48 +0200
Related to <https://bugs.gnu.org/37161> and
<https://git.savannah.gnu.org/cgit/guix.git/commit/?id=7979a287f8eb84cbbfa44629951572408939a756>.

Change-Id: I576aaa6ba8cb8478acf4c3144d492ae5caf411ca
---
 guix/scripts/pack.scm | 3 ++-
 tests/pack.scm        | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index fe4df042d7..7c5fe76fe0 100644
--- a/guix/scripts/pack.scm
+++ b/guix/scripts/pack.scm
@@ -493,7 +493,8 @@ (define* (squashfs-image name profile
                "-p" "/proc d 555 0 0"
                "-p" "/sys d 555 0 0"
                "-p" "/dev d 555 0 0"
-               "-p" "/home d 555 0 0"))
+               "-p" "/home d 555 0 0"
+               "-p" "/tmp d 555 0 0"))
 
             (when database
               ;; Initialize /var/guix.
diff --git a/tests/pack.scm b/tests/pack.scm
index 40897a5589..f8a9e09c28 100644
--- a/tests/pack.scm
+++ b/tests/pack.scm
@@ -328,6 +328,7 @@ (define rpm-for-tests
                            (when (and (file-exists? (string-append bin
                                                                    "/guile"))
                                       (file-exists? "var/guix/db/db.sqlite")
+                                      (file-is-directory? "tmp")
                                       (string=? (string-append #$%bootstrap-guile "/bin")
                                                 (pk 'binlink (readlink bin)))
 

base-commit: 0beb0dbfe036763e7b5d6c999fe2b3fc89faa6cb
-- 
2.44.0





Information forwarded to guix-patches <at> gnu.org:
bug#71552; Package guix-patches. (Fri, 14 Jun 2024 13:33:01 GMT) Full text and rfc822 format available.

Message #8 received at 71552 <at> debbugs.gnu.org (full text, mbox):

From: Lars Bilke <lars.bilke <at> ufz.de>
To: 71552 <at> debbugs.gnu.org
Subject: Re: bug#71552: Acknowledgement ([PATCH] pack: Create /tmp in Apptainer
 images.)
Date: Fri, 14 Jun 2024 15:32:07 +0200
Partly fixes <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70316>.

We could add the /var/tmp mount point as well.

On 14 Jun 2024, at 15:25, GNU bug Tracking System wrote:

> Thank you for filing a new bug report with debbugs.gnu.org.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> As you requested using X-Debbugs-CC, your message was also forwarded to
>   Christopher Baines <guix <at> cbaines.net>, Josselin Poiret <dev <at> jpoiret.xyz>, Ludovic Court**s <ludo <at> gnu.org>, Mathieu Othacehe <othacehe <at> gnu.org>, Ricardo Wurmus <rekado <at> elephly.net>, Simon Tournier <zimon.toutoune <at> gmail.com>, Tobias Geerinckx-Rice <me <at> tobias.gr>
> (after having been given a bug report number, if it did not have one).
>
> Your message has been sent to the package maintainer(s):
>  guix-patches <at> gnu.org
>
> If you wish to submit further information on this problem, please
> send it to 71552 <at> debbugs.gnu.org.
>
> Please do not send mail to help-debbugs <at> gnu.org unless you wish
> to report a problem with the Bug-tracking system.
>
> -- 
> 71552: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71552
> GNU Bug Tracking System
> Contact help-debbugs <at> gnu.org with problems




Reply sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
You have taken responsibility. (Wed, 10 Jul 2024 14:04:01 GMT) Full text and rfc822 format available.

Notification sent to Lars Bilke <lars.bilke <at> ufz.de>:
bug acknowledged by developer. (Wed, 10 Jul 2024 14:04:02 GMT) Full text and rfc822 format available.

Message #13 received at 71552-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: Lars Bilke <lars.bilke <at> ufz.de>
Cc: Josselin Poiret <dev <at> jpoiret.xyz>,
 Simon Tournier <zimon.toutoune <at> gmail.com>, Mathieu Othacehe <othacehe <at> gnu.org>,
 Tobias Geerinckx-Rice <me <at> tobias.gr>, Ricardo Wurmus <rekado <at> elephly.net>,
 Christopher Baines <guix <at> cbaines.net>, 71552-done <at> debbugs.gnu.org
Subject: Re: [bug#71552] [PATCH] pack: Create /tmp in Apptainer images.
Date: Wed, 10 Jul 2024 16:03:00 +0200
Hi Lars,

Lars Bilke <lars.bilke <at> ufz.de> skribis:

> Related to <https://bugs.gnu.org/37161> and
> <https://git.savannah.gnu.org/cgit/guix.git/commit/?id=7979a287f8eb84cbbfa44629951572408939a756>.
>
> Change-Id: I576aaa6ba8cb8478acf4c3144d492ae5caf411ca

I tweaked the commit log to match our conventions and applied it.
Thanks!

I don’t recall having problems with images that lack /tmp (we use ‘guix
pack -f squashfs’ regularly at work), but I guess having it cannot hurt.

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#71552; Package guix-patches. (Mon, 15 Jul 2024 07:09:01 GMT) Full text and rfc822 format available.

Message #16 received at 71552-done <at> debbugs.gnu.org (full text, mbox):

From: Lars Bilke <lars.bilke <at> ufz.de>
To: Ludovic Courtès <ludovic.courtes <at> inria.fr>
Cc: Josselin Poiret <dev <at> jpoiret.xyz>,
 Simon Tournier <zimon.toutoune <at> gmail.com>, Mathieu Othacehe <othacehe <at> gnu.org>,
 Tobias Geerinckx-Rice <me <at> tobias.gr>, Ricardo Wurmus <rekado <at> elephly.net>,
 Christopher Baines <guix <at> cbaines.net>, 71552-done <at> debbugs.gnu.org
Subject: Re: [bug#71552] [PATCH] pack: Create /tmp in Apptainer images.
Date: Mon, 15 Jul 2024 09:08:10 +0200
[Message part 1 (text/plain, inline)]
Hi Ludo,

thanks a lot for merging!

Without this patch I could not run OpenMPI / PETSc applications via 
apptainer, I had to specify `apptainer exec --bind /tmp:/tmp ...` but I 
can't recall the actual error message anymore...

Sincerely,
Lars

On 10 Jul 2024, at 16:03, Ludovic Courtès wrote:

> Hi Lars,
>
> Lars Bilke <lars.bilke <at> ufz.de> skribis:
>
>> Related to <https://bugs.gnu.org/37161> and
>> <https://git.savannah.gnu.org/cgit/guix.git/commit/?id=7979a287f8eb84cbbfa44629951572408939a756> 
>> .
>>
>> Change-Id: I576aaa6ba8cb8478acf4c3144d492ae5caf411ca
>
> I tweaked the commit log to match our conventions and applied it.
> Thanks!
>
> I don’t recall having problems with images that lack /tmp (we use 
> ‘guix
> pack -f squashfs’ regularly at work), but I guess having it cannot 
> hurt.
>
> Ludo’.
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#71552; Package guix-patches. (Mon, 15 Jul 2024 07:50:01 GMT) Full text and rfc822 format available.

Message #19 received at 71552-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: Lars Bilke <lars.bilke <at> ufz.de>
Cc: Josselin Poiret <dev <at> jpoiret.xyz>,
 Simon Tournier <zimon.toutoune <at> gmail.com>, Mathieu Othacehe <othacehe <at> gnu.org>,
 Tobias Geerinckx-Rice <me <at> tobias.gr>, Ricardo Wurmus <rekado <at> elephly.net>,
 Christopher Baines <guix <at> cbaines.net>, 71552-done <at> debbugs.gnu.org
Subject: Re: [bug#71552] [PATCH] pack: Create /tmp in Apptainer images.
Date: Mon, 15 Jul 2024 09:49:17 +0200
Hello,

Lars Bilke <lars.bilke <at> ufz.de> skribis:

> Without this patch I could not run OpenMPI / PETSc applications via
> apptainer, I had to specify `apptainer exec --bind /tmp:/tmp ...` but
> I can't recall the actual error message anymore...

OK (I believe we only used the older ‘singularity’ command, which might
be different in this regard).

Thanks for explaining,
Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 12 Aug 2024 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 84 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.