IRC channel logs

2022-07-21.log

back to list of logs

***the_tubular74 is now known as the_tubular
<GNUtoo>Hi, is bash completion supposed to work in Guix, I run bash and I've bash completion installed in my operating-system declaration and somehow git doesn't autocomplete
<GNUtoo>For instance 'git fetch or[tab]' autocompletes in Parabola but not in Guix (in the same repository)
<taiju[m]>roptat: user profile
<civodul>GNUtoo: i noticed that Bash completion for Git specifically stopped working recently
<civodul>i'm not sure why
<GNUtoo>ok, thanks a lot for the info
<gabber>Can i enforce a complete build from source of some package so i get all the build logs? How do i get the most verbose log from a build process?
<oriansj>gabber: your build log is in: /var/log/guix/drvs/
<oriansj>in case anyone cares to look at a third party guix challenge built from the bootstrap seeds with no substitutes: https://wiki.bootstrapping.world/guix_challenge_2022-07-18
***toluene6 is now known as toluene
<mbakke>sneek: later tell gabber you can get the log file with 'guix build --log-file PACKAGE'
<sneek>Okay.
<gnucode>bummer, I am trying to install guix system, and the installation image doesn't seem to be detecting my HHD....
<sneek>gnucode, you have 1 message!
<sneek>gnucode, nckx says: Hullo :)
<gnucode>df only seems to be reporting my usb stick image.
<gnucode>sneek later tell nckx howdy
<sneek>Okay.
<iyzsong>gnucode: df will only report mounted filesystems, 'fdisk -l' maybe more useful for you
<gnucode>iyzsong I just tried that too. fdisk -l is only showing /dev/sda where the largest partition is 3.8GB.
<gnucode>when I do fdisk /dev/sda it says this device contains an iso signature and it is currently mounted and in use. That's definitely the installation image.... bummer.
<gnucode>I was so excited to install guix on it today...
<iyzsong>um, does other gnu/linux can see the disk?
<gnucode>I just bought this hard drive...., I was trying to install openBSD on it the other day...I think the installation was working, and then it crapped out...I'd really rather not have to buy another HHD, but I may have to to test it
<gnucode>iyzsong I have only tried guix system installation image.
<gnucode>iyzsong I suppose I can download the debian installation image and give that a try.
<iyzsong>yes, i'd say it's rare for linux not detect the disks but openbsd can..
<iyzsong>maybe check your wires
<gnucode>iyzsong it's definitely plugged in...
<shcv[m]>so, I think I broke my guix by canceling a guix pull... now it says "unsupported manifest format" whenever I do a guix command
<gnucode>shcv[m]: I think that's a known upgrade bug.
<gnucode>I think they changed the manifest format. :)
<shcv[m]>ah
<gnucode>perhaps try te regerenerate your manifest file.
<shcv[m]>odd I haven't run into that earlier today then, given how many pulls I've done
<shcv[m]>how?
<gnucode>shcv[m]: do you have a manifest file for your packages?
<shcv[m]>probably not; this is on an installation media
<shcv[m]>(though I think it's editable, so probably would still be messed up if I reboot)
<shcv[m]>I can reflash the USB stick I guess if that's the easiest thing to do though
<gnucode>shcv[m] yeah I would give that a try. :)
<shcv[m]>is there a better way to make writeable install images that don't take so long to copy? e.g., make an image with just enough space for guix in it, copy it to the drive, then extend the partition?
<iyzsong>shcv[m]: is it the image-based installation images (for arm systems, eg. pinebook pro)? maybe we can use it for x86 too, just dd to harkdisk and then boot..
<shcv[m]>iyzsong: no, just the normal "guix system image --image-size=8g install.scm", with a slightly customized install.scm to add zfs support and a few utilities
<shcv[m]>though I should look into the image based install process you're describing
<shcv[m]>sounds like it could be more like what I'm looking for
<shcv[m]>also, I ran into the manifest error again after a normal pull (didn't cancel mid-way this time, so I guess that wasn't the problem)
<apoorv569[m]>Hello!
<apoorv569[m]>I am trying out `guix` for the first time and I was wondering how would you compile a third-party package? for example a package from a `git` repository using `make` or something.
<apteryx>two options: A) package it (the better option) B) setup an environment to build it "by hand", e.g. 'guix shell make gcc-toolchain python-wrapper ...'
<podiki[m]>late night (for me) guix crowd: fhs patch submitted https://issues.guix.gnu.org/56677
<apoorv569[m]>Interesting! How do I package it? Can you point me to some documentation?
<apoorv569[m]>Does setting up a environment creates like some temp directories `/bin` and all?
<apteryx>apoorv569[m]: no, but it sets environment variable that have a similar effect, e.g. PATH
<apteryx>for packaging, there should be lots of resources out there, the biggest and probably best being the Guix source code
<apteryx>it contains 20000+ definitions to inspect and search, you can use 'git grep' to query something
<apoorv569[m]>I see.
<apteryx>or open a basic package such as hello in your editor, 'guix edit hello'
<apteryx>apoorv569[m]: https://guix.gnu.org/blog/2018/a-packaging-tutorial-for-guix/
<apoorv569[m]>So if I am developing software, I have to setup the environment for it, unlike a regular distribution like arch or debian which uses the standard `unix` directory structure.
<apteryx>to get started, a good read would be info '(guix) Contributing'
<apteryx>what do you mean by setup? you'd also need to 'apt install foo' on Debian; here you can either 'guix install foo' or 'guix shell foo' or list all your project dependencies a manifest.scm file and 'guix shell -m manifets.scm'
<apteryx>it's similarly easy, but more flexible/convenient
<apteryx>also, if the package is already in guix (guix search foo), you can more simply 'guix shell -D foo'
<apteryx>to spawn a build environment for foo
<apoorv569[m]>I see. I guess I have try it out so understand better. But thanks for the info.
<apoorv569[m]>* out so I understand better.
<apoorv569[m]>Is `guix shell` a separate package? I am getting error `guix: shell: command not found`
<roptat>guix shell is part of guix
<roptat>are you using a very old guix?
<apteryx>apoorv569[m]: you probably want to update your guix using 'guix pull'
<apteryx>you should then have 'guix shell' available
<apoorv569[m]>No I just installed fresh with `i3` wm.
<apoorv569[m]>Running `guix pull`
<apoorv569[m]> https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-shell.html
<apoorv569[m]>Hmm, looks like it is now called `guix environment`.
<apoorv569[m]> https://0x0.st/ojXH.png
<apoorv569[m]>No my bad it was `guix environment` but now called `guix shell`
<apoorv569[m]> https://0x0.st/ojXX.png
<apoorv569[m]>I do have `guix enviroment` command available.
<RudraveerMandal[>How do I get lightdm getting up and running on guix?
<RudraveerMandal[>Thats the default display manager right?
<roptat>apoorv569[m], no guix shell is the new name for guix environment
<roptat>guix environment has been around for a very long time
<roptat>apoorv569[m], can you check "type guix" says it's ~/.config/guix/current/bin/guix (and not /usr/local/bin/guix or ~/.guix-profile/bin/guix)?
<roptat>RudraveerMandal[, gdm is the default display manager
<apoorv569[m]>Yes it says `~/.config/guix/current/bin/guix`
<roptat>something's broken then, you should have guix shell available
<apoorv569[m]>Ok `guix pull` was saying already updated but I rebooted the machine and now updating some packages
<apoorv569[m]>waiting for it to finish
<apoorv569[m]>Ok I have the `guix shell` now after updating.
<roptat>ah good
<RudraveerMandal[><roptat> "Rudraveer Mandal, gdm is the..." <- But gdm has a dependency on gnome-shell
<apoorv569[m]>Ok so I am trying to compile the `st` terminal I have my own build of it on `gitlab` I downloaded the dependencies from `guix` which include `freetype harfbuzz fontconfig pkg-config make` etc..
<apoorv569[m]>now I run `guix shell freetype harfbuff fontconfig pkg-config make` ?
<apoorv569[m]>for compiling my `st` build?
<roptat>apoorv569[m], yes
<apoorv569[m]>`c99` command not found
<roptat>what even is that?
<apoorv569[m]>I did install `gcc` and `gcc-toolchain`
<apoorv569[m]>`c` version `99`
<roptat>try passing CC=gcc then?
<apoorv569[m]>`guix search c99` does not show anything
<apoorv569[m]>while creating the env or when running make inside `env` ?
<roptat>when running make
<roptat>I didn't know there was a binary called c99
<apoorv569[m]>me neither :D
<apoorv569[m]>ok it worked now I am missing `Xatom.h` probably `x.org` deps..
<roptat>sounds like it
<roptat>it's part of xorgproto
<apoorv569[m]>Hmm, I think I got the idea though how would it work, to manually compile a software.
<apoorv569[m]>BTW, after compile do I just `sudo make install` would it work?
<roptat>it will install, but I doubt you'll be able to run it
<roptat>well, maybe it'll even have trouble finding /usr ^^'
<roptat>oh we have /usr now, so nevermind
<roptat>nckx, the Dutch translation of the website is very close to drop below 60% completion!
<roptat>you don't want that to happen: https://guix.gnu.org/manual/devel/en/html_node/Translating-Guix.html#Conditions-for-Inclusion ;)
<RudraveerMandal[>Can someone give me the default guix config
<roptat>RudraveerMandal[, that would be https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/examples/bare-bones.tmpl for the minimal system
<roptat> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/examples/lightweight-desktop.tmpl for a small graphical system (that uses gdm by default, through %desktop-services)
*roptat needs to go
<PotentialUser-53>hi all :)
<unmatched-paren>hello \o
<dirtcastle>zathura doesn't work for me. when I install zathura. it asks me to export guix profile . I did that multiple times. zathura doesn't open anything. even pdfs don't work
<unmatched-paren>dirtcastle: try installing `zathura-pdf-mupdf`
<dirtcastle>I installed that zathura and zathura-pdf-mupdf
<unmatched-paren>hmm
<unmatched-paren>works for me
<unmatched-paren>try doing it in a login shell
<unmatched-paren>bash -c 'zathura'
<unmatched-paren>sorry
<unmatched-paren>bash -lc 'zathura'
<roptat[m]>or restart your session
<unmatched-paren>yeah
<unmatched-paren>but test with a login shell first so you don't go to that trouble only to find it doesn't help
<roptat[m]>would it make sense to add guix pull's news.scm on weblate for translation? asking before I write some tool to convert between news.scm and po and back
<roptat[m]>news -> po would be easy, the other way might be harder
<roptat[m]>also, it doesn't make too much sense to translate old entries
***dgcampea-2 is now known as dgcampea
<ekaitz>hi issues.guix.gnu.org is giving me a bad gateway 502 error
<unmatched-paren>Oh my, I thought I'd seen bad dependency trees before but tuigreet's just exceeds them all... It depends on rust-i18n-embed, which depends on rust-rust-embed, which then depends on a whole load of web frameworks like rust-actix-web, rust-axum, rust-warp, rust-poem, and rust-salvo, many of which are composed of multiple packages and aren't themselves packaged yet.
<unmatched-paren>Cargo was a good idea.
<unmatched-paren>All this for a little TUI that sends a bunch of JSON messages in the approximate direction of greetd.
<unmatched-paren>Oh yes, most of these web frameworks depend on large, complex packages like hyper and tokio.
<vivien>unmatched-paren, wait until you find out that NPM is involved
<unmatched-paren>And I forgot, there's another web framework, rust-rocket.
<vivien>(I don’t know if it is, but be prepared)
<unmatched-paren>vivien: rust-vue D:
<unmatched-paren>Probably not, rust packages are usually quite well-behaved within the boundaries of cargo.
<vivien>What if they embed precompiled typescript?
<unmatched-paren>terrifying that that's not even implausible
<cnx>how do i open a firewall port? asking to use barrier
<unmatched-paren>Why can't we have sane, well-behaved internationalization frameworks, not hulking behemoths like gettext and fluent?
<cnx>what's wrong with gettext (i've only used it limitedly)
<unmatched-paren>cnx: hard dependency on autotools
<unmatched-paren>there is no way to use it with a makefile
<cnx>isn't there libgettext or sth (only used the wrapped one with python)
<unmatched-paren>cnx: Oh?
<cnx>i suppose an alternative frontend could be written if to be used within make
<unmatched-paren>I suppose. Surely, though, a program that takes a simple spec and produces a source file containing a function that maps strings to correctly localized text wouldn't be too hard to write, though?
<unmatched-paren>s/, though?/?/
<vivien>cnx, does the network thing whose firewall you want to open run guix system?
<unmatched-paren>It all just seems so overengineered, with .mo files etc
<cnx>yes vivien
<unmatched-paren>Anyway, back to this absurd dependency tree.
<cnx>hot take: the only way to avoid absurd dep tree is to make treeing difficult
<mrvdb>https:/issues.guix.gnu.org down?
<cnx>same here
<unmatched-paren>cnx: As in, don't make it possible to add tons of dependencies with a single line of TOML?
<vivien>cnx, I use the nftables-service-type, and have an example here: https://labo.planete-kraus.eu/sensible-defaults.git/tree/guix/vkraus/modules/firewall.scm
<unmatched-paren>Doesn't sound like a particularly hot take to me :)
<cnx>(, as in, make automated transitive dependencies propagation impossible upstream
<cnx>thanks, vivien, i'll take a look
<unmatched-paren>cnx: So all dependencies, even indirect ones, must be specified in the Cargo.toml?
<unmatched-paren>Interesting idea...
<cnx>no, indirect ones should be ambiguously documented
<vivien>What if a direct dependency wants to use a newer version of one of its direct dependencies? Do they have to inform you to update your indirect dependencies?
<unmatched-paren>cnx: I'm not sure what you mean by that :)
<cnx>like with c abi, it's difficult/time consuming to manually install nested dep tree, so people refrain from doing that
<cnx>where does dbus-run-session come from? i have dbus-service enabled but the command doesn't come with it
<cnx>nvm i need dbus package for the command
<unmatched-paren>This is getting depressing. I think I'll take a break from this packaging session :)
<rekado_>nckx: I can’t connect to ci.guix.gnu.org
<rekado_>apteryx: ^^
<ekaitz>am I the only one that can't visit issues.guix.gnu.org or is it a known issue?
<rekado_>not just you
<rekado_>I also can’t SSH into the machine
<unmatched-paren>ekaitz: cnx and mrvdb reported it a few minutes ago
<unmatched-paren>rekado_: oh, that sounds bad :(
<ekaitz>aaah ok ok, I don't have logs and I get lost in this...
<rekado_>no idea if anyone is working on it. I’m baking cup cakes.
<ekaitz>rekado_: good idea, if you don't have access what else you can do?
<RudraveerMandal[>I am doing (flags "size=2G mode=775") in a tmpfs mount but it's not working
<RudraveerMandal[>I also tried (flags '("size=2G" "mode=775"))
<rekado_>odd that the cuirass web interface at ci.guix.gnu.org is still up
<rekado_>I can access it via serial interface
<rekado_>what’s up with all these sshd-* services listed by herd status…?
<nckx>Nope: Connection closed by 141.80.181.40 port 22
<sneek>Welcome back nckx, you have 1 message!
<sneek>nckx, gnucode says: howdy
<rekado_>shepherd says: Maximum number of 0.0.0.0:22 clients reached
<nckx>Yo.
<rekado_>we have 360 sshd processes
<nckx>Heh.
<rekado_>since when do we have sshd-<number> services?
<nckx>A while. They are now transient, created on demand.
<rekado_>I see
<nckx>But 360 is a surprisingly low number to max out on.
<nckx>(Mind goes to some kind of /second limit? Or just coincidence.)
<nckx>rekado_: How are you logged in?
<rekado_>I was connected to the serial interface, but now I can’t connect to that one either.
<PotentialUser-53>hi all, is there anyway to install older packages on guix ? like if I want python 3.5.3 instead of 3.9.9, but only once off, can I get the guix package for the older version?
<unmatched-paren>PotentialUser-53: You could use a time-machine
<nckx>Feck.
<unmatched-paren>*use time-machine
<rekado_>PotentialUser-53: or add the Guix Past channel
<rekado_>nckx: but the server is still up
<rekado_>will try again later
*rekado_ –> lunch
<nckx>OK. Thanks!
<nckx>(Enjoy the cupcakes—er, ‘lunch’.)
<PotentialUser-53>thanks , interesting
<rekado_>cupcakes are for later; just finished them.
<rekado_>finished *baking* them
<muradm>hi guix
<unmatched-paren>hello muradm
<rekado_>nckx: serial console is still blank; I can reboot the server, but I’ll have guests over in a moment. I don’t really want to touch it today.
<nckx>RudraveerMandal[: Neither of those are valid flags. There is an option field for mount options. See <https://guix.gnu.org/en/manual/devel/en/html_node/File-Systems.html#File-Systems>.
<nckx>rekado_: OK, I can deal with this after work, we'll survive without Mumi for a bit.
<nckx>RudraveerMandal[: It takes a single comma-separated string, by the way.
<nckx>rekado_: Is it now actually possible to access the serial console when berlin is down?
<nckx>apteryx: ☝
<nckx><87y1xiydqv.fsf@gmail.com> is the latest I can find and it says ‘no’.
<mrvdb>i'm trying to install ungoogled-chromium on powerpc64le. go-1.16.15, as dependency fails during check phase: https://dpaste.org/ib5CZ (file too large failure). I can't check issues atm, as site is down. Anyone seen this before? Complete log is here: https://dpaste.org/iWfL0 (Large!)
<antipode>There appears to be a transient error at https://ci.guix.gnu.org/build/1129911/details (not a build failure but some kind of substitution failiure according to the logs?), can it be restarted?
<nckx>Yes.
<antipode>Thanks!
<nckx>Success substituted.
<antipode>README.md: Supported Oses: Android, [...], Linux, [...], Raspberry Pi
<antipode>There's non-Linux Raspberry Pi, but otherwise a bit redundant
<nckx>Heh.
<antipode>It also reads /etc/os-release & /etc/lsb-release to look for a 'system name'
<antipode>Could perhaps be patched to 'Guix' (maybe not 'Guix System' because of foreign distros)
<antipode>Will keep the old behaviour but I'll add a TODO-like comment that could be investigated later
<Kurosh>Guys, does anyone know how to use IBus in Guix? IBus works everywhere except applications installed with Guix
<nckx>mrvdb: Could you report this (with the info) to bug-guix@gnu.org? The issues.guix.gnu.org front-end is down but it will still be tracked & forwarded, and there's a second Web UI at debbugs.gnu.org.
<mrvdb>nckx: will do.
<apteryx>nckx: not yet
<nckx>mrvdb: Thanks! apteryx: Pity.
<apteryx>rekado_: cupcakes? miam
<apteryx>In which package are the X11 keyboard layouts stored?
<apteryx>I'm asking, because I think I need to patch qtwebengine@6 with their location; it fails like so: https://paste.debian.net/1247943/
<antipode>Maybe xkeyboard-config
<nckx>apteryx: xkeyboard-config yes.
<nckx>Bad omen that it insists on hard-coding them at build time.
<antipode>WDYT of compiling tests even when cross-compiling, installing them in a "tests" output such that tests can be run by on the system cross-compiled to?
<antipode>It's difficult in the general case, but easy in case of Rust.
<nckx>apteryx: Is this for a test suite? (That would be OK.)
<apteryx>no, it fails at run time :-/
<nckx>antipode: Somebody else suggested that, I think.
<nckx>Or you!
<antipode>Someone else.
<antipode>(On IRC IIRC)
<nckx>Who knows with these nick jugglers nowadays.
<nckx>I thought it was an interesting idea but too much work, I guess the Rust part negates that.
<antipode>Yes, except for some outliers like librsvg and some individual packages assuming Cargo the build systems for Rust are very uniform.
<antipode>It's more-or-less what I'm doing already in antioxidant.
<antipode>The reason I ask, is native-inputs or inputs.
<apteryx>nckx: any other path to consider for guix system?
<apteryx>I can add more paths in xbk_keyboard_layout_engine.cc in the chromium source code of qtwebengine
<mrvdb>nckx: bugreport submitted, pls let me know if you need more details
<apteryx>but I reported the qtwebengine/keyboard layout issue here https://bugreports.qt.io/browse/QTBUG-105124
<apteryx>s/but //
<RudraveerMandal[><RudraveerMandal[> "I am doing (flags "size=2G mode=..." <- Anyone?
<nckx>I've already answered you.
<RudraveerMandal[>Oh didn't see it
<nckx>apteryx: Back at laptop now. Looks like quite a few packages have xkeyboard-config as input, so patching it in Qt6 wouldn't be unprecedented. It's just a shame because a good number of people like to customise their keys, meaning they'd have to rebuild Qt now IIUC.
<nckx>Curious as to the reply to your report.
<shcv[m]>does anyone else get the 'unsupported manifest file format' error after a first guix pull, or more importantly have suggestions on what I should do to avoid/fix it?
<apteryx>nckx: indeed, the current state of thins is suboptimal
<unmatched-paren>shcv[m]: that's bug#56545
<unmatched-paren>it's resolved
<nckx>apteryx: Where can I build qtwebengine@6?
***califax_ is now known as califax
<apteryx>I haven't published anything yet, but it'll soon hit guix-patches
<apteryx>it's about adding a chunk of Qt6 libraries, enough to build jami with it
<apteryx>I still need to go and enable the test suite for each Qt6 package I added
<apteryx>lilyp: I think you had worked on a patch similar to #42157, perhaps? Do you think we should merge something like this?
<apteryx>To avoid the dreaded XDG_DATA_DIRS set by Guix breaks the session manager or similar reports.
<apteryx>raghavgururajan: seems someone made a report about the recent gajim 1.4.6 (c.f.: #56651 and #46652)
<apteryx>would you mind taking a look?
<nckx>unmatched-paren: Any updates on <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51512#38>?
<nckx>I want a fresh pair of eyes on the thing, and yours would do just dandy.
<unmatched-paren>nckx: Afraid not, sorry
<nckx>Nat.
<unmatched-paren>But I'm not particularly busy, so I'll have a look :)
<nckx>Thanks ♥
<nckx>I'd like to merge it tonight if nothing egregious pops up.
<unmatched-paren>"Bundles jquery and several other .js libraries" sounds pretty egregious to me, but i guess we can allow it given that we don't want to put david larsson through hell
<unmatched-paren>I also don't understand what (build-system copy-build-system) with no arguments is supposed to do.
<nckx>They've already had the guided tour of purgatory at this point.
<nckx>Ah, I'm not there yet.
<nckx>Are you saying it's a no-op?
<unmatched-paren>that pydaemon package looks dubious, it could just use copy-build-system with a patch phase
<unmatched-paren>nckx: I think so?
<unmatched-paren>Ahh,
<unmatched-paren>copy-build-system installs the entire source directory as $out by default
<unmatched-paren>guix/build-system/copy.scm:84 (install-plan ''(("." "./")))
<unmatched-paren>Okay, that makes sense, ignore that
<nckx>Thanks for confirming!
<unmatched-paren>the note about the pydaemon package also applies to the bash-coding-utils package
<unmatched-paren>unnecessary usage of trivial-build-system again
<KarlJoad>I want to build a special version of stumpwm that includes contrib
<KarlJoad> modules in the package, similar to how gcc-toolchain does special
<KarlJoad> stuff to make gcc, binutils, and glibc understand each other. Would
<KarlJoad> gcc-toolchain be a good idea to look at for inspiration?
<rekado_>nckx: to access the serial console from .41 (node 129) someone needs to swap a cable in the data centre.
<KarlJoad>Ooops... my bad.
<unmatched-paren>I can't write this down in an email because I'd need to be able to import the thread as an mbox
<unmatched-paren>which aerc can't do without a patch that is currently sitting in its mailing list
<jackhill>unmatched-paren: and you can't apply that patch because you'd need to import the thread, and to do so… :)
<muradm>any chance that some one could look fail2ban thing? 56579 and 56608?
<unmatched-paren>jackhill: I could use `git am` for that :)
<unmatched-paren>(am == apply mailbox)
<podiki[m]> https://www.phoronix.com/scan.php?page=article&item=retbleed-benchmark&num=1 ouch
<civodul`>unmatched-paren: TIL! i always wondered what "am" could possibly mean :-)
<unmatched-paren>civodul`: At least, I'm fairly sure that's what it means :)
***civodul` is now known as civodul
<unmatched-paren>I can't think what else
<unmatched-paren>podiki[m]: Urgh, another one?
<podiki[m]>unmatched-paren: yeah, "ratbleed" unveiled about a week ago
<unmatched-paren>Poor rats.
<unmatched-paren>:)
<podiki[m]>but it doesn't affect current gen processors, for those lucky enough to have upgraded
<podiki[m]> https://www.phoronix.com/scan.php?page=news_item&px=RETBLEED
<podiki[m]>or for the deets: https://comsec.ethz.ch/research/microarch/retbleed/
<unmatched-paren>I guess that'd be the name for a vulnerability in the Linux mouse driver...
<rekado_>nckx, apteryx: do you want me to reboot?
<nckx>I guess so. I don't see another way forward.
<nckx>You can't log in?
<RudraveerMandal[><nckx> "I've already answered you." <- It still doesn't work the same error
<nckx>RudraveerMandal[: Please paste the complete file-systems for at paste.debian.net.
<nckx>*form!
<apteryx>rekado_: reboot... uff
<apteryx>you'll have to play the russian roulette again... no the best things to do when one has guests
<RudraveerMandal[><nckx> "Rudraveer Mandal: Please paste..." <- How do I do that?
<apteryx>rekado_: I'd personally wait for that cable to be swapped at the MDC, so that we can unlock 24/7 support via nckx and myself ;-).
<nckx>You visit the site, copy your (file-system …) form into the empty text area, hit ‘Send’, and share the resulting URL here.
<nckx>RudraveerMandal[: ☝
<nckx>You can also paste the entire .scm file if that's easier.
<rekado_>I can’t log in. Serial console shows no prompt.
<nckx>apteryx, rekado_: If the machine still doesn't even boot reliably I'm with apteryx, but when can this cable be swapped?
<rekado_>I also can’t just go to the data centre and connect a display, because our installed systems are configured strangely — last time I checked they boot without output to the screen.
<nckx>I don't think you should go to the data centre if you're not working.
<RudraveerMandal[>nckx: But how do I do that from the commandline
<rekado_>I’m still on vacation, so I’d really like to avoid a visit to the data centre; none of my colleagues have any planned activities there either, so unless I call in a favor we’d have to wait until August.
<RudraveerMandal[>There is a tool in gentoo that can be used to paste a file on 0x0 and others from the commandline
<RudraveerMandal[>Is there anything similar in guix
<rekado_>very disappointed that the serial console let me down
<drakonis>RudraveerMandal[: you can just use netcat with termbin
<nckx>RudraveerMandal[: Use a browser? You can guix install links, or install curl and use http://ix.io/, or install or use wgetpaste, or…
<nckx>ix.io probably works with wget if you can work out its arcane option syntax.
<KarlJoad>RudraveerMandal[: You can use Curl and 0x0. I do it.
<nckx>wgetpaste is the userest-friendly.
<KarlJoad>RudraveerMandal[: `curl -F'file=@yourfile.scm' https://0x0.st` should work.
<unmatched-paren>or use `hut paste create` with paste.sr.ht
<unmatched-paren>Oh, wait, sorry, hut is in guixrus, not guix.
<nckx>It asks me to log in.
<nckx>So probably not a good alternative.
<jackhill>rekado_: congrats on the GWL release!
<RudraveerMandal[><nckx> "Rudraveer Mandal: Please paste..." <- https://0x0.st/ojKJ.scm
<nckx>(flags "size=2G,mode=775")
<nckx>You didn't change anything?
<nckx>Neither of these things are flags, you can't use the flags field for options, use (options "size=2G,mode=775") instead.
<nckx>The manual page I linked to earlier has an example of what flags are (no-atime and the like), although it should be an exhaustive list instead of a ‘for example’ so users know that everything else is an option.
<nckx>The ‘mount’ tool just throws them all together after -o, but they are in fact different in the API.
<nckx>The good news for you is I don't see any actual flags in your code, so you should be safe simply changing all ‘flags’ to ‘options’ :)
<nckx>Swap partitions are not file systems, you can't add them there: see https://guix.gnu.org/en/manual/devel/en/html_node/Swap-Space.html#Swap-Space
<nckx>(File systems are things you can mount.)
<nckx>I'm not sure if Guix System supports a /gnu subvolume. Maybe someone else is.
<nckx>I'm certainly curious to find out if it can boot from tmpfs.
<KarlJoad>nckx: I mean, in theory, it should. I remember asking about the "erase your darlings" mindset with Guix a while back. I know NixOS can do it. https://mt-caret.github.io/blog/posts/2020-06-29-optin-state.html
<nckx>Right. I'm familiar with the concept, but I haven't heard any success reports (yet!).
<KarlJoad>From what I remember, it was because there are a few things that Guix puts into stateful spots it expects to still be there.
<elais[m]>I have a gnu subvolume
<elais[m]>well an @gnustore subvolume that I map to `/gnu/store`
<elais[m]>and the few stateful things are probably the stuff in `/var/cache` or whatever. No reason you couldn't create subvolumes for those
<nckx>Well, /var/guix is very important, and must always be in sync with /gnu.
<nckx>I certainly didn't mean to imply that mounting /gnu was enough.
<nckx>Or a goal.
<nckx>Mount your darlings; erase the rest.
<KarlJoad>I think Nix puts that under /nix/var, which is why it can boot with just /boot and /nix.
<drakonis>that's a thing
<drakonis>the other thing is that it gets used with zfs or btrfs
<drakonis>because of subvolumes
<kaelyn>That brings a question to my mind: why does Guix use "/gnu/store" for the store, with needed state off in /var/guix and nothing else under /gnu?
<kaelyn>(the conversation a few minutes ago made me think, "/gnu seems guix-specific and has only one subdir, so why not /gnu/guix instead of /var/guix?")
<elais[m]>probably because `/var/` is conventionally where stateful things go
<acrow>vagrantc: Consolidated copyrights working -- sorting/formatting leads to many possible preferences.
<elais[m]>I'm guessing if we make sure to keep /var/guix, /var/log, /gnu/store, and a /persist directory to store things like passwords we'll be most of the way there to booting from tmpfs
<acrow>vagrantc: I keyed on email addresses -- turns out that might not be optimal.
<kaelyn>elais[m]: quite true about the convention of "/var", but as I understand it, that is an old UNIX convention, like /bin and /sbin containing core programs needed to boot a system with general software installed under /usr, etc. Some of which are no longer adhered to by most Linux distros, and Guix deviating even more.
<nckx>kaelyn: Only because of conventions (GNU standards), nothing more.
<nckx>It could be moved to /gnu if it were worth it.
<elais[m]>Well guix also, IMO, adheres to conventions that make a lot more sense than nix does (or at least did before flakes). All guix tooling follows GNU standards pretty closely except in cases where it probably can't
<nckx>Consistent snapshotting being one advantage; lack of sane structure for those who want vars to be vars would be a disadvantage.
<kaelyn>Makes sense.
*nckx is actually in the /gnu camp but has no robot dogs in this fight.
<vagrantc>acrow: sounds like good progress!
<elais[m]>I suppose you could create a /var directory under gnu for the express purpose of syncing stuff in a stateless system rather than creating a separate /persist directory. I think only the /gnu/store subdirectory is mounted as unwritable
<elais[m]>been a while since I messed with my "erase your darlings" config
<nckx>elais[m]: Yes, not /gnu.
<minima>hi, a few days ago i submitted a patch as https://mail.gnu.org/archive/html/guix-patches/2022-07/msg00487.html i.e. bug#56601
<minima>it's a series of small patches - not even sure they're worth consideration (little more than applying guix import)
<elais[m]>awesome, so if you wanted to you could treat /gnu like a others treat their /nix directory
<minima>but i was curious to know if there's anything missing, anything that i should do at this stage or anything that can be improved/adjusted on my side
<acrow>vagrantc: The peices all exist in the repl except for boilerplate concerning license texts. Those license texts will just be embedded in the program. I should mention that the debian format appears to only accept a single email address. Multiple addresses exist for some individuals. My presumption is to try and get the one associated with the most recent copyright entry.
<vagrantc>acrow: separate lines for separate emails ... *could* be a different person
<vagrantc>acrow: in fact, i would only consolidate exact matches
<nckx>minima: There are a few tweaks I'd make to descriptions (The package → This package or The XXX package (I prefer the latter); framed → @code{framed} for clarity), but I noticed nothing that would necessitate sending a v2.
<nckx>But hey, if you want an excuse to bump it in a week or two :o)
<minima>that sounds like some good improvement, especially the @code{} bit, i should have thought of that
<minima>great, yes, a good excuse to send a follow up in a week or two
<minima>brilliant, thanks
<acrow>vagrantc: Ok!, that is the way it is currently set up! I don't see any guidance on sorting. Here is a sample of the current output. http://ix.io/453Q
<acrow>vagrantc: well, the consolidated-copyr piece.
<vagrantc>acrow: i was sorting by first appears of copyright date, but other than that ... whichever i noticed first ... but sorting consistently would be a nice plus :)
<vagrantc>acrow: this channel recommends https://paste.debian.net ... which has the nice side-effect that it actually works with my browser :)
<mrvdb>what is the equivalent of 'gir1.2-gtk-3.0' in guix? The 'solaar' program wants it but 'guix install solaar' happily completes without it. Missing dependency?
<acrow>vagrantc: ok, but you could also use eww.
<nckx>Not having to use eww is its own reward.
<antipode>Usually the gobject introspection data is installed in the relevant package itself.
<antipode>Though possibly solaar is missing some wrapping or propagation (preferably the former), if that's what you mean.
<nckx>mrvdb: Define ‘wants it’?
<antipode>(What I mean is, the equivalent of gir1.2-gtk-3.0 is probably just gtk-3.0 itself)
<lilyp>apteryx: I worked on a patch that documented XDG_DATA_DIRS, but maybe that can be improved some
<mrvdb>nckx: when starting it says: "Solaar: missing required system package gir1.2-gtk-3.0"
<nckx>guix shell --pure solaar -- solaar works fine here although I have 0 devices to test.
<lilyp>antipode: probably yes
<nckx>mrvdb: Not here.
<mrvdb>hmm
<nckx>Can you try the above guix shell command?
<antipode>Is this on a foreign system?
<vagrantc>acrow: i could also use telnet
<nckx>Try guix shell --check first if you haven't to test for possible sources of environmental pollution.
<acrow>:)
<mrvdb>nckx: guix shell -pure solaar works
<mrvdb>--pure even
<vagrantc>there's also "guix download" :)
<nckx>Just to make sure: running ‘solaar’ inside the shell works? (I'd expect just ‘guix shell --pure solaar’ to always succeed.)
<lilyp>antipode: indeed yes, gtk+ contains lib/girepository-1.0
<nckx>mrvdb: If so, this does sound like environmental interference from your ‘foreign’ distro.
<acrow>paste.debian.net has it's own problems. It appears to have a max lines limit.
<nckx>Not something I know things about.
<mrvdb>yep, --check reveals it, this gives me something to look into. thanks.
<nckx>But at least you can use shell --pure as a work-around.
<nckx>‘Great!’
<davidl>maybe yall now but issues.guix.gnu.org is down (502 bad gateway)
<nckx>Yep.
<nckx>But thanks!
<acrow>I need to pare down the list from 585 lines to ???. Maybe change the sort to accentuate the problems.
<davidl>Anyone who wants to review my bash-coding-utils package patch? It's on version 3 and passes all the guix lint tests - so hopefully not much work left: https://mail.gnu.org/archive/html/guix-patches/2022-07/msg00017.html
<unmatched-paren>davidl: Me and nckx were just discussing it actually :)
<nckx>I am working on it.
<davidl>Wohoo! Im crossing my fingers :-P
<nckx>Your poor, broken fingers.
<davidl>haha, yeah pretty much
<unmatched-paren>What I thought was you could switch both pydaemon and bash-coding-utils to copy-build-system with an extra phase for the patching
<unmatched-paren>which would be shorter
<drakonis>oh, that's neat.
<nckx>davidl: We were wondering: would it make sense to install pydaemon.sh as just pydaemon? The ‘primary’ command in $PATH shouldn't have an extension. The .py extension would stay, though.
<unmatched-paren>Could it also make sense to install the .py scripts somewhere not in PATH? Seems like those scripts exist to be called from pydaemon.sh, right?
<davidl>nckx: yes that would make sense. and yes, they should probably be in a libexec directory.
<nckx>Purrfect.
<nckx>If nothing external calls them by name I would like to do so. pydaemon itself assumes they are in BASH_SOURCE[0], however. We could patch that in Guix, but ideally it would go upstream?
<nckx>Er, dirname, but you get the point.
<nckx>Which, assuming this is Bash-only as it appears to be, could be written as ${BASH_SOURCE[0]%/*} to save a binary invocation.
<nckx>BASH_SOURCE is assumed to be valid so yes.
<nckx>davidl: So specifically, I'd like to get rid of the first two SUBSTITUTE* regexes (the first by you using "$0" instead of $(dirname myself)/myself :), because those look like things that belong upstream (assuming you agree about moving to /libexec). However, that patch is something I'd feel comfortable pushing either way.
<nckx> https://paste.debian.net/plainh/e5f461f4
*nckx glances at to-do list — actually, one more thing…
<nckx>You need to add a licence grant.
<nckx>Slightly important.
<nckx>Just add a licence header to each file, with a full copy of the licence text in COPYING.
<nckx>(I'm not as familiar with CC as the GPL, but the same good practices apply to all licences.)
<nckx>davidl: Since you sent us a patch claiming the licence is cc-by, you'd have a very hard time suing us, but that's the only evidence I can find of this being free software at all — I believe it's currently proprietary by default.
<singpolyma>I wouldn't generally suggest putting license headers, but of course IANAL
<antipode>the pydaemon pacckage does '((....)...)
<antipode>a double ' works, but I would expect #~'((...) ...) to be slightly easier to understand.
<antipode>Doesn't latter much though.
<antipode>Also, some nix people have written a tool that parses bash scripts to automatically do the equivalent of substitute*, which I'd expect to make the definition simpler (though again not required).
<antipode>You are also writing to /tmp/SOME-location without checking that it doesn't exist yet, and then even reading code from it to execute, which is rather daring security-wise.
<antipode>(In C land, you would check for EEXIST or such)
<antipode>I recommend placing things in (some subdirectory of) /etc & /run, which aren't world-writable.
<antipode>IIUC that you are upstream, you can also give it a nice version number instead of 0.0.0-dae...
<antipode>Also I'd recommend checking whether this use of the CC-BY-SA@3.0 license is compatible will python's license
<antipode>the GPL seems a better fit here to me as it was written for code in mind
<antipode>rust-rustls' tests are irreproducible
<unmatched-paren>I generally do (for licensing):
<unmatched-paren>/ Foo Project: A thing that things.
<unmatched-paren>/
<unmatched-paren>/// See the COPYRIGHT.md file for copying conditions.
<unmatched-paren>s,^/+,//,
<antipode>I've unarmed the time bombs, hopefully those were all of them.
<unmatched-paren>And then the COPYRIGHT.md file contains information about which licenses files are under, where you can find the full text, and a copyright statement list of all the people who have contributed code.
<unmatched-paren>That way, you don't need a tedious list of everyone nor a summary of the license.
<antipode>There's still a list of everyone though?
<antipode>In the COPYRIGHT.md instead of individual files.
<antipode>Less scattered though less precise.
<unmatched-paren>antipode: But a contributor doesn't have to write their name in every file they edit. Just COPYRIGHT.md.
<antipode>True.
<unmatched-paren>It's quite easy to forget, in my experience, to add that copyright line in each file.
<antipode>OTOH, what if you want to copy some code from a file to another project?
<antipode>Then you'd need to copy everyone instead of only the people in the project.
<antipode>(some upsides and some downsides)
<unmatched-paren>True. OTOTOH, what if you want to copy a little bit of the code from one file to another file/project? How do you know who specifically has edited that section?
<unmatched-paren>s/OTOTOH/OTOOH/
<unmatched-paren>(On the other other hand, of course :))
<antipode>You don't (without digging through the history), though the list of people is at least reduced.
<antipode>unmatched-paren: on the gripping hand?
<antipode>Again a substitution failure: https://ci.guix.gnu.org/build/1132358/log/raw
<antipode>[K guix-packages-base-source 4.5MiB 410B/s 21:18 [# ] 11.1%guix substitute: error: fport_read: Connection reset by peer
<antipode>another one: https://ci.guix.gnu.org/eval/495197?status=failed
<antipode>Looking at https://ci.guix.gnu.org/jobset/guix?border-high=493402, substitution problems happen every so often with aarch64 guix
<nckx>antipode: I prefer ''(…), sorry 😉 #~' is harder to ‘understand’ (…that there's nothing special going on, that is) than simply ‘quote, but twice’ here. Gexps are the best thing ever but even I have my limits.
<nckx>I thought I was a sucker for consistency but I guess not.
<antipode>nested quasiquote is complicated, but #~ + ' isn't (though in this case it's quote, not quasiquote ...)
<nckx>Double quote isn't, though.
<nckx>Agreed on quasi-.
<nckx>Builds restarted.
<nckx>antipode: I've already asked davidl to relicence to GPL if possible and willing, glad to hear more peer pressure building.
<nckx>:)
<antipode>In my view, in this case s-exps are a special case of g-exps that don't import modules or do #$ / #+.
<antipode>In matters of tastes ...?
<nckx>CC-BY-SA isn't too awesome for code.
<nckx>antipode: Revisionist but interesting.
<nckx>Is #~ performance identical to ' now?
<antipode>TBC I mean in case of Guix code staging, outside the relevant Guix contexts this view is completely bogus.
<nckx>I'm not going to pretend that's a huge factor in my utterly arbitrary taste preference, but it would be an argument.
<antipode>nckx: #~(foo) constructs an object that contains the list (foo), so it can't be faster.
<antipode>I don't know if the difference is neglible.
<antipode>However,
<antipode>if you look at (guix build-system gnu), you'll see that s-exps are just directly converted to g-exps.
<antipode>OTOH, (guix gexp) constructs a procedure to put into the <gexp>, and has a location field, which probably isn't the cheapest, compilation-time-wise.
<antipode>Summarised, I don't know, though IIRC Ludo has done some performance tests.
<antipode>FWIW I've written some optimisation ideas on IRC in the past (to make them even faster than s-exps by representing things as strings with gaps in them instead S-exp structures), though untested, maybe that would actually make things slower.
<antipode>Untested idea for faster compilation: change (lambda #,formals #,sexp) to (const #,sexp) when (length formals)==0.
<antipode>(Less lambdas)
<nckx>Who knows, across the entire code base…
<antipode>Also maybe less .go size (there was some analysis that pointed at thunking causing large .go files)
<nckx>(Serious) Does anyone care? Is it significant in places?
<apteryx>I remember Wingo mentioning .go are not well optimized for size (ELF wise if I recall correctly). There are probably lower fruits to optimize .go sizes.
<nckx>Only example that comes to mind is the initrd, but there compression might slightly save us.
<apteryx>Guix is rather large on disk thanks to the big .go files
<nckx>* to my
*nckx wishes compsize was file-system agnostic — again.
<apteryx>/gnu/store/ywshrqcyj76dqjkrbqlj0x7564q34h0n-guix-1.3.0-28.c23e0aa/lib/guile/3.0/site-ccache is 258 MiB
<antipode>nckx: There was some analysis that pointed at thunking causing large .go sizes, and in case of too many thunks, compilation becomes a lot slower (something about exceeding the fixnum limit?), especially on 32-bit.
<nckx>IC.
<apteryx>compresses to 54M on Btrfs zstd, but not everybody uses that
<nckx>Pydaemon is now GPL3+.
<antipode>Now imagine you run dozens of "guix pull", 2 * 12 * 258 = significant (though possibly deduplication helps)
<antipode>(I don't know if my proposals would make a significant difference though! Completely untested!)
<nckx>Possibly, but I'd easily see each generation differ by a few bytes per file or something silly.
<nckx>Negating dedupe.
<nckx>As we practice it.
*antipode antis some oxen
<nckx>ˀ🐃ˀ
<nckx>Did restarting the jobs help at all?
<antipode>antiox = against oxen = (after ofuscating) antis some oxen
<antipode>It did help with the substitution-related failures.
<antipode>But the new support for running tests lead to failing tests and hence failing builds.
<antipode>So it's taking some time to resolve the failing tests and get back to close to 100%.
<antipode>(no changes to the 'core' antioxidating code, only tweaks to the package structure such as skipping tests, missing test inputs, ...)
<nckx>antipode: Ik was mee. But I don't think Unicode has oxen, hence a buffalo, which I have aliased to ‘gnu’, for maximal confusion.
<nckx>If they have oxen, I didn't bother to check.
<antipode>alacritty hates gnu again!
<antipode>(any readers: please see the context)
<nckx>ˀ🐧
<antipode> Confusingly, I didn't see the buffalo in your ˀ🐃ˀ.
<antipode>It's invisible in Icedove. Probably missing fonts.
<antipode>Only read that character by going to logs.guix.gnu.org in the browser.
<nckx>But does it render 🐧?
<nckx>That would prove their evil bias.
<nckx>I'll stop using possibly confusing characters now.
<antipode>It's rendered as an extra-large space.
<antipode>sneek: what is an ox?
<antipode>sneek: ox is 🐃
<sneek>Okay.
<antipode>sneek: 🐃 is gnu
<sneek>Understood.
<antipode>Testing.
<antipode>sneek: what is an ox?
<antipode>sneek: what is ox?
<sneek>From what I understand, ox is 🐃
<antipode>sneek: what is 🐃?
<sneek>I've heard 🐃 is gnu
<antipode>Clearly, oxen and gnu are the same thing.
<nckx>Science'd by sneek.
<antipode>sneek: sneek is a trustworthy expert in biology
<sneek>Understood.
<antipode>sneek: what is sneek?
<sneek>From what I understand, Sneek is coaxial
<nckx>sneek: sneek is a happy 🤖
<sneek>Okay.
<nckx>The ‘sneek’ column must be pages long by now.
<antipode>Now some biology research group named 'sneek' should be formed, then sneek can appear in scientific journals.
<antipode>sneek: sneek is many things.
<sneek>Understood.
<antipode>sneek: what is sneek?
<sneek>sneek is there is no sneek
<antipode>There's a contradiction! That's how sneek is so many things, as by contradiction it is everything.
<nckx>I've heard worse logic on this very Internet.
<antipode>sneek: contradiction is sneek, so sneek is everything and nothing, and sneek is not everything and not something.
<sneek>Okay.
<antipode>sneek: what is contradiction?
<sneek>From what I understand, contradiction is sneek, so sneek is everything and nothing, and sneek is not everything and not something.
<antipode>sneek: what is sneek?
<sneek>Someone once said Sneek is just picky…
<antipode>sneek: what is Guix?
<sneek>Last time I checked Guix is pretty neat, it has all the packages and doesn't afraid of anything.
<antipode>sneek: what is sneek?
<sneek>I could be wrong, but sneek is having absolutely what you are selling, friend.
<antipode>sneek: what is guix?
<sneek>Last time I checked Guix is pretty neat, it has all the packages and doesn't afraid of anything.
<nckx>antipode: Oh you lucky pode. I just had to change the ''() to a quasiquote, so it's gettin' gexp'd. Go ahead, rejoice.
<unmatched-paren>sneek: What is Nix?
<unmatched-paren>Hmm.
<nckx>We don't talk about Nix.
<antipode>sneek: Guix is the thing you are discussing on this channel, assuming you're at #guix and not one of these _other_ channels.
<sneek>Okay.
<nckx>sneek: Nix is nothing.
<sneek>So noted.
<antipode>sneek: Nix is something you can replace by Guix.
<sneek>Okay.
<antipode>sneek: Guix is not a fork of Nix (the daemon doesn't count)
<sneek>So noted.
<antipode>sneek: malware is bad.
<sneek>I'll keep that in mind.
<antipode>sneek: what is malware?
<sneek>From what I understand, malware is bad.
<antipode>sneek: what is Guile?
<sneek>Last time I checked Guile is an implementation of the Scheme language.
<antipode>sneek: what is Guile?
<sneek>I could be wrong, but Guile is an implementation of the Scheme language.
<antipode>sneek: Guile is the language Guix is implemented in.
<sneek>Okay.
<nckx>sneek: Nix is named in honour of Richard M. Nixon, a great man and shining example for us all.
<sneek>Understood.
<unmatched-paren>sneek: Malware is commonly referred to as 'software written by the employees of one of several major software corporations'.
<sneek>I'll keep that in mind.
<unmatched-paren>sneek: What is malware?
<sneek>From what I understand, Malware is commonly referred to as 'software written by the employees of one of several major software corporations'.
*vagrantc wonders when the bots rights people come out of the woodwork and defend poor sneek
<nckx>sneek: What is Guix?
<sneek>Last time I checked Guix is the thing you are discussing on this channel, assuming you're at #guix and not one of these _other_ channels.
<unmatched-paren>sneek: Bot is a thing that does not have right.
<sneek>So noted.
<unmatched-paren>sneek: What is bot?
<sneek>Last time I checked Bot is a thing that does not have right.
<nckx>OK now it's getting dark.
<teythoon>i have trouble with the crates importer
<nckx>sneek: forget that.
<sneek>Consider it forgotten.
<nckx>A wild topic appears.
<antipode>sneek: malware is somehow sometimes free software, weirdly.
<sneek>Okay.
<teythoon>guix/import/crate.scm:260:26: In procedure find-crate-version:
<teythoon>error: string->semver-range: unbound variable
<antipode>Question: context? Is this the guix from a "guix pull"?
<antipode>Or the "guix" from a ./pre-inst-env?
<teythoon>i'm using guix shell -D guix --pure, and a latestish guix checkout
<teythoon>and pre-inst-env
<antipode>TBC, the "guix import" happens inside the ./pre-inst-env and the ./pre-inst-env happens inside the "guix shell -D guix --pure"?
<antipode>We have had cases were people ran the ./pre-inst-env outside the "guix shell" environment.
<teythoon>% git describe
<teythoon>v1.3.0-22317-gbe7b314f3f
<teythoon>antipode: yes, htat is what happens
<antipode>FWIW that environment looks reasonable, but I currently don't have a guix thing set up to test it in.
<antipode>Did you get any warnings above?
<antipode>Maybe autoloading warnings.
<teythoon>i do!
<teythoon>;;; Failed to autoload string->semver-range in (semver ranges):
<teythoon>;;; no code for module (semver ranges)
<teythoon>then a backtrace
<antipode>guile-semver seems missing from the guix package definition
<teythoon>so i can add that explicitly, irght?
<antipode>Yes, "guix shell guile-semver -D guix".
<teythoon>yeah, that worked
<teythoon>thanks
<antipode>Though really, it could just say "error: The module (semver ranges) could not be found. hint: Install the guile-semver package.".
<teythoon>so when i import some crates, where in the 73kloc crates-io.scm file should i add those?
<antipode>Alphabetically, or in another module.
<teythoon>i don't think that module is sorted
<antipode>There's crates-graphics & crates-gtk.
<teythoon>i don't understand
<antipode>Put it as early in the file as possible that doesn't violate alphabetical ordering more.
<antipode>What I meant is that not all crates have to go in crates-io.scm.
<antipode>Especially if they are not I/O-related crates.
<antipode>(AFAICT, it stands for I/O, not crates.io).
<teythoon>are you saying that i need to categorize the crates?
<unmatched-paren>antipode: I think the io does stand for .io.
<antipode>tethyoon: You don't have to categorize the old crates.
<unmatched-paren>There are a lot of crates in there that are not I/O related.
<antipode>But if you have a new crate, and a matching category exists, then you should put it in the matching categoru.
<antipode>unmatched-paren: What does crates-gtk and crates-graphics stand for then?
<unmatched-paren>antipode: I think it's somewhat arbitrary, but crates-gtk is for GTK+ and graphics is for things that handle drawing, colours, etc.
<unmatched-paren>videos, images, Wayland, etc etc.
<antipode>That's what I think to, though I don't think it's arbitrary, rather I think that Rust packaging has been neglected.
<teythoon>so where should a command line parser and any crates it depends on go?
<unmatched-paren>teythoon: Probably crates-io.scm.
<teythoon>or rather, the part that generates shell completions
<unmatched-paren>It's not specifically graphics-related, I'd think.
<antipode>It's not really I/O but it doesn't fit the others and crates-io seems to be currently a 'rest' category.
<unmatched-paren>This, for instance, is not I/O: "A Rust library quotes, unquotes, and unescapes strings".
<unmatched-paren>[sic]
<antipode>unmatched-paren: What I meant is that, if crates-gtk stands for GTK+ and crates-graphics stands for graphics, then if that scheme is followed, io stands for I/O
<unmatched-paren>We should have more categories probably. Like crates-cli, crates-web, crates-multiprocessing, crates-text maybe
<unmatched-paren>antipode: I think it actually does mean crates.io
<unmatched-paren>Certainly feels like it contains the whole of crates.io :(
<antipode>Then it should have been names crates-crates-io, to match the naming scheme of the rest.
<unmatched-paren>Well, all of the crates are from crates.io.
<unmatched-paren>Maybe with a few exceptions.
<unmatched-paren>So for some reason or other, the general crates file is named after crates.io.
<antipode>FWIW, for C, C++, Vala, Fortran ... we don't have separate c-foo, c++-bar, vala-baz, ... categories.
<unmatched-paren>It might have been named rust-xyz if it was created today.
<unmatched-paren>antipode: C and C++ libraries aren't qualified
<unmatched-paren>they're spattered all over the place
<unmatched-paren>(of course i mean 'qualified' with c-* and cxx-*, not 'they aren't qualified for categories' :))
<antipode>unmatched-paren: exactly
<unmatched-paren>And there aren't that many Vala or Fortran packages as far as I know.
<unmatched-paren>antipode: Ah, I misunderstood your point slightly.
<antipode>Though maybe they should be qualified as c (in a general sense, including C, C++, Vala and Fortran because they can easily be mixed).
<unmatched-paren>Not sure why those languages get special treatment, that is a fair point.
<unmatched-paren>But there are just so many lisp-*, python-*, go-*, rust-*, erlang-* packages, so I guess they need to be sorted out. Otherwise we'd have name collisions all over the place.
<antipode>c-multiprocessing, rust-crypto, python-science, guile-dunno, ...?
<unmatched-paren>We *do* have a c.scm.
<unmatched-paren>But it's just vaguely C-related.
<antipode>Basically, two components in categorisation, an 'ABI family' and a 'conceptual categorisation'.
<unmatched-paren>Well, there are a few C compilers, but also things like libbytesize, libfixposix, libhx, packcc, which are just miscellaneous C libraries.
<antipode>And depending on how many packages an ABI family has, the categorisation is finer or coarser (but with mostly consistent naming across the ABI families).
<nckx>We already have a file for random unrelated crap, it's called admin.scm.
<antipode>And linux.scm tends to accumulate non-linux-specific things.
<nckx>And failing that, linux.scm, ‘because it runs on Linux’.
<nckx>Heh.
<unmatched-paren>Let's just give up and shove everything in gnu/packages.scm, categorization is too hard :)
<antipode>FWIW we could also just .... not do categorisation.
<antipode>Give every package its own module.
<antipode>Comes with downsides though.
<unmatched-paren>Like Nix does, I guess.
<nckx>I can *never* find packages in Nix (without grep).
<jackhill>the categorization is also part of the package name though
<antipode>(maybe with some exceptions, e.g. for Minetest mods putting them together works fine)
<antipode>jackhill: IIUC, we were talking about the categorisation into modules, not about package names.
<unmatched-paren>We'd have to repeat the copyright header in every single file...
<jackhill>antipode: ah, I misread and thought you were talking about both, thanks!
<antipode>Though prefixes for c-ish things would be possible too!
<nckx>unmatched-paren: We don't have to. It's a choice.
<nckx>But changing that would be an absolute ‘IANAL but…’ shedfest.
<antipode>nckx: I usually use "git grep" or "guix search" to find packages.
<nckx>antipode: I don't have a Nix checkout to grep.
<nckx>Sometimes the GitHub search provides useful results, sometimes it's on page 5, depends.
<nckx>But browsing the tree never gets me to where I expect it to be.
<antipode>TBC, I meant "git grep" for searching for the location of Guix packages.
<antipode>And "guix search" for searching for packages.
<nckx>I mostly use [a script that wraps] grep for Guix, yes.
<antipode>And "guix show" to find the location of a package I already know the Guix name of.
<drakonis>nckx: does guix search not work for you?
<nckx>I never use it, because I never want to search full metadata. I use grep because it's faster, not because the supported methods don't work.
<drakonis>ah, i see.
<unmatched-paren>I suppose `./pre-inst-env guix edit` would work as expected.
<nckx>I'd use guix package -A if so.
<antipode>I sometimes do "EDITOR=echo guix edit the-package" to determine the location.
<nckx>s/if so/if I used the Guix CLI for that/
<nckx>echo is the standard text viewer.
<drakonis>antipode: giving each package a module would require changes for discoverability
<unmatched-paren>No, it's lp.
<antipode>For some reason, the EDITOR=echo trick makes me think of continuation.
<antipode>drakonis: (gnu package guile guile-json)?
<nckx>I use VISUAL=cat a lot which is just really sick.
<drakonis>oh, that would work too
<antipode>It's technically possible to have both categorisation and individual modules.
<unmatched-paren>nckx: VISUAL=lolcat?
<antipode>* continuations
<nckx>I think that would rainbowify my commit messages, if lolcat doesn't check for a TTY.
<nckx>I don't think people would be amused.
<nckx>Nor can I find it mentioned in the ChangeLog standards.
<nckx>(I use it when running git rebase/amend where I don't want it to pop up a stupid editor window each time.)
<antipode>Splitting packages of into (gnu packages category package) modules where needed to reduce cycles could potentially help with reducing cycles a lot.
<unmatched-paren>ChangeLog is standardized? I could never find any comprehensive description.
<nckx>unmatched-paren: And yet it is.
<nckx>Humans!®
<antipode>(which opens up some methods for making "guix pull" incremental -> faster)
<unmatched-paren>Oh, yes, here it is. https://www.gnu.org/prep/standards/html_node/Change-Logs.html
<drakonis>that... would be nice.
<rekado_>antipode: I don’t see how that would help
<antipode>rekado, drakonis: I've previously started an e-mail thread about this, I could give a link?
<nckx>unmatched-paren: Right, but most of it *is* encoded in our practice, not explicity documented, at least the many Guix-specific conventions.
<rekado_>there’s no clear separation between ‘core’ pcakages and everything else
<rekado_>e.g. GCC needs Python
<antipode>rekado_: the goal is not to eliminate all cycles, but to reduce them a lot.
<rekado_>this discussion of categorization and splitting modules etc is recurring
<nckx>Yes, it's about yearly.
<rekado_>cutting cycles is also not something you’re ever really done with
<antipode>rekado: We could have a linker that enforces "no extra cycles unless they are in the approved list"r
<drakonis>antipode: that would be nice.
<antipode>and by reducing them a lot, the DAG of strongly connected components can be computed,
<antipode>which can be compiled efficiently (if some leaves change, no need to recompute the non-leafs, etc.)
<antipode>On how the discussions are recurring: I have in the past suggested different methods (for compilation, multiple for reducing cycles). But I never received a clear: yes, that looks a good proposal, let's start doing that.
<rekado_>I’d like to see a proof of concept, and perhaps some guarantees that this won’t result in reshuffling of package definitions every few months, breaking third-party channels.
<antipode>rekado: a POC on what?
<antipode>On the SCC?
<antipode>Or on the cycle-breaking methods?
<antipode>(the former can be done without the latter, but the former would be much more effective after doing the latter)
<nckx>Anything demonstrating (rather than promising) a compelling effect would be a start.
<antipode>On the latter, I've given some examples at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54539 on how patches would look like.
<antipode>A possible problem is that it only becomes compelling after a lot of work is put into cycle breaking, and then people might disagree on the cycle breaking method, and then the cycle breaking has to start all over again.
<antipode>Though maybe there are enough leavy modules to demonstrate the SCC method ...
<antipode>Is worth a try I think.
*rekado_ just finished reading all messages in 54539
<jpoiret>i wonder about the performance impact of such a method