IRC channel logs

2022-02-25.log

back to list of logs

<podiki[m]>could be good to have in the contributing section of the docs frequent steps needed? like when a make clean or go-clean is needed, or a reset? or what to do when getting a translation file error?
<podiki[m]>(I'm always guessing too, mostly just "make" is fine, but sometimes needs more)
<ngz>apteryx: ok
<ngz>It did work better after a make clean-go.
***eepbooptheoryb is now known as beepbooptheory
<ngz>So, thanks for the help, and sorry for the noise! :)
***lukedashjr is now known as luke-jr
<drakonis>why in the heck does guix need to pull in ruby to build sbcl
<drakonis>what the ck
<drakonis>heck
<vagrantc>welcome to dependency graphs. :)
<vagrantc>guix doesn't generally hide them like many distros effectively
<vagrantc>do
<drakonis>this is some pretty big spaghetti though
<drakonis>i looked into the dependency chain for sbcl in nix and it has significantly less components
<drakonis>its just pulling in too much
<drakonis>alas i can see how they're not pulling in as many deps
<drakonis>they bootstrap sbcl with a binary
<drakonis>and that step is hidden away in the dag
<drakonis>but they still don't pull in all of ruby and texinfo
<drakonis>and a lot of texlive
<vagrantc>yup
<vagrantc>well, if the bootstrap is a binary, chances are there's something in the bootstrap process that pulls in ruby ...
<vagrantc>and tex* and whatnot ...
<drakonis>its pretty hard to read the dag anyways
<vagrantc>unless the bootstrap was done with a minimal set ... which guix could maybe adopt ...
<drakonis>jeez guix's graph even pulls in python
<drakonis>texlive is responsible for much of this messiness
<pranavats>jpoiret: Your patches to grub worked. Thank you.
<pranavats>No lvm module issues either.
<abrenon>hi guix
<user_oreloznog>o/
<jpoiret>pranavats: great! i'm kinda happy these do work, hope they'll be applied to GRUB for the next released
<jpoiret>other distros have the same issue as well
<sughosha>Hi Guix, I would like to know how does Guix handles updates of packages. Is every package should be updated manually by the respective maintainers, is there any automated process of handling them via `guix refresh` or something, or does Guix developers handle them in bulk at once? I'm asking this because I tried with `guix refresh gtk` and it says it can be updated to 4.6.1 while the current version in Guix is 4.4.1.
<abrenon>AFAIK packages don't have specific maintainers, although in practice of course some people have more interest in such or such package and will tend to follow its development more closely
<sughosha>I tried packaging many GNOME World's apps but many of them need gtk4 >= 4.5.0, but Guix has only 4.4.1 as of now.
<abrenon>I think many update patches we see are merely generated by their developer with guix refresh, performing certain checks to make sure the software still works as expected, or checking a new feature announced upstream
<abrenon>that's understandable, because, and that was my last point, there's possibly a lot of intrication with huge, central packages like GTK
<abrenon>I suppose you can just refresh it, but then I expect the amount of work required to ensure it hasn't broken all the existing gtk apps will be colossal
<abrenon>plus, when a patch impacts too many package I think I remember there's a specific process required to avoid triggering too many rebuilds at once on the CI
<abrenon>I expect such an update to be typically the case
<abrenon>have you checked if there's a branch for it ?
<sughosha>abrenon: Branch of what, of a package or of Guix?
<sughosha>I'm trying to package some GNOME applications, like Tangram and Telegrand. I'm just trying with latest release of them.
<sughosha>I will check if they have specific branch like stable or something. Currently I am referring to the release tags (don't know if they themselves are branches or part of a branch).
<abrenon>*branch of guix, sorry
<sughosha>When I `guix pull`, it pulls from the master branch, right?
<mbakke>there are only 25 users of GTK4 in Guix, so it should be safe to update on 'master'
<the_tubular>How did you get that number mbakke ?
<mbakke>the_tubular: guix refresh -l gtk
<abrenon>thanks for the tip !
<abrenon>so I take it this is "users" as in "packages that use", not as in "humans who use" ?
<the_tubular>Yes, I also thought "humans who use"
<user_oreloznog>sughosha: I have done 'guix pull --branch=master' to pass from stable to master.
<sughosha>user_oreloznog: It seems by default master is pulled, right?
<abrenon>I think so yes
<user_oreloznog>sughosha: hmm... I though it was stable by default... Not an expert
<abrenon>I've never even noticed there was a stable branch : )
<paul_j>Good morning guix!
<user_oreloznog>o/
<paul_j>I am continuing to work with guix home, and have a quick question about shepherd services. I created a service for syncthing, but I think I used some code I found elsewhere. Anyway, I have now tried to create a service for gpg-connect, but I am getting an error "gpg-agent: unbound variable". I have the relevant code for the shepherd services here: https://paste.debian.net/1232206
<paul_j>I am not sure where I am creating a variable, or at least where it differs from the syncthing definition. I don't think it is in the provision line, so I am guessing I am doing something wrong with the start and/or the stop fields.
<paul_j>I do have a use-modules line for (gnu packages gnupg).
<akonai>there's no gpg-agent package, you need to call /bin/gpg-agent from the gnupg package
<akonai>or /bin/gpgconf and /bin/gpg-connect-agent in this case
<akonai>i.e. I believe #$(file-append gnupg "/bin/gpgconf") should work
<paul_j>akonai: did you have a look at the code in the pastebin? I call gpg-connect-agent to start it, and gpgconf to kill it. The only reference to gpg-agent is in the provision field, and in the file-append sections of the start and stop gexps. I could have formed the file-append section incorrectly of course!
<akonai>You have #$(file-append gpg-agent "gpgconf"), which tries to get the store name of the package gpg-agent, which doesn't exist
<paul_j>So my mis-understanding - let me try again!
<attila_lendvai>i was looking for nodejs 16 in guix, and apparently there's a patch lying for it for about a year now. any issue with it? https://issues.guix.gnu.org/48396
<paul_j>akonai: That worked - here is the modified code: https://paste.debian.net/1232208
<paul_j>I need to go and read the documentation for file-append again...
<ngz>attila_lendvai: It's probably that no one tested it and confirmed it was ok, I guess.
*attila_lendvai is applying it locally
<paul_j>akonai: Ok - so just to confirm my understanding: #$(file-append gnupg "/bin/gpgconf") actually returns "/gnu/store/<hash>gnupg/bin/gpgconf". In other words, it finds and dereferences the store location for the package in order to identify the path of gpgconf, so that can be called when shepherd (in this case) stops the service.
<attila_lendvai>the "Debbugs User Guide" link in the manual is broken
<attila_lendvai>damn, emacs debbugs is confusing...
<nckx>attila_lendvai: Which manual? Guix doesn't have that text.
<reycoseb>Bonjour / Hi !
<nckx>Bonjour!
<nckx>attila_lendvai: If you're referring to some Web version, those are rather harder to grep & I'll need some help 😉
<reycoseb>j'aurais besoin d'un peu d'aide post install sur une marchine du marché public Dell / Latitude, je ne sais si d'autres sont dans le même cas.
<reycoseb>la plupart des choses marchent, sauf :
<reycoseb>- le bluetooh,
<reycoseb>- le thunderbolt
<abrenon>reycoseb: ça rappelle des souvenirs… problèmes de carte wifi par hasard ?
<reycoseb>- et j'ai mon ventilateur qui tourne a fond sans process qui chauffe
<reycoseb>pas encore testé, je suis en filaire :)
<abrenon>(and hi! btw)
<abrenon>ah, le ventilo j'ai pas eu, ça c'est vraiment embêtant
<reycoseb>oui :/
<attila_lendvai>nckx, the string "Debbugs User Guide" is present in both the online html and in the contributing.texi file.
<nckx>Ah, it shows up as *Note (debbugs-ug)Top:: here
<nckx>which is… hm, simple transposition bug?
*nckx doesn't know Texinfo good.
<reycoseb>so i translate my problem. I use a Dell Latitude 7410 bought with public market at University. This Dell run well with Ubuntu actually.
<reycoseb>I try an install of Guix, lot of thinks works, but ... there are problems with :
<reycoseb>- bluetooth not recognized
<reycoseb>- thunderbolt not recognized
<reycoseb>- fan run at medium speed without any reason (few process) ...
<reycoseb>any idea ?
<attila_lendvai>reycoseb, guix only has the linux-libre kernel, which only contain drivers that are free software.
<paul_j>reycoseb: For the bluetooth and thunderbolt, this could be a result of binary blobs being present in the ubuntu distribution, which are not licensed in a way acceptable to the guix project.
<paul_j>Not sure about the fan speed, but probably the same issue.
<nckx>attila_lendvai: That link works, though.
<reycoseb>ok
<nckx>attila_lendvai: You might be missing the emacs-debbugs package.
<reycoseb>i understand
<abrenon>the problems don't occur under ubuntu ?
<reycoseb>no, problem don't occur with ubuntu
<abrenon>then attila_lendvai 's drivers lead sounds like a good one unfortunately
<attila_lendvai>nckx, the link in the online manual points to this broken url: https://guix.gnu.org/en/manual/en/debbugs-ug.html#Top
<nckx>(Hence why I asked if you were talking about some Web copy…)
<attila_lendvai>nckx, sorry, i'm reading the manual online usually, and wrongly assumed others, too
<nckx>I'll take a wild stab at adding it to htmlxref.cnf, thanks.
***OJ[m] is now known as allilm[m]
<nckx>I'm out of my depth: doc/contributing.texi:1380: warning: no htmlxref.cnf entry found for `debbugs-ug'
<nckx>With https://paste.debian.net/plainh/9bee59c2
<nckx>(I'm aware that some of those subdirectories might be bogus, but wanted to make sure it wasn't due to any ‘missing’.)
<allilm[m]>Hello there! I'm having trouble building an ARM image for my RockPro64, Pinebook Pro or even just the example in the Guix manual. Fails on building efivar.
<allilm[m]>My qemu-binfmt is turned on for ARM.
<sughosha>I am trying to `./pre-inst-env guix refresh -ru gtk`. For every package it is asking "Would you like to add this key to keyring ...?". I don't know what to answer. How can I get this passed?
***allilm[m] is now known as OJ[m]
***roptat is now known as Guest8046
<apteryx>that's not from Guix
<apteryx>ah, sorry it is
<apteryx>it probably wants to save the PGP key used to sign some release archive
<apteryx>you should say yes
<apteryx>this way it'll automatically validate the signature of the release archive with it
***form_feed is now known as \f
<sughosha>Hi again! I am facing difficulty in packaging some applications which use meson build system but have cargo inputs. In build phase, it says "Updating crates.io index" and then "warning: spurious network error", and then "failed to get ... as a dependency of package ...". A help is appreciated.
<podiki[m]>I don't know the specifics, but there is no network access in the build environment, so probably you need to have those sources already (from a package in guix) or patch/unbundle them
<podiki[m]>someone with rust experience will know better
<podiki[m]>maybe there is a similar package already in guix you can look to see how it was handled?
<sughosha>I already added the needed dependencies in native-inputs, but still I'm getting this error.
<sughosha>I don't know of any such example yet :(
<podiki[m]>right, but it might not see them; e.g. meson can have submodules it will fetch and build, that you'd need to modify meson.build to do
<podiki[m]>to do meaning "to find the package inputs instead"
<sughosha>Hm, I only know to use meson-build-system, not familier about meson itself.
<sughosha>I am also not aware, if there is any argument like #:cargo-inputs.
<SeerLite[m]>Is it all Rust? Maybe you'll have to use cargo-build-system instead
<podiki[m]>I only know a little about meson, from my own packaging hacks :)
<podiki[m]>and nothing about cargo stuff
<sughosha>All of the package upstreams recommend meson in their README. I never tried cargo-build-system, I will try one now (have to learn first).
<balbi_>hi folks. What's the trick to get `guix' (well, gnupg under `guix') to recognize my nitrokey? same config works on arch, doesn't work on `guix'. I'm assuming I'm missing some service, but no idea what it is :-p
<sneek>balbi_, you have 1 message!
<sneek>balbi_, lilyp says: Guile-based graphics libraries are still on the experimental side, but you do have curses, sdl, and gtk in some capacity.
<reza[m]><balbi_> "hi folks. What's the trick to..." <- Hi balbi you need the pcscd-service-type, you find details here: https://guix.gnu.org/en/manual/devel/en/html_node/Miscellaneous-Services.html#Miscellaneous-Services
<alMalsamo>is there any way yet to download all source tarballs for a system definition to pull all code necessary for compiling every package later offline pulling from local storage where all the source code hsa previously downloaded to?
<acrow>alMalsamo: When you ask, "is there any way", I think, are you asking if this is possible? To that, I think, yes; but I don't think that is what you really meant. I think you meant to ask if caching of source was a guix feature. To that I would say, not that I am aware of. However, source code caching for subsequent builds is sorta already there. You just want to postpone the phases 'unpack and beyond for later offline execution.
<acrow>IIUC.
<balbi_>reza[m]: I'll give it a shot, thank you :)
<balbi_>reza[m]: worked like a charm, thank you :)
<alMalsamo>acrow: Do you know where in the source of Guix the feature for caching for subsequent builds is so I can try to study it and see how the fuck I can postpone for offline use?
<acrow>alMalsamo: It would require some digging around. I don't understand exactly what your motivation is but might it be easier to make your machine it's own substitute server and leverage local substitutes offline rather than caching and then building from source? Guix substitutes are verifiably reproducible.
<cbaines>alMalsamo, it sounds like you might be looking for guix build --sources=...
<cbaines>it's documented here https://guix.gnu.org/en/manual/devel/en/html_node/Additional-Build-Options.html
<cbaines>in particular, the --sources=transitive option is documented as: " This can be used e.g. to prefetch package source for later offline building."
<acrow>alMalsamo: cbaines has your answer. I didn't recall the --sources build option.
<alMalsamo>cbaines: Wow cool... kind of confusing to be a switch to the "build" command since it seems not to build anything, but it looks like it applies patches, but that is not the same as building really...
<alMalsamo>guix build --sources=transitive looks to be exactly what I need, but I would like to do this for an entire system not just one package at a time
<tissevert>bye
<unmatched-paren>hello guix
<unmatched-paren>how would i inherit from a package, then modify its arguments to add a new field?
<unmatched-paren>i noticed that my neovim package in my channel had -DPREFER_LUA:BOOL=YES in its #:configure-flags, which forces it to link to lua instead of luajit
<unmatched-paren>that's good for architectural compatibility, but (1) it's faster and (2) it contains some exclusive features that many neovim plugins depend on
<unmatched-paren>so i want to create a neovim/no-luajit package which is exactly the same, but adds that configure flag
<unmatched-paren>oh, found it: `(substitute-keyword-arguments ARGS ((KEY VAL)...))`
<jackhill>hmmm, `guix gc --verify=repair,contents` doesn't seem to be sucessfully reparing files (it tries to repair the same store items on a second run). Is this likely to be a hardware problem? https://paste.debian.net/1232259/
<jackhill>alMalsamo: I haven't checked, but I wonder if `guix system build` would accept the --sources=transitive option. Otherwise, you could probably get `guix build` to do your set of needed packages by passing it a manifest, but if `guix system` will do it, then it will save you the trouble of figuring out which packages your system needs :)
<jackhill>unmatched-paren: for you specific thing, we could use different options per-archetecture. I thought there was already something in the patch tracker for that…
<jackhill>unmatched-paren: ah yes, here's some discussion: https://issues.guix.gnu.org/53523#2
<unmatched-paren>jackhill: thanks!
<jackhill>you're welcome
<alMalsamo>jackhill: https://guix.gnu.org/manual/en/html_node/Invoking-guix-system.html this page does not indicate ANY switches for guix system build... It just says it builds derivations, which I guess means compiling all of the packages and adding them to /gnu/store right?
<jackhill>alMalsamo: oh, darn. Sorry I should have checked first, I was just hoping!
<alMalsamo>Hmm well this would be an amazing feature for offline installation
<nckx>‘OPTIONS can contain any of the common build options […] In addition […]’
<nckx>See https://guix.gnu.org/manual/en/html_node/Invoking-guix-system.html
<alMalsamo>nckx: Hmm okay this appears a lot further down on the doc page than the section describing guix system build, it is kind of confusing order, does this apply? Are you saying I can use --sources=transitive switch to guix system build and it will download source code + patches for every single package in guis system definition?
<nckx>Alas, ‘--sources=’ is under ‘The command-line options presented below are specific to ‘guix build’.
<nckx>Alas, my big-brained scheme to abuse ‘guix build --sources=transitive $(guix system build -d /etc/guix/system.scm)’ went nowhere in a hurry.
<djeis>Does anyone know if something's blocking an update of guile-netlink to 1.1.2, and if nothing is could someone point me towards the simplest way to offer the updated package I just threw together? (all I did was update the package's version/hash and check if it builds)
<nckx>djeis: Assuming you have git set up and it's the top commit, it can be as easy as ‘git send-email --to=guix-patches [at] gnu.org -1’.
<nckx>That's the minimum, but it would be nice to rebuild all dependent packages (guix refresh -l guix-netlink) and run the system tests (make check-system, although I'm not sure they all pass as-is).
<djeis>I don't have a setup for changes in-tree yet, so to test I just copied the package out to my private channel. I'll try to do that this weekend though, I think it'd be a good first contribution and it's directly related to some work of mine.
<djeis>Thanks for the guidance :)
<nckx>Thank you, and feel free to ask for help here or on help-guix [at] gnu.org if you hit any snags!
<nckx>And be sure to check out <https://guix.gnu.org/en/manual/devel/en/html_node/Contributing.html#Contributing> if you haven't yet.
<alMalsamo>nckx: So you think this is currently impossile with Guix? It would be a damn nice feature...