From patchwork Sat Sep 26 12:07:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Prafulla Giri X-Patchwork-Id: 24313 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8F7C927BBE9; Sat, 26 Sep 2020 13:08:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EF30027BBE8 for ; Sat, 26 Sep 2020 13:08:09 +0100 (BST) Received: from localhost ([::1]:58032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kM8zp-0004qx-2Z for patchwork@mira.cbaines.net; Sat, 26 Sep 2020 08:08:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM8zi-0004pT-SC for guix-patches@gnu.org; Sat, 26 Sep 2020 08:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kM8zi-0001Qv-Iw for guix-patches@gnu.org; Sat, 26 Sep 2020 08:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kM8zi-0001rG-ED for guix-patches@gnu.org; Sat, 26 Sep 2020 08:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43628] Further Info Resent-From: Prafulla Giri Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Sep 2020 12:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Julien Lepiller Cc: 43628@debbugs.gnu.org X-Debbugs-Original-Cc: 43628@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16011220737121 (code B ref -1); Sat, 26 Sep 2020 12:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Sep 2020 12:07:53 +0000 Received: from localhost ([127.0.0.1]:45992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM8zY-0001qh-Vl for submit@debbugs.gnu.org; Sat, 26 Sep 2020 08:07:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:52692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM8zW-0001qZ-Hx for submit@debbugs.gnu.org; Sat, 26 Sep 2020 08:07:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM8zW-0004oS-D7 for guix-patches@gnu.org; Sat, 26 Sep 2020 08:07:50 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:35080) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kM8zU-0001QR-6W for guix-patches@gnu.org; Sat, 26 Sep 2020 08:07:50 -0400 Received: by mail-pg1-x533.google.com with SMTP id g29so4636453pgl.2 for ; Sat, 26 Sep 2020 05:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P5puNd++9EYoARDCSFTPkZZZV46B2B06049wq5zjKrk=; b=uH3rMwKC9kaZgK3yOHy6Ic3ZxQDjtqtyY/F/EjWWWQjNS8LkenRogLRmROAgdzlVWv TtAcR9ZSDTrnythpL83/2EZSHVOHCV2sn0ViSUNnKyek6QDp4rM/8k0rPUF2gE/mLhYc AViV8lBrDn4Oq4GATdmMhf3DUdineegYKaTI/xooLepFEPV0FZJsGtAAUy/VYQwFZeLq a0DsWOIf0pY8Cey8z0rIEZiO59XwqiAXm/puvBhZmvLZGGPQe15p/Ltn+3sRrnlYQhdB 7tsms9hcHXIDoVU6pMXe3FxATJLnaIvSihzRhy2jQa535XmzA1Lg4yoqXO6P1nLh86Gi ffug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P5puNd++9EYoARDCSFTPkZZZV46B2B06049wq5zjKrk=; b=bsTzlmvTRQHdFMtRJ48DZmxfb9L2BMEsNwLjBWi0Iuy1wu6yBo27PI9LXFoc6HBHrg 4zjNWTCJyKFBXP2JO81KoNflmgpMtgqVvpQF2h69cIkN3gR1Ya+hVCGV2/J2E1kfMAIB fc3AywRo2UXF69QENMNnVCrUhU+jqGhllnHQRuhZ6cqy19bJmt6YIK6fglKZSpW9OQqU 2pm4Mkq2hUsSls0thA/rEqXI9Q/8vuL3UbaPbTkj2fNdoTI2u08eNjFCHQnIqalYjwEA 3tgH1ZrUXTQUEwQTqDKD+GOCRCfsWxX58wvszwTfVY7McL/c2JXwUddQ4gQMVlvMbBkM 2tNQ== X-Gm-Message-State: AOAM532h6ZXtLcrLLcPcU6G57G/5OH7ZnQrdrnjmv2hWa7a43AhP1mRO VUwKI7qBshadaMzQ7CAMqbmKcq74joDLl8L2Cpg= X-Google-Smtp-Source: ABdhPJy0zfEXJDUZuZTskkBC5W82LFsrqLk83Fyp9Yuy7JaEH1+73nSOUu4sZ2VFn4Atqggt+RKh0qrmVEqkPuHd/KQ= X-Received: by 2002:a63:d216:: with SMTP id a22mr2555204pgg.339.1601122066400; Sat, 26 Sep 2020 05:07:46 -0700 (PDT) MIME-Version: 1.0 References: <561466E3-006A-4460-9DEA-61A8DC16E7A8@lepiller.eu> In-Reply-To: From: Prafulla Giri Date: Sat, 26 Sep 2020 17:52:34 +0545 Message-ID: Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=pratheblackdiamond@gmail.com; helo=mail-pg1-x533.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Okay, I think I'm stuck now. lol On Sat, Sep 26, 2020 at 3:42 PM Prafulla Giri wrote: > Hello Mr. Lepiller, > > Thank you for the tip. For the moment, I want to poke around this issue. > Perhaps I get absolutely tired of it (or find a good hack - and an ugly > patch). I did manage to learn a bit more about union-builds in general. So, > that's a silver lining. > > Also, your work on guix-android seems so very cool! Please keep up the > great work! > > On Sat, Sep 26, 2020 at 3:28 PM Julien Lepiller > wrote: > >> >> >> Hi Prafulla, >> >> Le 26 septembre 2020 03:31:38 GMT-04:00, Prafulla Giri < >> pratheblackdiamond@gmail.com> a écrit : >> >Another information: >> > >> >I have other programs on my foreign system (installed via guix) that >> >produce sound well, without any issues. They include: >> >espeak and kdenlive. >> > >> >Also, I did try making the union-build use copies instead of symlinks >> >using >> >(union-build ... #:symlink copy-recursively) but that didn't work out >> >either. >> > >> >Now, I'm going to take a look at fixing the pkg-config rules, and will >> >be >> >updating this thread should that resolve this issue. >> > >> >On Sat, Sep 26, 2020 at 12:21 PM Prafulla Giri >> > >> >wrote: >> > >> >> I forgot to mention, but the union-build works. If one `guix build`s >> >the >> >> union package, and cd into the /gnu/store/...-union-build, one will >> >see >> >> that things are there as it should be (lib/normal-alsa-*.so and >> >> lib/alsa-lib/*pulse*.so). >> >> >> >> It's just that aegisub seems to be looking from the >> >> /gnu/store/normal-alsa-lib-dir instead of >> >/gnu/store/union-alsa-package. >> >> >> >> I think the issue with the union-build is that it is completely ignored: >> alsa doesn't look in it's current directory for plugins, but in the >> directory where it's been configured (at build time) to look for. >> >> On the Guix System, there is a service that creates a /etc/asound.conf, >> which references alsa-plugins:pulseaudio. Maybe you actually want to >> configure that? Maybe try to copy this to a new file .asoundrc: >> >> pcm_type.pule { >> lib "/home/foo/.guix-profile/lib/alsa-lib/libasound_module_pcm_pulse.so" >> } >> >> ctl_type.pulse { >> lib"/home/foo/.guix-profile/lib/alsa-lib/libasound_module_ctl_pulse.so" >> } >> >> pcm.!default { >> type pulse >> } >> >> ctl.!default { >> type pulse >> } >> > diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 0f727a6e9e..c828be546b 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -3836,7 +3836,52 @@ programmers to access a standard API to open and decompress media files.") ("hunspell" ,hunspell) ("mesa" ,mesa) ("libass" ,libass) - ("alsa-lib" ,alsa-lib) + ("alsa-lib-with-pulseaudio-plugin" + ,(package + (inherit alsa-lib) + (name "alsa-lib-with-pulseaudio-plugin") + (source #f) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build union) + (guix build utils)) + #:builder + (begin + (use-modules (ice-9 match) + (guix build union) + (guix build utils)) + (let ((out (assoc-ref %outputs "out")) + (alsa-lib (assoc-ref %build-inputs "alsa-lib"))) + (match %build-inputs + (((names . directories) ...) + (union-build out + directories + ;; Instead of a symlink union, this is will be a + ;; copy union, because this won't "Just Work™" + ;; with mere symlinks. Some of the files that make + ;; up the union need to tweaked to work properly. + #:create-all-directories? #t + #:symlink copy-file))) + ;; Fix alsa-lib pkg-config file to point to the /gnu/store of + ;; this union, rather than that of alsa-lib itself. + (substitute* (string-append out "/lib/pkgconfig/alsa.pc") + ((alsa-lib) out)) + #t)))) + (inputs + `(("alsa-lib" + ,(package + (inherit alsa-lib) + (arguments `(,@(cons + (car (package-arguments alsa-lib)) + (list (append + (cadr + (package-arguments alsa-lib)) + (list (string-append + "--with-plugin-dir=" + ;; stuff goes here + )))))))) + ) + ("alsa-plugins:pulseaudio" ,alsa-plugins "pulseaudio"))))) ("pulseaudio" ,pulseaudio) ("libx11" ,libx11) ("freetype" ,freetype)