IRC channel logs
2014-01-17.log
back to list of logs
<sriharsha>jmd, do you know if the guix-daemons are supposed to be run in a chroot? If so, what is that directory by default? <jmd>No the daemons don't run in a chroot. <jmd>They create chroots in which to run the build processes. <sriharsha>jmd, I have the guile package failing to build. So I tried: guix build -e '(@ (gnu packages base) guile-final)' -K <sriharsha>now I have a directory in temp with the failed build. Do you know if I can restore the build time chroot somehow to debug why it fails? <jmd>But what I do in these situations is as follows: <jmd>sudo chown -R john.john /tmp/nix-build-xxxx <jmd>cd /tmp/nix-build-xxxx <jmd>source environment-variables <jmd>from there you have your environment set as it was during the build. <jmd>The existence of the chroot *shouldn't* make any difference. <jmd>But you have to watch out, because some stupid packages explicitly call stuff like /usr/bin/grep *ggrant is actually packaging xterm, finally. Should xinit be it's own module, or is xorg.scm fine? <jmd>I thought xinit was a script to start the x server <ggrant>jmd: It is, I finished packing it (Still need to test and see if I can get my Parabola-hybrid box, to boot guile-wm without there xorg metapackage though. <ggrant>We should probably have some sort of rule-of-thumb established, for some of these packages -- besides "what feels right". But yeah, I suppose xinit works for xorg.scm too. :^P <jmd>ggrant: You are right. I can forsee that sometime in the future, a big re-arrangement of the files will be required. <jmd>Actually, there are some which I am not sure ought to be in gnu/packages at all. *ggrant is trying to think of what landmark packages still needs to be done, before he can seriously use the Upstream distro around 1.0. kbd and wpa_supplicant are the only big system tools he acknowledges thusfar. <ggrant>I have libnl, I just need to bother with wpa_supplicant again one of these days. <ggrant>Kbd still has that odd unicode thing, iirc <jmd>civodul: For example, tor it's neither a gnu package, not part of the gnu system so far as I'm aware. <civodul>by definition, if it's in this repo, then it's part of the GNU sytem :-) <ggrant>civodul: I think some of the concern lays in the aptitude some have to blame GNU as trying to "take credit" for other packages? <jmd>I think that is a strange definition! <jmd>Let me ask this question: Which free software packages are NOT part of the gnu system ? <ggrant>jmd: I think the question is part of the GNU Project, the GNU system is a bit a wide spectrum. <civodul>ggrant: yeah, (gnu packages ...) is meant to read as "packages in GNU", not "GNU packages", but i can understand the problem <civodul>noone would find it surprising if it were (debian packages ...), right? <civodul>jmd: those not yet packaged, and those "uninteresting" or conflicting <civodul>the goal is to make the GNU system a reality <civodul>so we should stop thinking in terms of "what was it supposed to look like in 83?" <ggrant>civodul: I understand, but I'm afraid of critics to spread this attitude as-if it was an intentional claim to ownership. I've already seen this a lot, with a common response to the assertion of the system classification "GNU+Linux" or "GNU/Linux". <jmd>So why do we need the gnu directory at all? We could move everything in it down one level. <civodul>sriharsha: oh good that you could reproduce it <civodul>could you run that process in "strace -f", and send the output? <zacts>civodul: is the plan to package gnu/hurd with guix? <ggrant>civodul: Overall, I get the reasoning of why -- I'm just a bin unnerved by the social aspect/response to it. :^P <ggrant>zacts: I'm sure, but too I'm sure it will not be the recommended distro, for some time... :^U <civodul>ggrant: for the social aspect, i think our attitude matters more than the module naming convention, really <zacts>I want to see a new more modern gnu system become a reality <civodul>jmd: traditionally, Guile packages put their modules in a hierarchy of their own, like (guix ...), (pspp ...), (guile-wm ...), etc. <zacts>is there a web interface to the packages that have been ported to guix? <ggrant>zacts: The Hurd wiki mentions Guix in a few places, fyi :^) <zacts>I wonder what is needed to port gnunet to guix <zacts>what was the inital bootstrap of guix like? was it cool bootstrapping guix? <zacts>and a mini guix would be cool. so I can install packages on ssh/mosh servers that I only have user access to. <civodul>Andreas has tried to package GNUnet, but there were some issues with the test suite, i thihnk <ggrant>zacts: A general/flexible profile generator, via EDSL, I'm really excited for. Right now, you can experiment with the vm generator, for such a build, but it's not the prettiest to play with from what I can tell. I never was able to generate a bigger vm image... :^P <sriharsha>GNUnet test cases require networking over loopback to be enabled, but that seems to be forbidden in guix <jmd>Presumably it needs only to be a very trivial resolv.conf ? <civodul>yes, but it cannot be written to from the builder <sriharsha>civodul, I do not get that test case failure if I build guile-2.0.9 manually on my system. Instead I get this and the test case passes: <sriharsha>nautophone:~/build/guile-2.0.9/test-suite/standalone$ GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 ../../meta/uninstalled-env ./test-command-line-encoding2 <sriharsha>/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US) <sriharsha>civodul, search for '/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-glibc-2.18-locales/share/locale/locale-archive' in the trace file <jmd>Isn't there a way to specify an alternate resolv.conf ? <civodul>sriharsha: that's normal, it's from the bootstrap Guile, not from the one being built <civodul>sriharsha: got it, that's a silly bug in Guile <jmd>Is sed part of coreutils ? <jmd>That's what I thought. So I am surprised that it is coming up in the path of a build when sed is not a dependency <sriharsha>what does "search-path" here do: (patches (list (search-patch "guile-1.8-cpp-4.5.patch"))) <civodul>it returns the absolute file name of the given patch <civodul>which is stored in gnu/packages/patches <civodul>sriharsha: so did you work around that bug? <sriharsha>now building with the patch, will let you know soon <sriharsha>so I modified guile.scm and I get a warning: <sriharsha> source file /home/totakura/repos/guix/gnu/packages/guile.scm <sriharsha>;;; newer than compiled /home/totakura/repos/guix/gnu/packages/guile.go <sriharsha>should I be concerned that my changes are not applied? <zerwas>if you run "make" again you won't get that message <zerwas>(and will be informed if the .scm file you edited has a valid or invalid syntax) <sriharsha>looks like we don't have to worry about that message; my changes were applied :) <sriharsha>compiling is such a drag.. these times I wish I have a supercomputer.. <zerwas>Yeah, compiling Guile took hours on my computer, too. <civodul>sriharsha: Guile is just telling you that there's a stale pre-compiled file, so it's not using it <sriharsha>civodul, the patch seems to have worked - compilation continuing post the tests <civodul>BTW, not that, since you use a different store dir name, you won't be able to use substitutes <civodul>no, because file names are embedded in binaries <civodul>so when you change, you have to rebuild everything <civodul>but note that within a month or so we'll switch from /nix/store to /gnu/store <civodul>so you could just as well wait for that <sriharsha>but /gnu will not adhere to standard file hierarchy. Any reasons for not putting it into /usr/gnu? <viric>usr uses not to be in a different device, to be it a mount point different than / <civodul>sriharsha: we do not adhere to the FHS <civodul>rather we adhere to it locally, within each /nix/store subdir <sriharsha>the problem is many users, including myself, partitioned system according to FHS and may be left with few space on / <sriharsha>if there was lvm, the situation can be salvaged, if not, then they have to use a custom store path. <sriharsha>is it common for guile to be built several times? I think i saw it building twice already. <civodul>i think it's built exactly twice during bootstrap <civodul>we're in the deterministic build business, aren't we? ;-) <sriharsha>Yes. I have a question now, i fixed the guile package recipe in the guix git sources and used guix build <sriharsha>Now, should I install this changed one with make install OR since guile is already in the store now, will it be used next time if any package requires it? <civodul>you must keep the changes in your tree <civodul>every time you run "guix build", Guix traverses the whole dependency tree to compute the store file name <civodul>so if you remove the changes, it will want to build the broken Guile <civodul>you can think of "guix build" as a pure function <sriharsha>I mean, I have 2 trees now: the one is guix source dir and the other in /usr/local/share/guile... <sriharsha>I believe if I use "guix package --install=hello" the tree from /usr/local/share/guile.. is used <sriharsha>figured out, have to add the patch to gnu-system.am <sriharsha>for it to get installed at the correct place <civodul>sriharsha: yes, the "guix" command uses the installed tree <civodul>if you want to use the uninstalled tree, use "./pre-inst-env guix ..." <civodul>and yes, the patch has to be installed as well <sriharsha>Which module should I have to include to address this error: failed to evaluate expression `(@ (gnu packages gnunet) libgnurl)': (unbound-variable #f "Unbound variable: ~S" (search-patch) #f) <sriharsha>zerwas, give me your email. I will update you with the libgnurl patch <sriharsha>the tests still fail though, I am running a build again but won't be able to be online until late tomorrow. <zerwas>sriharsha: hm, shouldn't libgnurl itself be patched instead of providing a patch for Guix? <sriharsha>yes indeed, i wrote an email to grothoff asking him to update libgnurl <sriharsha>but for the time being, this should give us some progress <sriharsha>I also noticed that some test cases try to access /etc/hostname file and they fail as there is no such fail in the chroot <zerwas>Ah, I see. civodul already mentioned this issue <sriharsha>i wonder how libcurl tests pass, the recipe doesn't seem to do anything unusual there..