IRC channel logs

2019-04-04.log

back to list of logs

<vagrantc>so, i run guix challenge on something i've built locally, it differs ... how can i download the substitute's version to compare against my local version (e.g. with diffoscope) ?
<vagrantc>oh, i forgot that u-boot-tools fails to build on armhf (and aarch64)
***j-r is now known as jmr
***jmr is now known as j-r
<rekado_>I finally found the reason for my failing NFS system tests
<rekado_>the VM uses overlayfs and you can’t NFS-export an overlayfs.
<atw`>as mysteriously as it began, my similar-to-https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34454 issue has vanished following a package update
<vagrantc>are there available tools other than guix/nix to generate the hash used for a source tarball?
<tune>can anyone tell me what package to installed to fulfill the need for "pdflatex" when exporting an org file to latex and telling it to make a pdf?
<tune>/bin/sh: pdflatex: command not found [3 times]
<Blackbeard[m]>tune: what have you installed so far?
<Blackbeard[m]>you need texlive
<tune>I don't think I have that! I'll start there
<Blackbeard[m]>tune: texlive is huge
<tune>I was maybe overthinking it, searching 'pdflatex' directly
<tune>oh my goodness... 2.42GiB
<Blackbeard[m]>it weights several GB
<Blackbeard[m]>but that's ok
<Blackbeard[m]>it is awesowe
<Blackbeard[m]>and the more you learn you will see why you needed so much
<tune>alright
<Blackbeard[m]>tune: is English your first language
<tune>yeah, I made a typo (installed) in my message a bit ago that may have suggested otherwise
<Blackbeard[m]>tune: oh no I didn't notice any typo
<Blackbeard[m]>I ask because sometimes latex can give me trouble with Spanish
<Blackbeard[m]>that's all
<tune>oh okay haha
<Blackbeard[m]>:)
<rekado_>tune: you may also consider the modular texlive packages.
<rekado_>pdflatex is provided by texlive-bin.
<tune>ah good to know
<tune>I'm 80% done getting the full texlive so I'll probably just let it finish at this point
<tune>oh.... that wasn't the only file
<Blackbeard[m]>tune: it will take a while
<roptat>hi guix!
<Blackbeard[m]>roptat: hello ٩(◕‿◕。)۶
<roptat>I'm trying to unbundle dependencies from opam
<roptat>I've packaged all of them, but the last one did not install correctly
<roptat>so it's not found and opam's build process tries to download it
<civodul>Hello Guix!
<roptat>this feels wrong: "LIBDIR = @prefix@@libdir@/ocaml/$(shell ocamlc -version)"
<roptat>that's not the location where I expect it to install
<civodul>normally libdir = $(prefix)/lib
<civodul>so that'd be redundant
<roptat>yes, but it looks like libdir is somehow stripped because I don't get redundant paths
<jonsger>is it intended that "guix system search" needs (gnu installer)?
<roptat>but I already set libdir in the ocaml-build-system to point to the right directory, so the redundant part is the one at the right with "ocamlc -version"
<civodul>jonsger: no; what are the symptoms?
<jonsger> http://issues.guix.info/issue/35138
<jonsger>civodul: guix system search doesn't work then
<civodul>oh, i see
***jamesrichardson is now known as Guest79622
<civodul>another quote for next time i give a talk about EDSLs: "SASS is a tool that empowers frontend engineers and provides a higher level abstraction for writing CSS files through capabilities such as mixins, variables, conditional statements, and so on."
<civodul>variables and conditional statements FTW! :-)
<civodul> https://snyk.io/blog/malicious-remote-code-execution-backdoor-discovered-in-the-popular-bootstrap-sass-ruby-gem/
<civodul>that backdoor is terrible
*rekado_ works on tensorflow again…
<rekado_>yay for variables!
<civodul>rekado_: re tensorflow, you have all my support!
<rekado_>the build system is so terrible
<rekado_>and cmake is so inflexible :-/
<rekado_>awful.
<roptat>I'm thinking about doing some actual OCaml contributions, to change the way modules are found
<rekado_>roptat: more power to you!
<roptat>currently it's only possible through the OCAMLPATH variable, but that's impractical because it means we need to use propagated-inputs
<roptat>I think if the format of the META file was changed to (optionally) include full paths of dependencies, we would not have that issue
<roptat>and it would also improve the way OCaml packages work right now, because you would then be able to install packages that have incompatible dependencies for instance, even you only use opam and not guix
<civodul>one contribution you could make is "alias opam=guix" :-)
<roptat>that would be... surprising :p
<roptat>I think I'd just need to modify the way findlib works, but I need to talk to an actual OCaml programmer to make sure I understand it correctly
<roptat>what I meant is that I think this kind of changes would be accepted because it's not just good for us ;)
<roptat>but yes I think guix makes much more sense for OCaml programming than opam
<civodul>opam is fairly recent
<decent-username>Hi. There doesn't seem to be a guixSD channel on freenode, so I figured this one would be my best option to get GuixSD related help.
<decent-username> https://paste.gnome.org/pb4uya2te
<decent-username>I'm at the step where I need to create a system configuration file, but I'm not sure how to do that with my current file system set up.
<decent-username>I know Scheme.
<kmicu>Hi decent-username, the default config presented in the manual has ‘;; The UUID is that returned by 'cryptsetup luksUUID'’.
<mange>decent-username: How are your file systems set up? Are you using LUKS?
<mange>Oh, wait, sorry, it's in that paste. I can't read, apparently.
<decent-username>;)
<decent-username>I'm not even sure if I used LUKS correctly.
<mange>In that case, I'll point out that you have a typo to prove that I can actually read. "luke-device-mapping" should be "luks-device-mapping".
<decent-username>It would be nice to have a more detailed explaination in the docs on how to set up an encrypted file system.
<decent-username>whoops
<mange>It looks like you could replace the (uuid "...") with "/dev/sda2" (looking at "(guix) Mapped Devices" in the manual). I've never used LUKS with Guix before, so I don't really know anything more than what the manual says.
<decent-username>makes sense
<decent-username>I'll read the manual entry and try it out.
<kmicu>It something is not clear in the manual then report back decent-username. There is a paragraph with ‘If you are instead planning to encrypt the root partition, you can use the Cryptsetup/LUKS utilities to do that (see man cryptsetup for more information.) Assuming you want to store the root partition on /dev/sda2, the command sequence would be along these lines…’
*kmicu has a working LUKS+Guix System setup (with encrypted root and that currently results in entering pass two times).
<decent-username>kmicu: Not an issue
<decent-username>I'm not a perfectionist anymore, it's not healthy. ;)
<decent-username>computers aren't perfect and will never be, because software is written by and hardware designed by flawed humans.
<decent-username>I've wasted a ton of time on making QT play nicely with GTK. xD
<kmicu>I avoided that issue by not using Qt xD
<decent-username>^ very wise
<kmicu>(Though I still have a dormant style=GTK+ somewhere in ~/.config/Trolltech.conf. Fun times.)
<decent-username>kmicu: Would you mind sharing the `mapped-devices' and `file-systems' portion of your config.scm? It could probably help me a lot.
<kmicu>I use btrfs so sharing those snippets could be not helpful but sure, give me a moment. I need to boot into that laptop.
<decent-username>> . < People and their COW file systems.
<decent-username>I've invoked "guix system ..." I hope my laptop doesn't explode.
<rekado_>Once I’m done with Tensorflow I’ll give this a try: https://github.com/plaidml/plaidml
<rekado_>supports OpenCL and can be used with Keras.
<rekado_>Tensorflow (and people’s acceptance of it despite CUDA) is a big disappointment.
<decent-username>rekado_: Is it even feasable to train a model on a laptop without CUDA?
<decent-username>That project looks interesting though.
<decent-username>wait, I think I've misread something.
<jonsger>rekado_: is there already something Vulkan based for ML around the corner?
<rekado_>I don’t know.
<rekado_>decent-username: with Tensorflow? The answer is generally no.
<rekado_>for some models Tensorflow with CPU only works fine.
<rekado_>(that’s why I’m packaging it)
<rekado_>I spoke too soon: plaidml uses bazel as a build system, so building it from source will be tricky.
<civodul>uh
<civodul>"(gnu packages tex)" -> "(gnu packages libreoffice)" ?!
*civodul just spent a couple of hours trying to optimize the module graph
<civodul>and also trying to get something useful out of gvpr
<civodul>all this in vain
<civodul>bah
<pkill9>yay for kdeconnect
<decent-username>civodul: It wasn't everything in vain. There is always something you can get out of it.
<decent-username>:p
<decent-username>you simply need to be more philosphical
<civodul>probably!
<brendyyn>do they need to be optimised? I mean they're all a mess regardless :/
<rekado_>philosophical =/= nihilist!
<roptat>why are propagated-inputs bad again?
<roptat>ah, because it makes it hard to wrap a program that has a library with propagated-inputs, at least...
<roptat>needs a library*
<civodul>propagated-inputs lead to "profile pollution", and pollution is bad
<rekado_>roptat: it also makes “guix package -i” confusing and can lead to conflicts.
<rekado_>(e.g. guix package -i python-pandas; guix pull; guix package -i python-numpy —> conflict)
<rekado_>I feel that something’s not right about the way we build pam entries.
<rekado_>the order of records in PAM files matters
<rekado_>but we leave it up to services to specify how they extend existing PAM files
<rekado_>I think that this should be up to the user.
<rekado_>for example, for authentication you may want to use pam_unix first, then pam_ldap, and then pam_deny as a required final fallback
<Blackbeard[m]>good morning guix ٩(◕‿◕。)۶
<decent-username>morning (´・ω・`)
<Blackbeard[m]>decent-username: :D
<civodul>rekado_: indeed, looks like there's something wrong here
<rekado_>I don’t know what better user interface we could offer, though.
<rekado_>maybe none.
<rekado_>we could let users extend the pam root service the hard way.
<civodul>we want to let services do that
<civodul>but perhaps we could specify how ordering works
<civodul>or provide a PAM configuration knob to force ordering
<rekado_>I guess we could have services provide lines or building blocks
<rekado_>and a user-facing PAM service type would be used to assemble the blocks in the desired order.
<rekado_>PAM files can include other PAM files, so we could have services generate a snippet in /etc/pam.d/snippets/ (or similar).
<rekado_>the record types (auth, password, account, session) are well-known, so the PAM service type could take lists for each of the types.
<civodul>yeah
<civodul>sounds like this could work
<rekado_>on Fedora they generate a single file “system-auth”, which contains the default authentication settings, which are then included in other files.
<civodul>ok
<rekado_>I let this idea grow a little in the back of my head while playing with my nslcd VM.
<civodul>i wonder if more commands should default to -v1 (instead of -v2)
<civodul>for instance 'guix environment', 'guix pack', 'guix system vm'
<civodul>thoughts?
<rekado_>yes, less verbosity would be great.
<civodul>ok, let's do that at least for the 3 commands above
<civodul>rekado_: do you think you can look into the Guile-JSON migration?
<jonsger>I really struggle with the documentation of the Dovecot service. Is there an example config file? Or even better is there an explanation how to translate this "dovecot-configuration paramater bla" stuff to valid scheme code?
<civodul>jonsger: i'd suggest emailing help-guix and then getting people to add an example or two in the manual :-)
<jonsger>so I don't get it how to nest them: e.g. add protocol-configuration (named protocols) for name "imap"
<roptat>jonsger, https://framagit.org/tyreunom/system-configuration/blob/master/modules/config/mail.scm
<roptat>I don't have anything complex, but maybe it can help?
<jonsger>thanks, it doesn't have real nesting in https://framagit.org/tyreunom/system-configuration/blob/master/modules/config/mail.scm#L92 ...
<roptat>jonsger, my guess is : (dovecot-configuration ... (protocols (list (protocol-configuration (name "bla") ...))))
<jonsger>thanks roptat that works. very intuitive :P
***apteryx_ is now known as apteryx
<apteryx>sorry for cross-posting, but this question really belonged here, not in #guile: Has anyone experience using a guix pack in a Dockerfile?
<apteryx>I'm interested in having it use an ENTRYPOINT or otherwise make it useful 'out-of-the-box', so that if a user run 'guix run guix-pack-image python', it just works (without the need to source some /gnu/store/...-profile/etc/profile first).