💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2020-08-01.txt captured on 2024-05-10 at 14:34:55.

View Raw

More Information

⬅️ Previous capture (2021-12-17)

-=-=-=-=-=-=-

2020-08-01T00:02:03 #kisslinux <illiliti> libinput list-devices 0.932 total
2020-08-01T00:02:06 #kisslinux <illiliti> xd
2020-08-01T00:02:11 #kisslinux <illiliti> soon :)
2020-08-01T00:10:55 #kisslinux <dylanaraps> illiliti: Nice!
2020-08-01T00:11:08 #kisslinux <dylanaraps> What did you do?
2020-08-01T00:11:59 #kisslinux <illiliti> got rid of ioctl
2020-08-01T00:12:58 #kisslinux <illiliti> and used sysfs attributes instead
2020-08-01T00:14:16 #kisslinux <illiliti> this added several complexity to code, but i think it worth it
2020-08-01T00:16:27 #kisslinux <illiliti> now performance 1/1 compared to eudev
2020-08-01T00:17:59 #kisslinux <dylanaraps> Nice
2020-08-01T00:27:43 #kisslinux <E5ten> dylanaraps: for sure, keep in mind though I don't actually know C very well so you can't totally trust my yellings lol
2020-08-01T00:28:26 #kisslinux <illiliti> pushed
2020-08-01T00:28:33 #kisslinux <illiliti> feel free to test
2020-08-01T00:29:05 #kisslinux <E5ten> illiliti: wow, I didn't realize the ioctl would be slower than reading the attributes from sysfs, awesome that there's a big speed boost from that
2020-08-01T00:31:09 #kisslinux <illiliti> yeah, open() opens the whole device which is really slow. close() tries to SYNC that device even if it open with O_RDONLY. that's caused performance issues
2020-08-01T00:32:00 #kisslinux <E5ten> ah, I see
2020-08-01T00:35:02 #kisslinux <E5ten> how does speed compare if you used FILE io instead of file descriptor for standard reading and writing like in udev_device_[gs]et_sysattr_value?
2020-08-01T00:35:31 #kisslinux <E5ten> I'd guess slower with buffered io but idk might be worth checking
2020-08-01T00:37:10 #kisslinux <illiliti> will try
2020-08-01T00:39:26 #kisslinux <dylanaraps> > real    0m 0.60s
2020-08-01T00:39:31 #kisslinux <dylanaraps> Nice!!!
2020-08-01T00:41:21 #kisslinux <E5ten> illiliti: http://ix.io/2sPi a diff that I think is equivalent but uses buffered io instead of file descriptors
2020-08-01T00:41:33 #kisslinux <E5ten> I mean it might not be quite right I'm a bit drunk lol, but I think it's equivalent
2020-08-01T00:43:40 #kisslinux <illiliti> hmm
2020-08-01T00:43:43 #kisslinux <illiliti> no difference
2020-08-01T00:44:34 #kisslinux <E5ten> well then imo I'd find that preferable cuz that buffered io is just normal C and fd's are POSIX, but it obviously doesn't matter cuz this is linux-specific anyway lol
2020-08-01T01:04:17 #kisslinux <illiliti> i want to rewrite all read() stuff using new(when merged into mainline) readfile() syscall
2020-08-01T01:11:05 #kisslinux <E5ten> wouldn't it be better to wait a few releases before doing that so it still works without requiring the absolute newest kernel?
2020-08-01T01:12:50 #kisslinux <illiliti> yeah, i'll wait. that's just my plans for future
2020-08-01T01:13:11 #kisslinux <E5ten> I see, makes sense
2020-08-01T01:13:25 #kisslinux <E5ten> that'll probably make speed a lot better for those ops
2020-08-01T01:24:16 #kisslinux <illiliti> dylanaraps: 0.3.0 released
2020-08-01T01:27:04 #kisslinux <dylanaraps> Nice
2020-08-01T02:41:30 #kisslinux <Sweets> thonk
2020-08-01T02:43:31 #kisslinux <dylanaraps> Guess who didn't sleep again
2020-08-01T03:10:34 #kisslinux <xzcvczx> i despise guessing games
2020-08-01T04:54:55 #kisslinux <dylanaraps> o/
2020-08-01T05:00:42 #kisslinux <dylanaraps> This turned out nice: https://github.com/dylanaraps/paleta Still some smelly parts to the code I need to fix. Do yell at me if you're in the mood. ;)
2020-08-01T05:08:01 #kisslinux <mcpcpc[m]> !! i wanted this like 2mo ago! lol.
2020-08-01T05:09:44 #kisslinux <dylanaraps> lol
2020-08-01T05:10:43 #kisslinux <dylanaraps> Let me know if you have any questions about usage. It's pretty simple though (paleta < colors > sequences), then add (cat sequences) to your .shellrc file.
2020-08-01T05:10:44 #kisslinux <E5ten> I'd remove -static from the Makefile tbh, that seems more like a thing that a user should add if they want than the default
2020-08-01T05:10:53 #kisslinux <dylanaraps> E5ten: Sure thing
2020-08-01T05:11:15 #kisslinux <dylanaraps> Keep -O3 (or equivalent)?
2020-08-01T05:11:22 #kisslinux <dylanaraps> Drop it to -O2 maybe?
2020-08-01T05:12:19 #kisslinux <E5ten> I mean if you're gonna include an optimization flag, I don't think it really matters which it is, like you can just use whichever you like, but I think at least put it before the $(CFLAGS) because that's the kinda flag where a user's CFLAGS should just override it
2020-08-01T05:12:28 #kisslinux <dylanaraps> Gotcha
2020-08-01T05:12:42 #kisslinux <mcpcpc[m]> if you want more palettes, feel free to grab my kfc project. i think i may have added 50-60 more than what you originally had.
2020-08-01T05:12:45 #kisslinux <E5ten> line 27, you memset 1 byte, so couldn't you just do an assignment there?
2020-08-01T05:13:09 #kisslinux <mcpcpc[m]> *in okpal
2020-08-01T05:13:52 #kisslinux <dylanaraps> E5ten: Yes! Awesome.
2020-08-01T05:14:34 #kisslinux <dylanaraps> mcpcpc[m]: I started from scratch with these a few hours ago. Fixed all issues that the themes in pywal have. I'll have a look at yours too.
2020-08-01T05:15:00 #kisslinux <E5ten> so I think it'd be just remove the memset call and set the first parameter (with the & removed) to c?
2020-08-01T05:15:11 #kisslinux <dylanaraps> > pal[num][color] = c;
2020-08-01T05:15:18 #kisslinux <dylanaraps> It's not yelling at me about this.
2020-08-01T05:15:36 #kisslinux <dylanaraps> Works too.
2020-08-01T05:15:39 #kisslinux <dylanaraps> Nice.
2020-08-01T05:16:53 #kisslinux <dylanaraps> Actually...
2020-08-01T05:17:01 #kisslinux <dylanaraps> I remember now.
2020-08-01T05:17:49 #kisslinux <E5ten> hm?
2020-08-01T05:18:00 #kisslinux <dylanaraps> I'm typing lol
2020-08-01T05:18:09 #kisslinux <E5ten> sorry lol
2020-08-01T05:19:04 #kisslinux <dylanaraps> Every iteration updates the value of c, yeah? If I keep assigning c, won't each instance of c contain the same value (the most recent)?
2020-08-01T05:19:11 #kisslinux <dylanaraps> This is why I was copying the data.
2020-08-01T05:19:18 #kisslinux <dylanaraps> It seems to work with this change though(?)
2020-08-01T05:20:13 #kisslinux <E5ten> c isn't a pointer, so when you assign pal[num][color] to it, you aren't pointing to c, meaning pal[num][color] would change when c did, you're just assigning it's value to pal[num][color]
2020-08-01T05:21:06 #kisslinux <dylanaraps> Understood, thanks.
2020-08-01T05:22:39 #kisslinux <E5ten> http://ix.io/2sQl here's a diff to switch to buffered output instead of write()ing to an fd, and afaik, currently O_NONBLOCK has no effect for regular files anyway
2020-08-01T05:23:03 #kisslinux <dylanaraps> I'm writing to terminal devices there.
2020-08-01T05:23:22 #kisslinux <dylanaraps> These specifically: /dev/pts/[0-9]*
2020-08-01T05:23:45 #kisslinux <E5ten> oh! that's what I get for not reading closely lol, I just assumed it was writing to a config file or something lol
2020-08-01T05:23:46 #kisslinux <dylanaraps>  pseudo-TTYs*
2020-08-01T05:23:52 #kisslinux <dylanaraps> No no
2020-08-01T05:24:46 #kisslinux <dylanaraps> There's no config or anything. Just read stdin, morph into sequences, print to all ptys and finally stdout.
2020-08-01T05:25:05 #kisslinux <E5ten> makes sense
2020-08-01T05:25:49 #kisslinux <dylanaraps> Any ideas about this?: seq->size += ret - 1; /* why */
2020-08-01T05:26:28 #kisslinux <dylanaraps> value is important here:  ret = snprintf(seq->str + seq->size, ret, fmt, off, col);
2020-08-01T05:26:51 #kisslinux <E5ten> what do you mean? like what's it supposed to be doing?
2020-08-01T05:26:54 #kisslinux <dylanaraps> (the - 1 I mean)
2020-08-01T05:29:50 #kisslinux <dylanaraps> I'm incrementing seq->size as I append to seq->str. ret is the return value from snprintf with NULL buffer and size. I do 'seq->str + seq->size' to append via snprintf. Without the '-1' it never appends, just overwrites from the start.
2020-08-01T05:30:44 #kisslinux <dylanaraps> I'm trying to understand why the '- 1' is needed (or if it's caused by error elsewhere) basically.
2020-08-01T05:33:12 #kisslinux <E5ten> for the first snprintf with the 0s, make it ret = snprintf(...) + 1; and remove the -1, and tell me if that works
2020-08-01T05:33:53 #kisslinux <dylanaraps> Yeah, it looks to work.
2020-08-01T05:34:28 #kisslinux <E5ten> before, you were only allocating enough space for the string, not the null-byte at the end, so to fit that snprintf was leaving out the last byte it was supposed to put in seq->str
2020-08-01T05:34:49 #kisslinux <E5ten> I'm not really sure why that manifested as writing from the start, or why - 1 seemed to somewhat fix that, but that was the issue
2020-08-01T05:35:32 #kisslinux <dylanaraps> Yeah, I see that now. Also discovered that my escape sequences contained an extra \ on the end.
2020-08-01T05:36:09 #kisslinux <dylanaraps> Thanks for the help, appreciate it.
2020-08-01T05:36:23 #kisslinux <E5ten> nw
2020-08-01T05:36:33 #kisslinux <E5ten> also, you can remove string.h, memset was all that was being used from it
2020-08-01T05:37:10 #kisslinux <dylanaraps> Wonderful
2020-08-01T05:37:32 #kisslinux <E5ten> and you should check the return value of write()
2020-08-01T05:37:36 #kisslinux <dylanaraps> Why is open in fcntl.h and close in unistd.h ???
2020-08-01T05:37:37 #kisslinux <dylanaraps> Will do.
2020-08-01T05:38:29 #kisslinux <E5ten> I'm actually kinda confused by that one too, but I guess it's cuz open needs all those O_ constants also used with fcntl, while close doesn't, so it doesn't need to be in that header?
2020-08-01T05:38:44 #kisslinux <E5ten> but yeah, doesn't make sense to me either I'd think close should be in fcntl.h too
2020-08-01T05:39:49 #kisslinux <dylanaraps> Yeah
2020-08-01T05:41:23 #kisslinux <dylanaraps> write returns ssize_t and I need to compare with size_t, great!
2020-08-01T05:41:59 #kisslinux <E5ten> just assign its return to a var, and check if (var < 0 || (size_t)var < sizevar)
2020-08-01T05:42:09 #kisslinux <dylanaraps> Yeah
2020-08-01T05:44:05 #kisslinux <E5ten> tbh, I think it'd make more sense to just write to /dev/tty, and change the palette for that terminal specifically?
2020-08-01T05:44:49 #kisslinux <E5ten> like if they want it in all their terminals from then on they'd add the cat line to their startup file anyway right, and it's a lot simpler to have paleta on its own only modify the terminal it's called from?
2020-08-01T05:45:40 #kisslinux <dylanaraps> It's meant to modify all running terminals, that's the point. Also, you could just printf to stdout for the current terminal.
2020-08-01T05:45:54 #kisslinux <E5ten> ah
2020-08-01T05:46:24 #kisslinux <dylanaraps> I can set a theme system-wide and have new terminals automatically start using it.
2020-08-01T05:46:45 #kisslinux <dylanaraps> Bypasses terminal configuration files and works in pretty much everything.
2020-08-01T05:47:07 #kisslinux <dylanaraps> And it happens on-the-fly!
2020-08-01T05:51:12 #kisslinux <E5ten> I think cool extra functionality would be a flag to just print the current palette, without setting one, for saving
2020-08-01T05:51:43 #kisslinux <E5ten> if that's possible
2020-08-01T05:53:52 #kisslinux <dylanaraps> Well, when you set the palette you're supposed to do '> /path/to/file' to store it.
2020-08-01T05:54:31 #kisslinux <dylanaraps> This stores the sequences however (for use in setting colors in new terminals).
2020-08-01T05:56:23 #kisslinux <E5ten> it seems FILE io works for this too
2020-08-01T05:56:46 #kisslinux <dylanaraps> Yeah
2020-08-01T05:56:49 #kisslinux <dylanaraps> I was using it originally
2020-08-01T05:57:00 #kisslinux <dylanaraps> Not sure what works best when terminals > 20 for example.
2020-08-01T05:57:52 #kisslinux <E5ten> I mean I'd guess the expensive parts of fopen and fclose are the underlying open and close, probably wouldn't really be that different? could benchmark by opening like 25 terminals and comparing runtime lol
2020-08-01T05:59:38 #kisslinux <E5ten> seems almost identical even at like 30 terminals
2020-08-01T05:59:42 #kisslinux <dylanaraps> I'll do just that
2020-08-01T06:00:32 #kisslinux <E5ten> like both of them are less than 0.01 seconds, with the FILE one seeming to get a tiny bit slower (like 0.002 seconds slower, if at all) at truly ridiculous amounts of terminals
2020-08-01T06:01:57 #kisslinux <dylanaraps> I'm convinced
2020-08-01T06:05:00 #kisslinux <dylanaraps> https://github.com/dylanaraps/paleta/commit/5a40e3f5d1c5992b9933a5d97cf56f8e74593357
2020-08-01T06:05:07 #kisslinux <dylanaraps> Nice change
2020-08-01T06:05:38 #kisslinux <E5ten> dropping 2 headers hell yeah lol
2020-08-01T06:08:46 #kisslinux <dylanaraps> Yeah
2020-08-01T06:08:52 #kisslinux <dylanaraps> I don't need to pass the struct now either.
2020-08-01T06:08:57 #kisslinux <E5ten> if you wanted, you don't really need paleta.h, you can just move the struct definition to paleta.c, and reorder the functions so the ones that call others come after those others, and then mark them all static (and also mark the global pal variable static)
2020-08-01T06:09:41 #kisslinux <dylanaraps> Yeah, am aware. It just feels tidier to me this way, dunno.
2020-08-01T06:10:22 #kisslinux <dylanaraps> The log.h file really doesn't need to exist but I like hiding the ugly macros away in a file. lol
2020-08-01T06:10:38 #kisslinux <E5ten> it makes it so when a function sig changes it's gotta be updated in 2 places even though it's only used in its own .c
2020-08-01T06:11:14 #kisslinux <dylanaraps> I'll make the change
2020-08-01T06:12:00 #kisslinux <E5ten> obviously it's up to you, I'm just noting what I think is an advantage of not having the header, if you find it tidier that also makes sense
2020-08-01T06:12:27 #kisslinux <dylanaraps> Yeah
2020-08-01T06:12:37 #kisslinux <dylanaraps> I'm going to see how it looks anyway. I may like it. :P
2020-08-01T06:14:29 #kisslinux <dylanaraps> I'll have to move main() as well?
2020-08-01T06:14:38 #kisslinux <dylanaraps> > warning: function declaration isn't a prototype
2020-08-01T06:14:46 #kisslinux <dylanaraps> Single warning for pal_read() which is called from main().
2020-08-01T06:15:03 #kisslinux <E5ten> isn't main still at the end?
2020-08-01T06:15:07 #kisslinux <dylanaraps> Yes
2020-08-01T06:15:15 #kisslinux <E5ten> is pal_read static?
2020-08-01T06:15:23 #kisslinux <dylanaraps> Yes
2020-08-01T06:15:30 #kisslinux <E5ten> can you send the C file?
2020-08-01T06:15:53 #kisslinux <dylanaraps> https://termbin.com/qali
2020-08-01T06:16:36 #kisslinux <dylanaraps> I could just add the definitions to this file.
2020-08-01T06:17:06 #kisslinux <E5ten> I'm not even getting that warning, so I guess it's gcc specific?
2020-08-01T06:17:16 #kisslinux <E5ten> oh wait
2020-08-01T06:17:22 #kisslinux <dylanaraps> Let me try Clang
2020-08-01T06:17:25 #kisslinux <E5ten> make the pal_read decl pal_read(void)
2020-08-01T06:17:48 #kisslinux <dylanaraps> Yup
2020-08-01T06:17:49 #kisslinux <E5ten> I think that's what you're supposed to do when a function has no arguments instead of just leaving the () empty
2020-08-01T06:17:53 #kisslinux <dylanaraps> That did it.
2020-08-01T06:17:56 #kisslinux <dylanaraps> Yeah
2020-08-01T06:17:56 #kisslinux <E5ten> nic
2020-08-01T06:17:59 #kisslinux <E5ten> nice*
2020-08-01T06:29:34 #kisslinux <dylanaraps> Simplified argument handling: https://github.com/dylanaraps/paleta/commit/b55c1f472d26dc3aec18e711a128233b3b51a392
2020-08-01T06:35:48 #kisslinux <E5ten> Nice
2020-08-01T06:36:14 #kisslinux <E5ten> Wouldn't that trigger -v with any first character?
2020-08-01T06:36:20 #kisslinux <E5ten> If the second was v I mean
2020-08-01T06:36:28 #kisslinux <E5ten> Like "xv" or something
2020-08-01T06:37:52 #kisslinux <dylanaraps> Yes
2020-08-01T06:38:01 #kisslinux <dylanaraps> That's fine though.
2020-08-01T06:38:07 #kisslinux <dylanaraps> This utility only takes -h and -v.
2020-08-01T06:38:07 #kisslinux <E5ten> yeah
2020-08-01T06:38:13 #kisslinux <dylanaraps> No arguments and it reads from stdin.
2020-08-01T07:19:55 #kisslinux <aosync> Hello
2020-08-01T07:20:09 #kisslinux <dylanaraps> o/.
2020-08-01T07:46:32 #kisslinux <dylanaraps> > #kisslinux
2020-08-01T07:46:32 #kisslinux <dylanaraps> This week, we’re releasing GTK 3.99, which can only mean one thing: GTK4 is getting really close!
2020-08-01T07:46:34 #kisslinux <dylanaraps> Oh no
2020-08-01T07:46:59 #kisslinux <dylanaraps> My clipboard really botched that.
2020-08-01T08:27:45 #kisslinux <adamantium> dylanaraps: o/
2020-08-01T08:28:36 #kisslinux <dylanaraps> Hello adamantium:
2020-08-01T08:28:42 #kisslinux <dylanaraps> How goes things?
2020-08-01T08:30:06 #kisslinux <adamantium> Going good. Trying to learn a lot about drupal / civicrm, ansible, systemd, mysql, etc... all for work, taking up all my time.
2020-08-01T08:30:19 #kisslinux <adamantium> and drush and composer
2020-08-01T08:30:33 #kisslinux <adamantium> it's the anti-kiss
2020-08-01T08:30:39 #kisslinux <adamantium> all this stuff :()
2020-08-01T08:30:47 #kisslinux <dylanaraps> Hey
2020-08-01T08:30:53 #kisslinux <dylanaraps> You're learning new skills regardless :P
2020-08-01T08:32:31 #kisslinux <adamantium> Yeah the company I'm at is pretty cool so far, it's a good opportunity, CEO really cares what's going on, video chats with me every week / mentors in the devops and team communication area of things
2020-08-01T08:33:55 #kisslinux <adamantium> It's basically me and one other guy managing all the server setups and it's pretty complex and far from perfect, scares the hell out of me sometimes, and the other guy is such a genius I suspect they are worried he has too bright of a future to stay with them forever, so they are kind of grooming me to steer the ship some day
2020-08-01T08:34:23 #kisslinux <adamantium> But it's cool they have like a long term plan for me and want to invest in my learning
2020-08-01T08:34:29 #kisslinux <adamantium> How are you doing dylanaraps  ?!
2020-08-01T08:34:59 #kisslinux <dylanaraps> That's awesome
2020-08-01T08:35:48 #kisslinux <adamantium> Yeah, my least favorite part is logging time in redmine like a bean counter
2020-08-01T08:35:56 #kisslinux <adamantium> It screws with my flow
2020-08-01T08:36:04 #kisslinux <dylanaraps> > Redmine is a flexible project management web application.
2020-08-01T08:36:05 #kisslinux <dylanaraps> I see
2020-08-01T08:36:41 #kisslinux <adamantium> But I'm getting married next month so this job is a godsend
2020-08-01T08:36:58 #kisslinux <dylanaraps> Woah! You should've started with that.
2020-08-01T08:37:04 #kisslinux <adamantium> lmao
2020-08-01T08:37:16 #kisslinux <dylanaraps> Congratulations!
2020-08-01T08:37:19 #kisslinux <adamantium> THX
2020-08-01T08:37:31 #kisslinux <adamantium> She's a good traditional female likes to cook and clean and make babies
2020-08-01T08:38:05 #kisslinux <adamantium> And go to church
2020-08-01T08:39:06 #kisslinux <dylanaraps> Marry her today!
2020-08-01T08:39:10 #kisslinux <adamantium> Right
2020-08-01T08:40:05 #kisslinux <adamantium> How goes the kiss project
2020-08-01T08:41:17 #kisslinux <dylanaraps> It goes good
2020-08-01T08:41:36 #kisslinux <dylanaraps> Where do I start?
2020-08-01T08:43:22 #kisslinux <dylanaraps> Have you been reading the monthly posts?
2020-08-01T08:43:36 #kisslinux <adamantium> I have, but is there a new one out now?
2020-08-01T08:43:44 #kisslinux <dylanaraps> I'm writing it as we speak.
2020-08-01T08:43:45 #kisslinux <dylanaraps> :P
2020-08-01T08:43:49 #kisslinux <adamantium> AHA
2020-08-01T08:44:31 #kisslinux <dylanaraps> It won't be as large as last month's fyi. Was a peaceful month.
2020-08-01T08:45:11 #kisslinux <dylanaraps> A big part of writing the monthly post is trying to remember what happened the past month. lol
2020-08-01T08:45:50 #kisslinux <adamantium> lol ya and something tells me you might be a stoney character
2020-08-01T08:46:24 #kisslinux <adamantium> if not i'm sorry I just thought you're laid back and seem like might be the type
2020-08-01T08:47:02 #kisslinux <dylanaraps> I have many faces ;)
2020-08-01T08:47:16 #kisslinux <adamantium> heh
2020-08-01T08:52:32 #kisslinux <dylanaraps> This is my latest thing: https://github.com/dylanaraps/paleta
2020-08-01T08:52:47 #kisslinux <dylanaraps> I've been awake for two days working on it. :|
2020-08-01T08:55:36 #kisslinux <adamanti`> let's see
2020-08-01T08:58:53 #kisslinux <adamantium`> dylanaraps: Yep looks like something you would be making !!
2020-08-01T08:59:19 #kisslinux <adamantium`> I'm sure it will be legendary when you're done
2020-08-01T08:59:40 #kisslinux <dylanaraps> It's done :D
2020-08-01T08:59:43 #kisslinux <adamantium`> Hey dylanaraps question - If I was going to learn python in a month for work what would I do
2020-08-01T08:59:47 #kisslinux <adamantium`> nice
2020-08-01T09:00:11 #kisslinux <dylanaraps> Write some software to solve a personal (or work) need you have.
2020-08-01T09:00:25 #kisslinux <adamantium`> so just start using it then
2020-08-01T09:00:29 #kisslinux <dylanaraps> Yeah
2020-08-01T09:00:48 #kisslinux <adamantium`> k
2020-08-01T09:01:03 #kisslinux <dylanaraps> If you spend a month working on something (or a few things), you'll know Python by the end of it.
2020-08-01T09:01:11 #kisslinux <adamantium`> I like bash / sh better but my coworker prefer python
2020-08-01T09:01:50 #kisslinux <adamantium`> im just crazy like that
2020-08-01T09:02:08 #kisslinux <dylanaraps> lol
2020-08-01T09:02:14 #kisslinux <adamantium`> but his bash style is funky
2020-08-01T09:02:22 #kisslinux <adamantium`> so i kinda just wanna do python
2020-08-01T09:02:36 #kisslinux * adamantium` shrugs
2020-08-01T09:02:39 #kisslinux <dylanaraps> Makes sense
2020-08-01T09:03:09 #kisslinux <adamantium`> I learned scripting largely working with you
2020-08-01T09:03:13 #kisslinux <adamantium`> now everyone elses looks like crap
2020-08-01T09:03:23 #kisslinux <adamantium`> so thanks for ruining it man
2020-08-01T09:04:16 #kisslinux <adamantium`> Hey the bar is going to stop selling beer soon (7-11) gotta make a run to the store again
2020-08-01T09:04:23 #kisslinux <dylanaraps> lmao
2020-08-01T09:04:26 #kisslinux <dylanaraps> Alrighty
2020-08-01T09:04:31 #kisslinux <adamantium`> brb
2020-08-01T09:25:40 #kisslinux <adamantium`>  made it back
2020-08-01T09:27:08 #kisslinux <claudia02> hu
2020-08-01T09:27:45 #kisslinux <claudia02> illitiliti: after update to libudev-zero 0.3 my mouse and trackpoint stopped working
2020-08-01T09:28:11 #kisslinux <claudia02> I have already rebuild libinput, xorg-server, ... but not success
2020-08-01T09:28:27 #kisslinux <adamantium`> hey do you think there is money to be made locally by advertising linux desktop windows replacement "reivive your old computer"
2020-08-01T09:28:56 #kisslinux <adamantium`> it'd be fun to install ubuntu for people for 50 bucks
2020-08-01T09:29:39 #kisslinux <dylanaraps> Depends on the people I'd say. Those wanting just a browser to do everyday things will likely not notice the difference.
2020-08-01T09:29:44 #kisslinux <claudia02> I think the point for ubuntu is that even low experienced people can do it. But they would propably need some crash course ;)
2020-08-01T09:29:47 #kisslinux <dylanaraps> claudia02: I'll see if I can reproduce.
2020-08-01T09:29:48 #kisslinux <j`ey> and kiss for 100$
2020-08-01T09:29:58 #kisslinux <adamantium`> last year one time i reinstalled windows 10 on my bar friends computer and had free drinks all night
2020-08-01T09:30:05 #kisslinux <dylanaraps> brb 2 secs
2020-08-01T09:31:29 #kisslinux <adamantium> hey hey im on the riseup.net vpn because im a real hacker
2020-08-01T09:31:43 #kisslinux <adamantium> watch out
2020-08-01T09:31:58 #kisslinux <adamantium> wanna join my collective
2020-08-01T09:32:03 #kisslinux <dylanaraps> Reverted the libudev-zero update.
2020-08-01T09:32:14 #kisslinux <dylanaraps> I still had keyboard input but no touchpad.
2020-08-01T09:32:20 #kisslinux <claudia02> adamantium[m]: What kind of company are you working for?
2020-08-01T09:32:26 #kisslinux <claudia02> dylanaraps: yes same.
2020-08-01T09:32:33 #kisslinux <dylanaraps> I only tested with 'libinput' on the command-line prior to the bump... apologies.
2020-08-01T09:32:46 #kisslinux <adamantium> claudia02: it's a drupal and civicrm company that serves large nonprofits
2020-08-01T09:32:53 #kisslinux <dylanaraps> Will be sure to kill Xorg next time =)
2020-08-01T09:33:07 #kisslinux <adamantium> i'd drop the name except that i'm drinkin and acting like a stooge in public
2020-08-01T09:34:32 #kisslinux <dylanaraps> Turns out we may need to swap to elfutils (big oof) after all... the old libelf and elftoolchain will both be incompatible with the kernel from 5.8 onwards.
2020-08-01T09:35:00 #kisslinux <dylanaraps> These are both also dead upstream with elfutils being the only one in (active) development(?)
2020-08-01T09:39:46 #kisslinux <dylanaraps> > configure: error: "no libargp found"
2020-08-01T09:39:48 #kisslinux <dylanaraps> It begins
2020-08-01T09:40:14 #kisslinux <adamantium> have you guys tried systemd-homed
2020-08-01T09:41:17 #kisslinux <j`ey> dylanaraps: whats
2020-08-01T09:41:27 #kisslinux <j`ey> dylanaraps: whats 'oof' about elfutils?
2020-08-01T09:44:45 #kisslinux <dylanaraps> Requires 8~ or so patches for musl, plus fts, argp, etc (ripped out code from other C libraries. typically glibc, uclibc or NetBSD's).
2020-08-01T09:45:28 #kisslinux <j`ey> oh
2020-08-01T09:45:52 #kisslinux <dylanaraps> Upstream don't really want to support musl.
2020-08-01T09:57:38 #kisslinux <adamantium> happy august 1
2020-08-01T10:01:17 #kisslinux <adamantium> I love Emacs so badly that if it was windows only I would switch to windows
2020-08-01T10:01:24 #kisslinux <adamantium> is that not true love
2020-08-01T10:02:09 #kisslinux <adamantium> Thankfully I can init kiss linux with it
2020-08-01T10:03:32 #kisslinux <dylanaraps> lol
2020-08-01T10:03:40 #kisslinux <dylanaraps> Can confirm that the kernel works with elfutils.
2020-08-01T10:03:49 #kisslinux <dylanaraps> Also that I've packaged it without needing anything messy.
2020-08-01T10:03:55 #kisslinux <dylanaraps> Hooray!
2020-08-01T10:04:19 #kisslinux <adamantium> hip hip
2020-08-01T10:04:37 #kisslinux <dylanaraps> There's a couple of tiny things I need to fix first.
2020-08-01T10:06:57 #kisslinux <adamantium> man only at 7-11 can you order two slices of pizza and they turn one of them upside-down and put them in one pizza slice box
2020-08-01T10:07:00 #kisslinux <adamantium> screw that
2020-08-01T10:07:09 #kisslinux <dylanaraps> :(
2020-08-01T10:07:14 #kisslinux <dylanaraps> I didn't know they did pizza
2020-08-01T10:07:32 #kisslinux <adamantium> it's probably regional
2020-08-01T10:07:50 #kisslinux <dylanaraps> Yup
2020-08-01T10:07:53 #kisslinux <dylanaraps> I have no 7/11 here
2020-08-01T10:07:57 #kisslinux <adamantium> in hawaii at 7-11 you can order spam based food
2020-08-01T10:07:58 #kisslinux <dylanaraps> ;)
2020-08-01T10:08:02 #kisslinux <dylanaraps> gross
2020-08-01T10:08:15 #kisslinux <adamantium> hawaii is number 1 spam consumer in the world
2020-08-01T10:08:49 #kisslinux <dylanaraps> never going to hawaii now
2020-08-01T10:08:58 #kisslinux <adamantium> nah just blame the portugues
2020-08-01T10:09:04 #kisslinux <adamantium> or whatever
2020-08-01T10:09:09 #kisslinux <adamantium> mayeb filiipnos fault
2020-08-01T10:09:19 #kisslinux <adamantium> from the plantation days
2020-08-01T10:09:26 #kisslinux <adamantium> they have good food too
2020-08-01T10:10:02 #kisslinux <adamantium> like kalua pig and lomi salmon , poi and lau lau
2020-08-01T10:11:33 #kisslinux <dylanaraps> Interesting
2020-08-01T10:12:35 #kisslinux <adamantium> was going to take my wife there for honeymoon
2020-08-01T10:12:44 #kisslinux <adamantium> I lived on Oahu during my 20s
2020-08-01T10:12:51 #kisslinux <adamantium> but now ....... corona!
2020-08-01T10:13:47 #kisslinux <adamantium> also hawaiian poke is really good
2020-08-01T10:17:12 #kisslinux <j`ey> dylanaraps: are you going to push all that?
2020-08-01T10:18:46 #kisslinux <dylanaraps> Push all what?
2020-08-01T10:18:57 #kisslinux <j`ey> elfutils packages
2020-08-01T10:21:18 #kisslinux <dylanaraps> Will only be libelf
2020-08-01T10:23:11 #kisslinux <adamantium> I think im done.  Sorry for being a nuisance
2020-08-01T10:23:31 #kisslinux <adamantium> o/ you were a gracious channel
2020-08-01T10:24:19 #kisslinux <j`ey> alright, onto kiss 4.0.2 now, I'll try rewrite my modifications to use hooks
2020-08-01T10:28:21 #kisslinux <j`ey> https://k1ss.org/package-manager links to https://k1ss.org/wiki/kiss/package-manager-hooks which 404s dylanaraps
2020-08-01T10:31:15 #kisslinux <j`ey> dylanaraps: why do you have kiss) rm -rf "$DEST/usr/bin" ;; in your postbuild hook?
2020-08-01T10:32:51 #kisslinux <j`ey> also the default hook on that page doesnt match what kiss does
2020-08-01T10:33:32 #kisslinux <dylanaraps> j`ey: Thanks, will fix.
2020-08-01T10:34:00 #kisslinux <dylanaraps> j`ey: I want the docs in /usr/share/doc/ but don't want the script itself.
2020-08-01T10:34:08 #kisslinux <dylanaraps> I use whatever I develop with.
2020-08-01T10:38:10 #kisslinux <j`ey> you mean that you just use the 'development' veersion of kiss always?
2020-08-01T10:50:25 #kisslinux <dylanaraps> Yes
2020-08-01T10:50:55 #kisslinux <dylanaraps> development versions of anything i've written
2020-08-01T10:51:11 #kisslinux <dylanaraps> they're just symlinks to my bin
2020-08-01T10:51:37 #kisslinux <dylanaraps> symlinks from my bin?
2020-08-01T11:14:04 #kisslinux <dylanaraps> quit
2020-08-01T11:14:38 #kisslinux <dylanaraps> lol
2020-08-01T11:14:47 #kisslinux <dylanaraps> here's the elfutils build: https://github.com/kisslinux/repo/blob/ee62c900f91aade29e93b7fe83464810c44aab50/extra/libelf/build
2020-08-01T11:14:57 #kisslinux <dylanaraps> wasn't that bad
2020-08-01T12:02:09 #kisslinux <icyphox> https://reddit.com/comments/i1j6vg
2020-08-01T12:02:19 #kisslinux <icyphox> Making a subreddit was probably not a great idea.
2020-08-01T12:11:29 #kisslinux <dylanaraps> wdym?
2020-08-01T12:31:28 #kisslinux <aosync> dylanaraps: you've tried netsurf at some point right?
2020-08-01T12:31:46 #kisslinux <aosync> can you play youtube videos on it?
2020-08-01T12:33:29 #kisslinux <dylanaraps> I don't think so
2020-08-01T13:06:21 #kisslinux <konimex> elfutils failed to build with clang
2020-08-01T13:06:23 #kisslinux <konimex> well... fuck
2020-08-01T13:08:38 #kisslinux <konimex> https://sourceware.org/bugzilla/show_bug.cgi?id=24964
2020-08-01T13:44:28 #kisslinux <dylanaraps> > Really this is a clang bug, it simply has to implement the various GNU extensions it claims to support.
2020-08-01T13:44:29 #kisslinux <dylanaraps> lol
2020-08-01T13:44:56 #kisslinux <dylanaraps> > yes, there were about 20 patches, that tried to rework code to work around clang deficiencies. Those have been accepted and incorporated. But more work would be needed. Patches welcome.
2020-08-01T14:03:52 #kisslinux <konimex> I don't know if the elfutils requirement is specific to some driver code or will be mandatory for all functions so will wait until 5.8 release
2020-08-01T14:06:35 #kisslinux <j`ey> I thought it was for the orc unwinder stuff, which might not be necessary for all builds
2020-08-01T14:06:40 #kisslinux <dylanaraps> It's a change in objtool specifically.
2020-08-01T14:06:54 #kisslinux <dylanaraps> I /believe/ it's this one: https://git.kernel.org/pub/scm/linux/kernel/git/sfr/linux.git/commit/tools/objtool?id=28fe1d7bf89f8ed5be70b98a33932dbaf99345dd
2020-08-01T14:08:35 #kisslinux <dylanaraps> It's CONFIG_STACK_VALIDATION and CONFIG_UNWINDER_ORC I think.
2020-08-01T14:09:58 #kisslinux <dylanaraps> Nope.. even if I disable them it just flips them back on again.
2020-08-01T14:11:50 #kisslinux <Evil_Bob> icyphox: i think using chsh is a better solution (related to priviledges)
2020-08-01T14:12:12 #kisslinux <dylanaraps> OK. If you change the unwinder from ORC and then disable stack validation, it seems to let you pass.
2020-08-01T14:13:34 #kisslinux <konimex> so, any kernel functions depend on those two configs?
2020-08-01T14:13:42 #kisslinux <konimex> will be useful to document
2020-08-01T14:15:34 #kisslinux <dylanaraps> ORC_UNWINDER depends on STACK_VALIDATION
2020-08-01T14:15:41 #kisslinux <dylanaraps> I don't think anything depends on these though.
2020-08-01T14:17:36 #kisslinux <dylanaraps> https://termbin.com/547t
2020-08-01T14:19:17 #kisslinux <dylanaraps> Also found this: https://kernel.googlesource.com/pub/scm/linux/kernel/git/lftan/nios2/+/nios2-v4.6-rc2/tools/objtool/Documentation/stack-validation.txt
2020-08-01T14:21:40 #kisslinux <konimex> alright, looks like I'll try disabling those and roll my own libelf pkg
2020-08-01T14:23:57 #kisslinux <dylanaraps> Nice
2020-08-01T14:24:03 #kisslinux <dylanaraps> You have a choice between the three now.
2020-08-01T14:24:05 #kisslinux <konimex> > OK. If you change the unwinder from ORC and then disable stack validation, it seems to let you pass.
2020-08-01T14:24:05 #kisslinux <konimex> how exactly does one change the unwinder? just disabling it should be good right?
2020-08-01T14:24:12 #kisslinux <dylanaraps> No
2020-08-01T14:24:17 #kisslinux <dylanaraps> You need to pick one.
2020-08-01T14:24:50 #kisslinux <dylanaraps> > CONFIG_UNWINDER_ORC, CONFIG_UNWINDER_FRAME_POINTER or CONFIG_UNWINDER_GUESS
2020-08-01T14:25:02 #kisslinux <konimex> ah I see
2020-08-01T14:25:59 #kisslinux <dylanaraps> FRAME_POINTER has a 5-10% performance decrease (in general!) https://cateee.net/lkddb/web-lkddb/UNWINDER_FRAME_POINTER.html
2020-08-01T14:26:39 #kisslinux <dylanaraps> GUESS has no runtime overhead but sometimes gets it wrong.
2020-08-01T14:27:22 #kisslinux <dylanaraps> The downside to ORC in the docs is > this option will increase the kernel's runtime memory usage by roughly 2-4MB
2020-08-01T14:30:57 #kisslinux <dylanaraps> Possible patch? https://www.mail-archive.com/linux-kernel⊙vko/msg1182844.html
2020-08-01T14:33:27 #kisslinux <konimex> it has been merged (I think)
2020-08-01T14:34:57 #kisslinux <dylanaraps> Ah
2020-08-01T14:54:36 #kisslinux <smoke790> hello, while installing kiss linux for the first time, I've stumbled upon an error while running kiss-chroot. It said: /mnt/bin/kiss-chroot: line 71:  2963 Illegal instruction chroot "$1"
2020-08-01T14:54:47 #kisslinux <smoke790> Any ideas why it's happening?
2020-08-01T14:55:02 #kisslinux <j`ey> this was on reddit too
2020-08-01T14:55:17 #kisslinux <j`ey> are you installing on a vm?
2020-08-01T14:55:46 #kisslinux <smoke790> using a thinkpad x200s with parabola iso running from an usb device now
2020-08-01T14:55:55 #kisslinux <dylanaraps> Which chroot are you using?
2020-08-01T14:55:59 #kisslinux <dylanaraps> This one? https://github.com/kisslinux/repo/releases/tag/2020.7
2020-08-01T14:58:08 #kisslinux <smoke790> Using one from the guide (/releases/1.12.0)
2020-08-01T14:59:24 #kisslinux <dylanaraps> Ah
2020-08-01T14:59:31 #kisslinux <dylanaraps> I forgot to push my changes to the site.
2020-08-01T14:59:44 #kisslinux <dylanaraps> Try the 2020.7 tarball.
2020-08-01T15:06:01 #kisslinux <smoke790> Works fine this time, thank you
2020-08-01T15:06:25 #kisslinux <j`ey> dylanaraps: did you build 1.12 with different flags
2020-08-01T15:06:26 #kisslinux <j`ey> ?
2020-08-01T15:13:19 #kisslinux <dylanaraps> j`ey: I did not. I'm not quite sure what went wrong. I didn't do anything differently.
2020-08-01T15:16:34 #kisslinux <j`ey> dylanaraps: weird
2020-08-01T15:36:43 #kisslinux <illiliti> dylanaraps: fix pushed
2020-08-01T15:36:57 #kisslinux <dylanaraps> Nice
2020-08-01T15:37:48 #kisslinux <dylanaraps> brb 2 secs
2020-08-01T15:43:51 #kisslinux <illiliti> it works ?
2020-08-01T15:45:48 #kisslinux <dylanaraps> Yes!
2020-08-01T15:45:56 #kisslinux <dylanaraps> It's very quick now.
2020-08-01T15:46:16 #kisslinux <dylanaraps> Nice job
2020-08-01T15:47:57 #kisslinux <illiliti> thank you. will do release shortly
2020-08-01T15:48:46 #kisslinux <illiliti> 0.3.1 released
2020-08-01T15:50:33 #kisslinux <E5ten> dylanaraps: elftoolchain's upstream isn't dead afaik
2020-08-01T15:50:52 #kisslinux <E5ten> So maybe if someone opened a bug about what they're missing for building 5.8 they'd add it?
2020-08-01T15:50:56 #kisslinux <dylanaraps> It's been years since the last release no (2017, 2018?)?
2020-08-01T15:51:06 #kisslinux <E5ten> Git gets commits
2020-08-01T15:51:14 #kisslinux <dylanaraps> Really?
2020-08-01T15:51:18 #kisslinux <dylanaraps> I couldn't see any recent ones.
2020-08-01T15:51:32 #kisslinux <dylanaraps> https://github.com/elftoolchain/elftoolchain
2020-08-01T15:51:34 #kisslinux <dylanaraps> May 11~
2020-08-01T15:51:35 #kisslinux <E5ten> May 11th is the most recent commit
2020-08-01T15:51:53 #kisslinux <dylanaraps> Yeah
2020-08-01T15:52:00 #kisslinux <dylanaraps> It's mostly documentation work though
2020-08-01T15:52:04 #kisslinux <E5ten> That's only a few months, to me that doesn't indicate that it's dead, just that they don't know if changed they need to make right now
2020-08-01T15:52:21 #kisslinux <E5ten> I'm pretty sure freebsd uses elftoolchain so it can't really be dead dead
2020-08-01T15:52:37 #kisslinux <dylanaraps> Yeah
2020-08-01T15:52:46 #kisslinux <E5ten> And even a doc update is an indication that there's someone there that might make changes if needed
2020-08-01T15:52:58 #kisslinux <dylanaraps> I don't know how much of a de facto standard elfutils has become though
2020-08-01T15:53:12 #kisslinux <dylanaraps> Is libelf not standardized?
2020-08-01T15:53:19 #kisslinux <E5ten> I don't think so?
2020-08-01T15:54:02 #kisslinux <E5ten> Just like implementations being compatibleish because it's useful to do that I think?
2020-08-01T15:54:07 #kisslinux <dylanaraps> Actually: https://man.openbsd.org/elf
2020-08-01T15:54:10 #kisslinux <E5ten> What's missing from elftoolchain that 5.8 needs?
2020-08-01T15:54:23 #kisslinux <dylanaraps> The function isn't missing.
2020-08-01T15:54:29 #kisslinux <dylanaraps> I think it just differs from the elfutils one.
2020-08-01T15:54:40 #kisslinux <E5ten> Oh
2020-08-01T15:54:59 #kisslinux <E5ten> In what it does, or like argument order, or different arguments?
2020-08-01T15:55:00 #kisslinux <dylanaraps> Actually, it's in <gelf.h>
2020-08-01T15:55:06 #kisslinux <dylanaraps> I'll compare both
2020-08-01T15:55:29 #kisslinux <E5ten> I'm not at my computer which is why I'm not checking myself sorry lol
2020-08-01T15:56:03 #kisslinux <dylanaraps> > extern GElf_Sym *gelf_getsymshndx (Elf_Data *__symdata, Elf_Data *__shndxdata, int __ndx, GElf_Sym *__sym, Elf32_Word *__xshndx);
2020-08-01T15:56:06 #kisslinux <dylanaraps> elfutils
2020-08-01T15:56:58 #kisslinux <dylanaraps> > GElf_Sym*gelf_getsymshndx(Elf_Data *_src, Elf_Data *_shindexsrc, int _index, GElf_Sym *_dst, Elf32_Word *_shindexdst);
2020-08-01T15:57:02 #kisslinux <dylanaraps> elftoolchain
2020-08-01T15:57:18 #kisslinux <dylanaraps> The old libelf doesn't have this function at all iirc.
2020-08-01T15:58:06 #kisslinux <E5ten> Those 2 seem the same?
2020-08-01T15:59:13 #kisslinux <dylanaraps> https://termbin.com/k0h4
2020-08-01T15:59:16 #kisslinux <dylanaraps> Formatted them
2020-08-01T15:59:26 #kisslinux <dylanaraps> Could be that they behave differently
2020-08-01T15:59:56 #kisslinux <E5ten> What's the build error when trying to use elftoolchain?
2020-08-01T16:00:52 #kisslinux <dylanaraps> 2 secs
2020-08-01T16:02:10 #kisslinux <dylanaraps> This is the commit: https://lore.kernel.org/lkml/20200421220843.188260-2-samitolvanen⊙gc/
2020-08-01T16:02:15 #kisslinux <dylanaraps> The error: warning: objtool: gelf_getsymshndx: Invalid argument"
2020-08-01T16:02:31 #kisslinux <dylanaraps> I've also seen: warning: objtool: elf_getshdrnum: No Error
2020-08-01T16:03:40 #kisslinux <dylanaraps> The message is here: L380 tools/objtool/elf.c: WARN_ELF("gelf_getsymshndx");
2020-08-01T16:03:57 #kisslinux <dylanaraps> Same deal for elf_getshdrnum:
2020-08-01T16:04:38 #kisslinux <dylanaraps> Which expands to: WARN(format ": %s", ##__VA_ARGS__, elf_errmsg(-1))
2020-08-01T16:05:27 #kisslinux <dylanaraps> > The function elf_errmsg() returns a null-terminated stringwith a human
2020-08-01T16:05:28 #kisslinux <dylanaraps>      readable description of the error specified in argument error.
2020-08-01T16:05:43 #kisslinux <dylanaraps> > An argument value of -1 behaves identically, except that it guaranteesa non-NULL return from elf_errmsg()
2020-08-01T16:06:11 #kisslinux <dylanaraps> > const char*elf_errmsg(int _error); (elftoolchain)
2020-08-01T16:06:13 #kisslinux <dylanaraps> > extern const char *elf_errmsg (int __error);
2020-08-01T16:06:16 #kisslinux <dylanaraps> (elfutils)
2020-08-01T16:06:47 #kisslinux <E5ten> I'm not seeing a difference in how these 2 are supposed to work, I'm so confused
2020-08-01T16:06:59 #kisslinux <dylanaraps> There's no difference
2020-08-01T16:07:10 #kisslinux <dylanaraps> I'm going to look at how they're implemented
2020-08-01T16:09:34 #kisslinux <E5ten> ok so there's an if that sets shndx_data to a value, but if the if is false shndx_data will be NULL, and the elftoolchain manpage for the function says it'll fail if that (among other arguments) is NULL, can you change that if to also print some string you'll be able to recognize as the one you put in, and so if that string prints and the error also happens in the same invocation, that'll eliminate that as the issue?
2020-08-01T16:09:50 #kisslinux <E5ten> the if in the second hunk of the patch
2020-08-01T16:10:10 #kisslinux <dylanaraps> Sure
2020-08-01T16:11:24 #kisslinux <E5ten> oh wow lol not long to fix this issue if we want to before 5.8 is out, it'll probably be out in like a day unless there's an rc8 right?
2020-08-01T16:16:14 #kisslinux <dylanaraps> Code never reaches that point.
2020-08-01T16:17:02 #kisslinux <dylanaraps> E5ten: I swapped us to elfutils today regardless. As we just need libelf, there's only a single patch and no fts, obstack, argp.
2020-08-01T16:17:32 #kisslinux <dylanaraps> Code never gets past the first chunk in the commit
2020-08-01T16:17:40 #kisslinux <dylanaraps> > if (!gelf_getsymshndx(
2020-08-01T16:19:20 #kisslinux <dylanaraps> So.. it's meant to return the value of /sym/ on success and NULL on failure.
2020-08-01T16:19:54 #kisslinux <E5ten> ok looking at the code for that, elftoolchain is erroring when the second param is NULL, and elfutils doesn't
2020-08-01T16:20:52 #kisslinux <dylanaraps> I see it
2020-08-01T16:21:00 #kisslinux <E5ten> I don't know why I just said "that" lol, I mean the code for the function in elfutils and elftoolchain
2020-08-01T16:21:09 #kisslinux <dylanaraps> Yes
2020-08-01T16:21:21 #kisslinux <dylanaraps> I'm looking at the code for both too
2020-08-01T16:21:22 #kisslinux <dylanaraps> ;)
2020-08-01T16:21:46 #kisslinux <E5ten> does that seem to be the case to you too?
2020-08-01T16:22:50 #kisslinux <dylanaraps> Yes
2020-08-01T16:22:54 #kisslinux <dylanaraps> Let me patch and try it.
2020-08-01T16:22:59 #kisslinux <E5ten> because in elftoolchain I see them have the variable "lid" which is assigned to the second parameter which is cast to the type of "lid", then they error if lid is NULL, whereas in elfutils they have a comment "The user is not required to pass a data descriptor for an extended section index table." before doing something conditionally when the second param is non-NULL
2020-08-01T16:24:47 #kisslinux <E5ten> https://sourceforge.net/p/elftoolchain/tickets/593/
2020-08-01T16:25:59 #kisslinux <dylanaraps> Hurrah!
2020-08-01T16:26:38 #kisslinux <E5ten> I mean, no guarantees that'll get done though lol, they might not even respond to my bug
2020-08-01T16:26:52 #kisslinux <E5ten> would be better if we find a fix
2020-08-01T16:26:59 #kisslinux <dylanaraps> If I make elfutils fail in the same way I get: warning: objtool: gelf_getsymshndx: invalid `Elf' handle
2020-08-01T16:27:12 #kisslinux <dylanaraps> Which seems to be the same thing just with a different message.
2020-08-01T16:27:57 #kisslinux <dylanaraps> Can we fix this on the kernel's side?
2020-08-01T16:28:26 #kisslinux <dylanaraps> We'll just pass a data descriptor?
2020-08-01T16:28:54 #kisslinux <E5ten> they already pass a data descriptor conditionally I think
2020-08-01T16:29:06 #kisslinux <E5ten> in that if in the second hunk
2020-08-01T16:29:25 #kisslinux <dylanaraps> The code in the second hunk never ran for me with elftoolchain
2020-08-01T16:30:03 #kisslinux <dylanaraps> Or rather, my printfs did nothing.
2020-08-01T16:30:15 #kisslinux <E5ten> but the gelf_getsymshndx call is after the second hunk, I don't think the code in the second hunk would run in this case even using elfutils?
2020-08-01T16:30:55 #kisslinux <E5ten> like I think it's unrelated, it's just "the code in the second hunk doesn't happen cuz the if is false, so gelf_getsymshndx gets a NULL second param, and that's an error for elftoolchain but not for elfutils"
2020-08-01T16:31:08 #kisslinux <dylanaraps> > shndx_data
2020-08-01T16:31:22 #kisslinux <dylanaraps> This *is* conditionally set prior to the gelf_getsymshndx call
2020-08-01T16:31:27 #kisslinux <E5ten> yeah
2020-08-01T16:31:30 #kisslinux <E5ten> that's what I mean
2020-08-01T16:31:39 #kisslinux <E5ten> that's the if where I wanted the printf's
2020-08-01T16:31:42 #kisslinux <dylanaraps> Oh lol
2020-08-01T16:31:47 #kisslinux <E5ten> to see if it was set
2020-08-01T16:31:51 #kisslinux <dylanaraps> Hang on
2020-08-01T16:32:13 #kisslinux <E5ten> because if it is set and the error happens, the issue isn't a NULL second param, or at least it isn't always a NULL second param
2020-08-01T16:32:20 #kisslinux <dylanaraps> Yeah
2020-08-01T16:33:48 #kisslinux <dylanaraps> OK
2020-08-01T16:33:55 #kisslinux <dylanaraps> Condition is never met for it to be assigned
2020-08-01T16:34:09 #kisslinux <dylanaraps> It's passed to the function later still as NULL
2020-08-01T16:34:10 #kisslinux <E5ten> so then NULL second param is almost definitely the issue
2020-08-01T16:34:18 #kisslinux <dylanaraps> Let me see if it stays NULL with elfutils
2020-08-01T16:34:45 #kisslinux <dylanaraps> It does
2020-08-01T16:37:47 #kisslinux <dylanaraps> brb in an hour or so
2020-08-01T16:37:51 #kisslinux <dylanaraps> Thanks for the help
2020-08-01T16:38:31 #kisslinux <E5ten> well really I should thank you for helping me lol, you can use libelf, I'm the one who needs elftoolchain to work
2020-08-01T16:38:57 #kisslinux <j`ey> why?
2020-08-01T16:39:03 #kisslinux <j`ey> GNU?
2020-08-01T16:39:05 #kisslinux <E5ten> http://ix.io/2sSr here's a preliminary attempt I made to get elftoolchain's gelf_getsymshndx to work with NULL second param, if you can test that when you're back that'd be nice
2020-08-01T16:39:14 #kisslinux <E5ten> iirc elfutils doesn't build with clang?
2020-08-01T16:39:43 #kisslinux <j`ey> oh yeah konimex said that earrlier
2020-08-01T16:39:55 #kisslinux <E5ten> so yeah indirectly "GNU" is the reason lol
2020-08-01T16:39:59 #kisslinux <E5ten> I'm not gonna use gcc
2020-08-01T17:34:20 #kisslinux <dylanaraps> E5ten: Testing now.
2020-08-01T17:37:11 #kisslinux <E5ten> thanks
2020-08-01T17:37:44 #kisslinux <dylanaraps> > make[1]: *** [scripts/Makefile.build:281: init/main.o] Segmentation fault
2020-08-01T17:37:47 #kisslinux <dylanaraps> That's it
2020-08-01T17:38:09 #kisslinux <E5ten> well lol, clearly that preliminary attempt wasn't right
2020-08-01T17:38:47 #kisslinux <dylanaraps> :P
2020-08-01T17:42:46 #kisslinux <dylanaraps> lol... I found this. https://github.com/rhboot/efivar/commit/191e3b01463548fc3a99494cd0c0ec15c41e9382
2020-08-01T17:42:55 #kisslinux <dylanaraps> Remember reading the bug report (which is yours)
2020-08-01T17:43:28 #kisslinux <dylanaraps> I'm trying to debug someone's libelf error: Error: invalid attempt to declare external version name as default in symbol `efi_set_variable@@LIBEFIVAR_0.24'
2020-08-01T17:44:19 #kisslinux <dylanaraps> Though I believe this is LTO related (-flto is in the rest of the output)
2020-08-01T17:44:53 #kisslinux <dylanaraps> Huzzah . I can reproduce by adding -flto.
2020-08-01T17:44:54 #kisslinux <E5ten> http://ix.io/2sSG I think this should probably avoid the segfault, although I doubt it'll work correctly? but let's see I gues
2020-08-01T17:44:56 #kisslinux <E5ten> guess*
2020-08-01T17:45:59 #kisslinux <dylanaraps> Better
2020-08-01T17:46:08 #kisslinux <dylanaraps> Instead of one segfault there's a ton now
2020-08-01T17:46:14 #kisslinux <E5ten> still wrong though, it's using an uninitialized size_t now
2020-08-01T17:46:32 #kisslinux <dylanaraps> > make[3]: *** [scripts/Makefile.build:281: arch/x86/kernel/acpi/cppc_msr.o] Segmentation fault
2020-08-01T17:46:35 #kisslinux <dylanaraps> Lots of these
2020-08-01T17:46:53 #kisslinux <aosync> lots of what
2020-08-01T17:47:23 #kisslinux <E5ten> yeah segfaults from objtool being broken cuz my elftoolchain change is wrong
2020-08-01T17:47:24 #kisslinux <dylanaraps> > make[3]: *** [scripts/Makefile.build:281: arch/x86/kernel/cpu/scattered.o] Segmentation fault
2020-08-01T17:53:46 #kisslinux <E5ten> ok so it seems to me like part of the issue here is that elftoolchain uses the second parameter for certain info that elfutils uses the first for?
2020-08-01T17:53:50 #kisslinux <E5ten> http://ix.io/2sSK try this?
2020-08-01T17:54:10 #kisslinux <E5ten> oh wait sorry that includes changes to not just the .c lol
2020-08-01T17:54:26 #kisslinux <E5ten> http://ix.io/2sSM
2020-08-01T17:55:22 #kisslinux <dylanaraps> Back to the original error: warning: objtool: gelf_getsymshndx: Invalid argument
2020-08-01T17:55:57 #kisslinux <E5ten> yeah I realized after I sent it that's at least missing one more necessary thing http://ix.io/2sSN
2020-08-01T17:56:13 #kisslinux <E5ten> there was another check that relied on second param, where elfutils only makes that check if second param is non-NULL
2020-08-01T17:56:47 #kisslinux <dylanaraps> Same error
2020-08-01T17:57:06 #kisslinux <dylanaraps> Oh
2020-08-01T17:57:08 #kisslinux <dylanaraps> Hang on
2020-08-01T17:57:34 #kisslinux <dylanaraps> Still the same
2020-08-01T17:58:47 #kisslinux <E5ten> goddammit lol, I missed a third check that relies on it being non-NULL
2020-08-01T17:58:52 #kisslinux <E5ten> http://ix.io/2sSO
2020-08-01T17:59:03 #kisslinux <E5ten> if this one doesn't work we'll have to pick up later I gtg in a minute
2020-08-01T17:59:22 #kisslinux <dylanaraps> Alright
2020-08-01T17:59:35 #kisslinux <dylanaraps> > warning: implicit declaration of function 'puts'
2020-08-01T17:59:43 #kisslinux <dylanaraps> Same error still though.
2020-08-01T18:00:15 #kisslinux <E5ten> oh fuck me, I put that in because I wanted to see which if the error was happening in, but then I saw there was the third check and forgot to take it out, and I also forgot to include stdio.h for puts
2020-08-01T18:00:29 #kisslinux <dylanaraps> lol
2020-08-01T18:00:46 #kisslinux <E5ten> anyway gtg, hopefully I can figure out how to actually make this work later
2020-08-01T18:00:57 #kisslinux <dylanaraps> Sure
2020-08-01T18:43:25 #kisslinux <perish> Hola!
2020-08-01T18:45:01 #kisslinux <perish> I was wondering how we deal with packages that require a SUID binary. I can see the busybox package has *some* info, but it's rather lacking.
2020-08-01T18:46:50 #kisslinux <perish> I'm packaging some software that sets suid on it's own, and I suppose it'd be wise to avoid that.
2020-08-01T18:52:48 #kisslinux <dylanaraps> perish: Look at how xorg-server does it.
2020-08-01T18:52:55 #kisslinux <perish> Thanks!
2020-08-01T18:53:21 #kisslinux <dylanaraps> specifically in post-install.
2020-08-01T18:53:30 #kisslinux <perish> Currently dealing with arachsys/containers as an easy to use containment alternative to stuff like podman and docker.
2020-08-01T18:53:39 #kisslinux <dylanaraps> Ah
2020-08-01T18:53:43 #kisslinux <dylanaraps> Gotcha
2020-08-01T18:53:57 #kisslinux <perish> Containers want suid, for some reason
2020-08-01T18:58:35 #kisslinux <dylanaraps> hm
2020-08-01T18:58:56 #kisslinux <dylanaraps> no user namespaces support?
2020-08-01T18:59:00 #kisslinux <perish> Hola aosync!
2020-08-01T18:59:06 #kisslinux <aosync> Hola perish!
2020-08-01T18:59:29 #kisslinux <aosync> Im gonna ask the usual question :)
2020-08-01T18:59:34 #kisslinux <aosync> "u on kiss yet?"
2020-08-01T19:00:17 #kisslinux <perish> dylan: Yes, it's just tools for injection and 'fakerooting' require suid for some reason.
2020-08-01T19:00:22 #kisslinux <perish> aosync: yes!
2020-08-01T19:00:33 #kisslinux <aosync> nice nice nice
2020-08-01T19:02:11 #kisslinux <perish> Currently struggling with getting my package to accept there is actually a ./inject, and for XTerm to use Cozette.
2020-08-01T19:02:21 #kisslinux <ryzerth> hello
2020-08-01T19:02:41 #kisslinux <illiliti> claudia02: did you try latest libudev-zero release ? it works for you ?
2020-08-01T19:02:48 #kisslinux <aosync> oh..
2020-08-01T19:02:51 #kisslinux <perish> Also want to disable bold fonts in xterm, as the fontconfig autogenerated bold fonts are a crime against typography
2020-08-01T19:03:21 #kisslinux <aosync> lmao
2020-08-01T19:03:57 #kisslinux <ryzerth> join #sdrpp
2020-08-01T19:04:07 #kisslinux <perish> hm?
2020-08-01T19:04:08 #kisslinux <perish> why
2020-08-01T19:05:33 #kisslinux <dylanaraps> perish: Glad you got everything working in the end.
2020-08-01T19:05:34 #kisslinux <aosync> probably forgot '/'
2020-08-01T19:05:37 #kisslinux <dylanaraps> Or close to it at least. :P
2020-08-01T19:05:50 #kisslinux <perish> Still no touchpad support, but I'm working on it.
2020-08-01T19:06:05 #kisslinux <aosync> oh dylan I see you've changed kiss colours in 4.0.2
2020-08-01T19:06:22 #kisslinux <perish> kiss-all is about to get a large boost; I found a lot of really neat things.
2020-08-01T19:06:53 #kisslinux <aosync> yeah when you start using kiss as your daily driver, your personal repo gets *big*
2020-08-01T19:07:10 #kisslinux <perish> z3Oh my. This containers package is truly cursed
2020-08-01T19:07:42 #kisslinux <dylanaraps> aosync: Yeah. Just changed a single color. I think it looks nicer.
2020-08-01T19:08:06 #kisslinux <dylanaraps> I could make colors configurable rather easily.
2020-08-01T19:08:19 #kisslinux <dylanaraps> Example: ${KISS_COL0:=3}
2020-08-01T19:08:53 #kisslinux <dylanaraps> aosync: My personal repository is at 35 packages
2020-08-01T19:09:21 #kisslinux <dylanaraps> I've reduced the number now that pre-build hooks can modify build files.
2020-08-01T19:09:37 #kisslinux <perish> I'm matching the executables against a for loop for all files in the current directory. I then check if they're executable, and move them. This of course, fails for some reason.
2020-08-01T19:09:50 #kisslinux <dylanaraps> What's the error?
2020-08-01T19:10:07 #kisslinux <dylanaraps> Send the package files if you like
2020-08-01T19:10:08 #kisslinux <perish> mv: cannot rename './contain': No such file or directory
2020-08-01T19:10:10 #kisslinux <dylanaraps> I'll try and build it
2020-08-01T19:10:10 #kisslinux <perish> Sure thing
2020-08-01T19:10:22 #kisslinux <dylanaraps> Just the build file is fine
2020-08-01T19:10:26 #kisslinux <dylanaraps> then link the source here
2020-08-01T19:10:31 #kisslinux <dylanaraps> I'll fill in the gaps
2020-08-01T19:11:26 #kisslinux <perish> Alright
2020-08-01T19:12:00 #kisslinux <perish> https://0x0.st/ixUr.bin
2020-08-01T19:12:10 #kisslinux <perish> https://github.com/arachsys/containers
2020-08-01T19:13:07 #kisslinux <claudia02> illiliti: libudev-zero 0.3.1 works for me
2020-08-01T19:13:32 #kisslinux <dylanaraps> > mv: can't rename './contain': No such file or directory
2020-08-01T19:13:42 #kisslinux <dylanaraps> Oh
2020-08-01T19:13:44 #kisslinux <dylanaraps> I get it
2020-08-01T19:14:16 #kisslinux <perish> Oh?
2020-08-01T19:14:30 #kisslinux <illiliti> claudia02: awesome
2020-08-01T19:14:46 #kisslinux <dylanaraps> https://termbin.com/ldoj
2020-08-01T19:14:48 #kisslinux <dylanaraps> Here you go
2020-08-01T19:15:06 #kisslinux <dylanaraps> You can just do * for glob and drop the ./ stuff.
2020-08-01T19:15:11 #kisslinux <dylanaraps>  /usr/bin didn't exist.
2020-08-01T19:15:24 #kisslinux <perish> Oh.
2020-08-01T19:15:28 #kisslinux <illiliti> dylanaraps: can you bump libudev-zero to 0.3.1 ? bug confirmed and fixed
2020-08-01T19:15:29 #kisslinux <dylanaraps> also, avoid "statement && statement" when using '-e'.
2020-08-01T19:15:39 #kisslinux <perish> Why so?
2020-08-01T19:16:10 #kisslinux <dylanaraps> illiliti: Done
2020-08-01T19:16:40 #kisslinux <dylanaraps> perish: If the left statement is false, it means you exit with error.
2020-08-01T19:16:53 #kisslinux <dylanaraps> If you negate it and use '||', false == true.
2020-08-01T19:16:55 #kisslinux <dylanaraps> Get it?
2020-08-01T19:17:02 #kisslinux <perish> Yes
2020-08-01T19:17:08 #kisslinux <dylanaraps> You're catching the error in the latter case.
2020-08-01T19:17:10 #kisslinux <perish> Thank you for the explanation
2020-08-01T19:17:22 #kisslinux <dylanaraps> With the former, '-e' has control.
2020-08-01T19:18:21 #kisslinux <illiliti> dylanaraps: tnx
2020-08-01T19:18:35 #kisslinux <dylanaraps> I would just use a fixed list of file names though
2020-08-01T19:18:42 #kisslinux <dylanaraps> Avoid the loop altogether.
2020-08-01T19:18:49 #kisslinux <dylanaraps> Just a single mv statement
2020-08-01T19:19:32 #kisslinux <perish> Oh wow
2020-08-01T19:19:38 #kisslinux <perish> Fanncy seeing you here, aurelian
2020-08-01T19:19:53 #kisslinux <perish> s/n//
2020-08-01T19:28:55 #kisslinux <E5ten> dylanaraps perish use -- after mv -f, so that if the file variable starts with a dash it won't be detected as an option
2020-08-01T19:32:56 #kisslinux <dylanaraps> Nice
2020-08-01T20:05:56 #kisslinux <aurelain> hi
2020-08-01T20:34:38 #kisslinux <aosync> Hi back
2020-08-01T20:34:55 #kisslinux <aosync> I am just testing a font don't mind me.
2020-08-01T20:36:09 #kisslinux <smoke790> How many time does it usually take for you guys to compile a kernel?
2020-08-01T20:36:32 #kisslinux <j`ey> defconfig should get you something working pretty quickly
2020-08-01T20:38:45 #kisslinux <smoke790> Yeah just did that and also selected a few needed components like wi-fi drivers as well, I'm talking about the compilation process itself, because I'm running it on Core 2 Duo 1.2Ghz, so just asking :)
2020-08-01T20:39:12 #kisslinux <j`ey> oh how long does it take, I thought you meant something different
2020-08-01T20:39:28 #kisslinux <j`ey> last time I tried with defconfig.. it was about 20-30mins?
2020-08-01T20:39:38 #kisslinux <j`ey> but I went crazy and removed most options so it's only about 5 now
2020-08-01T20:40:25 #kisslinux <smoke790> That's the spirit lol
2020-08-01T20:40:34 #kisslinux <aurelain> it depends on what you enable
2020-08-01T20:40:45 #kisslinux <aurelain> on a 2 core machine it shouldn't take more than an hour
2020-08-01T20:40:50 #kisslinux <aurelain> what filesystems are enabled?
2020-08-01T20:42:21 #kisslinux <smoke790> I didn't change much in that section, just defconfig
2020-08-01T20:43:08 #kisslinux <aurelain> well then I assume ext4 and friends
2020-08-01T20:43:14 #kisslinux <aurelain> shouldn't take more than an hou
2020-08-01T20:43:16 #kisslinux <aurelain> *hour
2020-08-01T20:43:33 #kisslinux <smoke790> Alrighty
2020-08-01T20:44:08 #kisslinux <aurelain> you're using parallel make, right?
2020-08-01T20:44:34 #kisslinux <smoke790> like "make -j$(nproc)"? yes
2020-08-01T20:44:55 #kisslinux <aurelain> yeah, you'll be fine
2020-08-01T22:58:11 #kisslinux <aurelain> Hello Boo