2020-12-04T10:16:27 #kisslinux do you use any script to automate kernel building? 2020-12-04T10:17:08 #kisslinux i now have fully working kernel. i also have saved .config file. i would like to know if you automate the process of building. 2020-12-04T10:18:41 #kisslinux varbhat you can also enable the option to access kernel config through `/proc/config.gz` just incase you lose your config 2020-12-04T10:19:34 #kisslinux And i personally just untar the kernel to `/usr/src`, grab maybe 1-2 patches and build 2020-12-04T10:26:29 #kisslinux yes,i have enabled that option 2020-12-04T10:26:56 #kisslinux and how do you know if any new features are present in new versions of kernel ? 2020-12-04T10:31:31 #kisslinux What do you mean? 2020-12-04T10:33:14 #kisslinux i use this pkg to build kernel with kiss package manager, inspired by dylin 2020-12-04T10:33:20 #kisslinux https://github.com/eudaldgr/eudald-kiss/tree/desktop/linux 2020-12-04T10:35:17 #kisslinux varbhat and this wrapper to automate the upgrade https://github.com/eudaldgr/bin/blob/master/kiss 2020-12-04T10:35:24 #kisslinux eudaldgr, looks nice 2020-12-04T10:36:10 #kisslinux testuser[m] , i mean, how do you know if new CONFIG options are present in new kernel version 2020-12-04T10:36:13 #kisslinux dylin pkg are more complete 2020-12-04T10:36:54 #kisslinux varbhat the new features you need to document and insert it manually 2020-12-04T10:37:30 #kisslinux that's tedious to some extent, isn't it ? 2020-12-04T10:37:46 #kisslinux i have disabled many drivers that i won't need 2020-12-04T10:38:04 #kisslinux new config options would be somewhere among it too 2020-12-04T10:39:16 #kisslinux varbhat i do an olddefconfig, this takes the old .config values and for the new features it set to default option 2020-12-04T10:40:29 #kisslinux then,we can diff and see, right? 2020-12-04T10:41:43 #kisslinux yes, if you set the option to acces the current config through `/proc/config.gz` 2020-12-04T10:41:46 #kisslinux ok,oldconfig is exactly the target option,i wanted 2020-12-04T10:42:13 #kisslinux yeah, but oldconfig need user intervention 2020-12-04T10:42:34 #kisslinux and i tried with kiss package manager and for me didn't work well 2020-12-04T10:43:44 #kisslinux hmm 2020-12-04T10:44:09 #kisslinux hey,why isn't no-perl patch upstreamed ? 2020-12-04T10:44:17 #kisslinux normally betwen minor kernel upgrades there is no need to rewrite your config, `olddefconfig` is sufficient 2020-12-04T10:44:27 #kisslinux because for some modules you need perl 2020-12-04T10:44:38 #kisslinux like ? 2020-12-04T10:44:45 #kisslinux for example in the kernel i build on kiss-live i need perl 2020-12-04T10:44:54 #kisslinux ok 2020-12-04T10:45:27 #kisslinux i don't know which module exactly, but some modules need it 2020-12-04T10:58:42 #kisslinux eudaldgr: do you know any optimisation CONFIG tips ? 2020-12-04T10:59:17 #kisslinux *optimisations 2020-12-04T11:02:08 #kisslinux varbhat: don't, simply i set the thing i use or i know my machine needs and unset the i things i don't need in a n00b way 2020-12-04T11:02:38 #kisslinux hmm 2020-12-04T13:29:07 #kisslinux which processor which processor family is good for latest inter processors? 2020-12-04T13:29:21 #kisslinux *processor family 2020-12-04T13:31:37 #kisslinux generic x86-64 only right? 2020-12-04T13:35:38 #kisslinux Just do `march=native` 2020-12-04T13:38:08 #kisslinux i was talking about kernel 2020-12-04T13:38:49 #kisslinux well,tried (?) and i think generic x86_64 applies for intel devices. 2 other options were for xeons only 2020-12-04T13:50:07 #kisslinux varbhat: There's a patch for the kernel that lets you use native cpu setting, if you're looking for such. 2020-12-04T13:50:17 #kisslinux varbhat: https://github.com/graysky2/kernel_gcc_patch 2020-12-04T14:38:00 #kisslinux is it safe ? 2020-12-04T14:38:39 #kisslinux i have heard that vector optimisations of O3 can make some things slow and some things fast 2020-12-04T14:44:57 #kisslinux It's really not noticeable tbh 2020-12-04T14:45:10 #kisslinux And just O3 probably won't break your kernel 2020-12-04T17:14:05 #kisslinux varbhat: min-maxing your kernel config isn't really going to yield much better performance in general. at least, not so much of an increase that it would ever be worth the time investment 2020-12-04T17:14:25 #kisslinux if you ARE interested, you could start by looking at the archived version of a slashdot article on kernel configuration 2020-12-04T17:14:44 #kisslinux hmm 2020-12-04T17:15:00 #kisslinux what is your config of Cryptographic section? 2020-12-04T17:15:20 #kisslinux i am missing cryptographic algorithm support 2020-12-04T17:15:26 #kisslinux you would see better performance increases from like, LTO on the kernel - but that's hard and will probably end up brekaing more things than you'd like. for instance, the llvm/clang lto patches break out-of-tree module creation (at least for me) 2020-12-04T17:15:54 #kisslinux eiwd and wpa_supplicant reports error of cryptographic algorithms in kernel 2020-12-04T17:16:02 #kisslinux http://ix.io/2Gv5 2020-12-04T17:16:05 #kisslinux my kernel is pretty slim 2020-12-04T17:16:23 #kisslinux yeah you need some specific cryptographic stuff for (e)iwd; it's documented on their upstream page 2020-12-04T17:16:42 #kisslinux ok 2020-12-04T17:17:15 #kisslinux note that that^ kernel is more bloat than one I had previously; you could *maybe* get it down to 700 '=y' if you really wanted to and had basically no devices you wanted to connect or backtraces you were interested in running XD 2020-12-04T17:19:38 #kisslinux I have 994 "=y" in my config 2020-12-04T17:36:44 #kisslinux ls 2020-12-04T17:36:47 #kisslinux oops 2020-12-04T17:39:13 #kisslinux yeah rn i have 923 =y and it's all fine. got some extra stuff that could maybe be pared down but i cba 2020-12-04T17:40:36 #kisslinux just checked and mine has 2037 =y xp 2020-12-04T17:40:46 #kisslinux gotta love that defconfig 2020-12-04T17:41:16 #kisslinux do I really want to go through the 1000 configs and turn them off tho 2020-12-04T17:41:30 #kisslinux or maybe restart my config 2020-12-04T17:41:31 #kisslinux doing so would mostly just speed up build time 2020-12-04T17:41:51 #kisslinux you could go super hardcore and do make allnoconfig && make menuconfig and go from there :v 2020-12-04T17:42:45 #kisslinux maybe sometime in the future 2020-12-04T17:44:05 #kisslinux I'm using this config from when i used Gentoo, probably spent like 10+ hrs in total on it lol 2020-12-04T17:44:06 #kisslinux Maybe even more 2020-12-04T17:56:16 #kisslinux yeah I mostly just fiddled with mine to learn more about the kernel 2020-12-04T17:56:22 #kisslinux I spent... way too long 2020-12-04T18:18:45 #kisslinux Pretty sure I'm underestimating :p 2020-12-04T18:19:20 #kisslinux I'm too small brain to understand what most of the stuff does, just flipped random options to off 2020-12-04T18:38:07 #kisslinux i use a short file with the things i want (https://raw.githubusercontent.com/oasislinux/linux-configs/master/t14) and then do `./scripts/kconfig/merge_config.sh -n path/to/config` to use allnoconfig for the rest 2020-12-04T18:59:09 #kisslinux mcf: are you creator of oasis ? 2020-12-04T18:59:57 #kisslinux yes 2020-12-04T19:00:29 #kisslinux nice,i was the one who posted oasis on HN :/ . Hope you don't mind. 2020-12-04T19:04:11 #kisslinux ah. lots of new interest, at least :) 2020-12-04T19:05:39 #kisslinux lol 2020-12-04T19:39:56 #kisslinux Good news everybody! I have an i3 package working. I'm finalising things right now, and I will have a PR on the community repo imminently! 2020-12-04T19:40:08 #kisslinux i3-gaps will be included ;) 2020-12-04T19:45:56 #kisslinux mcf: that's smart, thanks 2020-12-04T19:47:39 #kisslinux Hewwo 2020-12-04T19:47:53 #kisslinux Hi! 2020-12-04T19:48:52 #kisslinux o/ 2020-12-04T19:48:59 #kisslinux o 2020-12-04T19:49:07 #kisslinux o/ 2020-12-04T19:50:54 #kisslinux Still struggling to believe that the community repo doesn't have an i3 package *and* that I am the one submitting one. 2020-12-04T20:10:33 #kisslinux renami: oh. dont forget to update the WM list on the wiki ;) https://k1ss.org/wiki/xorg/xorg-server 2020-12-04T20:11:06 #kisslinux Will do! I'm just tidying everything up and making sure it conforms to the style guide... 2020-12-04T20:11:30 #kisslinux I'll have a PR for both within 15 minutes. 2020-12-04T20:16:22 #kisslinux I have awesome wm package but it requires changing packages in the repo 2020-12-04T20:17:51 #kisslinux Hopefully the maintainer for `yajl` is active... They haven't had any GitHub activity for nearly all of the year, and `yajl` doesn't build unless `make` is run with -j1. 2020-12-04T20:24:55 #kisslinux renami: community had an i3 package but it was dropped in april 2020-12-04T20:25:13 #kisslinux (the maintainer stopped maintaining) 2020-12-04T20:37:00 #kisslinux dilyn: yeah, i've taken a bit of the patch that was used 2020-12-04T20:37:09 #kisslinux but in that time, the build system changed 2020-12-04T20:37:17 #kisslinux and the patch wasn't very good besides 2020-12-04T20:38:27 #kisslinux I'm having trouble with building now though. Am I misunderstanding something about the package system? 2020-12-04T20:38:43 #kisslinux It errors out with this message: 2020-12-04T20:38:49 #kisslinux cp: can't stat '/home/renami/personalrepo/repo/i3/patches/build': No such file or directory 2020-12-04T20:39:10 #kisslinux Why is kiss looking in the patches/ directory for the build script? 2020-12-04T20:39:35 #kisslinux And why is it trying to do that *after* the build script has finished running? 2020-12-04T20:40:19 #kisslinux would have to share the build script to help debug best 2020-12-04T20:40:27 #kisslinux Happy to do that. 2020-12-04T20:40:40 #kisslinux What is the terminal pastebin again? 2020-12-04T20:40:45 #kisslinux ix.io 2020-12-04T20:40:49 #kisslinux thx 2020-12-04T20:40:49 #kisslinux curl ix.io for instructions 2020-12-04T20:41:06 #kisslinux or curl ix.io/client > ix and chmod +x ix and inspect it 2020-12-04T20:42:23 #kisslinux http://ix.io/2GBy 2020-12-04T20:42:34 #kisslinux Though the build script finishes running... 2020-12-04T20:46:37 #kisslinux So it seems to me that line 682 in the kiss script is where the error is happening 2020-12-04T20:47:07 #kisslinux Somehow $repo_dir must be changing from ~/personalrepo/repo/i3 to ~/personalrepo/repo/i3/patches 2020-12-04T20:47:10 #kisslinux renami fyi you dont need the mkdir build; cd build; meson .. dance. 2020-12-04T20:47:35 #kisslinux Sure, but it is what i3 recommends to do 2020-12-04T20:47:41 #kisslinux it makes the build dir a little cleaner to have that but like, if this is just for build scripts you can just specify `meson .` 2020-12-04T20:47:47 #kisslinux Ok 2020-12-04T20:48:12 #kisslinux Could meson perhaps be changing $pkg_dir? 2020-12-04T20:48:33 #kisslinux and if the `meson .` or `ninja` steps are where you are seeing this issue, maybe `export DESTDIR="$1"` so they all respect it? 2020-12-04T20:48:38 #kisslinux not sure how meson and ninja work tbh 2020-12-04T20:48:48 #kisslinux meson makes build files 2020-12-04T20:48:52 #kisslinux ninja does the build 2020-12-04T20:48:55 #kisslinux then meson installs 2020-12-04T20:49:06 #kisslinux I on'y need DESTDIR on the install step 2020-12-04T20:49:33 #kisslinux Hold on I'll just get my build script to ouput what $pkg_dir is 2020-12-04T20:50:18 #kisslinux wait hold on, it is actually probably $repo_dir that is incorrect... 2020-12-04T20:51:34 #kisslinux I'm actually suspicious that I may have broken my kiss install rather than this being an issue with anything else 2020-12-04T20:54:16 #kisslinux Hmm. Is it possible that you may try the build on your system, just to ensure it is not on my end? 2020-12-04T21:01:11 #kisslinux wait 2020-12-04T21:01:16 #kisslinux did i really just? 2020-12-04T21:01:27 #kisslinux i put a copy of build and depends in my patches 2020-12-04T21:01:29 #kisslinux don't ask me how 2020-12-04T21:01:31 #kisslinux renami I wish i had a quick-and-easy setup for chroots to test people's stuff without being worried 2020-12-04T21:01:40 #kisslinux :) it's fine 2020-12-04T21:01:43 #kisslinux i fixed it 2020-12-04T21:01:46 #kisslinux yay 2020-12-04T21:04:20 #kisslinux and i just went and deleted the build and depends files 2020-12-04T21:04:25 #kisslinux and have no backu 2020-12-04T21:04:30 #kisslinux this is not a good day 2020-12-04T21:04:53 #kisslinux Well I guess the pastebin of the build is a backup 2020-12-04T21:05:01 #kisslinux but I lost my builds file and that hurts 2020-12-04T21:06:30 #kisslinux f 2020-12-04T21:07:14 #kisslinux renami if you wanna learn a lot about linux 2020-12-04T21:07:27 #kisslinux there is a non-zero chance that the file exists somewhere for some amount of time 2020-12-04T21:07:33 #kisslinux ooo 2020-12-04T21:07:34 #kisslinux depending on your filesystem, kernel config, etc 2020-12-04T21:07:45 #kisslinux it is ext4 fairly minimal kernel config 2020-12-04T21:07:52 #kisslinux i don't think i have a hope 2020-12-04T21:08:54 #kisslinux if another process has a handle on the file, `lsof | grep "/path/to/file"` 2020-12-04T21:09:02 #kisslinux None do 2020-12-04T21:09:14 #kisslinux It's okay. I can just rewrite it 2020-12-04T21:12:36 #kisslinux Oh I managed to recover it with testdisk' 2020-12-04T21:20:14 #kisslinux https://camille.sh/SxXz.png 2020-12-04T21:20:18 #kisslinux I ported xsnow 2020-12-04T21:26:37 #kisslinux onodera pretty 2020-12-04T21:26:43 #kisslinux i see st so I assume this is still X? 2020-12-04T21:27:28 #kisslinux yeah 2020-12-04T21:27:40 #kisslinux openbox 2020-12-04T21:30:37 #kisslinux ctwm 2020-12-04T21:46:19 #kisslinux can the shell run an ioctl? 2020-12-04T21:47:15 #kisslinux wow tcc makes such a smaller binary lol