Re: FOSDEM 2019 - stand

2018-10-18 Thread Björn Höfling
On Sun, 9 Sep 2018 01:03:25 +0200
Björn Höfling  wrote:

[..]

> The stands are usually very demanded. We have better chances if we
> share the table with some other project. Should we do that? And if,
> with which project?

I asked on the r-b mailing list. They are unsure and want to discuss it
in their next meeting:

I'm not sure we want to commit to operating a booth a FOSDEM and I would
suggest we'll discuss this on our next IRC meeting next Tuesday, the
23rd of October at 16 UTC on #reproducible-builds.

I saved the date and think I can participate.

Björn


pgpKJc9GQZwI4.pgp
Description: OpenPGP digital signature


Re: [outreach] Help trying to create R package

2018-10-18 Thread Gábor Boskovits
Wow, Björn, you were so fast again :)

I just got around this right now.

Björn Höfling  ezt írta (időpont:
2018. okt. 18., Cs, 8:54):
>
> Hi Laura,
>
> On Wed, 17 Oct 2018 22:36:02 -0300
> Laura Lazzati  wrote:
>
>
> > > https://www.gnu.org/software/guix/manual/en/html_node/Contributing.html#Contributing
> > I have already read this chapter, but I am messed up. I have already
> > cloned from git, but I have some questions:
> > 1) Do I need to install everything from the git repo in my distro?
>
> I'm not sure if I understand you right. You ask if you "need to install
> everything from the git in my distro?". I don't get that. Let me tell
> what I mean:
>
> You cloned that one, right?
>
> git clone https://git.savannah.gnu.org/git/guix.git
>
> That is the source code of Guix. I.e. when you do a
>
> guix package -i hello
>
> then you use the binary "guix" command that you installed in the
> beginning. And the repository you cloned is just the source code, there
> is nothing in there that you need to install.
>
>
> Maybe you ment the list of software that is written here:
>
> https://www.gnu.org/software/guix/manual/en/guix.html#Building-from-Git
>
> When building Guix from a checkout, the following packages are required in 
> addition to those mentioned in the installation instructions (see 
> Requirements).
>
> GNU Autoconf;
> GNU Automake;
> GNU Gettext;
> GNU Texinfo;
> Graphviz;
> GNU Help2man (optional).
>
> So, yeah. In order to compile Guix from source, you need all these.
>
> But wait, read the next sentence. You have guix already installed. Guix
> provides a VERY nice command, `guix envirionment `. With that,
> Guix prepares an "environment" that can be directly used to build
> .
>
> So, if you enter:
>
> guix environment guix
>
> then Guix will know best what software in which version it needs in
> order to build guix (in this case, itself, don't get trapped by that
> self-circularity :-))
>
> When you are in, you can just follow the next steps described:
>
> ./bootstrap
> ./configure --localstatedir=/var
> make
>
> When that went all through well, you can install the "hello"
> application:
>
> ./pre-inst-env guix package -i hello
>
> The "./pre-inst-env" tells that you want to use the guix command that
> you just built, not the one that is somewhere else on your path.
>
> Now you just go on:
>
> > 2) How do I convert my template into a package? I can't figure out
> > that part.
>
> You don't have to CONVERT. That template IS a package:
>
> > > (define-public r-aspi
> > > (package
> > >   (name "r-aspi")
>
> What you do is you just open the file gnu/packages/r.scm and add your
> "(define... " at the end.
>
> Ehh, wait, there is no file r.scm. It is either cran.scm or
> bioinformatics.scm.
>
> Then you are done. Try to build it:
>
> ./pre-inst-env guix build r-aspi
>
> Björn
>
>
>

Thank you!
g_bor



Re: Video Documentation for GNU GUIX (an Outreachy project)

2018-10-18 Thread Björn Höfling
Hi Lakshmi,

On Thu, 18 Oct 2018 14:52:30 +0530
Lakshmi Prasannakumar  wrote:

> Hi Gábor,
> 
> I have followed the Binary-Installation procedures and installed the
> 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="$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?


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 and
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 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örn


pgp2eH83m00VN.pgp
Description: OpenPGP digital signature


Re: Video Documentation for GNU GUIX (an Outreachy project)

2018-10-18 Thread Gábor Boskovits
Hello Lakshmi,

Björn Höfling  ezt írta (időpont:
2018. okt. 18., Cs, 13:46):
>
> Hi Lakshmi,
>
> On Thu, 18 Oct 2018 14:52:30 +0530
> Lakshmi Prasannakumar  wrote:
>
> > Hi Gábor,
> >
> > I have followed the Binary-Installation procedures and installed the
> > 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="$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?
>

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 and
> 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 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örn

Best regards,
g_bor



Re: Video Documentation for GNU GUIX (an Outreachy project)

2018-10-18 Thread Gábor Boskovits
Hello Lakshmi,

Lakshmi Prasannakumar  ezt írta
(időpont: 2018. okt. 18., Cs, 14:38):
>
> @Björn and @Gábor
>
> 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 package , 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-import.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ábor Boskovits  wrote:
>>
>> Hello Lakshmi,
>>
>> Björn Höfling  ezt írta (időpont:
>> 2018. okt. 18., Cs, 13:46):
>> >
>> > Hi Lakshmi,
>> >
>> > On Thu, 18 Oct 2018 14:52:30 +0530
>> > Lakshmi Prasannakumar  wrote:
>> >
>> > > Hi Gábor,
>> > >
>> > > I have followed the Binary-Installation procedures and installed the
>> > > 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="$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?
>> >
>>
>> 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 and
>> > 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 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örn
>>
>> Best regards,
>> g_bor

Best regards,
g_bor



Re: Video Documentation for GNU GUIX (an Outreachy project)

2018-10-18 Thread Lakshmi Prasannakumar
@Björn and @Gábor

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?

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 package
, is that correct?

 Or should I proceed with creating video tutorials for the steps I did
until now ?

Thanks,
Lakshmi Prasannakumar
Bangalore


On Thu, Oct 18, 2018 at 5:22 PM Gábor Boskovits  wrote:

> Hello Lakshmi,
>
> Björn Höfling  ezt írta (időpont:
> 2018. okt. 18., Cs, 13:46):
> >
> > Hi Lakshmi,
> >
> > On Thu, 18 Oct 2018 14:52:30 +0530
> > Lakshmi Prasannakumar  wrote:
> >
> > > Hi Gábor,
> > >
> > > I have followed the Binary-Installation procedures and installed the
> > > 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="$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?
> >
>
> 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 and
> > 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 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örn
>
> Best regards,
> g_bor
>


Help required for installation of GUIX

2018-10-18 Thread Lakshmi Prasannakumar
Hi,

While trying to install GUIX using Binary installation, I'm getting the
following error at verifying sig file using the below command.

$ sudo gpg --verify guix-binary-0.15.0.x86_64-linux.tar.xz.sig











*gpg: WARNING: unsafe ownership on homedir '/home/lakshmi/.gnupg'gpg:
assuming signed data in 'guix-binary-0.15.0.x86_64-linux.tar.xz'gpg:
Signature made Friday 06 July 2018 02:50:33 PM ISTgpg:using
RSA key 090B11993D9AEBB5gpg: Good signature from "Ludovic Courtès
>" [unknown]gpg: aka "Ludovic
Courtès >"
[unknown]gpg: aka "Ludovic Courtès (Inria)
>" [unknown]gpg:
WARNING: This key is not certified with a trusted signature!gpg:
There is no indication that the signature belongs to the owner.Primary key
fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5*
Tried downloading the public key, still getting this error. Could you
please help ?
Running the .sh script had crashed my standalone ubuntu system, hence I'm
trying to do it step by step.

Thanks,


Thanks,


Lakshmi Prasannakumar
Bangalore


On Wed, Oct 17, 2018 at 11:21 PM  wrote:

> Send Guix-devel mailing list submissions to
> guix-devel@gnu.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.gnu.org/mailman/listinfo/guix-devel
> or, via email, send a message with subject or body 'help' to
> guix-devel-requ...@gnu.org
>
> You can reach the person managing the list at
> guix-devel-ow...@gnu.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Guix-devel digest..."
>
>
> Today's Topics:
>
>1. Re: [outreach] Help trying to create R package (Laura Lazzati)
>2. Re: Guix & IPFS (Pierre Neidhardt)
>3. Re: [outreach] Help trying to create R package (Cl?ment Lassieur)
>4. Re: Packaging Inferno (Diego Nicola Barbato)
>5. Re: [outreach] Help trying to create R package (Laura Lazzati)
>
>
> --
>
> Message: 1
> Date: Wed, 17 Oct 2018 13:38:53 -0300
> From: Laura Lazzati 
> To: G?bor Boskovits 
> Cc: Bj?rn H?fling ,  Guix-devel
> ,   Ricardo Wurmus <
> ricardo.wur...@mdc-berlin.de>
> Subject: Re: [outreach] Help trying to create R package
> Message-ID:
> <
> capnlzum8em2k0c2a4eokygt4wmzuzxugfotj4pxnun_wodf...@mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> On Wed, Oct 17, 2018 at 11:27 AM Laura Lazzati
>  wrote:
> >
> > On Wed, Oct 17, 2018 at 5:21 AM G?bor Boskovits 
> wrote:
> > >
> > > ?Hi Laura,
> > >
> > >
> > >
> > > Bj?rn H?fling  ezt ?rta (id?pont:
> 2018. okt. 17., Sze 9:17):
> > >>
> > >> Hi Laura,
> > >>
> > >> On Tue, 16 Oct 2018 22:01:58 -0300
> > >> Laura Lazzati  wrote:
> > >>
> > >> > On Tue, Oct 16, 2018 at 7:19 PM Bj?rn H?fling
> > >> >  wrote:
> > >> > >
> > >> > > Hi Laura,
> > >> > Hi! I had not answered yet because I thought I would be too verbose.
> > >> > If so, please do a Laura -v instead of Laura -vvv.
> > >> > Thanks for writing :) it encourages me a lot.
> > >>
> > >> You're welcome. It's nice to hear from your progress. Verbosity-level
> > >> is fine :-)
> > Thanks :) Hope you enjoy my nerd jokes
> >
> > >> [..]
> > >>
> > >> > > Here is another one:
> > >> > >
> > >> > > guix package -s "^r-" | recsel -p name| grep '\S' | sort >r.txt
> > >> >
> > >> > Something I faced after writing, was that in the link one of you
> > >> > provided: [1]https://guix.mdc-berlin.de/
> > >> > I have all the packages that are already available in guix. I like
> > >> > using the guix package command to practice that too, but i found it
> > >> > practical to see packages easier. I found out that package aspi
> > >> > (https://CRAN.R-project.org/package=aspi) is not available, and I
> > >> > would like to ask you if you believe it is a good candidate.
> > >> > One available package, according to [1] is r-abe
> > >> > (https://cran.r-project.org/web/packages/abe/index.html)
> > >>
> > >> Sorry I have no clue of R at all. Could someone else please answer
> that
> > >> question, is r-aspi a good candidate?
> > >>
> > >> https://cran.r-project.org/web/packages/aspi/index.html
> > >>
> > >>
> > >> > I wanted to see the template, so I ran:
> > >> > $ guix import cran abe
> > >> > And got the template, that matches even the version, and everything
> > >> > stated in the site.
> > >> > But then I tried:
> > >> > $ guix package -i r-abe and got no results.
> > >
> > > This happens, as the installed guix doesn't know where to find the
> package definition. There are several ways around that, for example see the
> -f flag of guix package, in the invoking guix package section of the manual.
> > >>
> > >> > In fact, after running the command you have just provided, r-abe is
> > >> > not appearing in the r.txt file.
> > >> > I can't understand why that is happening. Am I missing something, or
> > >> > is there maybe an inconsistency between [1] and the guix installed
> in
> > 

Re: Video Documentation for GNU GUIX (an Outreachy project)

2018-10-18 Thread Lakshmi Prasannakumar
Hi Gábor,

I have followed the Binary-Installation procedures and installed the 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="$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?

Thanks,




Lakshmi Prasannakumar
Bangalore


On Wed, Oct 17, 2018 at 1:41 PM Gábor Boskovits  wrote:

> Hello Lakshmi,
> Welcome to Guix!
>
> Björn Höfling  ezt írta (időpont:
> 2018. okt. 17., Sze 8:45):
>
>> Hi Lakshmi,
>>
>> On Wed, 17 Oct 2018 09:04:40 +0530
>> Lakshmi Prasannakumar  wrote:
>>
>> > Hi  Björn,
>> > I write to you in regards to the project description seen at the
>> > Outreachy project list. I would like to join your community and start
>> > contributing to the documentation part of it.
>>
>> Welcome to Guix! I'm adding the public mailing list on CC, so other
>> community members can also answer if necessary. Also adding Gabor on
>> CC, who is the main mentor.
>>
>> >  Though I have joined
>> > the IRC channel for GNU GUIX, I'm continually receiving the error
>> > message as below on sending messages:
>> > == Cannot send to nick/channel
>>
>> There was recently a spam attack on the freenode IRC network. Since
>> then you need to register your nick name before it is possible to join
>> the #guix channel. If you haven't done that yet, here are the
>> instructions:
>>
>> https://freenode.net/kb/answer/registration
>>
>> You can also join the mailing list and write there.
>>
>> > My understanding regarding the project contribution is to make
>> > video tutorials on how to install and use GNU GUIX.
>> > Could you kindly direct me with some initial task so that I can start
>> > working on it and get familiar with the environment?
>>
>> Yes, that's right, video documentation is the job. One requirement for
>> Outreachy is to make a first, formal contribution to the project. For
>> Guix that means you could add a new package.
>>
>> But the very first step is to install Guix and get used to it. You can
>> install Guix either on top of another Linux-Distribution or standalone,
>> in a virtual mashine or on real hardware. On top of an existing distro
>> is probably the easiest step.
>>
>> The docs for installation should be linked from the Outreachy Project
>> site, I post it also here:
>>
>>
>> https://www.gnu.org/software/guix/manual/en/html_node/Binary-Installation.html#Binary-Installation
>
>
> Yes, installation would be the first step.
>
>
>>
>> If you have any questions feel free to ask (preferably on the mailing
>> list, or if it works for you, on IRC).
>>
>> Yours,
>>
>> Björn
>>
>
> Best regards,
> g_bor
>
>>


Re: [outreach] Help trying to create R package

2018-10-18 Thread Laura Lazzati
On Thu, Oct 18, 2018 at 4:50 AM Gábor Boskovits  wrote:
>
> Wow, Björn, you were so fast again :)
>
> I just got around this right now.
Again, thank both for being so kind :)
>
> Björn Höfling  ezt írta (időpont:
> 2018. okt. 18., Cs, 8:54):
> >
> > Hi Laura,
> >
> > On Wed, 17 Oct 2018 22:36:02 -0300
> > Laura Lazzati  wrote:
> >
> >
> > > > https://www.gnu.org/software/guix/manual/en/html_node/Contributing.html#Contributing
> > > I have already read this chapter, but I am messed up. I have already
> > > cloned from git, but I have some questions:
> > > 1) Do I need to install everything from the git repo in my distro?
> >
> > I'm not sure if I understand you right. You ask if you "need to install
> > everything from the git in my distro?". I don't get that. Let me tell
> > what I mean:
> >
> > You cloned that one, right?
> >
> > git clone https://git.savannah.gnu.org/git/guix.git
> >
> > That is the source code of Guix. I.e. when you do a
> >
> > guix package -i hello
> >
> > then you use the binary "guix" command that you installed in the
> > beginning. And the repository you cloned is just the source code, there
> > is nothing in there that you need to install.
> >
> >
> > Maybe you ment the list of software that is written here:
> >
> > https://www.gnu.org/software/guix/manual/en/guix.html#Building-from-Git
> >
> > When building Guix from a checkout, the following packages are required in 
> > addition to those mentioned in the installation instructions (see 
> > Requirements).
> >
> > GNU Autoconf;
> > GNU Automake;
> > GNU Gettext;
> > GNU Texinfo;
> > Graphviz;
> > GNU Help2man (optional).
> >
> > So, yeah. In order to compile Guix from source, you need all these.
I was indeed trying to do this.

> >
> > But wait, read the next sentence. You have guix already installed. Guix
> > provides a VERY nice command, `guix envirionment `. With that,
> > Guix prepares an "environment" that can be directly used to build
> > .
> >
> > So, if you enter:
> >
> > guix environment guix
I have just did this :)
> >
> > then Guix will know best what software in which version it needs in
> > order to build guix (in this case, itself, don't get trapped by that
> > self-circularity :-))
> >
> > When you are in, you can just follow the next steps described:
> >
> > ./bootstrap
This worked fine.
> > ./configure --localstatedir=/var

This did not, I am getting this error:

configure: checking for guile 2.2
configure: found guile 2.2
checking for guile-2.2... /usr/bin/guile-2.2
checking for Guile version >= 2.2... 2.2.3
checking for guild-2.2... no
checking for guile-config-2.2... no
checking for guile-tools-2.2... no
configure: error: 'guild' binary not found; please check your
guile-2.x installation.

Then ran
$guix package -i guile
Same error running configure.
$guix package -s guild
$guix package -i guildhall
And my output of guix -I, however, is:
hello2.10out/gnu/store/bihfrh609gkxb9dp7n96wlpigiv3krfy-hello-2.10
recutils1.7out
/gnu/store/6h02na6yz9smc7c7g62ss03kp4yhqpc1-recutils-1.7
glibc-locales2.27out
/gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27
glibc-utf8-locales2.27out
/gnu/store/mbns811n696fl7g060cx6jqjh75mlj8i-glibc-utf8-locales-2.27
nss-certs3.36.1out
/gnu/store/h8qlwgwhg6jr0kp5ihy90cgb6h0q1fj9-nss-certs-3.36.1
r-ade41.7-11out
/gnu/store/980xl9a58nd6f22wzwsmv9mkhv7pq3hh-r-ade4-1.7-11
guile2.2.4out/gnu/store/p9wm67w3rfw3hlb9iljgvsfn84mz4w9d-guile-2.2.4
guildhall0-1.2fe2cc539out
/gnu/store/kd2mvhr18yphrkiqgavw0w0r0n5bfchn-guildhall-0-1.2fe2cc539

Something weird  is that in configure output I see there is a /usr/bin
mentioned, so I went to that dir, ran
$ ll | grep guile
lrwxrwxrwx  1 root root  23 oct 10 22:55 guile ->
/etc/alternatives/guile*
lrwxrwxrwx  1 root root  43 jul 17 10:42 guile-2.2 ->
../lib/x86_64-linux-gnu/guile-2.2/bin/guile*

And can't figure out why I have that links.

> > make
> >
> > When that went all through well, you can install the "hello"
> > application:
> >
> > ./pre-inst-env guix package -i hello
> >
> > The "./pre-inst-env" tells that you want to use the guix command that
> > you just built, not the one that is somewhere else on your path.
> >
> > Now you just go on:
> >
> > > 2) How do I convert my template into a package? I can't figure out
> > > that part.
> >
> > You don't have to CONVERT. That template IS a package:
> >
> > > > (define-public r-aspi
> > > > (package
> > > >   (name "r-aspi")
> >
> > What you do is you just open the file gnu/packages/r.scm and add your
> > "(define... " at the end.
> >
> > Ehh, wait, there is no file r.scm. It is either cran.scm or
> > bioinformatics.scm.
> >
> > Then you are done. Try to build it:
> >
> > ./pre-inst-env guix build r-aspi
> >
> > Björn
> >
> >
> >
>
> Thank you!
> g_bor

Regards :)
Laura



Re: [outreach] Help trying to create R package

2018-10-18 Thread Gábor Boskovits
Hi Laura,

Laura Lazzati  ezt írta (időpont: 2018.
okt. 18., Cs, 16:49):
>
> On Thu, Oct 18, 2018 at 4:50 AM Gábor Boskovits  wrote:
> >
> > Wow, Björn, you were so fast again :)
> >
> > I just got around this right now.
> Again, thank both for being so kind :)
> >
> > Björn Höfling  ezt írta (időpont:
> > 2018. okt. 18., Cs, 8:54):
> > >
> > > Hi Laura,
> > >
> > > On Wed, 17 Oct 2018 22:36:02 -0300
> > > Laura Lazzati  wrote:
> > >
> > >
> > > > > https://www.gnu.org/software/guix/manual/en/html_node/Contributing.html#Contributing
> > > > I have already read this chapter, but I am messed up. I have already
> > > > cloned from git, but I have some questions:
> > > > 1) Do I need to install everything from the git repo in my distro?
> > >
> > > I'm not sure if I understand you right. You ask if you "need to install
> > > everything from the git in my distro?". I don't get that. Let me tell
> > > what I mean:
> > >
> > > You cloned that one, right?
> > >
> > > git clone https://git.savannah.gnu.org/git/guix.git
> > >
> > > That is the source code of Guix. I.e. when you do a
> > >
> > > guix package -i hello
> > >
> > > then you use the binary "guix" command that you installed in the
> > > beginning. And the repository you cloned is just the source code, there
> > > is nothing in there that you need to install.
> > >
> > >
> > > Maybe you ment the list of software that is written here:
> > >
> > > https://www.gnu.org/software/guix/manual/en/guix.html#Building-from-Git
> > >
> > > When building Guix from a checkout, the following packages are required 
> > > in addition to those mentioned in the installation instructions (see 
> > > Requirements).
> > >
> > > GNU Autoconf;
> > > GNU Automake;
> > > GNU Gettext;
> > > GNU Texinfo;
> > > Graphviz;
> > > GNU Help2man (optional).
> > >
> > > So, yeah. In order to compile Guix from source, you need all these.
> I was indeed trying to do this.
>
> > >
> > > But wait, read the next sentence. You have guix already installed. Guix
> > > provides a VERY nice command, `guix envirionment `. With that,
> > > Guix prepares an "environment" that can be directly used to build
> > > .
> > >
> > > So, if you enter:
> > >
> > > guix environment guix
> I have just did this :)
Great.
> > >
> > > then Guix will know best what software in which version it needs in
> > > order to build guix (in this case, itself, don't get trapped by that
> > > self-circularity :-))
> > >
> > > When you are in, you can just follow the next steps described:
> > >
> > > ./bootstrap
> This worked fine.
> > > ./configure --localstatedir=/var
>
> This did not, I am getting this error:
>
> configure: checking for guile 2.2
> configure: found guile 2.2
> checking for guile-2.2... /usr/bin/guile-2.2
> checking for Guile version >= 2.2... 2.2.3
> checking for guild-2.2... no
> checking for guile-config-2.2... no
> checking for guile-tools-2.2... no
> configure: error: 'guild' binary not found; please check your
> guile-2.x installation.
>

I don't know what to make of this, but you could try guix environment
guix --ad-hoc guild.
Please see if that helps, if not then I will have a closer look at this.

> Then ran
> $guix package -i guile
> Same error running configure.
> $guix package -s guild
> $guix package -i guildhall
> And my output of guix -I, however, is:
> hello2.10out/gnu/store/bihfrh609gkxb9dp7n96wlpigiv3krfy-hello-2.10
> recutils1.7out
> /gnu/store/6h02na6yz9smc7c7g62ss03kp4yhqpc1-recutils-1.7
> glibc-locales2.27out
> /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27
> glibc-utf8-locales2.27out
> /gnu/store/mbns811n696fl7g060cx6jqjh75mlj8i-glibc-utf8-locales-2.27
> nss-certs3.36.1out
> /gnu/store/h8qlwgwhg6jr0kp5ihy90cgb6h0q1fj9-nss-certs-3.36.1
> r-ade41.7-11out
> /gnu/store/980xl9a58nd6f22wzwsmv9mkhv7pq3hh-r-ade4-1.7-11
> guile2.2.4out
> /gnu/store/p9wm67w3rfw3hlb9iljgvsfn84mz4w9d-guile-2.2.4
> guildhall0-1.2fe2cc539out
> /gnu/store/kd2mvhr18yphrkiqgavw0w0r0n5bfchn-guildhall-0-1.2fe2cc539
>
> Something weird  is that in configure output I see there is a /usr/bin
> mentioned, so I went to that dir, ran
> $ ll | grep guile
> lrwxrwxrwx  1 root root  23 oct 10 22:55 guile ->
> /etc/alternatives/guile*
> lrwxrwxrwx  1 root root  43 jul 17 10:42 guile-2.2 ->
> ../lib/x86_64-linux-gnu/guile-2.2/bin/guile*
>
> And can't figure out why I have that links.
>
> > > make
> > >
> > > When that went all through well, you can install the "hello"
> > > application:
> > >
> > > ./pre-inst-env guix package -i hello
> > >
> > > The "./pre-inst-env" tells that you want to use the guix command that
> > > you just built, not the one that is somewhere else on your path.
> > >
> > > Now you just go on:
> > >
> > > > 2) How do I convert my template into a package? I can't figure out
> > > > that part.
> > >
> > > You don't have to CONVERT. That template IS a package:
> > >
> > > > > (define-public 

Re: Help required for installation of GUIX

2018-10-18 Thread Gábor Boskovits
Hello Lakshmi,

Lakshmi Prasannakumar  ezt írta
(időpont: 2018. okt. 18., Cs, 16:27):
>
> Hi,
>
> While trying to install GUIX using Binary installation, I'm getting the 
> following error at verifying sig file using the below command.
>
> $ sudo gpg --verify guix-binary-0.15.0.x86_64-linux.tar.xz.sig
> gpg: WARNING: unsafe ownership on homedir '/home/lakshmi/.gnupg'
> gpg: assuming signed data in 'guix-binary-0.15.0.x86_64-linux.tar.xz'
> gpg: Signature made Friday 06 July 2018 02:50:33 PM IST
> gpg:using RSA key 090B11993D9AEBB5
> gpg: Good signature from "Ludovic Courtès " [unknown]
> gpg: aka "Ludovic Courtès " [unknown]
> gpg: aka "Ludovic Courtès (Inria) " 
> [unknown]
> gpg: WARNING: This key is not certified with a trusted signature!
> gpg:  There is no indication that the signature belongs to the owner.
> Primary key fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
>

This is ok, you can see Good signature from...
This means that the signature is ok, but the key is not trusted on
your keyring, and there are also unsafe
permissions on the ~/.gnupg directory. So you can assume this step
went fine, please go on to the next step.

> Tried downloading the public key, still getting this error. Could you please 
> help ?
> Running the .sh script had crashed my standalone ubuntu system, hence I'm 
> trying to do it step by step.
>
How did it crash?

> Thanks,
>
>
> Thanks,
>
>
> Lakshmi Prasannakumar
> Bangalore
>
>
g_bor



Re: [outreach] Help trying to create R package

2018-10-18 Thread Laura Lazzati
On Thu, Oct 18, 2018 at 12:15 PM Gábor Boskovits  wrote:
>
> Hi Laura,
>
> Laura Lazzati  ezt írta (időpont: 2018.
> okt. 18., Cs, 16:49):
> >
> > On Thu, Oct 18, 2018 at 4:50 AM Gábor Boskovits  wrote:
> > >
> > > Wow, Björn, you were so fast again :)
> > >
> > > I just got around this right now.
> > Again, thank both for being so kind :)
> > >
> > > Björn Höfling  ezt írta (időpont:
> > > 2018. okt. 18., Cs, 8:54):
> > > >
> > > > Hi Laura,
> > > >
> > > > On Wed, 17 Oct 2018 22:36:02 -0300
> > > > Laura Lazzati  wrote:
> > > >
> > > >
> > > > > > https://www.gnu.org/software/guix/manual/en/html_node/Contributing.html#Contributing
> > > > > I have already read this chapter, but I am messed up. I have already
> > > > > cloned from git, but I have some questions:
> > > > > 1) Do I need to install everything from the git repo in my distro?
> > > >
> > > > I'm not sure if I understand you right. You ask if you "need to install
> > > > everything from the git in my distro?". I don't get that. Let me tell
> > > > what I mean:
> > > >
> > > > You cloned that one, right?
> > > >
> > > > git clone https://git.savannah.gnu.org/git/guix.git
> > > >
> > > > That is the source code of Guix. I.e. when you do a
> > > >
> > > > guix package -i hello
> > > >
> > > > then you use the binary "guix" command that you installed in the
> > > > beginning. And the repository you cloned is just the source code, there
> > > > is nothing in there that you need to install.
> > > >
> > > >
> > > > Maybe you ment the list of software that is written here:
> > > >
> > > > https://www.gnu.org/software/guix/manual/en/guix.html#Building-from-Git
> > > >
> > > > When building Guix from a checkout, the following packages are required 
> > > > in addition to those mentioned in the installation instructions (see 
> > > > Requirements).
> > > >
> > > > GNU Autoconf;
> > > > GNU Automake;
> > > > GNU Gettext;
> > > > GNU Texinfo;
> > > > Graphviz;
> > > > GNU Help2man (optional).
> > > >
> > > > So, yeah. In order to compile Guix from source, you need all these.
> > I was indeed trying to do this.
> >
> > > >
> > > > But wait, read the next sentence. You have guix already installed. Guix
> > > > provides a VERY nice command, `guix envirionment `. With that,
> > > > Guix prepares an "environment" that can be directly used to build
> > > > .
> > > >
> > > > So, if you enter:
> > > >
> > > > guix environment guix
> > I have just did this :)
> Great.
> > > >
> > > > then Guix will know best what software in which version it needs in
> > > > order to build guix (in this case, itself, don't get trapped by that
> > > > self-circularity :-))
> > > >
> > > > When you are in, you can just follow the next steps described:
> > > >
> > > > ./bootstrap
> > This worked fine.
> > > > ./configure --localstatedir=/var
> >
> > This did not, I am getting this error:
> >
> > configure: checking for guile 2.2
> > configure: found guile 2.2
> > checking for guile-2.2... /usr/bin/guile-2.2
> > checking for Guile version >= 2.2... 2.2.3
> > checking for guild-2.2... no
> > checking for guile-config-2.2... no
> > checking for guile-tools-2.2... no
> > configure: error: 'guild' binary not found; please check your
> > guile-2.x installation.
> >
>
> I don't know what to make of this, but you could try guix environment
> guix --ad-hoc guild.
> Please see if that helps, if not then I will have a closer look at this.
I restored everything to the snapshot where I ended cloning guix.
I get this error when trying to run guix environme guix --ad-hoc guild:
guix environment: error: guild: unknown package

>
> > Then ran
> > $guix package -i guile
> > Same error running configure.
> > $guix package -s guild
> > $guix package -i guildhall
> > And my output of guix -I, however, is:
> > hello2.10out
> > /gnu/store/bihfrh609gkxb9dp7n96wlpigiv3krfy-hello-2.10
> > recutils1.7out
> > /gnu/store/6h02na6yz9smc7c7g62ss03kp4yhqpc1-recutils-1.7
> > glibc-locales2.27out
> > /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27
> > glibc-utf8-locales2.27out
> > /gnu/store/mbns811n696fl7g060cx6jqjh75mlj8i-glibc-utf8-locales-2.27
> > nss-certs3.36.1out
> > /gnu/store/h8qlwgwhg6jr0kp5ihy90cgb6h0q1fj9-nss-certs-3.36.1
> > r-ade41.7-11out
> > /gnu/store/980xl9a58nd6f22wzwsmv9mkhv7pq3hh-r-ade4-1.7-11
> > guile2.2.4out
> > /gnu/store/p9wm67w3rfw3hlb9iljgvsfn84mz4w9d-guile-2.2.4
> > guildhall0-1.2fe2cc539out
> > /gnu/store/kd2mvhr18yphrkiqgavw0w0r0n5bfchn-guildhall-0-1.2fe2cc539
> >
> > Something weird  is that in configure output I see there is a /usr/bin
> > mentioned, so I went to that dir, ran
> > $ ll | grep guile
> > lrwxrwxrwx  1 root root  23 oct 10 22:55 guile ->
> > /etc/alternatives/guile*
> > lrwxrwxrwx  1 root root  43 jul 17 10:42 guile-2.2 ->
> > ../lib/x86_64-linux-gnu/guile-2.2/bin/guile*
> >
> > And can't figure out why I have that links.
> >
> > > > make
> > > >
> 

Re: Help required for installation of GUIX

2018-10-18 Thread Lakshmi Prasannakumar
Hi  Gábor,

It crashed because of my fault. After running the script, I had rerun a few
of the steps and to resolve the issue I did try to remove few of the
folders, that corrupted my system.

Thanks,

Lakshmi Prasannakumar
Bangalore


On Thu, Oct 18, 2018 at 8:38 PM Gábor Boskovits  wrote:

> Hello Lakshmi,
>
> Lakshmi Prasannakumar  ezt írta
> (időpont: 2018. okt. 18., Cs, 16:27):
> >
> > Hi,
> >
> > While trying to install GUIX using Binary installation, I'm getting the
> following error at verifying sig file using the below command.
> >
> > $ sudo gpg --verify guix-binary-0.15.0.x86_64-linux.tar.xz.sig
> > gpg: WARNING: unsafe ownership on homedir '/home/lakshmi/.gnupg'
> > gpg: assuming signed data in 'guix-binary-0.15.0.x86_64-linux.tar.xz'
> > gpg: Signature made Friday 06 July 2018 02:50:33 PM IST
> > gpg:using RSA key 090B11993D9AEBB5
> > gpg: Good signature from "Ludovic Courtès " [unknown]
> > gpg: aka "Ludovic Courtès " [unknown]
> > gpg: aka "Ludovic Courtès (Inria) <
> ludovic.cour...@inria.fr>" [unknown]
> > gpg: WARNING: This key is not certified with a trusted signature!
> > gpg:  There is no indication that the signature belongs to the
> owner.
> > Primary key fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A
> EBB5
> >
>
> This is ok, you can see Good signature from...
> This means that the signature is ok, but the key is not trusted on
> your keyring, and there are also unsafe
> permissions on the ~/.gnupg directory. So you can assume this step
> went fine, please go on to the next step.
>
> > Tried downloading the public key, still getting this error. Could you
> please help ?
> > Running the .sh script had crashed my standalone ubuntu system, hence
> I'm trying to do it step by step.
> >
> How did it crash?
>
> > Thanks,
> >
> >
> > Thanks,
> >
> >
> > Lakshmi Prasannakumar
> > Bangalore
> >
> >
> g_bor
>


Re: [outreach] Help trying to create R package

2018-10-18 Thread Gábor Boskovits
Laura Lazzati  ezt írta (időpont: 2018.
okt. 18., Cs, 17:26):
>
> On Thu, Oct 18, 2018 at 12:15 PM Gábor Boskovits  wrote:
> >
> > Hi Laura,
> >
> > Laura Lazzati  ezt írta (időpont: 2018.
> > okt. 18., Cs, 16:49):
> > >
> > > On Thu, Oct 18, 2018 at 4:50 AM Gábor Boskovits  
> > > wrote:
> > > >
> > > > Wow, Björn, you were so fast again :)
> > > >
> > > > I just got around this right now.
> > > Again, thank both for being so kind :)
> > > >
> > > > Björn Höfling  ezt írta (időpont:
> > > > 2018. okt. 18., Cs, 8:54):
> > > > >
> > > > > Hi Laura,
> > > > >
> > > > > On Wed, 17 Oct 2018 22:36:02 -0300
> > > > > Laura Lazzati  wrote:
> > > > >
> > > > >
> > > > > > > https://www.gnu.org/software/guix/manual/en/html_node/Contributing.html#Contributing
> > > > > > I have already read this chapter, but I am messed up. I have already
> > > > > > cloned from git, but I have some questions:
> > > > > > 1) Do I need to install everything from the git repo in my distro?
> > > > >
> > > > > I'm not sure if I understand you right. You ask if you "need to 
> > > > > install
> > > > > everything from the git in my distro?". I don't get that. Let me tell
> > > > > what I mean:
> > > > >
> > > > > You cloned that one, right?
> > > > >
> > > > > git clone https://git.savannah.gnu.org/git/guix.git
> > > > >
> > > > > That is the source code of Guix. I.e. when you do a
> > > > >
> > > > > guix package -i hello
> > > > >
> > > > > then you use the binary "guix" command that you installed in the
> > > > > beginning. And the repository you cloned is just the source code, 
> > > > > there
> > > > > is nothing in there that you need to install.
> > > > >
> > > > >
> > > > > Maybe you ment the list of software that is written here:
> > > > >
> > > > > https://www.gnu.org/software/guix/manual/en/guix.html#Building-from-Git
> > > > >
> > > > > When building Guix from a checkout, the following packages are 
> > > > > required in addition to those mentioned in the installation 
> > > > > instructions (see Requirements).
> > > > >
> > > > > GNU Autoconf;
> > > > > GNU Automake;
> > > > > GNU Gettext;
> > > > > GNU Texinfo;
> > > > > Graphviz;
> > > > > GNU Help2man (optional).
> > > > >
> > > > > So, yeah. In order to compile Guix from source, you need all these.
> > > I was indeed trying to do this.
> > >
> > > > >
> > > > > But wait, read the next sentence. You have guix already installed. 
> > > > > Guix
> > > > > provides a VERY nice command, `guix envirionment `. With 
> > > > > that,
> > > > > Guix prepares an "environment" that can be directly used to build
> > > > > .
> > > > >
> > > > > So, if you enter:
> > > > >
> > > > > guix environment guix
> > > I have just did this :)
> > Great.
> > > > >
> > > > > then Guix will know best what software in which version it needs in
> > > > > order to build guix (in this case, itself, don't get trapped by that
> > > > > self-circularity :-))
> > > > >
> > > > > When you are in, you can just follow the next steps described:
> > > > >
> > > > > ./bootstrap
> > > This worked fine.
> > > > > ./configure --localstatedir=/var
> > >
> > > This did not, I am getting this error:
> > >
> > > configure: checking for guile 2.2
> > > configure: found guile 2.2
> > > checking for guile-2.2... /usr/bin/guile-2.2
> > > checking for Guile version >= 2.2... 2.2.3
> > > checking for guild-2.2... no
> > > checking for guile-config-2.2... no
> > > checking for guile-tools-2.2... no
> > > configure: error: 'guild' binary not found; please check your
> > > guile-2.x installation.
> > >
> >
> > I don't know what to make of this, but you could try guix environment
> > guix --ad-hoc guild.
> > Please see if that helps, if not then I will have a closer look at this.
> I restored everything to the snapshot where I ended cloning guix.
> I get this error when trying to run guix environme guix --ad-hoc guild:
> guix environment: error: guild: unknown package
>

Oops, my bad, yes. I've checked this more thoroughly, on my system
guild is provided by guile, which should be provided by guile. Could you run
a which guild and a which guile inside the guix environment guix?

> >
> > > Then ran
> > > $guix package -i guile
> > > Same error running configure.
> > > $guix package -s guild
> > > $guix package -i guildhall
> > > And my output of guix -I, however, is:
> > > hello2.10out
> > > /gnu/store/bihfrh609gkxb9dp7n96wlpigiv3krfy-hello-2.10
> > > recutils1.7out
> > > /gnu/store/6h02na6yz9smc7c7g62ss03kp4yhqpc1-recutils-1.7
> > > glibc-locales2.27out
> > > /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27
> > > glibc-utf8-locales2.27out
> > > /gnu/store/mbns811n696fl7g060cx6jqjh75mlj8i-glibc-utf8-locales-2.27
> > > nss-certs3.36.1out
> > > /gnu/store/h8qlwgwhg6jr0kp5ihy90cgb6h0q1fj9-nss-certs-3.36.1
> > > r-ade41.7-11out
> > > /gnu/store/980xl9a58nd6f22wzwsmv9mkhv7pq3hh-r-ade4-1.7-11
> > > guile2.2.4out
> > > /gnu/store/p9wm6

Re: [outreach] Help trying to create R package

2018-10-18 Thread Laura Lazzati
On Thu, Oct 18, 2018 at 12:40 PM Gábor Boskovits  wrote:
>
> Laura Lazzati  ezt írta (időpont: 2018.
> okt. 18., Cs, 17:26):
> >
> > On Thu, Oct 18, 2018 at 12:15 PM Gábor Boskovits  
> > wrote:
> > >
> > > Hi Laura,
> > >
> > > Laura Lazzati  ezt írta (időpont: 2018.
> > > okt. 18., Cs, 16:49):
> > > >
> > > > On Thu, Oct 18, 2018 at 4:50 AM Gábor Boskovits  
> > > > wrote:
> > > > >
> > > > > Wow, Björn, you were so fast again :)
> > > > >
> > > > > I just got around this right now.
> > > > Again, thank both for being so kind :)
> > > > >
> > > > > Björn Höfling  ezt írta (időpont:
> > > > > 2018. okt. 18., Cs, 8:54):
> > > > > >
> > > > > > Hi Laura,
> > > > > >
> > > > > > On Wed, 17 Oct 2018 22:36:02 -0300
> > > > > > Laura Lazzati  wrote:
> > > > > >
> > > > > >
> > > > > > > > https://www.gnu.org/software/guix/manual/en/html_node/Contributing.html#Contributing
> > > > > > > I have already read this chapter, but I am messed up. I have 
> > > > > > > already
> > > > > > > cloned from git, but I have some questions:
> > > > > > > 1) Do I need to install everything from the git repo in my distro?
> > > > > >
> > > > > > I'm not sure if I understand you right. You ask if you "need to 
> > > > > > install
> > > > > > everything from the git in my distro?". I don't get that. Let me 
> > > > > > tell
> > > > > > what I mean:
> > > > > >
> > > > > > You cloned that one, right?
> > > > > >
> > > > > > git clone https://git.savannah.gnu.org/git/guix.git
> > > > > >
> > > > > > That is the source code of Guix. I.e. when you do a
> > > > > >
> > > > > > guix package -i hello
> > > > > >
> > > > > > then you use the binary "guix" command that you installed in the
> > > > > > beginning. And the repository you cloned is just the source code, 
> > > > > > there
> > > > > > is nothing in there that you need to install.
> > > > > >
> > > > > >
> > > > > > Maybe you ment the list of software that is written here:
> > > > > >
> > > > > > https://www.gnu.org/software/guix/manual/en/guix.html#Building-from-Git
> > > > > >
> > > > > > When building Guix from a checkout, the following packages are 
> > > > > > required in addition to those mentioned in the installation 
> > > > > > instructions (see Requirements).
> > > > > >
> > > > > > GNU Autoconf;
> > > > > > GNU Automake;
> > > > > > GNU Gettext;
> > > > > > GNU Texinfo;
> > > > > > Graphviz;
> > > > > > GNU Help2man (optional).
> > > > > >
> > > > > > So, yeah. In order to compile Guix from source, you need all these.
> > > > I was indeed trying to do this.
> > > >
> > > > > >
> > > > > > But wait, read the next sentence. You have guix already installed. 
> > > > > > Guix
> > > > > > provides a VERY nice command, `guix envirionment `. With 
> > > > > > that,
> > > > > > Guix prepares an "environment" that can be directly used to build
> > > > > > .
> > > > > >
> > > > > > So, if you enter:
> > > > > >
> > > > > > guix environment guix
> > > > I have just did this :)
> > > Great.
> > > > > >
> > > > > > then Guix will know best what software in which version it needs in
> > > > > > order to build guix (in this case, itself, don't get trapped by that
> > > > > > self-circularity :-))
> > > > > >
> > > > > > When you are in, you can just follow the next steps described:
> > > > > >
> > > > > > ./bootstrap
> > > > This worked fine.
> > > > > > ./configure --localstatedir=/var
> > > >
> > > > This did not, I am getting this error:
> > > >
> > > > configure: checking for guile 2.2
> > > > configure: found guile 2.2
> > > > checking for guile-2.2... /usr/bin/guile-2.2
> > > > checking for Guile version >= 2.2... 2.2.3
> > > > checking for guild-2.2... no
> > > > checking for guile-config-2.2... no
> > > > checking for guile-tools-2.2... no
> > > > configure: error: 'guild' binary not found; please check your
> > > > guile-2.x installation.
> > > >
> > >
> > > I don't know what to make of this, but you could try guix environment
> > > guix --ad-hoc guild.
> > > Please see if that helps, if not then I will have a closer look at this.
> > I restored everything to the snapshot where I ended cloning guix.
> > I get this error when trying to run guix environme guix --ad-hoc guild:
> > guix environment: error: guild: unknown package
> >
>
> Oops, my bad, yes. I've checked this more thoroughly, on my system
> guild is provided by guile, which should be provided by guile. Could you run
> a which guild and a which guile inside the guix environment guix?
I went back to the previous snapshot several times.

I was cloning the  guix and throwing guix environment guix without doing cd guix
After several times, I realized that I had a warning in the output:

building /gnu/store/ilscbls919b78vn9l7b2jb72jmalbxm8-profile.drv...
warning: collision encountered:
 /gnu/store/b5x786d3h552j2zp4ppvlz9dkbiqy2ng-ld-wrapper-0/bin/ld
 /gnu/store/srmqh29dpm50j8kj1pbqg2rgh053wgyp-binutils-2.30/bin/ld
warning: choosing
/gnu/store/b5x786d3h552j2zp4ppvlz9dkbiqy2ng-ld-wrapper-0/bin/ld
s

Re: [outreach] Help trying to create R package

2018-10-18 Thread Laura Lazzati
On Thu, Oct 18, 2018 at 1:18 PM Laura Lazzati
 wrote:
>
> On Thu, Oct 18, 2018 at 12:40 PM Gábor Boskovits  wrote:
> >
> > Laura Lazzati  ezt írta (időpont: 2018.
> > okt. 18., Cs, 17:26):
> > >
> > > On Thu, Oct 18, 2018 at 12:15 PM Gábor Boskovits  
> > > wrote:
> > > >
> > > > Hi Laura,
> > > >
> > > > Laura Lazzati  ezt írta (időpont: 2018.
> > > > okt. 18., Cs, 16:49):
> > > > >
> > > > > On Thu, Oct 18, 2018 at 4:50 AM Gábor Boskovits  
> > > > > wrote:
> > > > > >
> > > > > > Wow, Björn, you were so fast again :)
> > > > > >
> > > > > > I just got around this right now.
> > > > > Again, thank both for being so kind :)
> > > > > >
> > > > > > Björn Höfling  ezt írta (időpont:
> > > > > > 2018. okt. 18., Cs, 8:54):
> > > > > > >
> > > > > > > Hi Laura,
> > > > > > >
> > > > > > > On Wed, 17 Oct 2018 22:36:02 -0300
> > > > > > > Laura Lazzati  wrote:
> > > > > > >
> > > > > > >
> > > > > > > > > https://www.gnu.org/software/guix/manual/en/html_node/Contributing.html#Contributing
> > > > > > > > I have already read this chapter, but I am messed up. I have 
> > > > > > > > already
> > > > > > > > cloned from git, but I have some questions:
> > > > > > > > 1) Do I need to install everything from the git repo in my 
> > > > > > > > distro?
> > > > > > >
> > > > > > > I'm not sure if I understand you right. You ask if you "need to 
> > > > > > > install
> > > > > > > everything from the git in my distro?". I don't get that. Let me 
> > > > > > > tell
> > > > > > > what I mean:
> > > > > > >
> > > > > > > You cloned that one, right?
> > > > > > >
> > > > > > > git clone https://git.savannah.gnu.org/git/guix.git
> > > > > > >
> > > > > > > That is the source code of Guix. I.e. when you do a
> > > > > > >
> > > > > > > guix package -i hello
> > > > > > >
> > > > > > > then you use the binary "guix" command that you installed in the
> > > > > > > beginning. And the repository you cloned is just the source code, 
> > > > > > > there
> > > > > > > is nothing in there that you need to install.
> > > > > > >
> > > > > > >
> > > > > > > Maybe you ment the list of software that is written here:
> > > > > > >
> > > > > > > https://www.gnu.org/software/guix/manual/en/guix.html#Building-from-Git
> > > > > > >
> > > > > > > When building Guix from a checkout, the following packages are 
> > > > > > > required in addition to those mentioned in the installation 
> > > > > > > instructions (see Requirements).
> > > > > > >
> > > > > > > GNU Autoconf;
> > > > > > > GNU Automake;
> > > > > > > GNU Gettext;
> > > > > > > GNU Texinfo;
> > > > > > > Graphviz;
> > > > > > > GNU Help2man (optional).
> > > > > > >
> > > > > > > So, yeah. In order to compile Guix from source, you need all 
> > > > > > > these.
> > > > > I was indeed trying to do this.
> > > > >
> > > > > > >
> > > > > > > But wait, read the next sentence. You have guix already 
> > > > > > > installed. Guix
> > > > > > > provides a VERY nice command, `guix envirionment `. With 
> > > > > > > that,
> > > > > > > Guix prepares an "environment" that can be directly used to build
> > > > > > > .
> > > > > > >
> > > > > > > So, if you enter:
> > > > > > >
> > > > > > > guix environment guix
> > > > > I have just did this :)
> > > > Great.
> > > > > > >
> > > > > > > then Guix will know best what software in which version it needs 
> > > > > > > in
> > > > > > > order to build guix (in this case, itself, don't get trapped by 
> > > > > > > that
> > > > > > > self-circularity :-))
> > > > > > >
> > > > > > > When you are in, you can just follow the next steps described:
> > > > > > >
> > > > > > > ./bootstrap
> > > > > This worked fine.
> > > > > > > ./configure --localstatedir=/var
> > > > >
> > > > > This did not, I am getting this error:
> > > > >
> > > > > configure: checking for guile 2.2
> > > > > configure: found guile 2.2
> > > > > checking for guile-2.2... /usr/bin/guile-2.2
> > > > > checking for Guile version >= 2.2... 2.2.3
> > > > > checking for guild-2.2... no
> > > > > checking for guile-config-2.2... no
> > > > > checking for guile-tools-2.2... no
> > > > > configure: error: 'guild' binary not found; please check your
> > > > > guile-2.x installation.
> > > > >
> > > >
> > > > I don't know what to make of this, but you could try guix environment
> > > > guix --ad-hoc guild.
> > > > Please see if that helps, if not then I will have a closer look at this.
> > > I restored everything to the snapshot where I ended cloning guix.
> > > I get this error when trying to run guix environme guix --ad-hoc guild:
> > > guix environment: error: guild: unknown package
> > >
> >
> > Oops, my bad, yes. I've checked this more thoroughly, on my system
> > guild is provided by guile, which should be provided by guile. Could you run
> > a which guild and a which guile inside the guix environment guix?
> I went back to the previous snapshot several times.
>
> I was cloning the  guix and throwing guix environment guix without doing cd 
> guix
> After sever

Re: [outreach] Help trying to create R package

2018-10-18 Thread Björn Höfling
On Thu, 18 Oct 2018 14:26:50 -0300
Laura Lazzati  wrote:

> On Thu, Oct 18, 2018 at 1:18 PM Laura Lazzati
>  wrote:
> >
> > On Thu, Oct 18, 2018 at 12:40 PM Gábor Boskovits
> >  wrote:  
> > >
> > > Laura Lazzati  ezt írta (időpont:
> > > 2018. okt. 18., Cs, 17:26):  
> > > >
> > > > On Thu, Oct 18, 2018 at 12:15 PM Gábor Boskovits
> > > >  wrote:  
> > > > >
> > > > > Hi Laura,
> > > > >
> > > > > Laura Lazzati  ezt írta (időpont:
> > > > > 2018. okt. 18., Cs, 16:49):  
> > > > > >
> > > > > > On Thu, Oct 18, 2018 at 4:50 AM Gábor Boskovits
> > > > > >  wrote:  
> > > > > > >
> > > > > > > Wow, Björn, you were so fast again :)
> > > > > > >
> > > > > > > I just got around this right now.  
> > > > > > Again, thank both for being so kind :)  
> > > > > > >
> > > > > > > Björn Höfling  ezt
> > > > > > > írta (időpont: 2018. okt. 18., Cs, 8:54):  
> > > > > > > >
> > > > > > > > Hi Laura,
> > > > > > > >
> > > > > > > > On Wed, 17 Oct 2018 22:36:02 -0300
> > > > > > > > Laura Lazzati  wrote:
> > > > > > > >
> > > > > > > >  
> > > > > > > > > > https://www.gnu.org/software/guix/manual/en/html_node/Contributing.html#Contributing
> > > > > > > > > >   
> > > > > > > > > I have already read this chapter, but I am messed up.
> > > > > > > > > I have already cloned from git, but I have some
> > > > > > > > > questions: 1) Do I need to install everything from
> > > > > > > > > the git repo in my distro?  
> > > > > > > >
> > > > > > > > I'm not sure if I understand you right. You ask if you
> > > > > > > > "need to install everything from the git in my
> > > > > > > > distro?". I don't get that. Let me tell what I mean:
> > > > > > > >
> > > > > > > > You cloned that one, right?
> > > > > > > >
> > > > > > > > git clone https://git.savannah.gnu.org/git/guix.git
> > > > > > > >
> > > > > > > > That is the source code of Guix. I.e. when you do a
> > > > > > > >
> > > > > > > > guix package -i hello
> > > > > > > >
> > > > > > > > then you use the binary "guix" command that you
> > > > > > > > installed in the beginning. And the repository you
> > > > > > > > cloned is just the source code, there is nothing in
> > > > > > > > there that you need to install.
> > > > > > > >
> > > > > > > >
> > > > > > > > Maybe you ment the list of software that is written
> > > > > > > > here:
> > > > > > > >
> > > > > > > > https://www.gnu.org/software/guix/manual/en/guix.html#Building-from-Git
> > > > > > > >
> > > > > > > > When building Guix from a checkout, the following
> > > > > > > > packages are required in addition to those mentioned in
> > > > > > > > the installation instructions (see Requirements).
> > > > > > > >
> > > > > > > > GNU Autoconf;
> > > > > > > > GNU Automake;
> > > > > > > > GNU Gettext;
> > > > > > > > GNU Texinfo;
> > > > > > > > Graphviz;
> > > > > > > > GNU Help2man (optional).
> > > > > > > >
> > > > > > > > So, yeah. In order to compile Guix from source, you
> > > > > > > > need all these.  
> > > > > > I was indeed trying to do this.
> > > > > >  
> > > > > > > >
> > > > > > > > But wait, read the next sentence. You have guix already
> > > > > > > > installed. Guix provides a VERY nice command, `guix
> > > > > > > > envirionment `. With that, Guix prepares an
> > > > > > > > "environment" that can be directly used to build
> > > > > > > > .
> > > > > > > >
> > > > > > > > So, if you enter:
> > > > > > > >
> > > > > > > > guix environment guix  
> > > > > > I have just did this :)  
> > > > > Great.  
> > > > > > > >
> > > > > > > > then Guix will know best what software in which version
> > > > > > > > it needs in order to build guix (in this case, itself,
> > > > > > > > don't get trapped by that self-circularity :-))
> > > > > > > >
> > > > > > > > When you are in, you can just follow the next steps
> > > > > > > > described:
> > > > > > > >
> > > > > > > > ./bootstrap  
> > > > > > This worked fine.  
> > > > > > > > ./configure --localstatedir=/var  
> > > > > >
> > > > > > This did not, I am getting this error:
> > > > > >
> > > > > > configure: checking for guile 2.2
> > > > > > configure: found guile 2.2
> > > > > > checking for guile-2.2... /usr/bin/guile-2.2
> > > > > > checking for Guile version >= 2.2... 2.2.3
> > > > > > checking for guild-2.2... no
> > > > > > checking for guile-config-2.2... no
> > > > > > checking for guile-tools-2.2... no
> > > > > > configure: error: 'guild' binary not found; please check
> > > > > > your guile-2.x installation.
> > > > > >  
> > > > >
> > > > > I don't know what to make of this, but you could try guix
> > > > > environment guix --ad-hoc guild.
> > > > > Please see if that helps, if not then I will have a closer
> > > > > look at this.  
> > > > I restored everything to the snapshot where I ended cloning
> > > > guix. I get this error when trying to run guix environme guix
> > > > --ad-hoc guild: guix environment: error: guild: unknown package
> > > >  
> > >
> > > Oops, my bad, yes. I've checked this more thoroughly, on my sy

Re: [outreach] Help trying to create R package

2018-10-18 Thread Ricardo Wurmus


Hi Laura,

> configure: checking for guile 2.2
> configure: found guile 2.2
> checking for guile-2.2... /usr/bin/guile-2.2
> checking for Guile version >= 2.2... 2.2.3
> checking for guild-2.2... no
> checking for guile-config-2.2... no
> checking for guile-tools-2.2... no
> configure: error: 'guild' binary not found; please check your
> guile-2.x installation.

I recommend using “guix environment --pure guix” when on a foreign
distribution.

-- 
Ricardo




Re: [outreach] Help trying to create R package

2018-10-18 Thread Laura Lazzati
On Thu, Oct 18, 2018 at 3:15 PM Ricardo Wurmus  wrote:
>
>
> Hi Laura,
>
> > configure: checking for guile 2.2
> > configure: found guile 2.2
> > checking for guile-2.2... /usr/bin/guile-2.2
> > checking for Guile version >= 2.2... 2.2.3
> > checking for guild-2.2... no
> > checking for guile-config-2.2... no
> > checking for guile-tools-2.2... no
> > configure: error: 'guild' binary not found; please check your
> > guile-2.x installation.
>
> I recommend using “guix environment --pure guix” when on a foreign
> distribution.
Yes, I am trying that right now :) I'll let you know after reading
Invoking guix environment and trying that. Hope this works
>
> --
> Ricardo
>



Should 'build-expression->derivation' be used for new build systems?

2018-10-18 Thread Alex Vong
Hello,

I noticed that in the (guix derivations) module,
'build-expression->derivation' is marked as deprecated. However, I see
that all build systems currently living in the (guix build-system ...)
namespaces are still using it. Is this intended or will this be changed
eventually? If this is going to change, is there an example to follow?

Cheers,
Alex


signature.asc
Description: PGP signature


Re: Channel dependencies

2018-10-18 Thread Ricardo Wurmus

Hi Ludo,

thanks for your helpful comments!

>> +(define (channel-meta instance)
>> +  "Return an S-expression read from the channel INSTANCE's description file,
>> +or return #F if the channel instance does not include the file."
>> +  (let* ((source (channel-instance-checkout instance))
>> + (meta-file (string-append source "/" %channel-meta-file)))
>> +(and (file-exists? meta-file)
>> + (call-with-input-file meta-file read
>
> As a general pattern, I’d suggest declaring  record
> type along with a ‘read-channel-metadata’ procedure that takes care of
> “parsing” and metadata version handling.  That way parsing code is in
> just one place and the rest of the code can happily deal with
> well-formed records.

Yes, that’s a good idea.  I added a record  and a
procedure “read-channel-metadata” that produces values of this type
given a channel instance (or #F).

>> +(define (channel-instance-dependencies instance)
>> +  "Return the list of channels that are declared as dependencies for the 
>> given
>> +channel INSTANCE."
>> +  (or (and=> (assoc-ref (channel-meta instance) 'dependencies)
>> + (lambda (dependencies)
>> +   (map (lambda (item)
>> +  (let ((get (lambda* (key #:optional default)
>> +   (or (and=> (assoc-ref item key) car) 
>> default
>> +(let ((name (get 'name))
>> +  (url (get 'url))
>> +  (branch (get 'branch "master"))
>> +  (commit (get 'commit)))
>> +  (and name url branch
>> +   (channel
>> +(name name)
>> +(branch branch)
>> +(url url)
>> +(commit commit))
>> +dependencies)))
>> +  '()))
>
> I’d recommend ‘match’ for the outer sexp, and then something like the
> ‘alist-let*’ macro from (gnu services herd) in places where you’d like
> to leave field ordering unspecified.

I keep forgetting about alist-let* (from srfi-2, not herd), even though
it’s so useful!  “channel-instance-dependencies” now uses the
 record via “read-channel-metadata” and uses match.

> Then I think it would make sense to add the ‘dependencies’ field to
>  directly (and keep  internal.)
> Each element of the ‘dependencies’ field would be another
> .
>
> Actually ‘dependencies’ could be a promise that reads channel meta-data
> and looks up the channel instances for the given dependencies.
> Something like that.

This sounds good, but I don’t know how to make it work well, because
there’s a circular relationship here if we want to keep the abstractions
pretty.  I can’t simply define the “dependencies” field of
 to have a default thunked procedure like this:

   (match (read-channel-metadata checkout)
 (#f '())
 (($  _ dependencies)
  dependencies))

Because record fields cannot access other record fields such as
“checkout”.  This makes the code look rather silly as we’re creating an
instance with an explicit dependencies value only to read it from that
same record in the next expression.

In light of these complications I’d prefer to have a procedure
“channel-instance-dependencies” that handles this for us, and do without
a “dependencies” field on the  record.

What do you think?

> Chris raises interesting issues.  I think it’s OK to first come up with
> an implementation that has some limitations but works with the simple
> use cases we have in mind.

I’ve fixed this according to what we’ve discussed: when more than one of
the user-provided or channel-required channels have the same name we
ignore the more recent specification unless it is more specific
(i.e. the new channel specification mentions a commit while the former
did not).

This is a little verbose because I replaced the simple “append-map” with
a more complex “fold” with a composite accumulator to avoid mutation.

Suggestions on how to simplify this are welcome!

--
Ricardo

>From e23225640e723988de215d110e377c93c8108245 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus 
Date: Sat, 13 Oct 2018 08:39:23 +0200
Subject: [PATCH] guix: Add support for channel dependencies.

* guix/channels.scm (): New record.
(read-channel-metadata, channel-instance-dependencies): New procedures.
(latest-channel-instances): Include channel dependencies; add optional
argument PREVIOUS-CHANNELS.
(channel-instance-derivations): Build derivation for additional channels and
add it as dependency to the channel instance derivation.
* doc/guix.texi (Channels): Add subsection "Declaring Channel Dependencies".
---
 doc/guix.texi |  33 +
 guix/channels.scm | 122 --
 2 files changed, 139 insertions(+), 16 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index f4f19949f..7291a88ba 100644
--- a/doc/guix.tex

Re: [outreach] Help trying to create R package

2018-10-18 Thread Laura Lazzati
On Thu, Oct 18, 2018 at 3:17 PM Laura Lazzati
 wrote:
>
> On Thu, Oct 18, 2018 at 3:15 PM Ricardo Wurmus  wrote:
> >
> >
> > Hi Laura,
> >
> > > configure: checking for guile 2.2
> > > configure: found guile 2.2
> > > checking for guile-2.2... /usr/bin/guile-2.2
> > > checking for Guile version >= 2.2... 2.2.3
> > > checking for guild-2.2... no
> > > checking for guile-config-2.2... no
> > > checking for guile-tools-2.2... no
> > > configure: error: 'guild' binary not found; please check your
> > > guile-2.x installation.
> >
> > I recommend using “guix environment --pure guix” when on a foreign
> > distribution.
> Yes, I am trying that right now :) I'll let you know after reading
> Invoking guix environment and trying that. Hope this works
> >
I have tried lots of things today, not successfully.

with guix environment guix, I get the same output that I get without
using guix environment (I mean, it uses the installed guix that I tend
to use generally)
the output of which guix in both cases is:
/home/laura/.config/guix/current/bin/guix

with guix environment --pure guix --ad-hoc coreutils findutils which (or -C)
I get, the output:
Command 'lesspipe' is available in the following places
 * /bin/lesspipe
 * /usr/bin/lesspipe
The command could not be located because '/bin:/usr/bin' is not
included in the PATH environment variable.
lesspipe: command not found
There, I run which guix and get:
which: no guix in
(/gnu/store/khk3lpx1li9y5zxzdppn9wi4n5g1qsgs-profile/bin:/gnu/store/khk3lpx1li9y5zxzdppn9wi4n5g1qsgs-profile/sbin)

The closest I got was by setting:
PATH=$PATH:/usr/bin/:/bin
PATH=$PATH:/usr/local/bin
And since I still got the issue with guile, I went to
/usr/bin/
and created a symlink
sudo ln -s /gnu/store/p9wm67w3rfw3hlb9iljgvsfn84mz4w9d-guile-2.2.4 guile-2.2.4
(setting guile-2.2 that whas already there to a hidden file)
 Then the ./configure --localstatedir=/var
Worked fine, as well as the make (echo $? of both 0)
There, the result of which guix is:
/usr/local/bin/guix
( a symlink to -> /var/guix/profiles/per-user/root/guix-profile/bin/guix)
I could run the ./pre-inst-env guix package -i hello, took a while but worked.
Complained about having to do:
export PATH="/home/laura/.guix-profile/bin${PATH:+:}$PATH"
Did so.
And finally I appended my r-aspi definition to cran.scm
However, everything went wrong when trying to run: (sorry, the output
is long and I also get the same output with ./pre-inst-env lint
r-aspi)
./pre-inst-env guix build r-aspi
;;; note: source file /home/laura/guix/gnu/packages/cran.scm
;;;   newer than compiled /home/laura/guix/gnu/packages/cran.go
guix build: warning: failed to load '(gnu packages abiword)':
exception thrown: #
guix build: warning: failed to load '(gnu packages android)':
In procedure module-lookup: Unbound variable: googletest
guix build: warning: failed to load '(gnu packages avr)':
In procedure module-lookup: Unbound variable: binutils
guix build: warning: failed to load '(gnu packages axoloti)':
In procedure module-lookup: Unbound variable: gcc-4.9
guix build: warning: failed to load '(gnu packages bioconductor)':
In procedure module-lookup: Unbound variable: perl-module-build
guix build: warning: failed to load '(gnu packages bootloaders)':
no binding `bc' in module (gnu packages algebra)
guix build: warning: failed to load '(gnu packages chemistry)':
In procedure module-lookup: Unbound variable: python2-numpy
guix build: warning: failed to load '(gnu packages commencement)':
In procedure module-lookup: Unbound variable: gnu-make
guix build: warning: failed to load '(gnu packages debug)':
In procedure module-lookup: Unbound variable: gnu-make
guix build: warning: failed to load '(gnu packages display-managers)':
In procedure module-lookup: Unbound variable: gpgme
guix build: warning: failed to load '(gnu packages games)':
In procedure module-lookup: Unbound variable: unzip
guix build: warning: failed to load '(gnu packages image-viewers)':
In procedure module-lookup: Unbound variable: curl
guix build: warning: failed to load '(gnu packages license)':
In procedure module-lookup: Unbound variable: perl
guix build: warning: failed to load '(gnu packages make-bootstrap)':
In procedure module-lookup: Unbound variable: coreutils
guix build: warning: failed to load '(gnu packages maven)':
In procedure module-lookup: Unbound variable: java-plexus-container-default
guix build: warning: failed to load '(gnu packages syndication)':
In procedure module-lookup: Unbound variable: curl
guix build: warning: failed to load '(gnu packages unrtf)':
In procedure module-lookup: Unbound variable: coreutils
guix build: error: r-aspi: unknown package




> >
> > Ricardo
> >
Regards,
Laura



Re: [outreach] Help trying to create R package

2018-10-18 Thread Laura Lazzati
On Thu, Oct 18, 2018 at 10:05 PM Laura Lazzati
 wrote:
>
> On Thu, Oct 18, 2018 at 3:17 PM Laura Lazzati
>  wrote:
> >
> > On Thu, Oct 18, 2018 at 3:15 PM Ricardo Wurmus  wrote:
> > >
> > >
> > > Hi Laura,
> > >
> > > > configure: checking for guile 2.2
> > > > configure: found guile 2.2
> > > > checking for guile-2.2... /usr/bin/guile-2.2
> > > > checking for Guile version >= 2.2... 2.2.3
> > > > checking for guild-2.2... no
> > > > checking for guile-config-2.2... no
> > > > checking for guile-tools-2.2... no
> > > > configure: error: 'guild' binary not found; please check your
> > > > guile-2.x installation.
> > >
> > > I recommend using “guix environment --pure guix” when on a foreign
> > > distribution.
> > Yes, I am trying that right now :) I'll let you know after reading
> > Invoking guix environment and trying that. Hope this works
> > >
> I have tried lots of things today, not successfully.
>
> with guix environment guix, I get the same output that I get without
> using guix environment (I mean, it uses the installed guix that I tend
> to use generally)
> the output of which guix in both cases is:
> /home/laura/.config/guix/current/bin/guix
>
> with guix environment --pure guix --ad-hoc coreutils findutils which (or -C)
> I get, the output:
> Command 'lesspipe' is available in the following places
>  * /bin/lesspipe
>  * /usr/bin/lesspipe
> The command could not be located because '/bin:/usr/bin' is not
> included in the PATH environment variable.
> lesspipe: command not found
> There, I run which guix and get:
> which: no guix in
> (/gnu/store/khk3lpx1li9y5zxzdppn9wi4n5g1qsgs-profile/bin:/gnu/store/khk3lpx1li9y5zxzdppn9wi4n5g1qsgs-profile/sbin)
>
> The closest I got was by setting:
> PATH=$PATH:/usr/bin/:/bin
> PATH=$PATH:/usr/local/bin
> And since I still got the issue with guile, I went to
> /usr/bin/
> and created a symlink
> sudo ln -s /gnu/store/p9wm67w3rfw3hlb9iljgvsfn84mz4w9d-guile-2.2.4 guile-2.2.4
> (setting guile-2.2 that whas already there to a hidden file)
>  Then the ./configure --localstatedir=/var
> Worked fine, as well as the make (echo $? of both 0)
> There, the result of which guix is:
> /usr/local/bin/guix
> ( a symlink to -> /var/guix/profiles/per-user/root/guix-profile/bin/guix)
> I could run the ./pre-inst-env guix package -i hello, took a while but worked.
> Complained about having to do:
> export PATH="/home/laura/.guix-profile/bin${PATH:+:}$PATH"
> Did so.
> And finally I appended my r-aspi definition to cran.scm
> However, everything went wrong when trying to run: (sorry, the output
> is long and I also get the same output with ./pre-inst-env lint
> r-aspi)
> ./pre-inst-env guix build r-aspi
> ;;; note: source file /home/laura/guix/gnu/packages/cran.scm
> ;;;   newer than compiled /home/laura/guix/gnu/packages/cran.go
> guix build: warning: failed to load '(gnu packages abiword)':
> exception thrown: # #\t string: "a7izhueiqsdjs2eo7dfyb63cqje7mbqz6ennlyoynxxucbhpdnta"]
I have an update here, sorry, I can't help trying to figure out what's
wrong. In the definition of my r-aspi, I found that the base32 was not
well calculated, and I have already corrected that. Now this line does
not appear anymore when throwing the same commands. the other warnings
do. and the In procedure module-lookup: Unbound variable: continue
too.  I also tried generating the new cran.go with guild compile
cran.scm but the output was really awful. If you need it, when you
answer back I paste it.
> 262f6c0>
> guix build: warning: failed to load '(gnu packages android)':
> In procedure module-lookup: Unbound variable: googletest
> guix build: warning: failed to load '(gnu packages avr)':
> In procedure module-lookup: Unbound variable: binutils
> guix build: warning: failed to load '(gnu packages axoloti)':
> In procedure module-lookup: Unbound variable: gcc-4.9
> guix build: warning: failed to load '(gnu packages bioconductor)':
> In procedure module-lookup: Unbound variable: perl-module-build
> guix build: warning: failed to load '(gnu packages bootloaders)':
> no binding `bc' in module (gnu packages algebra)
> guix build: warning: failed to load '(gnu packages chemistry)':
> In procedure module-lookup: Unbound variable: python2-numpy
> guix build: warning: failed to load '(gnu packages commencement)':
> In procedure module-lookup: Unbound variable: gnu-make
> guix build: warning: failed to load '(gnu packages debug)':
> In procedure module-lookup: Unbound variable: gnu-make
> guix build: warning: failed to load '(gnu packages display-managers)':
> In procedure module-lookup: Unbound variable: gpgme
> guix build: warning: failed to load '(gnu packages games)':
> In procedure module-lookup: Unbound variable: unzip
> guix build: warning: failed to load '(gnu packages image-viewers)':
> In procedure module-lookup: Unbound variable: curl
> guix build: warning: failed to load '(gnu packages license)':
> In procedure module-lookup: Unbound variable: perl
> guix build: warning: failed to load '(gnu packa

Re: [outreach] Help trying to create R package

2018-10-18 Thread Gábor Boskovits
Helllo Laura,

Laura Lazzati  ezt írta (időpont: 2018.
okt. 19., P, 5:48):
>
> On Thu, Oct 18, 2018 at 10:05 PM Laura Lazzati
>  wrote:
> >
> > On Thu, Oct 18, 2018 at 3:17 PM Laura Lazzati
> >  wrote:
> > >
> > > On Thu, Oct 18, 2018 at 3:15 PM Ricardo Wurmus  wrote:
> > > >
> > > >
> > > > Hi Laura,
> > > >
> > > > > configure: checking for guile 2.2
> > > > > configure: found guile 2.2
> > > > > checking for guile-2.2... /usr/bin/guile-2.2
> > > > > checking for Guile version >= 2.2... 2.2.3
> > > > > checking for guild-2.2... no
> > > > > checking for guile-config-2.2... no
> > > > > checking for guile-tools-2.2... no
> > > > > configure: error: 'guild' binary not found; please check your
> > > > > guile-2.x installation.
> > > >
> > > > I recommend using “guix environment --pure guix” when on a foreign
> > > > distribution.
> > > Yes, I am trying that right now :) I'll let you know after reading
> > > Invoking guix environment and trying that. Hope this works
> > > >
> > I have tried lots of things today, not successfully.
> >
> > with guix environment guix, I get the same output that I get without
> > using guix environment (I mean, it uses the installed guix that I tend
> > to use generally)
> > the output of which guix in both cases is:
> > /home/laura/.config/guix/current/bin/guix
> >
> > with guix environment --pure guix --ad-hoc coreutils findutils which (or -C)
> > I get, the output:
> > Command 'lesspipe' is available in the following places
> >  * /bin/lesspipe
> >  * /usr/bin/lesspipe
> > The command could not be located because '/bin:/usr/bin' is not
> > included in the PATH environment variable.
> > lesspipe: command not found
> > There, I run which guix and get:
> > which: no guix in
> > (/gnu/store/khk3lpx1li9y5zxzdppn9wi4n5g1qsgs-profile/bin:/gnu/store/khk3lpx1li9y5zxzdppn9wi4n5g1qsgs-profile/sbin)
> >
> > The closest I got was by setting:
> > PATH=$PATH:/usr/bin/:/bin
> > PATH=$PATH:/usr/local/bin
> > And since I still got the issue with guile, I went to
> > /usr/bin/
> > and created a symlink
> > sudo ln -s /gnu/store/p9wm67w3rfw3hlb9iljgvsfn84mz4w9d-guile-2.2.4 
> > guile-2.2.4
> > (setting guile-2.2 that whas already there to a hidden file)
> >  Then the ./configure --localstatedir=/var
> > Worked fine, as well as the make (echo $? of both 0)
> > There, the result of which guix is:
> > /usr/local/bin/guix
> > ( a symlink to -> /var/guix/profiles/per-user/root/guix-profile/bin/guix)
> > I could run the ./pre-inst-env guix package -i hello, took a while but 
> > worked.
> > Complained about having to do:
> > export PATH="/home/laura/.guix-profile/bin${PATH:+:}$PATH"
> > Did so.

This seems to be ok so far.

> > And finally I appended my r-aspi definition to cran.scm
> > However, everything went wrong when trying to run: (sorry, the output
> > is long and I also get the same output with ./pre-inst-env lint
> > r-aspi)
> > ./pre-inst-env guix build r-aspi
> > ;;; note: source file /home/laura/guix/gnu/packages/cran.scm
> > ;;;   newer than compiled /home/laura/guix/gnu/packages/cran.go
> > guix build: warning: failed to load '(gnu packages abiword)':
> > exception thrown: # > #\t string: "a7izhueiqsdjs2eo7dfyb63cqje7mbqz6ennlyoynxxucbhpdnta"]

If I get you right, then the problem is introduced when you add the
package definition to cran.scm, since
./pre-inst-env guix package -i hello worked.

Since essentially everything is broken by the change, it is most
probable that you have some forms that
is not closed properly.
I would at first check for mismatching parenthesis.

If you can see nothing suspicious, then could you send a diff, so that
I can have a look?

> I have an update here, sorry, I can't help trying to figure out what's
> wrong. In the definition of my r-aspi, I found that the base32 was not
> well calculated, and I have already corrected that. Now this line does
> not appear anymore when throwing the same commands. the other warnings
> do. and the In procedure module-lookup: Unbound variable: continue
> too.  I also tried generating the new cran.go with guild compile
> cran.scm but the output was really awful. If you need it, when you
> answer back I paste it.
> > 262f6c0>
> > guix build: warning: failed to load '(gnu packages android)':
> > In procedure module-lookup: Unbound variable: googletest
> > guix build: warning: failed to load '(gnu packages avr)':
> > In procedure module-lookup: Unbound variable: binutils
> > guix build: warning: failed to load '(gnu packages axoloti)':
> > In procedure module-lookup: Unbound variable: gcc-4.9
> > guix build: warning: failed to load '(gnu packages bioconductor)':
> > In procedure module-lookup: Unbound variable: perl-module-build
> > guix build: warning: failed to load '(gnu packages bootloaders)':
> > no binding `bc' in module (gnu packages algebra)
> > guix build: warning: failed to load '(gnu packages chemistry)':
> > In procedure module-lookup: Unbound variable: python2-numpy
> > guix build: warning: failed to load '(gnu p