From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0N1AIJyvb19cQQAA0tVLHw (envelope-from ) for ; Sat, 26 Sep 2020 21:16:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mFQkHJyvb1+mJQAAbx9fmQ (envelope-from ) for ; Sat, 26 Sep 2020 21:16:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C73B39401BE for ; Sat, 26 Sep 2020 21:16:11 +0000 (UTC) Received: from localhost ([::1]:39958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMHYA-00039X-P1 for larch@yhetil.org; Sat, 26 Sep 2020 17:16:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMHY2-00039E-RH for guix-patches@gnu.org; Sat, 26 Sep 2020 17:16:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMHY2-0006HY-HL for guix-patches@gnu.org; Sat, 26 Sep 2020 17:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kMHY2-0001bx-DC for guix-patches@gnu.org; Sat, 26 Sep 2020 17:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43628] Further Info Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Sep 2020 21:16: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: Prafulla Giri Cc: 43628@debbugs.gnu.org Received: via spool by 43628-submit@debbugs.gnu.org id=B43628.16011549585908 (code B ref 43628); Sat, 26 Sep 2020 21:16:02 +0000 Received: (at 43628) by debbugs.gnu.org; 26 Sep 2020 21:15:58 +0000 Received: from localhost ([127.0.0.1]:47864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMHXw-0001WE-R9 for submit@debbugs.gnu.org; Sat, 26 Sep 2020 17:15:58 -0400 Received: from lepiller.eu ([89.234.186.109]:49438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMHXu-0001SC-1T for 43628@debbugs.gnu.org; Sat, 26 Sep 2020 17:15:56 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e978d056; Sat, 26 Sep 2020 21:15:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:cc:from:message-id; s= dkim; bh=bhodZdWIubVqRnzGfSIow5xc1SNemvfsn8RlG/is/SY=; b=FAP6qhF HiEOOWdzrJ++p49UoHjOblt4FW5fjaSoTETG8w3fvri5Hh5tQR52jGCBvVfmR9kv rIYw3WC+i6kP8qGlTtz1sC1mmETS8D5RJxSl4j+s0VXbC5Qb5Z4wHyKZYiSap62S 7Wpd+r+17+ZSn/4x1726ROwvMzmfJRPJ/tzee9RX4Qla0E1AKsDmscxEvWrTQ+1X SiBpeu0oLJAd+3E3FvHJEWIgMAkeKFXA0BNZ45vgD1uClZQoayaKZnL9+cQiZTfy xDbDvtJ+KvVg00QjIUCj0SPvaORQwra/r3eXJEbR+DvZFGGEE4Es6cwi8TziAqjL l1YujcXtXnMU7Nw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id cc28fc2f (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 26 Sep 2020 21:15:50 +0000 (UTC) Date: Sat, 26 Sep 2020 17:15:40 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: <561466E3-006A-4460-9DEA-61A8DC16E7A8@lepiller.eu> <5B02C136-670D-4930-A461-731DA3D5221F@lepiller.eu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----JJCGLY22Q82KDS5K5O80VZNEY2L0Z4" Content-Transfer-Encoding: 7bit From: Julien Lepiller Message-ID: X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=FAP6qhF ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: XMS17XmeCuSM ------JJCGLY22Q82KDS5K5O80VZNEY2L0Z4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks! On the guix system, aegisub already works properly (at least it did= when I last used it), because the alsa config allows it to find pulseaudio= =2E There are three issues with your proposed change: First using derivation-outputs is a bad idea, and it probably only works b= ecause alsa-plugin doesn't depend on your modified alsa-lib (you'd get an i= nfinite loop I think)=2E Since alsa-plugin doesn't depend on this modified = alsa-lib, you don't need such a convoluted work around=2E When defining the= conhigure flags, you can simply use (assoc-ref %build-inputs "alsa-plugin"= ) when "alsa-plugin" is defined as an input to the package=2E Second, setting plugindir at build-time is just asking for the same kind o= f issues you are trying to fix, only for finding another plugin that might = be needed=2E Third, the way you modify the arguments is=E2=80=A6 unconventional :) try = using substitute-keyword-arguments instead=2E There are plenty of examples = in the repo=2E I remember having dealt with this issue before, and pushed a patch some 3 = years ago: http://issues=2Eguix=2Egnu=2Eorg/31239 Could you look at what happened in the meantime? I think it was reverted i= n favor of the asound=2Econf file we have in the guix system now=2E You mig= ht learn something if you find the reason why it was changed=2E Re my other projects, framagit is going to close next year, so I'll be mig= rating to my own hosting, currently at git=2Elepiller=2Eeu=2E Ok for the cultural difference=2E It's probably too soon to call me a "sen= ior" though, I'm still pretty young: only 3 years older than you :p Le 26 septembre 2020 16:46:50 GMT-04:00, Prafulla Giri a =C3=A9crit : >Oh, I come from a culture that does not call seniors by their first >names=2E >(: >Yes! guix-android looks super awesome! I'm glad that you are working on >that=2E You're awesome=2E >(Also, I just realized that you've also got guix-home-manager and so >many >more cool repositories! I need to check those out, and soon!) > >I did manage to resolve this issue=2E Kinda'=2E Here: >https://github=2Ecom/peanutbutterandcrackers/guix-packages/blob/master/ae= gisub=2Escm > >All I had to do was re-define 'alsa-lib' to point to the /gnu/store >path of >alsa-plugins=2E The /gnu/store path had to be figured out during runtime= =2E > >Could you please check how this fares in a GuixSD system? If it goes >well, >perhaps I should send a patch in for aegisub=2E But then again, I wonder >if I >should make the changes in alsa-lib itself, but I am not very sure >about >that=2E > >On Sat, Sep 26, 2020 at 8:20 PM Julien Lepiller >wrote: > >> Hehe, thanks for your interest in guix-android=2E It's not really done >yet, >> but I'm very motivated :)=2E It always feels weird when someone on the >> internet calls you Mr ^^=2E No need to be so stiff, you can call me >"Julien" >> (and I suppose it's the norm to call people by their first name in >this >> kind of internet community)=2E >> >> Maybe try to run aegisub with strace -f, you might find out >something=2E You >> may have to take a look at alsa's sources to find out how it looks >for its >> plugins exactly (maybe try to grep for PLUGIN or PLUGINDIR)? >> >> Le 26 septembre 2020 08:07:34 GMT-04:00, Prafulla Giri < >> pratheblackdiamond@gmail=2Ecom> a =C3=A9crit : >>> >>> Okay, I think I'm stuck now=2E lol >>> >>> >>> >>> On Sat, Sep 26, 2020 at 3:42 PM Prafulla Giri < >>> pratheblackdiamond@gmail=2Ecom> wrote: >>> >>>> Hello Mr=2E Lepiller, >>>> >>>> Thank you for the tip=2E For the moment, I want to poke around this >issue=2E >>>> Perhaps I get absolutely tired of it (or find a good hack - and an >ugly >>>> patch)=2E I did manage to learn a bit more about union-builds in >general=2E So, >>>> that's a silver lining=2E >>>> >>>> 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=2Ecom> a =C3=A9crit : >>>>> >Another information: >>>>> > >>>>> >I have other programs on my foreign system (installed via guix) >that >>>>> >produce sound well, without any issues=2E They include: >>>>> >espeak and kdenlive=2E >>>>> > >>>>> >Also, I did try making the union-build use copies instead of >symlinks >>>>> >using >>>>> >(union-build =2E=2E=2E #:symlink copy-recursively) but that didn't = work >out >>>>> >either=2E >>>>> > >>>>> >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=2E >>>>> > >>>>> >On Sat, Sep 26, 2020 at 12:21 PM Prafulla Giri >>>>> > >>>>> >wrote: >>>>> > >>>>> >> I forgot to mention, but the union-build works=2E If one `guix >build`s >>>>> >the >>>>> >> union package, and cd into the /gnu/store/=2E=2E=2E-union-build, = one >will >>>>> >see >>>>> >> that things are there as it should be (lib/normal-alsa-*=2Eso and >>>>> >> lib/alsa-lib/*pulse*=2Eso)=2E >>>>> >> >>>>> >> It's just that aegisub seems to be looking from the >>>>> >> /gnu/store/normal-alsa-lib-dir instead of >>>>> >/gnu/store/union-alsa-package=2E >>>>> >> >>>>> >>>>> 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=2E >>>>> >>>>> On the Guix System, there is a service that creates a >/etc/asound=2Econf, >>>>> which references alsa-plugins:pulseaudio=2E Maybe you actually want >to >>>>> configure that? Maybe try to copy this to a new file =2Easoundrc: >>>>> >>>>> pcm_type=2Epule { >>>>> lib >>>>> >"/home/foo/=2Eguix-profile/lib/alsa-lib/libasound_module_pcm_pulse=2Eso" >>>>> } >>>>> >>>>> ctl_type=2Epulse { >>>>> >>>>> >lib"/home/foo/=2Eguix-profile/lib/alsa-lib/libasound_module_ctl_pulse=2Es= o" >>>>> } >>>>> >>>>> pcm=2E!default { >>>>> type pulse >>>>> } >>>>> >>>>> ctl=2E!default { >>>>> type pulse >>>>> } >>>>> >>>> ------JJCGLY22Q82KDS5K5O80VZNEY2L0Z4 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks! On the guix system, aegisub already works = properly (at least it did when I last used it), because the alsa config all= ows it to find pulseaudio=2E

There are three issues with your propos= ed change:

First using derivation-outputs is a bad idea, and it prob= ably only works because alsa-plugin doesn't depend on your modified alsa-li= b (you'd get an infinite loop I think)=2E Since alsa-plugin doesn't depend = on this modified alsa-lib, you don't need such a convoluted work around=2E = When defining the conhigure flags, you can simply use (assoc-ref %build-inp= uts "alsa-plugin") when "alsa-plugin" is defined as an input to the package= =2E

Second, setting plugindir at build-time is just asking for the s= ame kind of issues you are trying to fix, only for finding another plugin t= hat might be needed=2E

Third, the way you modify the arguments is=E2= =80=A6 unconventional :) try using substitute-keyword-arguments instead=2E = There are plenty of examples in the repo=2E

I remember having dealt = with this issue before, and pushed a patch some 3 years ago: http://issues=2Eguix=2Egnu=2Eorg/31239=

Could you look at what happened in the meantime? I think it was= reverted in favor of the asound=2Econf file we have in the guix system now= =2E You might learn something if you find the reason why it was changed=2E<= br>
Re my other projects, framagit is going to close next year, so I'll = be migrating to my own hosting, currently at git=2Elepiller=2Eeu=2E

= Ok for the cultural difference=2E It's probably too soon to call me a "seni= or" though, I'm still pretty young: only 3 years older than you :p

<= div class=3D"gmail_quote">Le 26 septembre 2020 16:46:50 GMT-04:00, Prafulla= Giri <pratheblackdiamond@gmail=2Ecom> a =C3=A9crit :
Oh, I come from a culture that does not call seniors= by their first names=2E (:
Yes! guix-android looks super awesome= ! I'm glad that you are working on that=2E You're awesome=2E
(Als= o, I just realized that you've also got guix-home-manager and so many more = cool repositories! I need to check those out, and soon!)

=

All I had to do was re-d= efine 'alsa-lib' to point to the /gnu/store path of alsa-plugins=2E The /gn= u/store path had to be figured out during runtime=2E

Could you please check how this fares in a GuixSD system? If it goes wel= l, perhaps I should send a patch in for aegisub=2E But then again, I wonder= if I should make the changes in alsa-lib itself, but I am not very sure ab= out that=2E

On Sat, Sep 26, 2020 at 8:20 PM Julien Lepiller <julien@lepiller=2Eeu> wrote:
Hehe, than= ks for your interest in guix-android=2E It's not really done yet, but I'm v= ery motivated :)=2E It always feels weird when someone on the internet call= s you Mr ^^=2E No need to be so stiff, you can call me "Julien" (and I supp= ose it's the norm to call people by their first name in this kind of intern= et community)=2E

Maybe try to run aegisub with strace -f, you might = find out something=2E You may have to take a look at alsa's sources to find= out how it looks for its plugins exactly (maybe try to grep for PLUGIN or = PLUGINDIR)?

Le 26 septembre 2020 08:07:34= GMT-04:00, Prafulla Giri <pratheblackdiamond@gmail=2Ecom> a =C3=A9crit = :
Okay, I think I'm stuck now=2E lol



On Sat, Sep 26, 2020 at 3:42 PM Prafulla Giri <pratheblackdia= mond@gmail=2Ecom> wrote:
Hello Mr=2E Lepiller,
Thank you for the tip=2E For the moment, I want to poke around = this issue=2E Perhaps I get absolutely tired of it (or find a good hack - a= nd an ugly patch)=2E I did manage to learn a bit more about union-builds in= general=2E So, that's a silver lining=2E

Also, yo= ur work on guix-android seems so very cool! Please keep up the great work!<= br>

On Sat, Sep 26, 2020 at 3:28 PM Julien Lepiller <julien@lepiller=2Eeu> wr= ote:


Hi Prafulla,

Le 26 septembre 2020 03:31:38 GMT-04:00, Prafulla Giri <pratheblackdiamond@gma= il=2Ecom> a =C3=A9crit :
>Another information:
>
>I have other programs on my foreign system (installed via guix) that >produce sound well, without any issues=2E They include:
>espeak and kdenlive=2E
>
>Also, I did try making the union-build use copies instead of symlinks<= br> >using
>(union-build =2E=2E=2E #:symlink copy-recursively) but that didn't wor= k out
>either=2E
>
>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=2E
>
>On Sat, Sep 26, 2020 at 12:21 PM Prafulla Giri
><pratheblackdiamond@gmail=2Ecom>
>wrote:
>
>> I forgot to mention, but the union-build works=2E If one `guix bu= ild`s
>the
>> union package, and cd into the /gnu/store/=2E=2E=2E-union-build, = one will
>see
>> that things are there as it should be (lib/normal-alsa-*=2Eso and=
>> lib/alsa-lib/*pulse*=2Eso)=2E
>>
>> It's just that aegisub seems to be looking from the
>> /gnu/store/normal-alsa-lib-dir instead of
>/gnu/store/union-alsa-package=2E
>>

I think the issue with the union-build is that it is completely ignored: a= lsa doesn't look in it's current directory for plugins, but in the director= y where it's been configured (at build time) to look for=2E

On the Guix System, there is a service that creates a /etc/asound=2Econf, = which references alsa-plugins:pulseaudio=2E Maybe you actually want to conf= igure that? Maybe try to copy this to a new file =2Easoundrc:

pcm_type=2Epule {
  lib "/home/foo/=2Eguix-profile/lib/alsa-lib/libasound_module_pcm_pu= lse=2Eso"
}

ctl_type=2Epulse {
  lib"/home/foo/=2Eguix-profile/lib/alsa-lib/libasound_module_ctl_pul= se=2Eso"
}

pcm=2E!default {
  type pulse
}

ctl=2E!default {
  type pulse
}
------JJCGLY22Q82KDS5K5O80VZNEY2L0Z4--