<whosit1>Never seen it take minutes with sane settings on a 2tb hdd (--key-size 512 --iter-time 500). Might check your syslog / smartctl for disk errors. Sounds like it might be failing. ~10 seconds for me usually, every once in awhile it takes 20 seconds. Never a minute.
<sozuba>Is it possible to generate config of the current guix install? if so, what's the command? Is there a guix equivalent of nixos-generate-config? I have never used nix, I've been with arch, gentoo and void. I am moving to guix.
<sammm>sozuba: I just use `guix system describe`, and cat out the configuration file
<abrenon>but I'm completely new to the live system generation parts in guix
<abrenon>which is why I was fishing for some direct hint in case anyone here knew their way around
<abrenon>ChocolettePalett: and of course, part of the RAM is also just used by processes and not mounted so…
<abrenon>I think it's rather an upper limit of the amount one can claim on each mountpoint
<gabber`>the docs say tempfs lives in *virtual* memory. and `df` checks file system space.. what are you actually trying to do? does your root partition run out of space? or are you running out of RAM?
<davidl>hi, Im trying to build a specific output of a package but can't figure out how to do it with guix build command. I tried using the expression syntax but Im probably doing it wrong. Can someone provide a simple example?
<gabber`>i'm not sure this actually works with `guix build foo:out` -- it does with `guix install foo:out`
<HiltonChain[m]>they are defined in one build process, just installed to different places
<davidl>HiltonChain[m]: according to the docs, the option argument of --expression, can be a zero argument monadic procedure that returns a derivation as a monadic value (which is then passed to run-with-store), or it can be a g-expression (then passed to gexp->derivation). Are you sure it's not possible at all?
<davidl>(it can also be just a package like "(@ (gnu packages guile) guile-1.8)" )
<davidl>I thought I could do something like -e='((@ (gnu packages base) coreutils) "out")' but it doesnt work
<davidl>HiltonChain[m]: Thanks for your help. I found a partial solution that works only in most cases, as long as there isn't a reference to #$outputs:<some-other-output> in the package definition. This will return the out output only: guix build --expression='(begin (use-modules (guix packages)(gnu packages base)) (define-public coreutils-out (package (inherit coreutils)(outputs (list "out")))) coreutils-out)'
<degauss>Hi! Does anybody know how to make libgcc.so, libstdc++.so etc. available in an FHS-compatible container? I tried (as suggested by the Guix blog post) with `guix shell -CF gcc:lib`, but it says that package `email@example.com` lacks output `lib`. Using Guix 44bbfc24. Thanks a lot!
<gabber`>the output is called "static", so it's more like gcc-toolchain:static
<sughosha>Hi all! I am having some problems with mounting filesystems from system configuration. I have NTFS partitions but they mount read-only. Another problem is that on boot the filesystems get mounted but if I try remounting then the UUID in the fstab has one zero escaped. Here is how I configured: https://paste.debian.net/1283720/
<nckx>sughosha: No idea, really, but anything looking relevant in dmesg?
<ChocolettePalett>sughosha: I have once heard that there were two implementations of ntfs driver, the in-kernel one could only read data, and there was a buggy one which could read and write stuff
<sughosha>ChocolettePalett: If I unmount and mount manually, like "mount /dev/sda5 /media/shared", then it will be read and write. Only when it mounts on boot, then read-onl.
<sughosha>nckx: dmesg says "File system check on /dev/sda5 failed". But it is mounted at last. I don't understand.
<sughosha>I also configured initrd-modules with 'ntfs3'.
<degauss>sughosha, I had some issues with NTFS (I got the "Unrecognized mount option windows_names") which I avoided by using the `ntfs-3g` package in operating-system/packages. See also <https://issues.guix.gnu.org/56383>.
<nckx>ChocolettePalett: <I have once heard> True, but now outdated. There are two in-kernel and the one being used here (ntfs3) is probably better than the out-of-kernel (FUSE) one at this point.
<nckx>sughosha: Nothing from the ntfs3 driver itself? Can you manually mount (full umount+mount, not remount) the drive rw with -t ntfs3?
<sughosha>degauss: I already have "ntfs-3g" package in my system configuration file.
<sughosha>ncks: with -t ntfs3, it is mounting, with "rw" permission. It seems that because I mounted with "sudo" I (user) don't have read and write permission.
<sughosha>This is the permission for a normal file: .rwxr-xr-x.
<nckx>You can probably work around that with your preferred combination of -o uid=, gid=, and/or mode= .
<nckx>But OK, seems like the bug is in Guix not mounting it rw when the kernel driver can handle it.
<nckx>If nobody here can help, could you file a bug? Just describe the problem in a mail to bug-guix at gnu dot org.
<sughosha>The main problem in my case is that the UUID I want to mount is "5234ED0D34ECF53F" but it in /etc/fstab the UUID is "5234EDD34ECF53F" (without zero). Even though the partition is mounted at boot, if I unmount and remount with "mount /media/shared", it says "can't find UUID=5234EDD34ECF53F." (zero is missing).
<bjc>that's the entire string for the call to ‘format’ in ‘ntfs-uuid->string’
<bjc>just so you don't have to figure out where to interpolate it =)
<sughosha>flaminwalrus[m]: On boot, the partition is mounted with ".rwxr-xr-x". If I unmount and remount with "mount /dev/sda5 /media/shared" (without any -o ... options), it mounts with ".rwxrwxrwx" 🤔️
<sughosha>nckx: Now rw is shown. The difference is that manual mount has "nosuid", "nodev" and "allow_other".
<sughosha>Maybe "allow_other" is what I need to have user read/write permission?
<nckx>Sounds plausible. (I haven't mounted an NTFS this decade or probably the last.)
<bjc>nckx: with ‘~2,0x’ i get ‘\x0D’ instead of ‘0D’. i don't know why. the docs say that position is PADCHAR, which implies a character in that position, not an integer, but it's seemingly interpreting it as an integer
<nckx>mirai: I'd guess (but haven't checked whether) someone wrote a sexp equivalent to the stringy version, but I guess it came too late.
<bjc>‘~2,'0x’ works, though, and is probably the best option
<podiki[m]>anyone know why our freetype is built without brotli support? (as simple as adding an input)
<podiki[m]>increases closure from 79.9 MiB to 82.3 MiB, seems common to have it enabled; needed for godot 4 update
<mirai>lilyp: I think I've figured out the reason why gdk-pixbuf fails to build
<nckx>podiki[m]: That's for WOFF fonts, right? SGTM.
<mirai>it turns out that during shared-mime-info's transition from autotools to meson, the build options were converted from: --disable-update-mimedb (default=no) to option('update-mimedb', type: 'boolean', value: false, …)
<mirai>which of course means completely opposite things
<ekaitz>hi all lechner added some packages based on the zig-build-system I proposed in the past #64208 (my build system is #60889 ) can anyone take a look into this and maybe merge upstream?
<nckx>Good riddance to the double negative though.
<mirai>the current (outdated) shared-mime-info does an update-mime-database and the package contains things like /gnu/…/share/mime/audio/mp4.xml when it shouldn't (since this should be done by (guix profiles) and according to the meson.build comment “Call update-mime-database after install. It should not be enabled if DESTDIR is used.”
<podiki[m]>nckx: correcto. would it make sense to have that patch on the same branch as mesa (and maybe harfbuzz) updates? i'm guessing there is good overlap in dependents
<mirai>the quick fix is to do an update-mime-database like it did before though this is incorrect to begin with
<nckx>podiki[m]: I haven't been following branch shenanigans the past months, but your guess sounds plausible to me.
<lilyp>if it worked thus far and not baking the base is the reason why it broke, it does strongly suggest that the regularly baked thing works fine™
<mirai>a procedure that returns a package that bakes mime database given a list of packages for input
<lilyp>sure, that would do the trick in cases where we need special inputs, but I assure you it's most likely overengineering
<mirai>lilyp: it should work in most cases, though should we take this shorter road since it might leave us with mysterious build breakages?
<lilyp>I don't think there'd be that many mysterious breakages and if it were, it'd break a whole lot of packages at once
<mirai>I dont feel particularly strong against prebaking, just noting that there's room for pathological cases
<lilyp>coding up such pathological cases would sound weird in 2023
<mirai>I don't think so? Say there's package X that implements some custom/experimental FOOXL image format and it just does the same kind of thing that gdk-pixbuf did (and failed)
<mirai>sorry, that wasn't a proper example. package X implements FOOXL image format and some other package Y, perhaps an image viewer, depends on X and has a stage similar to gdk-pixbuf
<mirai>according to the spec, it's not unusual for packages to add their own mime types under share/mime/packages/….xml
<mirai>though in honesty, I don't know of any particular package whose build is broken due to this
<mirai>so I have no meaningful way to try the new-way-of-things, should it be done
<mirai>just wanted to let you know before committing to any choice in particular, I take it its acceptable to prebake the mimetypes then?
<podiki[m]>nckx: thanks for that bash-ism, playing around seems there's pretty good overlap between the ones I was looking at freetype, harfbuzz, mesa; of course freetype touches so much that alone probably subsumes the rest
<lilyp>that's something you'd have to account for in the gdk-pixbuf-loader that you'd have to write anyway
<lilyp>I do think you're trying to optimize the wrong thing here
<ArneBab>When I try to use modify-service for openssh on %base-services or %desktop-services, I get `modify-services: service 'openssh' not found in service list` — this is my config: (openssh-configuration (x11-forwarding? #t) (port-number 24))) ;; what do I miss?
<ArneBab>(I managed to make the system build by taking out the config, but I want to get the ssh port back to 24