IRC channel logs
IRC channel logs
2023-05-13.log
back to list of logs
i'm doing something weird and trying to include a generated scheme file in the store (i.e. `(include "/gnu/store/my-packages.scm")`) with a list of packages into a module for packages. it's working in the repl, but when i do `guix build -L . my-package` i get an exception (and guix build isn't telling me what it is). does anyone have an idea of how i would get something like this to work?
katco you probably need a directory or otherwise (copy-file #$my-file somewhere)
lilyp: sorry, i don't understand, can you expound? `include` takes in a file-name. is the directory for some other purpose?
oh, maybe you're referring to the `-L` flag? i'm within a valid module in `$PWD`, and that's the module that is calling `(include "/gnu/store/my-packages.scm")`.
point being your build container probably doesn't see the file
even if, include by filename is not the right way to go for packaging things
yeah, obviously. this is for work and will never see the guix repository, and it's one of the reasons it's so weird.
i'm trying to remember: does the build container need to be able to see the included file where the package definition is?
Does anyone know where I could reference for adding a service that runs a mount script on startup? I looked through simple-service but am a little confused
I think you could make your own one-shot service
shepherd service
but I don't have an example at hand
Ok, I will look into one-shot services! thank you!
So I have a shepherd service written but my guix system reconfigure keeps failing. Is there something obviously wrong with my service? paste.debian.net/1280131
sneek: later tell civoldul strange, inspecting the jami tests by hands, everything seems fine
Got it.
sneek: later tell civodul inspecting the jami tests by hands, everything seems fine
Will do.
sneek: later tell civodul at any rate it's just the tests which are failing :-/
Okay.
Hello. Do you know where is the `warning' function in Guile? It doesn't look Guix specific but I can't find the right module.
ngz: it's in (guix diagnostics)
Ah.
Thank you.
hi guix
ngz: you can use a guile repl for this, `,m (whatever module uses warning)` to get in the context of that module, then `,apropos warning`
superkamiguru: you should remove the #$ around the command line, and each argument should be in its own string
jpoiret: Nice to know. Thank you. Anyway I it seems I cannot use `warning' in a (guix build xxx-build-system) module.
ngz yeah you'd typically raise an exception or simply format a message to the output port
I used (format (current-output-port) "warning: look out behind you!"), but I don't know if that's state-of-the-art.
ngz: yes, you should only use (guix build ...) modules in there, with rare exceptions
I would rather use (current-error-port), but not that in format you can replace (current-output-port) by #t (yes, shortcuts!)
note *
I meant (current-error-port) indeed.
My brains failed me when I typed the port name.
does Guix make any reference to BSDs?
because yesterday I was debating whether to go back to FreeBSD or try Guix
4 years ago
soundmodel: Guix hasn't been ported to BSDs
but I was confused why it targets Linux in the first place
because it could bridge the gap between them
if this became a popular project
if you want to port guix to bsd you'll probably encounter some problems with the kernel and libc
it aims to be a gnu system after all
yes but I think BSD is fundamentally better OS
so I don't understand why such projects targets Linux
what do you think is better about BSD? the kernel or the userland?
because I interpreted Guix to be an "universal operating system"
that it's purposedly designed rather than a hobby projected converted to mainstream OS
project*
I'm not an expert, but I've read that the code is higher quality
and it also has some newer features
soundmodel: Does BSD offer you a specific tool or work flow that cannot be found elsewhere?
no I just like the license and that I believe it has been made by smarter people than Linux
and I thought that it lowers the appeal of Guix
that it's based on Linux
soundmodel: why not try the full guix system in a vm?
but it cannot alter the design decisions inherent to Linux already
I think in the long term Guix should primarily run on GNU Hurd, which seems more smartly designed than Linux
There's a GNU/Hurd vm already
that I've not tried
but Wikipedia says: "When the Linux kernel proved to be a viable solution, development of GNU Hurd slowed, at times alternating between stasis and renewed activity and interest.[4]"
so maybe Linux is some sort of economical decision
Guest503: *currently broken though
I wonder if pyproject-build-system has a bug when it comes to using configure-flags
soundmodel: Linux is the more widespread kernel for hobbyists I would say, so I guess it was a natural choice at the beginning
yes but I thought that such project could lead people elsewhere
I don't think anyone would be opposed to Guix having support for BSDs, but that requires quite some work
that's why I think such flagship project would fit to the imago problem of BSDs
rather than strengthen the use of Linux
well, that's not the goal of Guix, the kernel is just a tool here
but obviously it becomes fixates to the choice of kernel?
fixated*
it's just the simplest, and you have to keep in mind that choosing a more niche kernel would have brought less contributors over the years
initially yes
but it could also change the popularity of things
it doesn't, anyone is free to add BSD support, it just takes time that contributors would like to spend elsewhere
okay so then we'd probably need to know the essential parts of the project
so that in theory it can be built on BSD
yes and that's probably the case driving for the Linux compromise
but I think it's a path that will be worse later on because the ground is looser
you'd need to port the daemon on BSD, that's the first step I guess. Then, you'd also need to add support for FreeBSD syscalls wherever Linux syscalls are used, and add support for having a different libc per-system
BSDs don't e.g. have problem of multiple incompatible distros
wdym by this?
no I didn't think one'd need to port it
I'm not sure you can download a binary built by some BSD and run it on another BSD without fiddling around
but just implement essentially the same thing using BSD
I believe you can as long as you are using FreeBSD and not NetBSD or something
but as it has only three major distros that are separate in design
then it's much easier than with Linuxes
not flatpak mess etc.
rather it's exactly the same as linux, but with less distros
and 1st class support for clang
and plenty of modern unix features because it's extended unix
which modern unix features exactly?
e.g. ZFS
you mean the "fuck the gpl" file system?
yes I do think BSD is a nicer license also
clang can be used to build linux
yes but with that it's more about the question of how much bloat Linuxes already carry
I also liked that fact that if your hardware is not the newest then BSDs can run possibly with 20-30% less resources.
with nearly the same features
and that it's a coherent OS
whereas Linux is mainly a kernel
Looks like you might want to run a BSD then
but these were just reasons why Guix could've made sense on BSD
if you like FOSS, I don't understand why you would want to help people make proprietary software? aren't the benefits of foss software clear? bsd license enables to make fundamentally bad software
no but it allows also integration of commercial interest without limiting free software
whereas GPL explicitly bans commercial sotware
in practice
yeah, Linux is a kernel, GNU is not. I think Hyperbora BSD re-license OpenBSD code to GPL?
but tbh I'm not sure what Guix offers over BSDs in the first place
I was just interested in the idea of an universal operating system
because of how most Linuxes suffer from incompatilibities
incompatibilities*
when Hyperbora BSD is a thing, i think Guix will make sense on there :\
most of the copyleft software does fine though, even without being backed by big corporations. take guix for example
git is failing to pull anything -- git: 'remote-https' is not a git command. See 'git --help'
was there ever a glibc 2.34 on guix?
I'm getting a strange error message:
madage: have you updated all your profiles?
what's the latest guix commit that successfully builds for you... I'm getting a 'provile.drv' fails to build... I just want something that works so it could be older
indigo-oce: what's the log?
jpoiret: you mean if all users have already upgraded?
no, no actually
but this user profile has and it's on the same commit as the system
jpoiret
jpoiret does that tell you anything useful?
jpoiret ohh... I think I know the issue...
ah but the software I'm torifying has not been upgraded, I'm carrying it from an older installation since it has been dropped from guix
is there a guide to remove gdm from guix?
(nvm I'll see if i can figure it out... I tried a while ago to no avail)
hey guix!
hi guix
indigo-oce: idk. maybe it's part of desktop-services by default?
mekeor[m] it is, and it's very annoying... no idea why anyone would use it... it's caused so many bugs and doesn't display colors properly on my screens (some screens are yellow, some are red, and none display all the colors)
it really shouldn't be there by default... you should have to select your dm in your config.scm
madage: that's the reason I think
that piece of software might be trying to load some libs from the profile which are compiled with glibc 2.35 while this one was built with 2.33. Thus the glibc 2.35 never gets loaded, causing the error
indigo-oce: you can (delete gdm-service-type) from the services
using (modify-services ...)
trying that now (building linux takes a while)
ah
I had not heard about
I thought hyperbola was a Linux distro
looks interesting
well there are two separate projects
but the rationale behind the BSD variant is here
using (modify-services %desktop-services (delete gdm-service-type)) in services list doesn't remove it for me (I just rebooted and it took longer to activate (I was in the middle of logging in to tty when it came on) but it's still there)
I see file-system-/var/lib/gdm in 'herd status'
A quick question about substitures: when a prebuilt package is available for an architecture on the substitute servers, is it because it was cross-compiled by the servers themselves, or do they become available to everyone once one user compiled them for the arch on their own device?
I suspect the latter would be a security risk, but just asking, as I'm not sure how this all works.
jpoiret: any tips on getting around this? I mean, besides creating + maintaining a channel with this piece of software?
is there a package with xorg ISO 10646 fonts ?
Any ideas on what is wrong there? I did it twice, got the error twice:
like some linker env var?
or rather, is this expected on guix? such as using '--do-no-upgrade [package]' is bound to break in the long run?
bordeaux seems to throw 502s for me, doe sit work for anyone else?
Also: the package in question is emacs-queue (it's a dep). guix weather emacs-queue tells me it's available on ci.guix, so why does the error lead to guix throwing an exception and exiting? It should just try another mirror and only exit when none work
mfg[m], it's down at the moment, hopefully it'll be back online within 30 minutes
Ah, okay :)
mfg[m] I am having the same error, see just above
With just guix pull.
Thanks for the info cbaines!
the --fallback option should get Guix to continue, even if it fails to substitute something
--fallback didn't help for me (still getting a 502), I'll wait a bit
thanks @grim` that helped :)
Is the server back online? I am still getting 502.
Kabouik: same here
not yet, it's still reconfiguring (running the guix testsuite at the moment)
Ah OK :)
bordeaux.guix.gnu.org should be back online now
where can i find /var/log/syslog ?
chomwitt_: those files (message, debug, secure, etc.) under /var/log/ are written by syslog.
next4th, you mean i must enable a service ?
yes, by default guix system has a 'syslogd' shepherd service running.
indeed i see syslogd running
that should be fine
but why one message that i see in /var/log/messages would appear in my tty1 while working ? (in a desktopless system)
where the output from? they may not send it to syslog
cbaines: i have got coordinator agent running on my riscv64 vf2, next is try connect it to the bordeaux right? my net to bordeaux is very slow though...
but i see it my /var/log/messages : vmunix [864.448737] xpad 1.4:1.0 xpad trying sending out packet , usb_submit-urb failed
the same message appead in my tty1
iyzsong[m], yep, I'll send you the details via email
s/appead/appeared
the slow connection shouldn't be a problem though, the machines I host have a very slow connection too
okay, thanks 🚀
chomwitt_: tty1 also is the default console, right? so some messages end up there, if you find that annoying try working on tty2. You should not have these messages there.
mfg[m], can i make a system change to see at boot the tty2 ?
or change the ''console'' tty?
I also remember that there were some things going on with shepherd, where some messages managed to escape it's redirection and ended up in console. But i'm not sure if this has been fixed in the meantime
i see a couple of messages also in my tty1's login prompt
i don't know the precise syntax, but console is a linux parameter, i.e. console=/dev/ttyAMA0 (don't use that tho, this is serial)
sth about not finding a firmware
Do you see these messages roght after boot?
yes!
Ah this is normal then
always the same two messages
maybe agetty has an option to clear the screen before asking for username and password, this should be an option of agetty-service then
but a couple of times like today i saw a message in my tty1 while working
yeah, i see those too, unless you 'quiet' the kernel, it will output message to tty1
that's expected, kernel will output message when something happends
afaik linux will always log to dmesg and console
Thanks cbaines!
mfg[m], next4th so i will try to search in kernel boot options and agetty options
though i didn't know you can use quiet :D
by console we mean just a tty that kernel uses for output or there is more ?
console means the parameter that gets passed to linux when the bootloader starts it
it is literally 'console='
mfg[m], i see. cool
so it could be even a printer like in the old days.
just the primary output stream of the kernel ?
here look for the kernel-arguments field
i think this is what you need
i guess you could also use a printer, yes :D
mfg[m], i read your link. are there somewhere examples to see of various system config settings ?
as i see it is there a logic in presenting in the user a tty in the same tty that we wont to use as kernel console ?
s/presenting/presenting a login tty
if your use case is to only work headless in tty1 then i think it's actually a bad choice, but most users start a graphical session so they won't actually notice
also i wonder (a tty tangent question) if i want a certain tty to have different permissions can i do (should i do) that in the config.scm ?
iyzsong[m], I'm having gpg problems emailing you, the public key I got from Savannah has some expired subkeys
i don't know what you mean with "permissions for a tty" but the agetty service can be configured differently depending on which tty it is running.
cbaines: oh, let me check my key
mfg[m], i mean like chmod g+wr /dev/tty7 for example
as for config examples, here is mine:
this may help you, but i'm not sure. Other os configs can be found with google i suppose
chomwitt_: what does that do? I mean i don't see why i would want to directly write to a tty device.
ACTION likes to think of a login manager's gui session as an option that you can add on top or in parallel of a gui-less interaction not in conflict with it..
mfg[m], i needed to start X
start X without startx or xinit
as a user i mean . and X wanted to access tty7
i wonder how xinit grabs tty7...
Hi, is there a way to check if guix is correctly getting substitutes from a "guix publish" server on the LAN ?
mfg[m], thanks for your config examples
cbaines: my gpg keys should be updated now
chomwitt_: okay i see, i don't know how you would accomplish that
in my config you can see, that i run different processes depending on which tty i'm on, so my default session on tty1 starts my graphical session, but tty2 is without gui and tty3 is without gui and doesn't use my normal shell (which is zsh)
Does anyone have a link to their dotfiles for setting up piem/public inbox for the guix mailing list?
iyzsong[m], I've emailed iyzsong@member.fsf.org now
got it, thx
I'm busy for the rest of today but do let me know how you get on, and I'll catch up replying to emails later :)
cbaines it's building now!
np, thank you
hello guix
6bc3e3f9ba commit by switching cups package to cups-minimal in cups-configuration broke "find printer" with "Unable to execute ippfind utility: No such file or directory"
ippfind is not included in cups-minimal
are users supposed to explicitly set normal cups in cups-configuration?
muradm: the commit message said it fix a serious issue which prevents user from login.. does install cups as a system package make "find printer" useable?
may report a bug to the mail list (bug-guix)
next4th: yeah, looking at commit and #63198 issue.. i don't understand the issue "loop on authenticating my user".. it was working before just fine
US