IRC channel logs
back to list of logs
<podiki[m]>anyone familiar with vdpau? mesa has drivers in lib/vdpau, but that maybe isn't standard? eg. vdpauinfo won't find them <podiki[m]>no, I guess that is the typical directory, not sure how vdpau and such is supposed to find them though <apteryx><unknown-location>: warning: possibly unbound variable `ungexp' -> a bit hard to figure where that comes from
***jesopo is now known as jess
***unwired3 is now known as unwired
<apteryx>pkill9: it also includes a 'auto-suspend?' config option to gdm-configuration that can be used to disable this behavior <zamfofex>I think I figured out how to use ‘git send-email’! 😄 Hopefully I did things correctly. <Guest3>how do I remove an item from a guile object, specifically I want to remove services from the %desktop-services obj, where would this be in be manuals? <demotri>Guest3: (modify-services %desktop-services (delete avahi-service-type)) <demotri>Guest3: search for "modify-services" in the manual, and you will find some examples for modifications and/or deletions. <Kirtai>Noticed that calibre is far behind currently release but gui refresh doesn't pick up the newest release. <Kirtai>The package is to complex for me to understand though so I can't figure out what's going on <Guest3>is there an official guide to removing gdm from guix... I tried replacing %desktop-services in config.scm with `(modify-services %desktop-services (delete gdm-service-type))`, and after reboot, it still loads gdm <abrenon>do you mean you reconfigured the system and it went well and all, but after the reboot the new entry was missing from grub ? <Guest3>I think I'm using the new system, I didn't check which guix generation I'm on <abrenon>if instead of `guix system reconfigure` you issue `guix system build` on the same config file, it shouldn't do anything but simply print the path to the new system in the store <abrenon>I suppose you can manually check there that GDM is indeed missing from it <abrenon>if it's taking a while, it means that it wasn't previously built <abrenon>which means that you haven't reconfigured properly (because that's build + switch to the new version) <abrenon>if you haven't previously built, then of course simply rebooting can't have done anything to the configuration <abrenon>the config.scm of your system isn't something that is interpreted dynamically at runtime like a config file, in guix, it's really the "source file" to your OS, which must be recompiled when you want changes to apply <Guest3>I was just removing something from the previous build so I didn't think it was weird <Guest3>now maybe it's updating a bunch of packages... <abrenon>true, but actually it still making a new version of the system, editing links and everything, so even if it doesn't have a lot to build, a reconfigure should take some time <abrenon>(caveat while I think of it: have you chosen a replacement DM to GDM ? I'm sure there are ways to simply drop to a TTY but last time I tried to merely disable it while the system was on I got kind of stuck on a black screen unable to switch back to a TTY, so I don't know for sure but there may be something to do to tell the system you simply want a regular TTY if you haven't put SDDM or something in <Guest3>maybe, that's why I want to know if there's some official process... cause I saw gdm in a few places in in the code, it looks a bit more integrated... <Luk6655>I'm having a weird problem... I'm writing a package in custom channel B, I found out it needs a dependency from channel A (both are custom channels). However when I add #:use-module (package in channel B) it comes up as no code for the module. But if I use repl I can indeed use that package. (package in channel A already uses gnu packages too). <Luk6655>I think this is the first time I'm trying to use a module from another channel in a custom channel(other than from guix, or the channel being modified). Is there something "special" one has to do to make it work? <abrenon>sorry, well to factually answer your question: not that I know of : ) <Luk6655>I found the section in the manual about "declaring channel dependencies" I thought it is optional, but perhaps one has to do it? <abrenon>Luk6655: I haven't tried several custom channels so far <Luk6655>ok, no worries, at least I have some idea to try :-) <abrenon>how do you use your channels ? -L on the command line ? or GUILE_LOAD_PATH ? <Luk6655>I just add them to my ~/.config/guix/channels.scm, I then do guix pull, and then I just use the packages in guix shell <pkill9>Luk6655: you dont have to declare them <Luk6655>hmm, yes they do work in repl as long as I use (gnu packages) <Luk6655>I just noticed custom channel A already has a .guix-channel file with one dependency. Perhaps this makes a difference? (the dependency is another channel, not B) <Luk6655>I'm going to try adding channel B as dependency <Luk6655>wow, it did work with channel B listed as a dependency in .guix-channel <Guest3>... haven't checked it's contents yet, trying to get xinit to work first <abrenon>Guest3: what do you mean ? did it print a path in /gnu/store at the end of the build ? <Luk6655>Guest3: about gdm, I'm not sure if someone mentioned it already, but you can use sddm instead, if you want I can dig out my config(I'm on another machine) to show you <zimoun>abrenon: I have watched the video “rush” about Taming the Python; neat! (I have missed the IRL one, arf! :-)) <abrenon>(so the videos are already available ?? ^^) <zimoun>Not yet. As soon as possible. :-) <zimoun>Have someone tried to package the Rust front-end of GCC? apteryx maybe? ;-) Because Rust will be part of Linux for 6.1 (soon), IIUC. <Luk6655>Guest3: I have this: (modify-services %desktop-services <Luk6655> (delete gdm-service-type)), and then I add sddm-service-type <abrenon>I thought so, I was surprised that you could already watch them : ) <abrenon>wow "Rust will be part of Linux": I have no idea what this can mean (or rather the only meaning I can give to the sentence are weird and scary) <Luk6655>I wish there was some way to continue a failed build after making some changes (as a test at least). I have a package that takes a very long time to build, then it often fails on the runpath check etc. It would be cool to be able to skip the whole build phase and use an already built temporary folder. *abrenon hates python test stuff trying to download resources from the network all the time <Guest3>Luk6655 I would like to see that config if you don't mind (sddm), I would rather use startx, but my main issue atm is gdm messes my monitor display and it seems like a gnome thing so I wanna exorcise gnome from my system <Guest3>abrenon I'm looking in my current system profile & I don't see gdm <stikonas>Rust will be optional in Linux, so that shouldn't be a problem even from bootstrapping perspective, you can build Linux without Rust, build mrustc->rustc chain and then build Linux with extra Rust drivers <abrenon>Guest3: current meaning the one you've just built ? or the one running (/run/current-system) ? (because, if the latter, then GDM shouldn't be running then which means you have already solved your problem or I'm not following you) <Guest3>... but when I run `pidof gdm` it gives a pid, so it's running <Guest3>I'm in /run/current-system/profile/bin/ <abrenon>ah, yes, it doesn't necessarily have to be in your path <Guest3>which gdm gives no results, so yes <abrenon>I thought you meant you had checked there was nothing from your current system pointing to GDM <Guest3>i gotta learn this shepherd thing i guess <abrenon>yeah, I don't know either how to make a link from what shepherd reports and the actual files, that bothers me <abrenon>so I'd be glad to hear about what you find <Guest3>" 'shepherd' is the daemon, 'herd' is the program that controls it" this is already backwards land... why does the herd control the shepherd... ahhaewpfuhawpef <pkill9>'herd' isn't controlling the shepherd, 'herd' is the command to 'herd' the daemons <Luk6655>does anyone know how the build systems decide what to include in the RUNPATH when running the runpath check? I have a number of packages specified in the inputs, but only few are included in the RUNPATH... Does anyone know how do I add another package from the inputs in runpath? <rekado>Luk6655: gnu/packages/ld-wrapper.in is the ld wrapper, which is used to add -rpath arguments to the linker invocation. <Luk6655>I see, I saw some package adding stuff to rpath. I wondered what is it used for... now I know. So I have to find that package again and replicate what it does. Thanks <polyex>shepherd should be cli and sheepdog should be daemon <Guest3>i know the pid of gdm, do you know how to find what process started it? also looking for herd/shepherd logs <Luk6655>rekado: do you know if there is some standard way to add something to rpath with cmake? <rekado>Luk6655: our ld wrapper should do the right thing without change; some packages will override the rpath, though. An example is fontforge. <Guest3>gdm is nowhere in herd status, is it possible gdm is managed by something else? <rekado>we added a build phase there to remove “set_default_rpath” from the cmakelists.txt <Guest3>`pkill gdm` results in it being launched a few seconds later... <Luk6655>rekado: interesting I see it uses cmake-build-system. I'm using python-build-system, but it uses cmake under the hood, perhaps I need to try this and see what ld wrapper sets it to. However witht he default config it seems to set it "almost" right. Just one folder is missing. <Luk6655>I just looked in my top level CMakeLists.txt and it doesn't seem it contains set_default_rpath so I may already be using the ld wrapper. I just need to figure out a way to add one extra thing to it <attila_lendvai>is there a way to get a path to the package build output from a .scm script that holds the package object? <attila_lendvai>IOW, to get the output of `guix build mypackage` from a .scm script <rekado>attila_lendvai: G-expressions are made for this. <attila_lendvai>rekado, but how do i request a Gexp to be built (? execued?) from a simple script? is there an example somewhere? <attila_lendvai>i guess i could extract it from the implementation of `guix build`, but i'm hoping for simething smaller <minima>there's a couple of small scripts in my .local/bin that i'd like to include in my home configuration; if i simply add them as i do with config files, the scripts then are there, but they're not executable - understandingly so i suppose <minima>should i think of creating a full-fledged guix package for each script or is there a particular gexp that i should be using for cases like this?
***wielaard is now known as mjw
<apteryx>zimoun: no. haven't touched rust since mrustc bootstrap update to 1.39, which means a year ago or so. the rust gcc thing isn't ready yet <apteryx>or I'm not up to date with its development <apteryx>Guest540: gdm is known as 'xorg-server' in Shepherd <apteryx>I mean, the shepherd service in guix that allows you to restart gdm is 'xorg-server' <zimoun>apteryx, about rust gcc, I have read that they started to merge to GCC. So, if not fully ready, maybe enough to simplify the bootstrap story. ;-) <polyex>cant wait to start learning rust <apteryx>zimoun: I'll leave it to you to find out ;-) <zimoun>Well, Rust will be part of Linux kernel soon… so. :-) <Guest3>i have in my config.scm service list (modify-services %desktop-services (delete gdm-service-type)), when I load this in a guix repl it says "imported module (gnu) overrides core binding 'delete'" <Guest3>abrenon idk if you're still here <Guest3>looks like the removing of the service doesn't work <Guest3>"imported module (gnu) overrides core binding 'delete'" <abrenon>provided you build the system corresponding to this config.scm and then reconfigure with it, I see no reason why it would remain <Guest3> I ran (define os (load "config.scm")) and the (operating-system-services os) included the gdm service, so the processes listed in the manual (using modify-services or 'remove' + lambda) don't work. <Guest3>maybe i can share the config, it's on a diff machine <Guest3>or maybe i can't cause it's got nongnu stuff... <Luk6655>does anyone know what do I need to do to be able to ,use(guix) from guile launched in bash as opposed to guix repl? <abrenon>no come on that doesn't apply to links to snippets <abrenon>(now, if the problematic part comes from nonfree software, we may be unable to understand why it's failing and therefore to help you, but that's another matter) <Luk6655>also, any idea how to find out where functions are defined? For example invoke? <abrenon>Luk6655: no, sorry, I can barely use the REPL <abrenon>the best way to find functions defined in guix is to grep a clone of the repos <Luk6655>this works if you;re looking for something that isn't used much, however invoke is used in almost every package <zamfofex>Guest3: I feel like you need to either share your config file or more information (e.g. parts of it) to be able to get more help. <Guest3>bit awkward, in tty on the machine <abrenon>Luk6655: in that case I usually grep the definition of the value: grep -r '(define.* the-name-I-m-looking-for' guix/ gnu/ <zamfofex>Luk6655: Maybe there is a flag you can pass to grep to tell it to exclude ‘gnu/packages’, or you can just visually skip it when reading the output. <Luk6655>it must be defined with different syntax, because the search for 'define.* invoke' comes blank *abrenon is recompiling spacy for the third time today (and not liking it) <Luk6655>I might just copy all the use-module statements from one of the packages that use it and paste all of them into repl <abrenon>too bad, maybe it's a special syntax thing <abrenon>there is stuff wich is more like macro ~ templating and not proper value definition <abrenon>in that case, at least adding the space ' ' in front of the name should be enough if as I suppose the other occurrences of invoke are still used like a function, right after an opening parenthesis '(' <Luk6655>zamfofex: yes I found it too, by pasting 20 use-module statements... <zamfofex>abrenon: ‘(define (invoke program . args)’ <abrenon>ohhh right, for once it's ont a lambda <abrenon>sorry… : ( that was a bad idea to assume there'd be a space in front of the name <Luk6655>this is like no1 missing feature of guile for me right now... <abrenon>yeah, well, sometimes you have to scratch a bit until it works <abrenon>I'm sure the knowledgeable people using the repl can do much better <zamfofex>Luk6655: I found it by piping grep’s output to ‘less’ then searching for ‘define’ within ‘less’. <abrenon>but since I hardly use it, I have no better option <graywolf>Hello, is it possible to install guix without a root permissions? Official documentation seems to assume root access. Can I somehow just install it into ~/tmp in order to simply try it out before deciding if I like it or not? <abrenon>unlikely because guix requires a daemon, which must run with root permissions <abrenon>once guix is installed, you may install packages as a simple user, but you need root to install itself <abrenon>you can still run it in a VM or a container where you can be root, I guess <dlowe>must it run with root permissions, though? One could own a gnu store in one's homedir <abrenon>but it does special remounting on /gnu/store to enforce that no one else but the daemon can modify it (even root, I tried once ! ^^) <abrenon>so I'm pretty sure there are good reasons for requiring root <dlowe>yeah, you'd lose some of the nice guarantees <dlowe>graywolf: guix has a pretty tiny footprint and is easy to remove from a system if you want to just try it. <dlowe>I was interested in the whole guix system and I went the vm route <abrenon>so I guess there is a way to make it run without root permissions but I have no idea how <jpoiret>Luk6655: here is a snippet procedure that will find which module exports a binding that is available in the current module <jpoiret>"(define (find-var var) (filter-map (lambda (m) (and (module-variable m var) (module-name m))) (module-uses (current-module))))" <abrenon>ahh, now we see people using the repl : ) <graywolf>Are the packages allowed to contain/install setuid binaries? If yes, how is that coupled with installing packages as a regular user? Sorry for possibly stupid questions, but I really like the idea of Guix so I want to know what I'm getting into :D <jpoiret>graywolf: the store cannot contain anything setuid <jpoiret>if you're using guix system, you can specify which binaries you want to be setuid'd <jpoiret>(and basically they'll be copied out of the store in a special directory and chmodded) <jpoiret>on foreign distros, you'll need to do so manually <graywolf>"foreign distros" is guix term for "regular distro with guix installed" right? <graywolf>Great, thanks everyone :). I will start with a container and then possibly try it the foreign way if I like what I see in the container. I do not see myself going the guix system route sadly. <abrenon>guix is useful enough even as a package manager <graywolf>I just hope I can get it working on alpine :D I expect it to be an interesting journey <abrenon>I use it to make my life bearable on a machine at work which is running ubuntu for… reasons <abrenon>what init system is it, again ? openrc ? <graywolf>Yep, openrc with musl as a libc. I admit I fairly like it. Very lightweight and simple. <graywolf>I assume the guix system is always glibc with systemd? <abrenon>used to love it (but I was missing some packages I wasn't able to add myself) <dlowe>the guix system uses a service manager called herd <abrenon>it's written in guile as the rest of the system if I'm not mistaken <abrenon>when you get it working on openrc, be sure to share the service file you'll have written ! <jpoiret>you may have some issues with containers though, since updating guix to the latest version is a bit costly <abrenon>and you can draw inspiration from the existing ones in etc/guix-daemon.* in the repository <dlowe>I would really experiment with a vm - gnome boxes is a very easy vm manager <graywolf>Right, because I will need the daemon working. Can do (assuming I can do it :D ). Where to thought? Mailing list? <Korven[m]>Hello, I'm Korven. I'm currently playing with Guix in a VM, and trying to replicate my Nix configuration style a bit. Nice to meet you guys :) <abrenon>graywolf: yay we use the guix-patches mailing list to submit git patches <Luk6655>is there anything in guile like invoke, but returning a list of strings from the output of the thing it invoked? <Korven[m]>Do the Guix substitute servers have mirrors for India? Or generally places other than the US? <Luk6655>Korven: Judging by the name one is in France <Korven[m]>The bordeaux one? I do have it enabled, but I only hit speeds up to 200 KiB/s <dlowe>Luk6655: you mean it writes thing to standard output or it returns some values? <Luk6655>dlowe: I mean to return the output as a list of strings <Luk6655>or even one string, which I can then split <dlowe>Luk6655: you should be able to just call the function in the repl <dlowe>let me start over. Which "invoke" do you mean to imitate <Luk6655>ok, let me go into the detail a bit. I have an executable I need to call (readelf, but that doesn't really matter). When I cal that executable it will output some text I need the guile code to receive, tokenise into a list of srtings, add one additional string and then call another executable with it as a parameter <Luk6655>the bit I'm stuck on is how to run this executable and get its output in a guile variable <Luk6655>when I run invoke, I just get true or false, did it fail, or did it succeed, no text output <Luk6655>the text gets printed on the console rather than get passed to guile <dlowe>guile itself looks like it only has the posix primitives. There's some libraries that wrap them in more palatable form. <apteryx>dlowe: it's called GNU Shepherd to be accurate :-) <dlowe>if you don't want to use those, you could use (system "readelf >/tmp/foo") and then read foo. Not that nice, though <Luk6655>dlowe: it is some solution, but I doubt this will work <Luk6655>I thought redirection is a shell feature <Luk6655>well, I might find a different workaround
***Dynom_ is now known as Guest4752
<Luk6655>so that might work, I had some problems with system in the past I forgot what it was exactly, somethihng about being unable to pass multiple arguments <Luk6655>I ended up having to create a script file and call that <dlowe>oh, there are all kinds of problems with system :p You can't set environment variables, you're vulnerable to injection and shell quoting mishaps <dlowe>but it looks like your other options are using a library or using fork, dup2 to a pipe, execle, read from a pipe, all yourself <dlowe>if this is in guix it's probable that there's some util function that will do it <Luk6655>I'm going a completely different route now, I was planning to use readelf to add to rpath, but of course it would need to read existing rpath first which seems like it isn't easy thing to do at all. I can't add another dependency to the project because it is a huge thing with hundreds of CMakeList files. Now I think of just symlinking those libs in th eoutput folder and deleting them after. <dlowe>still uses a shell though. Yuck. <Korven[m]>and we're down to a 100 KB now. Guess my Guix dream ends here :D <Luk6655>dlowe: actuallythat pipe stuff might do what I need, it would be much better than the symlink <apteryx>on my x200, reboot rarely seems to succeed; it hangs on a black screen. Does it happen to other x200 users? <lilyp>anyone know a potential cause for ghost keyboard events during boot? <jpoiret>Luk6655: you can look at the invoke definition to get some inspiration <Luk6655>thanks, I'm trying to use the pipes, it seems to work in the repl as expected so hopefully I can get ot to do what's needed in the package definition <rekado>Korven[m]: the server in Germany is well-connected, but peering makes a big differences in what bandwidth you get. <rekado>(the one in Berlin, Germany is ci.guix.gnu.org) <apteryx>lilyp: what do you mean by ghost keyboard events? <lilyp>apteryx: Grub sees a down arrow followed by an up arrow without there being any physical key that could be pressed to achieve this <apteryx>weird; that'd point to a hardware failure to me (keyboard) <lilyp>the only connected keyboard works over bluetooth – no way that'd interfere in grub <lilyp>speaking of which, would it even be possible to get bluetooth into grub? <rekado>Korven[m]: IIRC there’s a mirror in China and another in Russia <Korven[m]>One more thing, do I have to specify the substitutes separately for Guix Home? <lilyp>do you mean separately per user or separately per invocation? <lilyp>if per user: simply drop the right file in ~/.config/guix <bdju>did guix ever get parameterized packages? <Korven[m]>I have a channels and a system scheme file in my ~/.config/guix folder <Luk6655>the way I did it was to use the root's profile as system (using actual root login, not sudo) and then normal user for user packages. However this is unlikely to be the recommended way. <Luk6655>so /root/.config/guix/channels.scm was used for system, and /home/user/.config/guix/channels.scm ws used for user's channels <Luk6655>however, I was told this is not how most people use it <Korven[m]>i was just wondering if Guix Home would pick em up, seems like it will <lilyp>hmm, I don't think this'll be allowed tho <lilyp>you need admin privileges to authenticate a substitute key <Korven[m]>where do you specify Guix Home substitutes and channles then? <lilyp>well, duh, but that'll change the keys for everyone <apteryx>lilyp: I don't think it's possible for GRUB to see bluetooth devices <lilyp>still, i find it weird that I'm seeing these movements at all *jackhill wonders if there's some uefi bluetooth manager <Korven[m]>what if i'm the only one using the system tho <jackhill>lilyp: sorry, I have no idea about your extranious inputs <minima>but the resulting file (the symlink) is not set as executable - so i assume i'm not doing this the way i'm suppose to <Luk6655>sorry, I don't know enough about gexp's to help <Luk6655>btw, is there some documentation about building guix for embedded hardware? <Luk6655>I have this rockchip based SBC (single board computer) that I use buildroot to create firmware images running Linux, I would like to explore how to run guix on it in a way where all derivation and building would happen on a PC, and an firmware image would be created that can be written to the board. <Luk6655>I heard some people did run guix on some pine products, so if someone knows any resources about it please let me know. I have to pop out, but I'll read any answers later(if there are any).
***antimeo is now known as normalmeo
***mark_ is now known as mjw
<lilyp>minima for the record, i don't recall the full snippet, but it does contain #~(substitute* #$(local-file ...) (("/bin/sh" cmd) (string-append #$bash-minimal cmd))) <lilyp>there should be an example in the manual replacing vi with emacs :) <apteryx>hmm, either I'm silly or something doesn't work: term1: iperf3 -s 127.0.0.1 -p 33002 // term2: netcat -u localhost 33002 -> nothing <apteryx>I'm trying to validate the procedure to test if a UDP port is listening <lechner>apteryx: looks like your resolver prefers ipv6 <lechner>apteryx: what happes if you run iperf3 -c 127.0.0.1 -p 33002 (the client invocation) instead of netcat <lilyp>lechner: for the record, the keyboard itself is working, but grub sees inputs that aren't there <lilyp>just enough input to not auto-boot that is <lechner>lilyp: sorry, i misunderstood. maybe you could cover the ps/2 connector in the back, if you have one, with aluminum foil. or is it a laptop with a usb touchpad? <apteryx>lechner: even if i use netcat for the server with 'netcat -l -u -p33002', it doesn't work <lechner>apteryx: maybe localhost gets resolved to ::1 instead of 127.0.0.1 <apteryx>host localhost says address is 127.0.0.1 and IPv6 address is ::1 <qzump>I modify installation-os's services option, but even re-assigning <qzump> it to the same value gives "error: more than one target service of type <lechner>apteryx: netcat will pick just one, i think. how about using it with -v ? <Cairn>I normally do C-l, but I'm writing a script and got this <lechner>apteryx: is 'netcat' the same program as 'nc'? <Cairn>Wow, today I learned "clear" is an ncurses command <apteryx>there's more to learn: you can achieve the same with C-l <dthompson>haha I remember learning the same thing when I started using guix <lechner>apteryx: i believe the iperf3 server and nc both listen. maybe you need the iperf3 client and nc? <apteryx>lechner: still, 'nc -u localhost 33002' doesn't print anything <Cairn>apteryx: If that's to me, you missed what I said earlier. <Cairn>I normally do C-l, but I'm writing a script so I need the equivalent <apteryx>I wonder if you could not send the special characters instead <Cairn>I wondered that too. I tried inserting the control character directly, but got a strange error <apteryx>lechner: what I really wanted to test was if the XDMCP port UDP 177 was listening to any interface or just localhost <qzump>My issue's solved by reading the manual. <apteryx>ss -ltun tells me it listens to any interface: 0.0.0.0:177 <lechner>apteryx: not sure how to help with the greater question, but i see connectivity (on TCP) with netcat -l -p 5201 --tcp localhost and iperf3 -c localhost <apteryx>UDP works too when testing with iperf3 <apteryx>but here I wanted to test the UDP port of another server (XDMCP) <podiki[m]>does anyone use vdpau? I wonder if that needs a search path VDPAU_DRIVER_PATH (since vdpau drivers are in eg mesa's lib/vdpau, no in libvdpau's lib/vdpau, and pkg-config points to libvdpau's path as default search) <minima>lilyp: hey, thanks! i'll use that example as a starting point then, excellent
***f1reflyylmao is now known as f1refly
<Luk6655>what is the recommended way to submit binary files? It seems I found a bug in guix's runpath validation <Luk6655>probably base64 encoded in an email? <podiki[m]>why do you need to send the file? just the package (or recipe in progress) that fails at that step would be better I think