From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lakshmi Prasannakumar Subject: Re: Video Documentation for GNU GUIX (an Outreachy project) Date: Tue, 23 Oct 2018 18:04:46 +0530 Message-ID: References: <20181017084521.29579a72@alma-ubu> <20181018134637.25c82e09@alma-ubu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000941880578e499d3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEvtl-0007MR-TF for guix-devel@gnu.org; Tue, 23 Oct 2018 08:35:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEvtk-0001uA-53 for guix-devel@gnu.org; Tue, 23 Oct 2018 08:35:01 -0400 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]:32774) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gEvtj-0001tF-Sq for guix-devel@gnu.org; Tue, 23 Oct 2018 08:35:00 -0400 Received: by mail-ot1-x330.google.com with SMTP id q50so1181850otd.0 for ; Tue, 23 Oct 2018 05:34:59 -0700 (PDT) In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Cc: guix-devel@gnu.org --0000000000000941880578e499d3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi G=C3=A1bor and Bj=C3=B6rn, I was trying to install the new packages with the documentation mentioned in the Outreachy site as below https://www.gnu.org/software/guix/manual/en/html_node/Defining-Packages.htm= l Here I see a code to define a package for 'Hello' and I assume in order to define a package for Anaconda I just need to change this code with source, url details of Anaconda something like this as mentioned in the bold. *(define-module (gnu packages Anaconda)* * #:use-module (guix packages)* * #:use-module (guix download)* * #:use-module (guix build-system Anaconda)* * #:use-module (guix licenses)* * #:use-module (gnu packages gawk))* *(define-public Anaconda* * (package* * (name "Anaconda")* * (version "3.10")* * (source (origin* * (method url-fetch)* * (uri (string-append "Anaconda's Website URL" version* * ".tar.gz"))* * (sha256* * (base32* * "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i"))))= * * (build-system gnu-build-system)* * (arguments '(#:configure-flags '("--enable-silent-rules")))* * (inputs `(("gawk" ,gawk)))* * (synopsis "Hello, GNU world: An example GNU package")* * (description "Guess what GNU Hello prints!")* * (home-page "http://www.gnu.org/software/hello/ ")* * (license gpl3+)))* Request you to guide me to get a better understanding here as I saw one more page in this url, that uses some pull commands to run some build etc. https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-pull.ht= ml#Invoking-guix-pull Thanks, Lakshmi Prasannakumar Bangalore On Thu, Oct 18, 2018 at 6:30 PM G=C3=A1bor Boskovits = wrote: > Hello Lakshmi, > > Lakshmi Prasannakumar ezt =C3=ADrta > (id=C5=91pont: 2018. okt. 18., Cs, 14:38): > > > > @Bj=C3=B6rn and @G=C3=A1bor > > > > Thanks a lot. It did work fine. > > > > Now as the next step I assume, I have to add a new package. I can see > from there are lot many packages listed in the > https://www.gnu.org/software/guix/packages/ in alphabetic order. So > should I find a new package and add it? > > > > Yes, that is correct. > > > If it is to add a new package, I see the Anaconda Package missing there= . > And may be I could add that in the format mentioned in 4.1 defining packa= ge > , is that correct? > > > > Yes, that is correct. We usually recommend to add a package we have an > importer for. Anaconda could be a good candidate, if you wish to > package it, and I guess we have a lot of unpackaged dependencies of > anaconda. > Note that you have to package all the dependencies to package > something for guix. Packaging a single dependency would do for now. > Please see > https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-impor= t.html > for > more information about importers. (For example R packages from CRAN or > bioconductor have a good quality importer) > > > Or should I proceed with creating video tutorials for the steps I did > until now ? > > > > Not yet, we should leave that for later, if it is possible. > > > Thanks, > > Lakshmi Prasannakumar > > Bangalore > > > > > > On Thu, Oct 18, 2018 at 5:22 PM G=C3=A1bor Boskovits > wrote: > >> > >> Hello Lakshmi, > >> > >> Bj=C3=B6rn H=C3=B6fling ezt =C3=AD= rta (id=C5=91pont: > >> 2018. okt. 18., Cs, 13:46): > >> > > >> > Hi Lakshmi, > >> > > >> > On Thu, 18 Oct 2018 14:52:30 +0530 > >> > Lakshmi Prasannakumar wrote: > >> > > >> > > Hi G=C3=A1bor, > >> > > > >> > > I have followed the Binary-Installation procedures and installed t= he > >> > > hello package to my root. > >> > > The next step I understand is to add another package from the list > in > >> > > https://www.gnu.org/software/guix/packages/ > >> > > I tried following this step to install a package from the list i.e= . > >> > > 4ti2 1.6.7 using the below commands: > >> > > *guix package -i 4ti2 1.6.7* > >> > > > >> > > However, I got the error as : > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > *guile: warning: failed to install localehint: Consider installing > the > >> > > `glibc-utf8-locales' or `glibc-locales' package anddefining > >> > > `GUIX_LOCPATH', along these lines: guix package -i > >> > > glibc-utf8-locales export > >> > > GUIX_LOCPATH=3D"$HOME/.guix-profile/lib/locale"See the "Applicatio= n > >> > > Setup" section in the manual, for more info.* Is it due my > incomplete > >> > > GUIX installation or are there further steps to follow? > >> > > >> > >> It is safe to ignore these warnings for now. If it causes any problem, > >> we can return to that, > >> but unfortunalety sometimes this is hard to debug on foreign distros. > >> You could try following > >> the instuctions in the warning, but it does not help then just ignore > >> them for now. > >> > >> > > >> > I think there is no error. As it says, this is only a warning. Or is > >> > there anything else I have overseen in your message? > >> > > >> > If unsure, you can check the return code of the previous command by > >> > directly typing > >> > > >> > echo $? > >> > > >> > The return code should be 0. > >> > > >> > You can also list the installed packages in Guix and see if hello an= d > >> > 4ti2 are installed: > >> > > >> > guix package -I > >> > > >> > Note the CAPITAL I, > >> > > >> > You can also list the generations. As you first installed hello and = in > >> > a second step you installed 4ti2, there should be at least two > >> > generations: > >> > > >> > guix package --list-generations > >> > > >> > The warning is about the locale. To get rid of it, do exactly what t= he > >> > warning says, and/or read the section of the manual that the warning > is > >> > pointing to :-) > >> > > >> > > https://www.gnu.org/software/guix/manual/en/guix.html#Application-Setup > >> > > >> > Hope this helps, otherwise feel free to ask, > >> > > >> > Bj=C3=B6rn > >> > >> Best regards, > >> g_bor > > Best regards, > g_bor > --0000000000000941880578e499d3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0G=C3=A1bor and=C2=A0Bj=C3=B6rn,
=

I was trying to install the new packages with the documentation mentioned= in the Outreachy site as below

Here I see a code to define a package for '= Hello' and I assume in order to define a package for Anaconda I just ne= ed to change this code with source, url=C2=A0details of Anaconda something = like=C2=A0this as mentioned in the bold.

(define-module (gnu pack= ages Anaconda)
=C2=A0 #:use-module= (guix packages)
=C2=A0 #:use-modu= le (guix download)
=C2=A0 #:use-mo= dule (guix build-system Anaconda)
= =C2=A0 #:use-module (guix licenses)
<= i>=C2=A0 #:use-module (gnu packages gawk))

(define-public An= aconda
=C2=A0 (package
=C2=A0 =C2=A0 (name "Anaconda= ")
=C2=A0 =C2=A0 (version &qu= ot;3.10")
=C2=A0 =C2= =A0 (source (origin
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (method url-fetch)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (uri= (string-append "Anaconda's Website URL" version
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 ".tar.gz"))
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (sha256
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0(base32
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "0ssi1wpaf7plaswqqjwigppsg5fyh99vdl= b9kzl7c9lng89ndq1i"))))
=C2= =A0 =C2=A0 (build-system gnu-build-system)
=C2=A0 =C2=A0 (arguments '(#:configure-flags '("--ena= ble-silent-rules")))
=C2=A0 = =C2=A0 (inputs `(("gawk" ,gawk)))
=C2=A0 =C2=A0 (synopsis "Hello, GNU world: An example GNU pa= ckage")
=C2=A0 =C2=A0 (descri= ption "Guess what GNU Hello prints!")
=C2=A0 =C2=A0 (home-page "http://www.gnu.org/software/hello/")
=C2=A0 =C2=A0 (license gpl3+)))

Request you to guide me to get a better unders= tanding here as I saw one more page in this url, that uses some pull comman= ds to run some build etc.

Thanks,
<= div>
Lakshmi Prasannakumar
Bangalore=


On Thu, Oct 18, 2018= at 6:30 PM G=C3=A1bor Boskovits <boskovits@gmail.com> wrote:
Hello Lakshmi,

Lakshmi Prasannakumar <lakshmiprasannakumaran@gmail.com> ezt =C3=ADrta=
(id=C5=91pont: 2018. okt. 18., Cs, 14:38):
>
> @Bj=C3=B6rn and @G=C3=A1bor
>
> Thanks a lot. It did work fine.
>
> Now as the next step I assume, I have to add a new package.=C2=A0 I ca= n see from there are lot many packages listed in the http= s://www.gnu.org/software/guix/packages/ in alphabetic order. So should = I find a new package and add it?
>

Yes, that is correct.

> If it is to add a new package, I see the Anaconda Package missing ther= e. And may be I could add that in the format mentioned in 4.1 defining pack= age , is that correct?
>

Yes, that is correct. We usually recommend to add a package we have an
importer for. Anaconda could be a good candidate, if you wish to
package it, and I guess we have a lot of unpackaged dependencies of
anaconda.
Note that you have to package all the dependencies to package
something for guix. Packaging a single dependency would do for now.
Please see https://ww= w.gnu.org/software/guix/manual/en/html_node/Invoking-guix-import.html for
more information about importers. (For example R packages from CRAN or
bioconductor have a good quality importer)

>=C2=A0 Or should I proceed with creating video tutorials for the steps = I did until now ?
>

Not yet, we should leave that for later, if it is possible.

> Thanks,
> Lakshmi Prasannakumar
> Bangalore
>
>
> On Thu, Oct 18, 2018 at 5:22 PM G=C3=A1bor Boskovits <boskovits@gmail.com> wro= te:
>>
>> Hello Lakshmi,
>>
>> Bj=C3=B6rn H=C3=B6fling <bjoern.hoefling@bjoernhoefling.de> = ezt =C3=ADrta (id=C5=91pont:
>> 2018. okt. 18., Cs, 13:46):
>> >
>> > Hi Lakshmi,
>> >
>> > On Thu, 18 Oct 2018 14:52:30 +0530
>> > Lakshmi Prasannakumar <lakshmiprasannakumaran@gmail.com>= wrote:
>> >
>> > > Hi G=C3=A1bor,
>> > >
>> > > I have followed the Binary-Installation procedures and i= nstalled the
>> > > hello package to my root.
>> > > The next step I understand is to add another package fro= m the list in
>> > > https://www.gnu.org/software/guix/pack= ages/
>> > > I tried following this step to install a package from th= e list i.e.
>> > > 4ti2 1.6.7 using the below commands:
>> > > *guix package -i 4ti2 1.6.7*
>> > >
>> > > However, I got the error as :
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > *guile: warning: failed to install localehint: Consider = installing the
>> > > `glibc-utf8-locales' or `glibc-locales' package = anddefining
>> > > `GUIX_LOCPATH', along these lines:=C2=A0 =C2=A0 =C2= =A0guix package -i
>> > > glibc-utf8-locales=C2=A0 =C2=A0 =C2=A0export
>> > > GUIX_LOCPATH=3D"$HOME/.guix-profile/lib/locale"= ;See the "Application
>> > > Setup" section in the manual, for more info.* Is it= due my incomplete
>> > > GUIX installation or are there further steps to follow?<= br> >> >
>>
>> It is safe to ignore these warnings for now. If it causes any prob= lem,
>> we can return to that,
>> but unfortunalety sometimes this is hard to debug on foreign distr= os.
>> You could try following
>> the instuctions in the warning, but it does not help then just ign= ore
>> them for now.
>>
>> >
>> > I think there is no error. As it says, this is only a warning= . Or is
>> > there anything else I have overseen in your message?
>> >
>> > If unsure, you can check the return code of the previous comm= and by
>> > directly typing
>> >
>> > echo $?
>> >
>> > The return code should be 0.
>> >
>> > You can also list the installed packages in Guix and see if h= ello and
>> > 4ti2 are installed:
>> >
>> > guix package -I
>> >
>> > Note the CAPITAL I,
>> >
>> > You can also list the generations. As you first installed hel= lo and in
>> > a second step you installed 4ti2, there should be at least tw= o
>> > generations:
>> >
>> > guix package --list-generations
>> >
>> > The warning is about the locale. To get rid of it, do exactly= what the
>> > warning says, and/or read the section of the manual that the = warning is
>> > pointing to :-)
>> >
>> > https://www.gnu= .org/software/guix/manual/en/guix.html#Application-Setup
>> >
>> > Hope this helps, otherwise feel free to ask,
>> >
>> > Bj=C3=B6rn
>>
>> Best regards,
>> g_bor

Best regards,
g_bor
--0000000000000941880578e499d3--