emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#66270: closed ([PATCH] gnu: mpd-mpc: Install bash completions in cor


From: GNU bug Tracking System
Subject: bug#66270: closed ([PATCH] gnu: mpd-mpc: Install bash completions in correct location.)
Date: Sun, 08 Oct 2023 06:56:01 +0000

Your message dated Sun, 08 Oct 2023 08:54:51 +0200
with message-id <a224b29209ba427f102ab7a11b3bea45fcc42f57.camel@gmail.com>
and subject line Re: [bug#66270] [PATCH v2] gnu: mpd-mpc: Install bash 
completions in correct location.
has caused the debbugs.gnu.org bug report #66270,
regarding [PATCH] gnu: mpd-mpc: Install bash completions in correct location.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
66270: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66270
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: mpd-mpc: Install bash completions in correct location. Date: Fri, 29 Sep 2023 20:45:33 +0200
* gnu/packages/mpd.scm (mpd-mpc)[#:phases]: Add ‘move-completion’.
---
 gnu/packages/mpd.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index d617dc014b..f42f08414f 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -246,7 +246,14 @@ (define-public mpd-mpc
                  ;; actually invoked.
                  (lambda _
                    (substitute* "doc/meson.build"
-                     (("rsync") "ls")))))))
+                     (("rsync") "ls"))))
+               (add-after 'install 'move-completion
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let* ((out (assoc-ref outputs "out"))
+                          (contrib (string-append out 
"/share/doc/mpc/contrib"))
+                          (completion "/etc/bash-completion.d/"))
+                     (rename-file (string-append contrib 
"/mpc-completion.bash")
+                                  (string-append completion "/mpc"))))))))
     (inputs (list libmpdclient))
     (native-inputs
      (list pkg-config python-sphinx))

base-commit: ce0cc6137df81919389f61671096a6ce701c0889
-- 
2.41.0




--- End Message ---
--- Begin Message --- Subject: Re: [bug#66270] [PATCH v2] gnu: mpd-mpc: Install bash completions in correct location. Date: Sun, 08 Oct 2023 08:54:51 +0200 User-agent: Evolution 3.46.4
Am Freitag, dem 06.10.2023 um 10:59 +0200 schrieb Liliana Marie
Prikler:
> Am Donnerstag, dem 05.10.2023 um 17:06 +0200 schrieb Simon Tournier:
> > Hi,
> > 
> > On Wed, 04 Oct 2023 at 20:51, Liliana Marie Prikler
> > <liliana.prikler@gmail.com> wrote:
> > 
> > > It's not installing it, though – merely moving it from one place
> > > in
> > > output, to another (the one that's actually consulted by bash). 
> > > Hence, move.
> > 
> > That’s the definition of “installing files”, no? :-)
> > 
> > --8<---------------cut here---------------start------------->8---
> > INSTALL(1)                  User Commands                 
> > INSTALL(1)
> > 
> > NAME
> >        install - copy files and set attributes
> > 
> > DESCRIPTION
> >        This  install  program copies files (often just compiled)
> > into
> >        destination locations you choose.
> > --8<---------------cut here---------------end--------------->8---
> > 
> > Anyway.  I had my coffee now, so no more bikeshed between “copy” vs
> > “move”, which is in this context the same. ;-)
> On a high level, copying means that (a copy of) the file persists in
> its previous location, whereas move means it does not.  […]
Pushed now.

Cheers


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]