unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: guix-devel <guix-devel@gnu.org>
Subject: [PATCH] Propagate input for JACK; fix portaudio JACK-support
Date: Sat, 18 Jul 2015 22:16:27 +0200	[thread overview]
Message-ID: <874ml1fch0.fsf@elephly.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

Hi Guix,

while packaging Extempora I noticed that the portaudio does not seem to
work with JACK.  Extempora uses portaudio and it would not create a JACK
port.

After I rebuilt portaudio with “jack-1” rather than “jack-2” Extempora
would create a JACK port via portaudio successfully.  “jack-1” had to be
modified to propagate “bdb” because the libjack headers include it.

Attached are these two patches.

In general I would suggest only to use “jack-1” as an input.  “jack-2”
is a different implementation, but it does not replace “jack-1”.
For a user it may make sense to install “jack-2” because of DBus
support, but for libraries it should not be needed.

~~ Ricardo


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-jack-1-Propagate-bdb.patch --]
[-- Type: text/x-patch, Size: 1110 bytes --]

From 579dcf04e35a093ca6bb97efff5aaec19053c080 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Sat, 18 Jul 2015 22:07:45 +0200
Subject: [PATCH 1/2] gnu: jack-1: Propagate "bdb".

* gnu/packages/audio.scm (jack-1)[inputs]: Move "bdb" from here...
   [propagated-inputs]: ...to here.
---
 gnu/packages/audio.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index ff6fb46..0fa506b 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -667,11 +667,12 @@ especially for creating reverb effects.  It supports impulse responses with 1,
     (build-system gnu-build-system)
     (inputs
      `(("alsa-lib" ,alsa-lib)
-       ("bdb" ,bdb)
        ("readline" ,readline)))
     ;; uuid.h is included in the JACK type headers
+    ;; db.h is included in the libjack metadata headers
     (propagated-inputs
-     `(("libuuid" ,util-linux)))
+     `(("libuuid" ,util-linux)
+       ("bdb" ,bdb)))
     (native-inputs
      `(("pkg-config" ,pkg-config)))
     (home-page "http://jackaudio.org/")
-- 
2.4.3


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-portaudio-Build-with-jack-1.patch --]
[-- Type: text/x-patch, Size: 778 bytes --]

From 4238c7742fef8e7786569beefe79ca9188b50e8e Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Sat, 18 Jul 2015 22:09:13 +0200
Subject: [PATCH 2/2] gnu: portaudio: Build with jack-1.

* gnu/packages/audio.scm (portaudio)[inputs]: Replace "jack-2" with "jack-1".
---
 gnu/packages/audio.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 0fa506b..c8fcab1 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -1583,7 +1583,7 @@ portions of LAME.")
     (inputs
      ;; TODO: Add ASIHPI.
      `(("alsa-lib" ,alsa-lib)
-       ("jack" ,jack-2)))
+       ("jack" ,jack-1)))
     (native-inputs
      `(("autoconf" ,autoconf)
        ("automake" ,automake)
-- 
2.4.3


             reply	other threads:[~2015-07-18 20:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-18 20:16 Ricardo Wurmus [this message]
2015-07-19 21:05 ` [PATCH] Propagate input for JACK; fix portaudio JACK-support 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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874ml1fch0.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@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 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).