unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: rohit yadav <rohityadav@utexas.edu>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: [Non-root Guix]: Unable to build guix
Date: Thu, 2 May 2019 17:17:56 -0500	[thread overview]
Message-ID: <CAGKZdmZjdQ1Nt2aq1Xh3Cb7Z7==qFFxdfRF2y+hnz_+95AKL3g@mail.gmail.com> (raw)
In-Reply-To: <87a7g4wmvf.fsf@elephly.net>

[-- Attachment #1: Type: text/plain, Size: 3463 bytes --]

On Thu, May 2, 2019 at 4:50 PM Ricardo Wurmus <rekado@elephly.net> wrote:

>
> rohit yadav <rohityadav@utexas.edu> writes:
>
> >> Do you want to build everything from source on your system or do you
> >> prefer to use binaries from the Guix project’s build farms?  Do you have
> >> access to user namespaces / can you use “unshare” for file system
> >> shenanigans?
> >>
> > I need to build guix for non-root location because at several places its
> > hard to convince to use such system. However, I need several packages
> which
> > are not usually available or outdated. The guix projects allows me to do
> > so. To accomplish that I need truly non-root permission oriented method
> to
> > bootstrap and install whatever I deem necessary for my use case.
>
> I see.  Unfortunately you will end up having to compile everything from
> source, C library, GCC,… — all of it.  When using a different store
> location it is impossible to use pre-built binaries, unfortunately.
>
Yes, I am fine with this. Its actually not so bad. Most of the time its
only the beginning that little time (few days) needs to be invested but
returns are totally worth it. Also, this way I am able to find out the
broken packages as well which usually do not get reflected till a binary
exists in the store.

>
> >> …you would need to take care of providing the appropriate Guile
> >> environment all by yourself whereas “guix pull” does all of this for
> >> you.  This error tells you that guile-gcrypt is not available in the
> >> environment in which the daemon runs.
> >>
> >
> > This is the place where I am struggling. I am not sure what more do I
> need
> > to do then described in pjotrp notes. I could not find anything specific
> in
> > the guix documentation as well to accomplish this.
>
> There are two ways I can think of: the first is to use the slow
> proot-style Guix to run “guix environment guix”; from within that
> environment you will have all you need to build Guix.  You can use that
> to compile Guix with a different store prefix and later use *that* Guix
> to run “guix environment guix”.  Eventually, you could drop the
> proot-style Guix.
>
> I’m not sure it’s worth doing.  It seems like a lot of work and you will
> never be able to benefit from pre-built binaries :-/
>
> The other way is to manually build “guile-gcrypt”, using your system
> compiler toolchain.  The sources are available here:
> https://notabug.org/cwebber/guile-gcrypt
>
> …
>
> I just thought of another way: how about running the Guix daemon in a
> virtual machine (you can download a ready-made VM image from the project
> website) and telling Guix to talk to the VM over the network?  Running
> the installed software unfortunately would have to go through the VM,
> but this might be another option depending on your circumstances.
>
> I am not sure about this option. At the end of the day I need packages
compiled for a specific kernel version to a non-root location. So having a
VM with guix installed would not be so useful. I am just stuck at the older
glibc. I will manage with whatever I have using Nix 17.03 release which
seems to still work but for my home machine I will continue to explore
guix.

Thanks again for quick response. I now understand where I stand what are
the actual problems. We can close this thread now.

> --
> Ricardo
>

--Rohit
--Rohit

[-- Attachment #2: Type: text/html, Size: 5112 bytes --]

  reply	other threads:[~2019-05-02 22:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-02 20:15 [Non-root Guix]: Unable to build guix rohit yadav
2019-05-02 20:33 ` Ricardo Wurmus
2019-05-02 21:14   ` rohit yadav
2019-05-02 21:37     ` Ricardo Wurmus
2019-05-02 22:13       ` rohit yadav
2019-05-02 21:46     ` Ricardo Wurmus
2019-05-02 22:17       ` rohit yadav [this message]
2019-05-04  6:14       ` Chris Marusich
2019-05-05  0:39       ` Mark H Weaver
2019-05-05  8:03         ` Ricardo Wurmus
2019-05-02 20:34 ` Ricardo Wurmus
2019-05-02 21:17   ` rohit yadav

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGKZdmZjdQ1Nt2aq1Xh3Cb7Z7==qFFxdfRF2y+hnz_+95AKL3g@mail.gmail.com' \
    --to=rohityadav@utexas.edu \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).