[2023-05-16T03:06:39Z] --user [2023-05-16T04:54:25Z] Hi [2023-05-16T04:59:48Z] Hi [2023-05-16T05:01:51Z] sewn I indeed  used --user: $ run --user org.gimp.GIMP [2023-05-16T05:02:15Z] sewn I indeed  used --user: $ flatpak run --user org.gimp.GIMP [2023-05-16T05:05:23Z] I think flatpak should be looking in ~/.var because there is ~/.var [2023-05-16T08:57:02Z] Hello There! [2023-05-16T08:58:01Z] o/ [2023-05-16T11:02:25Z] \o [2023-05-16T12:53:05Z] Doomking [2023-05-16T12:53:06Z] mmm [2023-05-16T13:14:33Z] yo guys [2023-05-16T13:15:03Z] someone here have a nvidia rtx card? [2023-05-16T14:18:46Z] hi rohan wassup [2023-05-16T14:18:55Z] rohan: what do you want to ask about it? [2023-05-16T14:38:33Z] iceman[m]: how i can handle using kiss with newest NVIDIA graphic carda [2023-05-16T14:39:32Z] i wanna buy a new PC and in my country the AMD graphics cards is too expensive and missing [2023-05-16T14:39:38Z] só the way is NVIDIA [2023-05-16T14:39:58Z] but NVIDIA and wayland dont work well [2023-05-16T14:40:19Z] and also a think nvidia and musl dont work in the proprietary graphics card [2023-05-16T14:40:28Z] so what can i do? [2023-05-16T14:40:42Z] i don't wanna leave kiss [2023-05-16T14:46:10Z] just get an APU if gaming is not a priority [2023-05-16T14:47:32Z] "in my country the AMD graphics cards is too expensive and missing" what about a used amd card? [2023-05-16T15:24:22Z] Hi, I'm packaging os-prober for myself, and I'm going through [2023-05-16T15:24:22Z] where the custom environment is passed various envvars along with a DESTDIR, what can I expect this variable to be? Is it just `/` or `/usr` or `/usr/bin` ? [2023-05-16T15:24:41Z] s/os-prober/something/, s/// [2023-05-16T15:41:16Z] iceman: DESTDIR is set to that path in the temporary build directory which is tar'd up after the build finishes [2023-05-16T15:41:16Z] Eg /tmp/kiss/1234/pkg/firefox [2023-05-16T15:41:32Z] the tarball.is generated by tarring up this dif [2023-05-16T15:41:47Z] dir [2023-05-16T15:42:22Z] what can I expect in that location? directories like $DESTDIR/usr/lib, $DESTDIR/usr/share $DESTDIR/usr/bin etc? [2023-05-16T15:43:03Z] I'm sorry for asking too many questions about DESTDIR but the wiki page is quite abstract and doesn't have specifics [2023-05-16T15:43:31Z] thats it [2023-05-16T15:45:49Z] testuser: [2023-05-16T15:46:52Z] No that directory is empty [2023-05-16T15:46:52Z] The build script is what fills it [2023-05-16T15:47:35Z] eg make DESTDIR="$1" PREFIX=/usr [2023-05-16T15:47:35Z] In most cases the makefile would make /usr/bin and install a binary there, similarly for /usr/lib [2023-05-16T15:47:51Z] then kiss install literally just unpacks this directory on / [2023-05-16T15:48:16Z] basically it just contains new files to be added to the filesystem [2023-05-16T15:50:42Z] testuser[m] any news on dylan? [2023-05-16T15:51:04Z] oh so say, DESTDIR="whatever" [2023-05-16T15:51:04Z] then my build can create directories and place binaries and library files and other pages etc in the local directory along with setting all user permissions [2023-05-16T15:51:04Z] kiss is going to archive DESTDIR into a tar and extract it in `/` [2023-05-16T15:51:04Z] just rephrasing to make sure I'm understood it right [2023-05-16T15:51:28Z] lol i don't know him personally, maybe he setup a farming business or something SdVb [2023-05-16T15:51:51Z] iceman: build script doesn't set perms [2023-05-16T15:51:56Z] But other stuff is correct [2023-05-16T15:52:04Z] post-install then? [2023-05-16T15:52:44Z] testuser[m]: what if I just use `install` to copy and set perms, is that non-conventional? [2023-05-16T15:52:51Z] what perms? execute bit? [2023-05-16T15:52:56Z] 755 [2023-05-16T15:53:01Z] yep [2023-05-16T15:53:21Z] that's done by default by most build systems, otherwise you can do chmod +x; cp [2023-05-16T15:53:36Z] yeah you can use the install(1) program instead, I think it's only non-conventional when the program doesn't have a build system with an equivalent "make install" [2023-05-16T15:53:37Z] `install -Dm755 xyz $DESTDIR/usr/bin` [2023-05-16T15:53:37Z] if I did this in `build` script, does it matter? [2023-05-16T15:53:43Z] install -Dm755 works too but some people are anal about posix compliance and install command isn't specified by posix [2023-05-16T15:54:00Z] so it might break for that 1 guy rolling his own coreutils lol [2023-05-16T15:54:13Z] that 1 guy can replace it with cp and chmod [2023-05-16T15:54:15Z] it's fine imo, it's used by many packages anyways [2023-05-16T15:54:19Z] shokara: I'm packaging os-prober and it doesn't have the install target [2023-05-16T15:54:25Z] * have the `install, * install` target [2023-05-16T15:54:45Z] yeah install(1) wouldn't be non-conventional then [2023-05-16T15:54:58Z] btw be sure to quote variables [2023-05-16T15:55:05Z] And lint scripts with shellcheck [2023-05-16T15:55:08Z] yeah [2023-05-16T15:55:15Z] testuser[m]: i did not know about this [2023-05-16T15:55:27Z] testuser[m]: i learned this the hardware some years ago [2023-05-16T15:55:27Z] BTW the build scripts don't even have to be in shell you can write them in js if you want [2023-05-16T15:55:33Z] testuser[m]: ik [2023-05-16T15:55:39Z] shell is easy [2023-05-16T15:55:41Z] cuz familiarity [2023-05-16T15:55:45Z] and I read the wiki page [2023-05-16T15:55:57Z] it says DSL instead of specific kind of shell [2023-05-16T15:56:58Z] i'm going through dylan's pure sh bible, and is the [[ ]] non-posix? I can't find anything like it, only [ ] [2023-05-16T15:59:25Z] ok read some manuals apparently it's bash/zsh stuff [2023-05-16T15:59:34Z] test or [] is the way to go [2023-05-16T16:03:25Z] Shellcheck will point this out [2023-05-16T16:03:33Z] testuser[m]: if i wanna use my NVIDIA card just for gaming in kiss i can use it? [2023-05-16T16:03:50Z] i mean using steam with flatpak and a NVIDIA card for it [2023-05-16T16:04:04Z] or i will need a dual boot? [2023-05-16T16:04:15Z] You could but your host would be running wayland anyways [2023-05-16T16:04:45Z] also you'd still need atleast the kernel module for nvidia [2023-05-16T16:04:50Z] https://www.shellcheck.net/ [2023-05-16T16:04:50Z] is this what you mean testuser? [2023-05-16T16:05:05Z] kiss build shellcheck [2023-05-16T16:05:08Z] that's just a web frontend for it [2023-05-16T16:05:25Z] don't think it's in grepo or community [2023-05-16T16:05:59Z] shellcheck-bin [2023-05-16T16:06:06Z] it's a binary cuz haskell stuff [2023-05-16T16:06:08Z] ok yeah [2023-05-16T16:06:32Z] interesting that kiss search only works for specific name [2023-05-16T16:06:43Z] you can use globs [2023-05-16T16:06:45Z] imagine if there's something called os-prober-bin and I'm packaging my own lmao [2023-05-16T16:06:50Z] testuser[m]: ohh [2023-05-16T16:07:06Z] explane [2023-05-16T16:07:12Z] kiss s 'shellcheck' [2023-05-16T16:07:20Z] kiss s '*shellcheck*' [2023-05-16T16:07:38Z] hmm [2023-05-16T16:08:23Z] testuser: what if kiss had a baby package finding mode where it would try globs to a package not found and let the user know if they meant it [2023-05-16T16:08:42Z] that's against kiss philosophy [2023-05-16T16:08:49Z] what if [2023-05-16T16:10:32Z] hmm I just built the package, now just wondering if it actually works cuz it can't find stuff in /sys [2023-05-16T16:10:55Z] whether sharing /sys possible [2023-05-16T16:11:05Z] or do I just wing it and run os-prober on live system [2023-05-16T16:11:44Z] iceman: for such stuff do Stace [2023-05-16T16:11:45Z] strace [2023-05-16T16:11:52Z] wdym [2023-05-16T16:12:07Z] os-prober is just a shell script 🤔 [2023-05-16T16:12:08Z] you can easily figure out what it's looking for and what it's not able to find, with strace [2023-05-16T16:12:28Z] it literally tells me that /sys is empty, it can't find filesystems [2023-05-16T16:12:34Z] and indeed it is [2023-05-16T16:12:49Z] no i meant this for the case where errors are ambigous [2023-05-16T16:12:52Z] oh [2023-05-16T16:12:54Z] yeah sure [2023-05-16T16:12:59Z] 👍️ [2023-05-16T16:13:09Z] you can just mount a sysfs [2023-05-16T16:13:16Z] mount -t sysfs sysfs /sys i think [2023-05-16T16:14:31Z] hmm [2023-05-16T16:14:32Z] i try [2023-05-16T16:16:33Z] ok i need logger as well [2023-05-16T16:16:46Z] implicit dependency huh, didn't find it in the debian package [2023-05-16T16:17:27Z] what's logger [2023-05-16T16:17:50Z] logs stuff the system logging thing [2023-05-16T16:18:00Z] like stuff that shows up in journalctl [2023-05-16T16:18:13Z] * logs stuff into the system [2023-05-16T16:18:27Z] bro rohan stop using champani jio sim, it bad internet right now [2023-05-16T16:18:29Z] do you mean syslog [2023-05-16T16:18:44Z] sewn: yeah sure [2023-05-16T16:18:49Z] iceman: lol that's the name of some anime character, he's not Indian [2023-05-16T16:18:53Z] LOL [2023-05-16T16:19:08Z] stupid moment [2023-05-16T16:19:38Z] iceman[m]: There's no default system logging in kiss. there's a syslog service you can enable tho [2023-05-16T16:19:53Z] but there's no standard interface for that [2023-05-16T16:19:57Z] hmm [2023-05-16T16:20:14Z] `CONFORMING TO top [2023-05-16T16:20:14Z] The logger command is expected to be IEEE Std 1003.2 ("POSIX.2") [2023-05-16T16:20:14Z] compatible. [2023-05-16T16:20:14Z] ` [2023-05-16T16:20:33Z] * ```CONFORMING TO top [2023-05-16T16:20:33Z] The logger command is expected to be IEEE Std 1003.2 ("POSIX.2") [2023-05-16T16:20:33Z] compatible. [2023-05-16T16:20:33Z] ``` [2023-05-16T16:20:43Z] I'll give trick [2023-05-16T16:20:45Z] * ```... (full message at ) [2023-05-16T16:21:06Z] just sed 's|logger|echo|g' in the file that calls it lol [2023-05-16T16:21:08Z] patch os-prober to use printf lmao [2023-05-16T16:21:13Z] testuser[m]: KEKW SAME [2023-05-16T16:21:15Z] logger command is probably disabled in busybox [2023-05-16T16:21:26Z] maybe it should be enabled [2023-05-16T16:21:33Z] I haven't generated proper patches [2023-05-16T16:21:56Z] time to learn [2023-05-16T16:23:56Z] cd dir; git init; git add -f .; git commit -am init; /* changes */; git diff HEAD > /tmp/patch.patch [2023-05-16T16:23:59Z] * iceman[m] sent a sh code block: https://libera.ems.host/_matrix/media/v3/download/libera.chat/1d4fd774da22607fea0e9f03b631d7aca5f27338 [2023-05-16T16:24:10Z] testuser[m]: wtf that's it? [2023-05-16T16:24:25Z] bruh shithub makes generating patches seem like a mystery [2023-05-16T16:24:36Z] you could manually do it with diff and patch but using git is easier [2023-05-16T16:25:15Z] iceman: just replace all logger -... calls with `echo` [2023-05-16T16:25:22Z] hmm [2023-05-16T16:25:28Z] echo -t os-prober [2023-05-16T16:25:31Z] testuser[m]: bruh that's the one I know, diff and patch [2023-05-16T16:25:33Z] remove the logger calls entirely imo [2023-05-16T16:25:39Z] sewn: yeah [2023-05-16T16:25:48Z] since the I assume logger just logs stdout of command to syslog via pipe [2023-05-16T16:26:10Z] remove -t too [2023-05-16T16:26:33Z] you can just do a sed for | logger* d I think [2023-05-16T16:26:41Z] -t, --tag tag [2023-05-16T16:26:41Z] Mark every line to be logged with the specified tag. The default tag is the name of [2023-05-16T16:26:41Z] the user logged in on the terminal (or a user name based on effective user ID). [2023-05-16T16:26:42Z] hmm [2023-05-16T16:27:00Z] sewn: there's only 1 line in entire codebase i think [2023-05-16T16:27:19Z] No there's more [2023-05-16T16:27:22Z] grep -r logger [2023-05-16T16:27:31Z] ok i check [2023-05-16T16:27:31Z] grep -r logger . [2023-05-16T16:27:47Z] btw switch trash busybox grep to gnugrep [2023-05-16T16:27:47Z] yeah okay 3 lines instead of 1 [2023-05-16T16:27:48Z] hmm [2023-05-16T16:27:53Z] testuser[m]: soon [2023-05-16T16:31:03Z] testuser: thoughts on the silver search34 [2023-05-16T16:31:10Z] s/search34/searcher/ [2023-05-16T16:32:05Z] Another tool to learn [2023-05-16T16:32:42Z] "cd dir; git init; git add -f..." <- also, I think it's supposed to be `HEAD~1` there [2023-05-16T16:32:46Z] no [2023-05-16T16:32:57Z] because you didn't make a commit after the changes [2023-05-16T16:33:04Z] ah [2023-05-16T16:33:13Z] -am [2023-05-16T16:33:17Z] and then doing changes [2023-05-16T16:33:22Z] I just looked at last part [2023-05-16T16:33:22Z] Ye [2023-05-16T16:33:25Z] anyway I made commit lmao [2023-05-16T16:33:38Z] doesn't matter [2023-05-16T16:33:43Z] point was patch, thanks! [2023-05-16T16:34:04Z] lemme see how to supply patches and shit in kiss [2023-05-16T16:34:36Z] btw the patches/ directory is just by convention you can put it right next to the build file if you want [2023-05-16T16:35:02Z] testuser[m]: i saw your linux package in repo [2023-05-16T16:35:07Z] has patches dir [2023-05-16T16:35:27Z] and then in build it's... (full message at ) [2023-05-16T16:35:34Z] * and then in build it's... (full message at ) [2023-05-16T16:39:20Z] iceman[m]: > <@iceman:envs.net> and then in build it's... (full message at ) [2023-05-16T16:41:37Z] huh it does not seem to work which means this is false [2023-05-16T16:41:40Z] :thonk: [2023-05-16T16:41:48Z] patches/xyz.patch in sources means that xyz patch is copied [2023-05-16T16:41:52Z] If you did patches/ only [2023-05-16T16:41:56Z] yeah I did [2023-05-16T16:41:58Z] Then did would be present [2023-05-16T16:42:00Z] dir* [2023-05-16T16:42:11Z] dir or the file ? [2023-05-16T16:42:54Z] dir in latter case [2023-05-16T16:42:57Z] file in former [2023-05-16T16:43:06Z] wdym by former btw? [2023-05-16T16:43:18Z] i did ls . and only the sources are present [2023-05-16T16:43:21Z] no dir or file [2023-05-16T16:45:49Z] package source tree in case want btw... (full message at ) [2023-05-16T16:46:04Z] "and then in build it's..." <- > <@iceman:envs.net> and then in build it's... (full message at ) [2023-05-16T16:51:57Z] huh lmao wtf did I just get an error about modprobe being unable to find headers [2023-05-16T16:54:10Z] interesting, efibootmgr says EFI variables are not supported on this system while non-chroot (host) efibootmgr dumps proper info as it should [2023-05-16T16:54:32Z] iceman[m]: and kiss modprobe is looking for host kernel version directory instead of local [2023-05-16T16:54:41Z] I'll try and fix tomorrow [2023-05-16T16:55:47Z] gn [2023-05-16T16:57:07Z] iceman[m]: /sys/fs/efivars has to be mounted separately from /sys [2023-05-16T16:57:15Z] iceman[m]: That's how it is [2023-05-16T16:57:40Z] "wdym by former btw?" <- Add lines to `sources` [2023-05-16T16:57:47Z] testuser[m]: did not know this [2023-05-16T16:58:04Z] testuser[m]: oh like `patches/file.patch`? [2023-05-16T16:58:25Z] Ye [2023-05-16T16:58:53Z] testuser[m]: wdym that's how it is? I've got the LTS 6.1.28 version compiled and installed [2023-05-16T16:59:15Z] testuser[m]: interesting that kiss-chroot does not automatically do this [2023-05-16T16:59:36Z] iceman[m]: system could be uefi bios kiss doesn't assume [2023-05-16T16:59:42Z] iceman[m]: I'm assuming that's due to host stuff being mounted [2023-05-16T16:59:53Z] iceman[m]: you can't load modules built for a different kernel it would crash the kernel [2023-05-16T16:59:53Z] testuser[m]: hm [2023-05-16T17:00:14Z] testuser[m]: yeah [2023-05-16T17:00:37Z] i still don't understand why kiss modprobe is looking for host kernel version directory [2023-05-16T17:00:52Z] and complaining it doesn't exist [2023-05-16T17:00:55Z] same reason why uname -r returns host kernel [2023-05-16T17:00:56Z] ofc it doesn't exist [2023-05-16T17:00:59Z] testuser[m]: ah [2023-05-16T17:01:12Z] if you wabt depmodO [2023-05-16T17:01:19Z] Do depmod 6.1.28 [2023-05-16T17:01:24Z] * if you wabt depmod [2023-05-16T17:01:32Z] I'm doing `grub-install` tho [2023-05-16T17:01:42Z] didn't know I could specify depmod [2023-05-16T17:01:53Z] Then it means that grub install needs a certain driver but it isn't loaded or present [2023-05-16T17:01:59Z] What is it trying to modprobe? [2023-05-16T17:02:13Z] testuser[m]: don't know, not on PC rn [2023-05-16T17:04:02Z] lemme see wait [2023-05-16T17:08:22Z] ok still don't know what but mounting efivars seems to have fixed the problem [2023-05-16T17:08:30Z] * iceman[m] sent a md code block: https://libera.ems.host/_matrix/media/v3/download/libera.chat/6d68d241c513364cb941263cfb52267f5961d3ba [2023-05-16T17:10:05Z] https://github.com/kisslinux/repo/issues/114 [2023-05-16T17:10:07Z] found similar issue [2023-05-16T17:19:07Z] iceman: it's running modprobe efivars [2023-05-16T17:19:07Z] If efivars aren't built into the kernel, it would load the module [2023-05-16T17:19:07Z] If they're built in, it simply returns 0 [2023-05-16T17:19:07Z] Eg nouveau is built into my kernel so modprobe nouveau does nothing other than return 0 [2023-05-16T22:54:54Z] > oh so say, DESTDIR="whatever" [2023-05-16T22:55:29Z] iceman[m]: to be explicit, you shouldn't set DESTDIR, only read [2023-05-16T23:04:22Z] https://codeberg.org/kiss-community/kiss/commit/a6bb1c5a26cc0c7086f2e3fb32d032c5dcac3ed7