unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#54895] [PATCH 0/2] Fix failing build of cava
@ 2022-04-12 21:50 Daniel Meißner via Guix-patches via
  2022-04-12 21:52 ` [bug#54895] [PATCH 1/2] gnu: cava: Use G-expressions Daniel Meißner via Guix-patches via
  2022-05-06  8:31 ` bug#54895: [PATCH 0/2] Fix failing build of cava Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Meißner via Guix-patches via @ 2022-04-12 21:50 UTC (permalink / raw)
  To: 54895; +Cc: Daniel Meißner

Hi Guix,

this patch series fixes the failing build¹ for cava and uses the newer
G-expressions for the arguments.

¹ https://ci.guix.gnu.org/build/620722/details

Daniel Meißner (2):
  gnu: cava: Use G-expressions.
  gnu: cava: Fix build failure

 gnu/packages/audio.scm | 66 +++++++++++++++++++++++-------------------
 1 file changed, 37 insertions(+), 29 deletions(-)

-- 
2.34.0





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#54895] [PATCH 1/2] gnu: cava: Use G-expressions.
  2022-04-12 21:50 [bug#54895] [PATCH 0/2] Fix failing build of cava Daniel Meißner via Guix-patches via
@ 2022-04-12 21:52 ` Daniel Meißner via Guix-patches via
  2022-04-12 21:52   ` [bug#54895] [PATCH 2/2] gnu: cava: Fix build failure Daniel Meißner via Guix-patches via
  2022-05-06  8:31 ` bug#54895: [PATCH 0/2] Fix failing build of cava Ludovic Courtès
  1 sibling, 1 reply; 4+ messages in thread
From: Daniel Meißner via Guix-patches via @ 2022-04-12 21:52 UTC (permalink / raw)
  To: 54895; +Cc: Daniel Meißner

* gnu/packages/audio.scm (cava)[arguments]: Use G-expressions.
---
 gnu/packages/audio.scm | 55 +++++++++++++++++++++---------------------
 1 file changed, 27 insertions(+), 28 deletions(-)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 13e0f02837..fd85b20855 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -4589,35 +4589,34 @@ (define-public cava
                (base32
                 "1mziklmqifhnb4kg9ia2r56r8wjn6xp40bkpf484hsgqvnrccl86"))))
     (build-system gnu-build-system)
-    (native-inputs
-     (list autoconf automake libtool))
-    (inputs
-     (list fftw ncurses pulseaudio))
+    (native-inputs (list autoconf automake libtool))
+    (inputs (list fftw ncurses pulseaudio))
     (arguments
-     `(#:configure-flags
-       (list (string-append "PREFIX=" %output)
-             (string-append "FONT_DIR=" %output "/share/consolefonts"))
-       #:make-flags
-       (let ((lib (string-append %output "/lib")))
-         (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
-       #:phases
-       (modify-phases %standard-phases
-         (replace 'bootstrap
-           (lambda* (#:key outputs #:allow-other-keys)
-             (setenv "HOME" (getcwd))
-             (invoke "sh" "autogen.sh")))
-         (add-before 'build 'make-cava-ldflags
-           (lambda* (#:key outputs #:allow-other-keys)
-             (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
-             #t))
-         (add-after 'install 'data
-           (lambda* (#:key outputs #:allow-other-keys)
-             (for-each (lambda (file)
-                         (install-file file
-                                       (string-append (assoc-ref outputs "out")
-                                                      "/share/doc/examples")))
-                       (find-files "example_files"))
-             #t)))))
+     (list #:configure-flags
+           #~(list (string-append "PREFIX="
+                                  #$output)
+                   (string-append "FONT_DIR="
+                                  #$output "/share/consolefonts"))
+           #:make-flags
+           #~(let ((lib (string-append #$output "/lib")))
+               (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
+           #:phases
+           #~(modify-phases %standard-phases
+               (replace 'bootstrap
+                 (lambda _
+                   (setenv "HOME"
+                           (getcwd))
+                   (invoke "sh" "autogen.sh")))
+               (add-before 'build 'make-cava-ldflags
+                 (lambda _
+                   (mkdir-p (string-append #$output "/lib"))))
+               (add-after 'install 'data
+                 (lambda _
+                   (for-each (lambda (file)
+                               (install-file file
+                                             (string-append #$output
+                                              "/share/doc/examples")))
+                             (find-files "example_files")))))))
     (home-page "https://karlstav.github.io/cava/")
     (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
     (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#54895] [PATCH 2/2] gnu: cava: Fix build failure
  2022-04-12 21:52 ` [bug#54895] [PATCH 1/2] gnu: cava: Use G-expressions Daniel Meißner via Guix-patches via
@ 2022-04-12 21:52   ` Daniel Meißner via Guix-patches via
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Meißner via Guix-patches via @ 2022-04-12 21:52 UTC (permalink / raw)
  To: 54895; +Cc: Daniel Meißner

* gnu/packages/audio.scm (cava)[source]: Remove bundled iniparser.
(cava)[inputs]: Add iniparser.
---
 gnu/packages/audio.scm | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index fd85b20855..9b7d723921 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -110,6 +110,7 @@ (define-module (gnu packages audio)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages rdf)
   #:use-module (gnu packages readline)
+  #:use-module (gnu packages samba)
   #:use-module (gnu packages sdl)
   #:use-module (gnu packages serialization)
   #:use-module (gnu packages sqlite)
@@ -4587,10 +4588,18 @@ (define-public cava
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1mziklmqifhnb4kg9ia2r56r8wjn6xp40bkpf484hsgqvnrccl86"))))
+                "1mziklmqifhnb4kg9ia2r56r8wjn6xp40bkpf484hsgqvnrccl86"))
+              (modules '((guix build utils)))
+              (snippet
+               #~(begin
+                   (delete-file-recursively "iniparser")
+                   (substitute* "configure.ac"
+                     (("AC_CONFIG_FILES\\(iniparser/Makefile\\)") ""))
+                   (substitute* "Makefile.am"
+                     (("SUBDIRS = iniparser") ""))))))
     (build-system gnu-build-system)
     (native-inputs (list autoconf automake libtool))
-    (inputs (list fftw ncurses pulseaudio))
+    (inputs (list fftw ncurses pulseaudio iniparser))
     (arguments
      (list #:configure-flags
            #~(list (string-append "PREFIX="
@@ -4599,7 +4608,7 @@ (define-public cava
                                   #$output "/share/consolefonts"))
            #:make-flags
            #~(let ((lib (string-append #$output "/lib")))
-               (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
+               (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib " -lrt")))
            #:phases
            #~(modify-phases %standard-phases
                (replace 'bootstrap
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#54895: [PATCH 0/2] Fix failing build of cava
  2022-04-12 21:50 [bug#54895] [PATCH 0/2] Fix failing build of cava Daniel Meißner via Guix-patches via
  2022-04-12 21:52 ` [bug#54895] [PATCH 1/2] gnu: cava: Use G-expressions Daniel Meißner via Guix-patches via
@ 2022-05-06  8:31 ` Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2022-05-06  8:31 UTC (permalink / raw)
  To: Daniel Meißner; +Cc: 54895-done

Hi,

Daniel Meißner <daniel.meissner-i4k@ruhr-uni-bochum.de> skribis:

> this patch series fixes the failing build¹ for cava and uses the newer
> G-expressions for the arguments.
>
> ¹ https://ci.guix.gnu.org/build/620722/details
>
> Daniel Meißner (2):
>   gnu: cava: Use G-expressions.
>   gnu: cava: Fix build failure

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-06  8:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12 21:50 [bug#54895] [PATCH 0/2] Fix failing build of cava Daniel Meißner via Guix-patches via
2022-04-12 21:52 ` [bug#54895] [PATCH 1/2] gnu: cava: Use G-expressions Daniel Meißner via Guix-patches via
2022-04-12 21:52   ` [bug#54895] [PATCH 2/2] gnu: cava: Fix build failure Daniel Meißner via Guix-patches via
2022-05-06  8:31 ` bug#54895: [PATCH 0/2] Fix failing build of cava Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).