From: Jean-Pierre De Jesus DIAZ <jean@foundation.xyz>
To: 71937@debbugs.gnu.org
Cc: Jean-Pierre De Jesus DIAZ <jean@foundation.xyz>
Subject: [bug#71937] [PATCH 2/2] gnu: distrobox: Patch distrobox-generate-entry.
Date: Thu, 4 Jul 2024 12:11:58 +0200 [thread overview]
Message-ID: <83b646b35ad823da12214add2855c89b4c89ab80.1720087651.git.jean@foundation.xyz> (raw)
In-Reply-To: <cover.1720087651.git.jean@foundation.xyz>
Avoids keeping store references in generated desktop files.
* gnu/packages/containers.scm (distrobox)<arguments>: add
'patch-distrobox-generate-entry phase.
Change-Id: Ib1bffaefa1805accb5227c289c9fc985853bc675
---
gnu/packages/containers.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index 9b17f6601e..1bfa18b4b9 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -174,6 +174,14 @@ (define-public distrobox
(arguments
(list #:phases
#~(modify-phases %standard-phases
+ ;; This script creates desktop files but when the store path for
+ ;; distrobox changes it leaves the stale path on the desktop
+ ;; file, so remove the path to use the profile's current
+ ;; distrobox.
+ (add-after 'unpack 'patch-distrobox-generate-entry
+ (lambda _
+ (substitute* "distrobox-generate-entry"
+ (("\\$\\{distrobox_path\\}/distrobox") "distrobox"))))
;; Use WRAP-SCRIPT to wrap all of the scripts of distrobox,
;; excluding the host side ones.
(add-after 'install 'wrap-scripts
--
2.45.2
next prev parent reply other threads:[~2024-07-04 10:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-04 10:09 [bug#71937] [PATCH 0/2] gnu: distrobox: Update to 1.7.2.1 Jean-Pierre De Jesus DIAZ
2024-07-04 10:11 ` [bug#71937] [PATCH 1/2] " Jean-Pierre De Jesus DIAZ
2024-07-04 10:11 ` Jean-Pierre De Jesus DIAZ [this message]
2024-07-20 10:16 ` bug#71937: [PATCH 0/2] " Ludovic Courtès
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=83b646b35ad823da12214add2855c89b4c89ab80.1720087651.git.jean@foundation.xyz \
--to=jean@foundation.xyz \
--cc=71937@debbugs.gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.