From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 27 07:10:09 2020 Received: (at 43628) by debbugs.gnu.org; 27 Sep 2020 11:10:09 +0000 Received: from localhost ([127.0.0.1]:48474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMUZF-00007K-8s for submit@debbugs.gnu.org; Sun, 27 Sep 2020 07:10:09 -0400 Received: from lepiller.eu ([89.234.186.109]:49784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMUZB-000072-2G for 43628@debbugs.gnu.org; Sun, 27 Sep 2020 07:10:07 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 44277ec5; Sun, 27 Sep 2020 11:10:02 +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=1C2aU/CbQheimtNI174lHqVNwjes7xJN8c8oV2HbqUY=; b=XhD+rHy ecEwPM4VX9ibW/QohDYSeMRcLqbOi3Fy2DQffDnRkASSxSd2x1XIqZ47AIw1eSgw vRjlb9IodNZGCy1uqAEe7X534oQLTnHMOCWSKF/kfGv0A1yPqt8s9NQHQ6X4axmL /3Mym5TkUsIAzGWM6aVHCpyoEa87sGX9E+M6DqONF4O2vd/GToPdA86QpwysfKxa zOTzq+aii1jtMDv8WAbr82TK/8bzY0rltaa6n9w31Nkh7wbeNriaU3WDxkSL9DAx lYU4zxHB0aUGDNCcXITIPnIgCiSyz2YkdKiTUUJ2wZ3Tp/rfx9nnTwf+T2wl4KS2 IP1NHGPPYIdS/7A== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 81807308 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sun, 27 Sep 2020 11:10:01 +0000 (UTC) Date: Sun, 27 Sep 2020 07:09:51 -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: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [bug#43628] Further Info To: Prafulla Giri From: Julien Lepiller Message-ID: <580CE2CF-2CAD-49E4-AFAB-A28DD11585E9@lepiller.eu> 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 (-) Le 27 septembre 2020 01:56:31 GMT-04:00, Prafulla Giri a =C3=A9crit : >First and foremost: wow=2E A post-doc at just three years older than me= =2E >*cries in high-school drop-out* Super awesome! > >I have cleaned up my package definition as per your review: >https://github=2Ecom/peanutbutterandcrackers/guix-packages/blob/master/ae= gisub=2Escm > >I will look into the matter then=2E Might take me a while, but I'll try= =2E > >It's sad that framagit is closing=2E I think they were doing a great job >with >peertube and all=2E=2E=2E Well, it's framasoft, they started so many services that they can't handle= the load anymore=2E So they've started closing them little by little last = year=2E Some of them will stay, and others will disappear=2E They never wan= ted to centralize the web around them, so it's understandable=2E Instead, t= hey propose other alternatives, they've started the chaton initiative (wher= e other structures propose the same kind of services, at a smaller scale), = etc=2E They're still developping peertube, don't worry about that=2E But they're = not going to host a public instance=2E Remember they're about 10 volunteers= and one employee :) > >On Sun, Sep 27, 2020 at 3:00 AM Julien Lepiller >wrote: > >> 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 >> because alsa-plugin doesn't depend on your modified alsa-lib (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-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 >> of 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 :) t= ry >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 Yo= u >might >> 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 >> 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 >> "senior" 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 < >> 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 >>> (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 >>>>>>> } >>>>>>> >>>>>>