💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2020-12-04.txt captured on 2024-05-12 at 16:07:02.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
2020-12-04T10:16:27 #kisslinux <varbhat> do you use any script to automate kernel building? 2020-12-04T10:17:08 #kisslinux <varbhat> 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 <testuser[m]> 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 <testuser[m]> And i personally just untar the kernel to `/usr/src`, grab maybe 1-2 patches and build 2020-12-04T10:26:29 #kisslinux <varbhat> yes,i have enabled that option 2020-12-04T10:26:56 #kisslinux <varbhat> and how do you know if any new features are present in new versions of kernel ? 2020-12-04T10:31:31 #kisslinux <testuser[m]> What do you mean? 2020-12-04T10:33:14 #kisslinux <eudaldgr> i use this pkg to build kernel with kiss package manager, inspired by dylin 2020-12-04T10:33:20 #kisslinux <eudaldgr> https://github.com/eudaldgr/eudald-kiss/tree/desktop/linux 2020-12-04T10:35:17 #kisslinux <eudaldgr> varbhat and this wrapper to automate the upgrade https://github.com/eudaldgr/bin/blob/master/kiss 2020-12-04T10:35:24 #kisslinux <varbhat> eudaldgr, looks nice 2020-12-04T10:36:10 #kisslinux <varbhat> testuser[m] , i mean, how do you know if new CONFIG options are present in new kernel version 2020-12-04T10:36:13 #kisslinux <eudaldgr> dylin pkg are more complete 2020-12-04T10:36:54 #kisslinux <eudaldgr> varbhat the new features you need to document and insert it manually 2020-12-04T10:37:30 #kisslinux <varbhat> that's tedious to some extent, isn't it ? 2020-12-04T10:37:46 #kisslinux <varbhat> i have disabled many drivers that i won't need 2020-12-04T10:38:04 #kisslinux <varbhat> new config options would be somewhere among it too 2020-12-04T10:39:16 #kisslinux <eudaldgr> 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 <varbhat> then,we can diff and see, right? 2020-12-04T10:41:43 #kisslinux <eudaldgr> yes, if you set the option to acces the current config through `/proc/config.gz` 2020-12-04T10:41:46 #kisslinux <varbhat> ok,oldconfig is exactly the target option,i wanted 2020-12-04T10:42:13 #kisslinux <eudaldgr> yeah, but oldconfig need user intervention 2020-12-04T10:42:34 #kisslinux <eudaldgr> and i tried with kiss package manager and for me didn't work well 2020-12-04T10:43:44 #kisslinux <varbhat> hmm 2020-12-04T10:44:09 #kisslinux <varbhat> hey,why isn't no-perl patch upstreamed ? 2020-12-04T10:44:17 #kisslinux <eudaldgr> normally betwen minor kernel upgrades there is no need to rewrite your config, `olddefconfig` is sufficient 2020-12-04T10:44:27 #kisslinux <eudaldgr> because for some modules you need perl 2020-12-04T10:44:38 #kisslinux <varbhat> like ? 2020-12-04T10:44:45 #kisslinux <eudaldgr> for example in the kernel i build on kiss-live i need perl 2020-12-04T10:44:54 #kisslinux <varbhat> ok 2020-12-04T10:45:27 #kisslinux <eudaldgr> i don't know which module exactly, but some modules need it 2020-12-04T10:58:42 #kisslinux <varbhat> eudaldgr: do you know any optimisation CONFIG tips ? 2020-12-04T10:59:17 #kisslinux <varbhat> *optimisations 2020-12-04T11:02:08 #kisslinux <eudaldgr> 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 <varbhat> hmm 2020-12-04T13:29:07 #kisslinux <varbhat> which processor which processor family is good for latest inter processors? 2020-12-04T13:29:21 #kisslinux <varbhat> *processor family 2020-12-04T13:31:37 #kisslinux <varbhat> generic x86-64 only right? 2020-12-04T13:35:38 #kisslinux <testuser[m]> Just do `march=native` 2020-12-04T13:38:08 #kisslinux <varbhat> i was talking about kernel 2020-12-04T13:38:49 #kisslinux <varbhat> 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 <soliwilos> 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 <soliwilos> varbhat: https://github.com/graysky2/kernel_gcc_patch 2020-12-04T14:38:00 #kisslinux <varbhat> is it safe ? 2020-12-04T14:38:39 #kisslinux <varbhat> i have heard that vector optimisations of O3 can make some things slow and some things fast 2020-12-04T14:44:57 #kisslinux <testuser[m]> It's really not noticeable tbh 2020-12-04T14:45:10 #kisslinux <testuser[m]> And just O3 probably won't break your kernel 2020-12-04T17:14:05 #kisslinux <dilyn> 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 <dilyn> 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 <varbhat> hmm 2020-12-04T17:15:00 #kisslinux <varbhat> what is your config of Cryptographic section? 2020-12-04T17:15:20 #kisslinux <varbhat> i am missing cryptographic algorithm support 2020-12-04T17:15:26 #kisslinux <dilyn> 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 <varbhat> eiwd and wpa_supplicant reports error of cryptographic algorithms in kernel 2020-12-04T17:16:02 #kisslinux <dilyn> http://ix.io/2Gv5 2020-12-04T17:16:05 #kisslinux <dilyn> my kernel is pretty slim 2020-12-04T17:16:23 #kisslinux <dilyn> yeah you need some specific cryptographic stuff for (e)iwd; it's documented on their upstream page 2020-12-04T17:16:42 #kisslinux <varbhat> ok 2020-12-04T17:17:15 #kisslinux <dilyn> 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 <testuser[m]> I have 994 "=y" in my config 2020-12-04T17:36:44 #kisslinux <dilyn> ls 2020-12-04T17:36:47 #kisslinux <dilyn> oops 2020-12-04T17:39:13 #kisslinux <dilyn> 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 <Rio6> just checked and mine has 2037 =y xp 2020-12-04T17:40:46 #kisslinux <dilyn> gotta love that defconfig 2020-12-04T17:41:16 #kisslinux <Rio6> do I really want to go through the 1000 configs and turn them off tho 2020-12-04T17:41:30 #kisslinux <Rio6> or maybe restart my config 2020-12-04T17:41:31 #kisslinux <dilyn> doing so would mostly just speed up build time 2020-12-04T17:41:51 #kisslinux <dilyn> you could go super hardcore and do make allnoconfig && make menuconfig and go from there :v 2020-12-04T17:42:45 #kisslinux <Rio6> maybe sometime in the future 2020-12-04T17:44:05 #kisslinux <testuser[m]> 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 <testuser[m]> Maybe even more 2020-12-04T17:56:16 #kisslinux <dilyn> yeah I mostly just fiddled with mine to learn more about the kernel 2020-12-04T17:56:22 #kisslinux <dilyn> I spent... way too long 2020-12-04T18:18:45 #kisslinux <testuser[m]> Pretty sure I'm underestimating :p 2020-12-04T18:19:20 #kisslinux <testuser[m]> 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 <mcf> 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 <varbhat> mcf: are you creator of oasis ? 2020-12-04T18:59:57 #kisslinux <mcf> yes 2020-12-04T19:00:29 #kisslinux <varbhat> nice,i was the one who posted oasis on HN :/ . Hope you don't mind. 2020-12-04T19:04:11 #kisslinux <mcf> ah. lots of new interest, at least :) 2020-12-04T19:05:39 #kisslinux <kylie> lol 2020-12-04T19:39:56 #kisslinux <renami> 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 <renami> i3-gaps will be included ;) 2020-12-04T19:45:56 #kisslinux <nerditup> mcf: that's smart, thanks 2020-12-04T19:47:39 #kisslinux <protonesso> Hewwo 2020-12-04T19:47:53 #kisslinux <renami> Hi! 2020-12-04T19:48:52 #kisslinux <nerditup> o/ 2020-12-04T19:48:59 #kisslinux <nerditup> o 2020-12-04T19:49:07 #kisslinux <nerditup> o/ 2020-12-04T19:50:54 #kisslinux <renami> 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 <mcpcpc[m]> 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 <renami> Will do! I'm just tidying everything up and making sure it conforms to the style guide... 2020-12-04T20:11:30 #kisslinux <renami> I'll have a PR for both within 15 minutes. 2020-12-04T20:16:22 #kisslinux <Rio6> I have awesome wm package but it requires changing packages in the repo 2020-12-04T20:17:51 #kisslinux <renami> 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 <dilyn> renami: community had an i3 package but it was dropped in april 2020-12-04T20:25:13 #kisslinux <dilyn> (the maintainer stopped maintaining) 2020-12-04T20:37:00 #kisslinux <renami> dilyn: yeah, i've taken a bit of the patch that was used 2020-12-04T20:37:09 #kisslinux <renami> but in that time, the build system changed 2020-12-04T20:37:17 #kisslinux <renami> and the patch wasn't very good besides 2020-12-04T20:38:27 #kisslinux <renami> I'm having trouble with building now though. Am I misunderstanding something about the package system? 2020-12-04T20:38:43 #kisslinux <renami> It errors out with this message: 2020-12-04T20:38:49 #kisslinux <renami> cp: can't stat '/home/renami/personalrepo/repo/i3/patches/build': No such file or directory 2020-12-04T20:39:10 #kisslinux <renami> Why is kiss looking in the patches/ directory for the build script? 2020-12-04T20:39:35 #kisslinux <renami> And why is it trying to do that *after* the build script has finished running? 2020-12-04T20:40:19 #kisslinux <micr0> would have to share the build script to help debug best 2020-12-04T20:40:27 #kisslinux <renami> Happy to do that. 2020-12-04T20:40:40 #kisslinux <renami> What is the terminal pastebin again? 2020-12-04T20:40:45 #kisslinux <micr0> ix.io 2020-12-04T20:40:49 #kisslinux <renami> thx 2020-12-04T20:40:49 #kisslinux <micr0> curl ix.io for instructions 2020-12-04T20:41:06 #kisslinux <micr0> or curl ix.io/client > ix and chmod +x ix and inspect it 2020-12-04T20:42:23 #kisslinux <renami> http://ix.io/2GBy 2020-12-04T20:42:34 #kisslinux <renami> Though the build script finishes running... 2020-12-04T20:46:37 #kisslinux <renami> So it seems to me that line 682 in the kiss script is where the error is happening 2020-12-04T20:47:07 #kisslinux <renami> Somehow $repo_dir must be changing from ~/personalrepo/repo/i3 to ~/personalrepo/repo/i3/patches 2020-12-04T20:47:10 #kisslinux <micr0> renami fyi you dont need the mkdir build; cd build; meson .. dance. 2020-12-04T20:47:35 #kisslinux <renami> Sure, but it is what i3 recommends to do 2020-12-04T20:47:41 #kisslinux <micr0> 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 <renami> Ok 2020-12-04T20:48:12 #kisslinux <renami> Could meson perhaps be changing $pkg_dir? 2020-12-04T20:48:33 #kisslinux <micr0> 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 <micr0> not sure how meson and ninja work tbh 2020-12-04T20:48:48 #kisslinux <renami> meson makes build files 2020-12-04T20:48:52 #kisslinux <renami> ninja does the build 2020-12-04T20:48:55 #kisslinux <renami> then meson installs 2020-12-04T20:49:06 #kisslinux <renami> I on'y need DESTDIR on the install step 2020-12-04T20:49:33 #kisslinux <renami> Hold on I'll just get my build script to ouput what $pkg_dir is 2020-12-04T20:50:18 #kisslinux <renami> wait hold on, it is actually probably $repo_dir that is incorrect... 2020-12-04T20:51:34 #kisslinux <renami> 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 <renami> 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 <renami> wait 2020-12-04T21:01:16 #kisslinux <renami> did i really just? 2020-12-04T21:01:27 #kisslinux <renami> i put a copy of build and depends in my patches 2020-12-04T21:01:29 #kisslinux <renami> don't ask me how 2020-12-04T21:01:31 #kisslinux <micr0> 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 <renami> :) it's fine 2020-12-04T21:01:43 #kisslinux <renami> i fixed it 2020-12-04T21:01:46 #kisslinux <micr0> yay 2020-12-04T21:04:20 #kisslinux <renami> and i just went and deleted the build and depends files 2020-12-04T21:04:25 #kisslinux <renami> and have no backu 2020-12-04T21:04:30 #kisslinux <renami> this is not a good day 2020-12-04T21:04:53 #kisslinux <renami> Well I guess the pastebin of the build is a backup 2020-12-04T21:05:01 #kisslinux <renami> but I lost my builds file and that hurts 2020-12-04T21:06:30 #kisslinux <dilyn> f 2020-12-04T21:07:14 #kisslinux <micr0> renami if you wanna learn a lot about linux 2020-12-04T21:07:27 #kisslinux <micr0> there is a non-zero chance that the file exists somewhere for some amount of time 2020-12-04T21:07:33 #kisslinux <renami> ooo 2020-12-04T21:07:34 #kisslinux <micr0> depending on your filesystem, kernel config, etc 2020-12-04T21:07:45 #kisslinux <renami> it is ext4 fairly minimal kernel config 2020-12-04T21:07:52 #kisslinux <renami> i don't think i have a hope 2020-12-04T21:08:54 #kisslinux <micr0> if another process has a handle on the file, `lsof | grep "/path/to/file"` 2020-12-04T21:09:02 #kisslinux <renami> None do 2020-12-04T21:09:14 #kisslinux <renami> It's okay. I can just rewrite it 2020-12-04T21:12:36 #kisslinux <renami> Oh I managed to recover it with testdisk' 2020-12-04T21:20:14 #kisslinux <onodera> https://camille.sh/SxXz.png 2020-12-04T21:20:18 #kisslinux <onodera> I ported xsnow 2020-12-04T21:26:37 #kisslinux <micr0> onodera pretty 2020-12-04T21:26:43 #kisslinux <micr0> i see st so I assume this is still X? 2020-12-04T21:27:28 #kisslinux <onodera> yeah 2020-12-04T21:27:40 #kisslinux <onodera> openbox 2020-12-04T21:30:37 #kisslinux <protonesso> ctwm 2020-12-04T21:46:19 #kisslinux <micr0> can the shell run an ioctl? 2020-12-04T21:47:15 #kisslinux <micr0> wow tcc makes such a smaller binary lol