2020-09-04T02:03:03 #kisslinux dylanaraps: I'd make a GitHub issue but I think this problem is solely of my creation, though I know not how 2020-09-04T03:25:56 #kisslinux I'm sorry that I'm spamming but this got super weird 2020-09-04T03:26:14 #kisslinux konimex: csn you replicate this at all? Mesa is a fine test package 2020-09-04T03:26:35 #kisslinux If I comment out m4 in flex's deps, everything works fine 2020-09-04T03:30:05 #kisslinux what to replicate? 2020-09-04T03:32:37 #kisslinux you know, it might be a cyclical problem 2020-09-04T03:32:42 #kisslinux Kiss exiting with no prompt to install packages 2020-09-04T03:32:52 #kisslinux Yeah I think it's exactly a problem with m4 2020-09-04T03:33:02 #kisslinux Can you build bsd m4 without flex 2020-09-04T03:33:19 #kisslinux it explicitly needs a lex(1) program to build 2020-09-04T03:33:26 #kisslinux but I'll see what I can do 2020-09-04T03:34:29 #kisslinux does building flex require any m4 implementation? 2020-09-04T03:35:05 #kisslinux Flex has m4 as a dep, m4 has flex as a make dep 2020-09-04T03:35:26 #kisslinux A dirty fix is just dropping one, but that doesn't really solve the actual issue huh 2020-09-04T03:35:33 #kisslinux what if you set m4 as a make dep? 2020-09-04T03:35:37 #kisslinux in flex 2020-09-04T03:35:42 #kisslinux yeah 2020-09-04T03:36:05 #kisslinux Setting as make dep works 2020-09-04T03:36:26 #kisslinux Which makes sense 2020-09-04T03:36:27 #kisslinux alright 2020-09-04T03:39:06 #kisslinux wait, I think I encountered your bug now 2020-09-04T03:39:26 #kisslinux Kiss just needs a way to handle circular dependencies xD 2020-09-04T03:40:54 #kisslinux you know, fuck it, I'm removing flex as a makedep from m4, unfortunate situation but necessary 2020-09-04T03:41:08 #kisslinux Lmao 2020-09-04T03:41:42 #kisslinux Just means you'll need a copy of m4 handy if you ever remove it 2020-09-04T03:43:28 #kisslinux Poor bsd m4 is just unbuildable. Behold the superiority of gnu m4 2020-09-04T03:47:16 #kisslinux since m4, flex, and byacc are toolchain pkgs anyway, would it make sense that in a system, the packages are expected to be installed anyway? 2020-09-04T03:47:23 #kisslinux regardless of deps 2020-09-04T03:50:39 #kisslinux it's odd that the package manager doesn't ignore makedeps on kiss install though 2020-09-04T03:51:02 #kisslinux since makedeps are usually prone to cyclic dep 2020-09-04T03:53:16 #kisslinux It probably does 2020-09-04T03:53:25 #kisslinux I bet if I installed flex the problem would also be solved 2020-09-04T03:53:46 #kisslinux And it is 2020-09-04T03:54:04 #kisslinux I got looped on m4 and flex with deps referencing each other *with* clarifying them as make dependencies 2020-09-04T03:54:06 #kisslinux in case anybody's interested: i wrote a lexer for openbsd m4 to avoid the circular dependency: https://github.com/oasislinux/oasis/blob/master/pkg/openbsd/patch/0020-m4-Use-hand-written-lexer-to-avoid-cycle-in-bootstra.patch 2020-09-04T03:55:04 #kisslinux Michael forney is the hero we don't deserve 2020-09-04T03:55:08 #kisslinux nice 2020-09-04T04:01:22 #kisslinux alright, crisis averted 2020-09-04T04:04:42 #kisslinux mcf: thanks for the patch 2020-09-04T04:05:28 #kisslinux np 2020-09-04T06:20:39 #kisslinux Fixed m4, thanks everyone. 2020-09-04T06:21:11 #kisslinux illiliti: Will fix now. 2020-09-04T06:33:34 #kisslinux Also, circular dependencies are considered a bug which is why the package manager does not support them. fwiw 2020-09-04T06:41:37 #kisslinux dilynm: How did you end up with flex uninstalled? The binutils package depends on it. Are you by any chance using llvm/clang in place of binutils/gcc? 2020-09-04T06:45:31 #kisslinux nvm 2020-09-04T06:45:40 #kisslinux I think I understand the full picture now. 2020-09-04T12:27:46 #kisslinux hello beanjermin 2020-09-04T12:28:03 #kisslinux rip drunk :c 2020-09-04T13:00:29 #kisslinux Sorry for the confusion dylan 😅 2020-09-04T13:05:55 #kisslinux lol 2020-09-04T15:30:16 #kisslinux mcf theres a name, a blast from the past (hi from exherbo/jedahan) 2020-09-04T15:34:48 #kisslinux so theres something thats been bothering me a tiny bit, and wondering what thoughts people have about it 2020-09-04T15:35:05 #kisslinux kiss the package manager uses just KISS_PATH and the package name to build and install packages 2020-09-04T15:36:08 #kisslinux so if someone has my repository higher than any of the official repositories in their KISS_PATH, I can easily (intentional or accidentally) break or even takeover someones kiss-running machines during a simple kiss update 2020-09-04T15:36:48 #kisslinux as an example, i have 2 forks in my repository - git (with perl, for add --interactive --patch), and now openvpn (with mbedtls since libressl is borked with it right now) 2020-09-04T15:37:42 #kisslinux generally, is there a non-complex way of having package resolution include repositories, a la @jedahan/git or @jedahan/openvpn? 2020-09-04T15:42:07 #kisslinux i am also thinking of lots of other improvements, for example showing what repository a package will be installing/updating from in stdout 2020-09-04T15:42:19 #kisslinux warning if it is switching from one repo to another, etc 2020-09-04T15:42:24 #kisslinux some could probably done with kiss hooks 2020-09-04T15:46:42 #kisslinux Well, you shouldn't use a repository you don't trust 2020-09-04T15:47:02 #kisslinux You are giving the same trust to the distribution 2020-09-04T15:48:12 #kisslinux Or use the submodule format, ie. make a compilation of packages that you want to use 2020-09-04T15:50:03 #kisslinux This is not limited to the kiss environment either 2020-09-04T15:50:15 #kisslinux merakor im looking for ways to make it better for everyone. unfortunately cherry-picking packages from different repos leads to other problems, and maybe theres room for improvements that are better than '0% trust' or '100% trust' 2020-09-04T15:53:06 #kisslinux yeah definitely not limited to how kiss works, but would like to start by thinking about how kiss can help generally with package management than trying to tackle the whole chain 2020-09-04T15:54:06 #kisslinux also i have an inkling that the package manager having a very limited understanding of repositories would provide other UX benefits besides potential security help 2020-09-04T15:55:18 #kisslinux I don't know how one would systematically implement a solution for this 2020-09-04T15:55:55 #kisslinux How should the package manager define trust? Like gpg trust? 2020-09-04T15:56:56 #kisslinux Could kiss remain configurationless with such a system? 2020-09-04T15:57:20 #kisslinux These are the questions that come into my mind 2020-09-04T15:59:42 #kisslinux so id start with just 'show the user information and let them decide what to do' 2020-09-04T16:00:05 #kisslinux for example, when installing or updating a package, show the path of where its coming from 2020-09-04T16:00:40 #kisslinux then perhaps when installing a package, copying that path to /var/db/kiss/installed/package/source or something like that 2020-09-04T16:00:57 #kisslinux then when updating a package, making a note if the repository path changed 2020-09-04T16:27:41 #kisslinux Okay, now that made sense to me 2020-09-04T16:27:58 #kisslinux Seems pretty reasonable 2020-09-04T16:28:25 #kisslinux I would implement that to my fork 2020-09-04T16:58:13 #kisslinux i'm trying to build my dotfiles as a pkg, but when i install it, they have owned by root:root, and symlinks inside /etc dosn't created, but package manager says that they do 2020-09-04T16:58:57 #kisslinux tha tarball have the symlinks of /etc 2020-09-04T17:17:52 #kisslinux eudaldgr i have done dotfiles as a user by using the -o and -g options for install 2020-09-04T17:18:23 #kisslinux eudaldgr example: https://github.com/jedahan/kiss-repo/blob/main/talyn-config/build 2020-09-04T17:20:22 #kisslinux well thanks, i made a makefile for the dotfiles and a simple build for the pkg 2020-09-04T17:20:36 #kisslinux but with your way i can do it 2020-09-04T17:20:42 #kisslinux https://github.com/eudaldgr/dotfiles/blob/desktop/Makefile 2020-09-04T17:30:53 #kisslinux Hi, I am currently installing KISS. I created and switched to another user to make some changes, but I am unable to get back to root. It requires a password, but I never set one for it. How to I switch back to root? 2020-09-04T17:35:17 #kisslinux Marijn58 i think the default root password is empty. Might wanna try using `su -` and just hit enter? 2020-09-04T17:36:42 #kisslinux eudaldgr neat! 2020-09-04T17:37:27 #kisslinux micr0 That doesn't seem to work, but I fixed it by exiting the install and chroming back into it :) 2020-09-04T17:37:31 #kisslinux *chrooting 2020-09-04T17:53:04 #kisslinux well don't work 2020-09-04T17:58:41 #kisslinux does anyone know the wifi driver name for a thinkpad x220 2020-09-04T17:58:43 #kisslinux ? 2020-09-04T18:03:48 #kisslinux my card isn't showing up in fresh install of kiss 2020-09-04T18:03:54 #kisslinux causing me to suspect the wifi 2020-09-04T18:19:47 #kisslinux iwlwifi maybe? 2020-09-04T18:23:55 #kisslinux yeah, but I'm looking in linux-firmware, and there's a lot of iwlwifi*.ucode 2020-09-04T18:24:03 #kisslinux I just dont know which to choose 2020-09-04T18:24:45 #kisslinux oh, i think you can copy the entire dir to /lib/firmware 2020-09-04T18:26:09 #kisslinux just like `cp iwlwifi.ucode /lib/firmware`? 2020-09-04T18:26:17 #kisslinux also I thought it use /usr/lib/firmware 2020-09-04T18:29:21 #kisslinux i think like cp -r firmware /lib/ 2020-09-04T18:29:32 #kisslinux and i think /usr/lib and /lib are symlinked 2020-09-04T18:30:34 #kisslinux oh yeah 2020-09-04T18:30:39 #kisslinux you're right 2020-09-04T18:30:55 #kisslinux so when a kernel is compiled, it looks in /lib/firmware? 2020-09-04T18:31:03 #kisslinux and compiles in the firmware there? 2020-09-04T18:51:20 #kisslinux if you specify to compile in yeah 2020-09-04T18:51:29 #kisslinux in the config? 2020-09-04T18:51:30 #kisslinux ive had mixed results with compiling firmware in the kernel 2020-09-04T18:51:38 #kisslinux I think it's firmware_lib_something 2020-09-04T18:51:41 #kisslinux so for some things i stick with modules so i can modprobe 2020-09-04T18:51:43 #kisslinux I can look in the docs 2020-09-04T18:51:54 #kisslinux well there's no modules here, right 2020-09-04T18:51:57 #kisslinux yeah theres a config option, plus another one where you specify exactly what firmware to compile in 2020-09-04T18:52:18 #kisslinux randomuser you can configure most stuff as modules. especially things that require firmware. 2020-09-04T18:52:34 #kisslinux but there isnt a initramfs 2020-09-04T18:52:39 #kisslinux at least not in my setup 2020-09-04T18:53:28 #kisslinux i mean, correct me if i'm wrong, but I think you need an initramfs for loadable kernel modules 2020-09-04T18:57:18 #kisslinux only if your modules need to be loaded before init for some reason 2020-09-04T18:58:13 #kisslinux so if you're encrypting or something, you need an initramfs, but otherwise you dont? 2020-09-04T18:59:03 #kisslinux yep 2020-09-04T18:59:07 #kisslinux cool 2020-09-04T19:41:32 #kisslinux mcpcpc: in kirc raw(), you shouldn't multiply the size for malloc by sizeof(char), because char's size is by definition always 1 2020-09-04T19:48:34 #kisslinux E5ten: ahhh yes... learning one mistake at a time :) ty ty! 2020-09-04T19:53:53 #kisslinux micr0: hey :) good to see you around 2020-09-04T19:59:03 #kisslinux micr0: btw, you can set add.interactive.usebuiltin to get --patch/--interactive without perl 2020-09-04T20:02:11 #kisslinux i patched that to be the default on oasis. might make sense for kiss, too, since it avoids perl as well 2020-09-04T20:02:16 #kisslinux https://github.com/oasislinux/oasis/blob/master/pkg/git/patch/0003-Enable-add.interactive.usebuiltin-by-default.patch 2020-09-04T22:31:31 #kisslinux mcpcpc: in printw(), wordwidth is int, but it's used to store strlen's return value, so it should be size_t, also in the same function you have printf("%c", I think that could just be a putchar() call 2020-09-04T22:33:04 #kisslinux also there's a call to fgets in input_handler() that I get a warning for because of unchecked return value, and the same with write() in raw() 2020-09-04T22:34:29 #kisslinux and in raw(), you allocate MSG_MAX + 1 to cmd_str, but pass MSG_MAX for the size to vsnprintf, so a byte is being wasted, because the size value for snprintf includes the space for the null-byte, so however much space is allocated for the buffer it's filling should be the size argument 2020-09-04T22:46:13 #kisslinux I have a question 2020-09-04T22:47:09 #kisslinux i've compiled linux with the CONFIG_EXTRA_FIRMWARE_DIR to /lib/firmware and had the iwlwifi stuff in there 2020-09-04T22:47:28 #kisslinux but when I've finished installing, my wifi card isn't recognized 2020-09-04T22:47:35 #kisslinux am i being an idot 2020-09-04T22:49:22 #kisslinux E5ten: woo. alright. several things to address. cant give enough thanks :) 2020-09-04T23:00:58 #kisslinux mcf: nice work on cproc. i just tested it on OpenBSD, it only needs a small change in config.h there: "-D", "_MACHINE_ENDIAN_H_", 2020-09-04T23:01:21 #kisslinux to avoid using the inline assembly in the file amd64/endian.h 2020-09-04T23:01:58 #kisslinux (it seems you already noticed it because of the openbsd.diff ;)), the GNUC #ifdef might not be a good solution because OpenBSD uses clang by default now 2020-09-04T23:08:44 #kisslinux Evil_Bob: thanks. i seem to recall that there was also an issue with stdarg.h due to a recent-ish change in openbsd, which prevents bootstrap 2020-09-04T23:09:24 #kisslinux ah i havent tried bootstrap yet, but now installed it in my ~/bin and testing it on some of my projects :) 2020-09-04T23:11:32 #kisslinux clang also defines __GNUC__, so i don't think that should be an issue 2020-09-04T23:11:52 #kisslinux ah 2020-09-04T23:15:01 #kisslinux i really should finish up the preprocessor some time 2020-09-04T23:17:17 #kisslinux i had a program which gave the message: :3467:20: error: volatile store is not yet supported 2020-09-04T23:17:44 #kisslinux it was for the line: volatile sig_atomic_t sigstate = 0; 2020-09-04T23:18:36 #kisslinux (some other programs compiled succesfully without any changes, really nice) 2020-09-04T23:18:50 #kisslinux ah, yeah. qbe has no way to specify that a load/store should be volatile, so it just errors for now. however, i'm pretty sure that qbe won't optimize away loads/stores for global variables, so -Dvolatile= might be an acceptable workaround for now 2020-09-04T23:19:15 #kisslinux yeah 2020-09-04T23:25:41 #kisslinux Evil_Bob: feel free to bring any further discussion about cproc to #oasislinux. happy to chat more there :)