From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 26 16:47:10 2020 Received: (at 43628) by debbugs.gnu.org; 26 Sep 2020 20:47:10 +0000 Received: from localhost ([127.0.0.1]:47826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMH65-0008Pm-HF for submit@debbugs.gnu.org; Sat, 26 Sep 2020 16:47:10 -0400 Received: from mail-pl1-f176.google.com ([209.85.214.176]:46940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMH63-0008PS-Fk for 43628@debbugs.gnu.org; Sat, 26 Sep 2020 16:47:08 -0400 Received: by mail-pl1-f176.google.com with SMTP id f1so1205083plo.13 for <43628@debbugs.gnu.org>; Sat, 26 Sep 2020 13:47:07 -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=MCqYBkYz6vdykQSQ1aq3uCzh0mcn24jaOqK0k/XmD9I=; b=XwWgZtKQOZ5GbUQCaT8qEL1tvs3yxGPdGksojg1gGPeJq+EIQiEMzF6tAMb4JUQU3m 2fP/8X8T2JEqHMdvGMAKCqUqRXMbbnGzpehsLRyzVo/NPjLJrrvDXuynws5557+zMfmG 6ANHfSoHC0o3bLY7T4mjpNe+onVHTM5uUiPlhTy77l8/KFvW0GoniRQZPR5W3Nlcvlju PJPNYvKa9Kw+DKSFbkHq5epwxPE9B3l+h6Htabwlnkc8aQGLngaJEc8jo9hY0zYrhqBz KREP2XInyhnYQs0ydPdIb4llN/iO+QunhcjbtaSy+x0Ajn5a6KVq3PwzibSSpV9Owadg nPnw== 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=MCqYBkYz6vdykQSQ1aq3uCzh0mcn24jaOqK0k/XmD9I=; b=SOv59uNNysR/eHm/nKdexrLfp8s2CUf6bk2ujoMRnQzi+8Pl8Xex3mqBnRygvfCUet CiS0VY2CDkn0ePl570bOVGlPM8L9cd+w3WDxGxUKzEQ6U+J0MIZrYSzQBtFSyKpMQ0QT bDqMWVdjpH6RWZ4ur5KbZkq2QOJ7fHD3Xb/iLovhk276I816idrLOmYOKoEgUziUcobc NdhBjSXdLZENHvtLy/qEh2qKE5nKMDInFg17xyGj9zcjicMy45Lh0wpMwmo4srMOWKLT ZQRKSuqH2S0sSXBKlpD1DEFAtmqZg4Mp3erzw3LDa+1OCwHreLkU91Gm3al5X2SxNvb2 EGzg== X-Gm-Message-State: AOAM531zEZJrGD4wMxwVdMF+PxRE86Y3dULSey6FxTcN1WzoSwlxdLve fOrkPyd6IspaJPWmDpEhTpiAepQmj7R1me5kBzSHsFD9IScj8g== X-Google-Smtp-Source: ABdhPJyDXT1guFGVjcFae8jfMGDAp/JdRD1DsgcjTzffOymYyBqKWwSiUm277/fwWcz5MPJHdMIOuwrf6gGQOzTXXiY= X-Received: by 2002:a17:902:76c2:b029:d2:839f:9941 with SMTP id j2-20020a17090276c2b02900d2839f9941mr1423627plt.15.1601153221239; Sat, 26 Sep 2020 13:47:01 -0700 (PDT) MIME-Version: 1.0 References: <561466E3-006A-4460-9DEA-61A8DC16E7A8@lepiller.eu> <5B02C136-670D-4930-A461-731DA3D5221F@lepiller.eu> In-Reply-To: <5B02C136-670D-4930-A461-731DA3D5221F@lepiller.eu> From: Prafulla Giri Date: Sun, 27 Sep 2020 02:31:50 +0545 Message-ID: Subject: Re: [bug#43628] Further Info To: Julien Lepiller Content-Type: multipart/alternative; boundary="000000000000fba61f05b03d8824" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43628 Cc: 43628@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000fba61f05b03d8824 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oh, I come from a culture that does not call seniors by their first names. (: Yes! guix-android looks super awesome! I'm glad that you are working on that. You're awesome. (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. Kinda'. Here: https://github.com/peanutbutterandcrackers/guix-packages/blob/master/aegisu= b.scm All I had to do was re-define 'alsa-lib' to point to the /gnu/store path of alsa-plugins. The /gnu/store path had to be figured out during runtime. Could you please check how this fares in a GuixSD system? If it goes well, perhaps I should send a patch in for aegisub. But then again, I wonder if I should make the changes in alsa-lib itself, but I am not very sure about that. On Sat, Sep 26, 2020 at 8:20 PM Julien Lepiller wrote: > Hehe, thanks for your interest in guix-android. It's not really done yet, > but I'm very motivated :). It always feels weird when someone on the > internet calls you Mr ^^. 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). > > Maybe try to run aegisub with strace -f, you might find out something. Yo= u > may have to take a look at alsa's sources to find out how it looks for it= s > plugins exactly (maybe try to grep for PLUGIN or PLUGINDIR)? > > Le 26 septembre 2020 08:07:34 GMT-04:00, Prafulla Giri < > pratheblackdiamond@gmail.com> a =C3=A9crit : >> >> Okay, I think I'm stuck now. lol >> >> >> >> On Sat, Sep 26, 2020 at 3:42 PM Prafulla Giri < >> pratheblackdiamond@gmail.com> 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 =C3=A9crit : >>>> >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 wil= l >>>> >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 >>>> } >>>> >>> --000000000000fba61f05b03d8824 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Oh, I come from a culture that does not call seniors = by their first names. (:
Yes! guix-android looks super awesome! I= 'm glad that you are working on that. You're awesome.
(Al= so, 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-defi= ne 'alsa-lib' to point to the /gnu/store path of alsa-plugins. The = /gnu/store path had to be figured out during runtime.

<= div>Could you please check how this fares in a GuixSD system? If it goes we= ll, perhaps I should send a patch in for aegisub. But then again, I wonder = if I should make the changes in alsa-lib itself, but I am not very sure abo= ut that.

On Sat, Sep 26, 2020 at 8:20 PM Julien Lepiller <julien@lepiller.eu> wrote:
Hehe, thanks for yo= ur interest in guix-android. It's not really done yet, but I'm very= motivated :). It always feels weird when someone on the internet calls you= Mr ^^. No need to be so stiff, you can call me "Julien" (and I s= uppose it's the norm to call people by their first name in this kind of= internet community).

Maybe try to run aegisub with strace -f, you m= ight find out something. 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 PLU= GIN or PLUGINDIR)?

Le 26 septembre 2020 0= 8:07:34 GMT-04:00, Prafulla Giri <pratheblackdiamond@gmail.com> a =C3=A9cr= it :
Okay, I think I'm stuck now. lol



On Sat, Sep 26, 2020 at 3:42 PM Prafulla Giri <pratheblackdiam= ond@gmail.com> wrote:
Hello Mr. Lepiller,

=
Thank you for the tip. For the moment, I want to poke around this issu= e. 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 gu= ix-android seems so very cool! Please keep up the great work!

On S= at, Sep 26, 2020 at 3:28 PM Julien Lepiller <julien@lepiller.eu> wrote:


Hi Prafulla,

Le 26 septembre 2020 03:31:38 GMT-04:00, Prafulla Giri <pratheblackdiamond@gmail.= com> a =C3=A9crit :
>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 o= ut
>either.
>
>Now, I'm going to take a look at fixing the pkg-config rules, and w= ill
>be
>updating this thread should that resolve this issue.
>
>On Sat, Sep 26, 2020 at 12:21 PM Prafulla Giri
><p= ratheblackdiamond@gmail.com>
>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 wil= l
>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: al= sa doesn't look in it's current directory for plugins, but in the d= irectory 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, whi= ch references alsa-plugins:pulseaudio. Maybe you actually want to configure= that? Maybe try to copy this to a new file .asoundrc:

pcm_type.pule {
=C2=A0 lib "/home/foo/.guix-profile/lib/alsa-lib/libasound_module_pcm_= pulse.so"
}

ctl_type.pulse {
=C2=A0 lib"/home/foo/.guix-profile/lib/alsa-lib/libasound_module_ctl_p= ulse.so"
}

pcm.!default {
=C2=A0 type pulse
}

ctl.!default {
=C2=A0 type pulse
}
--000000000000fba61f05b03d8824--