IRC channel logs
2025-01-23.log
back to list of logs
<daviid>rlb: what is the recommended debian prms for libs? <rlb>Hmm, I'll have to check -- been so long since I didn't just hand that over to debhelper I don't recall :) <rlb>From just looking at my /usr/lib/... it's 0644 i.e. u=rw,go=r, but I can go poke around policy if you like. <rlb>No worries, happy to help. <rlb>and of course "chown root:root" in that case. <daviid>rlb: actually these are part of g-golf examples, not installed, but (their source code) distributed - i am curious, adding chown root:root would it not require root privs at make tiume? <daviid>ok, i'll use 0644 and patch, thanks <daviid>"examples/gtk4/demos/make clean", i just tried to add this to the toplevel (git repo) Makefile.am: "cleam:\n\texamples/gtk4/demos/make clean", but it doesn't seems to work - any hint? thanks <daviid>i tried this - clean-local:\n cd $(top_srcdir)/examples/gtk-4/demos\n make clean - but i get infinte loop, then hitting C-c -> Makefile:733: clean-recursive] Interrupt <daviid>i could manually list the files to be deleted ofc, but i'd rather call the <subdir>/make clean, as the Makefile may evolve in time .. <daviid>and that's what i did, fine for now <wklew>is there a way to have guile treat compile warnings as errors? e.g. possibly unbound error warnings <rlb>daviid: yes, that's why it's typically only done during the "install" step, i.e. perms in the work tree aren't critical, and *shouldn't* be "complete". <rlb>i.e. I probably wouldn't care if the shared lib had execute permission in my dev tree. <rlb>probably or might not? Never really thought about it -- pretty sure I generally just end up with whatever gcc and/or libtool does, depending on the project. <apteryx>lloda: if I was into adding a new test for define-library, would test-suite/tests/r7rs.test be a suitable place? <graywolf>daviid: Thanks :) Now it loads for me as well. Maybe it was just an outage (albeit a weird one). <cwebber>too busy putting out the NEXT exciting guile-land announcement to have time to stop to solve a hosting issue ;) <graywolf>cwebber: would you mind if I (when I have some time) put somewhere online the documentation and link to it from guix's manual? There are currently five info manuals linked from Guix's documentation that do not have any HTML version. That sadly makes them non-browsable when using the HTML version of Guix's manual. <graywolf>I think I should not be doing this without your permission, hence asking first. <cwebber>graywolf: I think that would be great <apteryx>there's also this one which would be nice to merge before the next release; it improves our SRFI 64 doc a little with suggestions from Arne: bug#75041 <ajarara>if I want to display process output as it arrives (e.g. not `(display (read-string (open-input-pipe "echo before; sleep 10; echo after")))` having all output arrive at once), how do I do that? I'd have to feed the read pipe into current-output-port. But.. how? <dsmith>Wow! 218 nicks in #guile! That's almost as maany as in #scheme (220) <dthompson>and unlike #scheme the vibes aren't trash :) <ajarara>pipeline feeds stdout into stdin of the next thing in the pipeline. I just want it to write to stdout (this is a guile script that runs commands in series, but conditionally and with some processing in between) <rlb>cow_2001: not sure the context (and hadn't seen srfi-123 yet), but for guile, another way to do that might be goops, which would mean extensibility for other types if someone wanted that... <rlb>ACTION whistles innocently... <rlb>ajarara: I haven't messed with guile's subprocess stuff much in a bit, but generally, you either need to arrange for the last process in a pipeline to share guile's stdout, or you'll need to "shovel" the lines from guile, either via your main thread after launching the subprocess, or a shovel thread of some kind. <rlb>So for pipeline (haven't used it yet), presumably you'd need to read lines from the input-port and write them to current-output-port. <rlb>(and of course be careful about "lines" if you don't control the source, since they could be arbitrarily large -- DOS, etc.) <ajarara>shoveling some bytes to and from on the main thread sounds like it'd work. lemme try it! <rlb>(...also be nice to have a get-in equivalent of some sort (alongside ref*) allowing provision of a default, and fixing the asymmetry with ref.) <rlb>ajarara: yep - if there's going to be "a lot" of data, you'll probably want to read bigger chunks in most languages (guessing guile too). <graywolf>(Of course feel free to keep your version if you prefer, whatever suits you :) ) <graywolf>s/individual ports/individual characters/ <daviid>rlb: right, I decided to care :) because Matija Obid, who's working on making g-golf and its examples available on NixOS, reported this ... Ofc they could fix that as building the example pkgs, but why not fixing it upstream ... done now so ok. I just left the chown root:root as a comment, since i have no install target for the examples for now ... tx again for your help <rlb>daviid: fwiw, one way to get root ownership without root in archives if you ever need it is via fakeroot. i.e. "fakeroot bash -c 'PREFIX=/some/where make install && tar -C /some czpSf some.tgz some'". Another on linux-ish is (though I'm not really familiar with it now) unshare and friends. <rlb>Then the "chown root:root ..." will "work", at least as far as the archive contents are concerned -- you were never *actually* root. <rlb>oops -- "tar -C /some czpSf where.tgz where" <daviid>rlb: i'll make a note to myself with the above, tx