💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2020-09-25.txt captured on 2024-05-12 at 16:07:32.

View Raw

More Information

⬅️ Previous capture (2021-12-17)

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

2020-09-25T00:40:40 #kisslinux <dilynm> https://rendaw.gitlab.io/blog/2125f09a85f2.html#alsa-exposed/A%20short%20essay
2020-09-25T00:40:46 #kisslinux <dilynm> #finally
2020-09-25T06:23:09 #kisslinux <bjoernfan> Thanks for the link, dilynm. I was trying to get audio over HDMI yesterday with mpv. Got part of the way but not all the way. That might help.
2020-09-25T11:40:24 #kisslinux <dylanaraps> Windows XP source code was leaked today
2020-09-25T11:40:31 #kisslinux <dylanaraps> (apparently)
2020-09-25T11:41:14 #kisslinux <dylanaraps> https://old.reddit.com/r/windowsxp/comments/iz46du/the_windows_xp_source_code_has_been_leaked_on/g6gwcpo/?context=3
2020-09-25T11:44:08 #kisslinux <dylanaraps> Looks like they were using GNU make to build part of XP lol: https://is2.4chan.org/g/1600943100021.png
2020-09-25T11:44:27 #kisslinux <dylanaraps> if this is real of course
2020-09-25T12:22:03 #kisslinux <konimex> currently downloading the 7z archive for, let's just say archival purposes
2020-09-25T12:22:04 #kisslinux <konimex> so, any plans to make KISS Windows?
2020-09-25T12:22:15 #kisslinux <dylanaraps> God no
2020-09-25T12:22:33 #kisslinux <dylanaraps> I do want to look through the sources though
2020-09-25T12:29:04 #kisslinux <konimex> alright, finished downloading it, 7.2G in total
2020-09-25T12:29:11 #kisslinux <konimex> after extraction ofc
2020-09-25T13:30:04 #kisslinux <dilynm> >kiss xp
2020-09-25T13:30:04 #kisslinux <dilynm> Just use reactOS
2020-09-25T13:36:15 #kisslinux <kirc1> ehare|ltbx stoffomuser1 pta2002 hoqvso magenblut[P�
2020-09-25T13:36:15 #kisslinux <kirc1> ehare|ltbx stoffomuser1 pta2002 hoqvso magenblut[P�
2020-09-25T13:36:15 #kisslinux <kirc1> ehare|ltbx stoffomuser1 pta2002 hoqvso magenblut[P�
2020-09-25T13:36:15 #kisslinux <kirc1> ehare|ltbx stoffomuser1 pta2002 hoqvso magenblut[P�
2020-09-25T13:36:15 #kisslinux <kirc1> ehare|ltbx stoffomuser1 pta2002 hoqvso magenblut[P�
2020-09-25T13:42:09 #kisslinux <mcpcpc[m]> bah. sorry. that’s a weird repl.it bug.  when the server looses connection.
2020-09-25T13:42:58 #kisslinux <mcpcpc[m]> s/server/IDE/g
2020-09-25T14:00:18 #kisslinux <dylanaraps> lol
2020-09-25T15:31:13 #kisslinux <picmyk> AAAAAAAAAAAAAAAAAAAAAAAAA
2020-09-25T15:31:19 #kisslinux <picmyk> finally
2020-09-25T15:43:51 #kisslinux <dilynm> These polkit patches require that I rebuild the configure script but every time I try it complains about gobject
2020-09-25T15:44:10 #kisslinux <dilynm> So then I build a macro to check for it and then there's a syntax error in my configure script! 🙃
2020-09-25T15:44:13 #kisslinux <dilynm> God is cruel
2020-09-25T16:16:24 #kisslinux <dylanaraps> dilynm: :(
2020-09-25T16:16:33 #kisslinux <dylanaraps> Are the patches up-to-date?
2020-09-25T16:30:58 #kisslinux <dilynm> They're almost 3 years old
2020-09-25T16:31:02 #kisslinux <dilynm> But they apply fine
2020-09-25T16:31:25 #kisslinux <dilynm> I just stole the m4 files for nls and intltool and introspection instead. That fixed it.
2020-09-25T16:32:11 #kisslinux <dilynm> But now I have to patch one of the patches to make innetgr optional...
2020-09-25T16:32:17 #kisslinux <dilynm> After that, I think we're in the clear
2020-09-25T16:34:41 #kisslinux <dylanaraps> Nice
2020-09-25T16:34:48 #kisslinux <dylanaraps> What is used instead of js?
2020-09-25T16:35:06 #kisslinux <dilynm> You can see the work so far here:
2020-09-25T16:35:07 #kisslinux <dilynm> https://github.com/dilyn-corner/KISS-kde/tree/master/extra/polkit
2020-09-25T16:35:10 #kisslinux <E5ten> Are these the patches from solus?
2020-09-25T16:35:22 #kisslinux <dilynm> E5ten: yes
2020-09-25T16:35:31 #kisslinux <dilynm> Dylanaraps: a key file
2020-09-25T16:35:45 #kisslinux <dylanaraps> Gotcha
2020-09-25T16:35:53 #kisslinux <E5ten> Same syntax as like systemd services and .desktops and shit right?
2020-09-25T16:36:35 #kisslinux <dilynm> Yessir
2020-09-25T16:37:09 #kisslinux <E5ten> Out of curiosity, what do you need polkit for?
2020-09-25T16:37:09 #kisslinux <dylanaraps> Change 'files/nls.m4' in sources to 'files/nls.m4 buildutil' and you can remove the 'mv' call (same can be said for the other two)
2020-09-25T16:37:34 #kisslinux <dilynm> Polkit for kauth :x
2020-09-25T16:37:47 #kisslinux <dilynm> I knew that was the way! Ty dylan
2020-09-25T16:37:55 #kisslinux <dylanaraps> Second field in sources is dest dir for the source. It will overwrite whatever is there too.
2020-09-25T16:38:41 #kisslinux <dylanaraps> I made package installation faster in a recent commit btw
2020-09-25T16:38:50 #kisslinux <dylanaraps> Especially for packages with 3000+ files
2020-09-25T16:39:12 #kisslinux <dilynm> I'll have to take a peak :o
2020-09-25T16:39:22 #kisslinux <dylanaraps> If you try master you'll notice a lot of changes
2020-09-25T16:39:24 #kisslinux <dilynm> It'll make everyone's kernel packages seconds quicker xD
2020-09-25T16:40:19 #kisslinux <dilynm> Lol this history: 'kiss-outdated: now it's perfect'
2020-09-25T16:40:27 #kisslinux <dilynm> *three more commits for kiss-outdated'
2020-09-25T16:40:36 #kisslinux <dylanaraps> (on my machine) python install time goes from 5.X~ seconds to 3.6~ seconds for the 4000 files it installs
2020-09-25T16:41:00 #kisslinux <dylanaraps> Actually
2020-09-25T16:41:02 #kisslinux <dylanaraps> I'm wrong
2020-09-25T16:41:08 #kisslinux <dylanaraps> Python is down to 2.6 seconds
2020-09-25T16:41:37 #kisslinux <dylanaraps> dilynm: lol at the history. Didn't realize
2020-09-25T16:41:50 #kisslinux <dilynm> Mine is made worse :X
2020-09-25T16:42:10 #kisslinux <dilynm> Yeah removing a test for every $line seems like it would speed it up a lot...
2020-09-25T16:42:22 #kisslinux <dylanaraps> It moves the test to sooner
2020-09-25T16:42:25 #kisslinux <dilynm> Yeah
2020-09-25T16:42:29 #kisslinux <dylanaraps> Before we grab permissions
2020-09-25T16:42:36 #kisslinux <dylanaraps> So we don't grab permissions if we don't need to
2020-09-25T16:43:43 #kisslinux <dylanaraps> pkg_install_files() runs once per file so it ends up being called 4000 times for python...
2020-09-25T16:45:51 #kisslinux <dilynm> Lmfaooooo
2020-09-25T16:46:01 #kisslinux <dylanaraps> Cache directory structure is now neater: bin, logs, proc/<pid>/{build, extract, pkg}, sources
2020-09-25T16:46:26 #kisslinux <dilynm> Yeah that sounds like a good switch
2020-09-25T16:47:01 #kisslinux <dilynm> That cache change carries over if TMPDIR is set?
2020-09-25T16:47:08 #kisslinux <dylanaraps> Yes
2020-09-25T16:47:22 #kisslinux <dylanaraps> It will create <pid>/{build, extract, pkg} in $KISS_TMPDIR
2020-09-25T16:47:47 #kisslinux <dilynm> Nicenicenice
2020-09-25T16:47:54 #kisslinux <dylanaraps> Rather than build-<pid>, extract-<pid>, pkg-<pid> (as it was)
2020-09-25T16:48:01 #kisslinux <dylanaraps> That's gross
2020-09-25T16:49:07 #kisslinux <dylanaraps> 'kiss outdated' is now actually reliable
2020-09-25T16:50:15 #kisslinux <dilynm> Yeah those changes look extensive!
2020-09-25T16:50:29 #kisslinux <dilynm> I need to fix my router so I can actually access repology.org in my network lmao
2020-09-25T16:51:09 #kisslinux <dylanaraps> lol
2020-09-25T17:28:15 #kisslinux <dylanaraps> Made pkg_fixdeps() aware of the whole dependency chain.
2020-09-25T17:28:39 #kisslinux <dylanaraps> ie, sway won't have zlib pulled in as a dependency of lib<something>
2020-09-25T17:29:05 #kisslinux <dylanaraps> As sway depends on lib<something> (which pulls in zlib), it isn't added to the depends file
2020-09-25T17:29:08 #kisslinux <dylanaraps> Make sense?
2020-09-25T17:29:20 #kisslinux <dylanaraps> No more overly verbose/slightly misleading depends files
2020-09-25T17:29:40 #kisslinux <dylanaraps> https://github.com/kisslinux/kiss/commit/e76b71521c9ef5becd89e84292d4ea4ebf20288a
2020-09-25T17:29:48 #kisslinux <dylanaraps> +18 -18 ;)
2020-09-25T17:34:32 #kisslinux <merakor2> dylanaraps: why are you ignoring gcc and llvm on the package manager?
2020-09-25T17:35:10 #kisslinux <merakor2> Some packages can link with libgcc.so for example
2020-09-25T17:36:49 #kisslinux <dylanaraps> merakor2: You're right. This new feature will very much reduce their prevalence anyway.
2020-09-25T17:39:37 #kisslinux <dilynm> I like this idea. It makes pinpointing certain packages much easier
2020-09-25T17:41:23 #kisslinux <merakor2> Maybe I didn't understand the change well, but, how can you be certain that it is a dependency chain?
2020-09-25T17:41:33 #kisslinux <dylanaraps> By using pkg_depends
2020-09-25T17:41:51 #kisslinux <merakor2> For example, pkg B links with pkg C, but pkg A actually depends on both pkg B and pkg C
2020-09-25T17:41:58 #kisslinux <dylanaraps> If the file is owned by anything in the package's chain of dependences, it isn't listed as a dependency.
2020-09-25T17:42:35 #kisslinux <merakor2> Yeah, but what if it actually is a dependency?
2020-09-25T17:42:37 #kisslinux <dylanaraps> merakor2: fixdeps fixes incorrect depends files
2020-09-25T17:43:01 #kisslinux <dylanaraps> The depends file is incorrect anyway
2020-09-25T17:43:17 #kisslinux <dylanaraps> Regardless, pkg_remove will guard against it
2020-09-25T17:43:30 #kisslinux <dylanaraps> As PKG C is a dependency of PKG B
2020-09-25T17:43:36 #kisslinux <merakor2> Not necessarily incorrect regarding optional dependencies.
2020-09-25T17:43:55 #kisslinux <merakor2> I mean auto dependencies to be precise
2020-09-25T17:44:06 #kisslinux <dylanaraps> They will still be listed as dependencies unless something else further down the chain doesn't bring them in
2020-09-25T17:44:41 #kisslinux <dylanaraps> You could just print the recursive chain (excluding make) and it'd likely be no different
2020-09-25T17:45:12 #kisslinux <dylanaraps> Problem with the current approach is that it adds too much to depends files
2020-09-25T17:45:26 #kisslinux <dylanaraps> It becomes difficult to see what actually depends on what
2020-09-25T17:45:50 #kisslinux <merakor2> I don't think that's necessarily something bad
2020-09-25T17:45:57 #kisslinux <dylanaraps> As libz.so may have been brought in from lib<whatever> but the package has no direct dependency on it
2020-09-25T17:46:34 #kisslinux <dylanaraps> Well, the single purpose for pkg_fixdeps is to populate depends files so that pkg_remove can guard removals
2020-09-25T17:46:59 #kisslinux <konimex> <merakor2 "Some packages can link with libg"> so, all C++ packages? since they both link to libgcc.so and libstdc++.so iirc
2020-09-25T17:47:01 #kisslinux <dylanaraps> With this new approach, this is still maintained and depends files are smaller/easier to read
2020-09-25T17:47:26 #kisslinux <merakor2> Yeah, but technically after linking, they will be dependencies
2020-09-25T17:47:33 #kisslinux <dylanaraps> Sure
2020-09-25T17:47:35 #kisslinux <merakor2> I see your point though
2020-09-25T17:47:39 #kisslinux <dylanaraps> But they're dependencies of dependencies of ...
2020-09-25T17:47:48 #kisslinux <merakor2> That's true
2020-09-25T17:47:50 #kisslinux <dylanaraps> The whole point of the package manager is to maintain this whole thing
2020-09-25T17:48:11 #kisslinux <dilynm> The point is that they're only linked because a different dependency has that other dependency as a dep in the first place
2020-09-25T17:48:16 #kisslinux <dylanaraps> mpv won't depend on lib<codecs> now if we just give it ffmpeg
2020-09-25T17:48:21 #kisslinux <dylanaraps> makes optional dependencies easier
2020-09-25T17:51:02 #kisslinux <merakor2> I get all of what you're saying :D My only real concern is packages that share dependencies.
2020-09-25T17:51:10 #kisslinux <merakor2> Musl is an extreme but a good example
2020-09-25T17:51:16 #kisslinux <dylanaraps> How so?
2020-09-25T17:51:31 #kisslinux <merakor2> So say you have a package that depends on zlib
2020-09-25T17:51:52 #kisslinux <merakor2> You cannot say that you are linking to musl because zlib linked to musl as well
2020-09-25T17:52:08 #kisslinux <dylanaraps> Yes
2020-09-25T17:52:17 #kisslinux <dylanaraps> This is why you add zlib to the depends file
2020-09-25T17:52:41 #kisslinux <dylanaraps> This fixes missing dependencies (and in this case, the new way will miss this one. You're right)
2020-09-25T17:52:53 #kisslinux <merakor2> Yeah, I am talking about the opposite
2020-09-25T17:53:14 #kisslinux <merakor2> I am talking about adding musl in fixdeps
2020-09-25T17:53:41 #kisslinux <dylanaraps> Should be no need as we ignore all libc .so files
2020-09-25T17:54:06 #kisslinux <merakor2> Musl example is a rhetoric
2020-09-25T17:54:22 #kisslinux <merakor2> I will think of a better example and come back :D
2020-09-25T17:55:11 #kisslinux <dylanaraps> lol
2020-09-25T17:55:34 #kisslinux <merakor2> Okay, imagine I am building bash with readline
2020-09-25T17:55:44 #kisslinux <merakor2> both readline and bash depends on ncurses
2020-09-25T17:56:24 #kisslinux <dylanaraps> Let me run this scenario
2020-09-25T17:56:27 #kisslinux <dylanaraps> And see what happens
2020-09-25T17:56:30 #kisslinux <merakor2> So we cannot say that ncurses is part of a dependency chain
2020-09-25T17:56:46 #kisslinux <dylanaraps> Yes
2020-09-25T17:58:41 #kisslinux <merakor2> So if ncurses was an auto dependency and wasn't included in depends, it wouldn't be added in fixdeps
2020-09-25T17:58:52 #kisslinux <dylanaraps> Yeah
2020-09-25T17:59:17 #kisslinux <dilynm> But wouldn't that just be a mistake on the packagers part?
2020-09-25T17:59:31 #kisslinux <dylanaraps> My point is that the depends file is incorrect and though this new method won't detect this, pkg_remove will still correctly guard its removal
2020-09-25T17:59:32 #kisslinux <merakor2> Why would it be if it was an optional dependency?
2020-09-25T17:59:44 #kisslinux <dilynm> Because ncurses isn't an optional dependency
2020-09-25T18:00:18 #kisslinux <merakor2> dilynm: I was trying hard to find a proper scenario :D
2020-09-25T18:00:29 #kisslinux <dylanaraps> bash has vendored readline too
2020-09-25T18:00:32 #kisslinux <dylanaraps> ;)
2020-09-25T18:00:34 #kisslinux <merakor2> dylanaraps: That's true since it still is part of a dependency
2020-09-25T18:00:38 #kisslinux <merakor2> I KNOW :D
2020-09-25T18:00:41 #kisslinux <dilynm> Lol
2020-09-25T18:00:54 #kisslinux <dilynm> I think you're right in the scenario, but I don't think it's possible
2020-09-25T18:01:12 #kisslinux <dilynm> I.e. if the packager has properly listed dependencies, then there is no problem
2020-09-25T18:01:47 #kisslinux <merakor2> It wouldn't exactly list it properly, but it would safeguard from removing it anyways
2020-09-25T18:02:17 #kisslinux <dylanaraps> Problem is this scenario: ./configure pulls in libzstd automatically, package already depends on libarchive which depends on libzstd. pkg_fixdeps will skip zstd as it has been satisfied.
2020-09-25T18:02:41 #kisslinux <merakor2> Yeah
2020-09-25T18:02:42 #kisslinux <dylanaraps> The current method handles this by listing basically everything
2020-09-25T18:05:02 #kisslinux <dilynm> Right but then the user can't uninstall libarchive or zstd anyways
2020-09-25T18:05:24 #kisslinux <dylanaraps> OK. We can use readelf to list only direct dependencies. Fixes all issues.
2020-09-25T18:05:43 #kisslinux <dylanaraps> :D
2020-09-25T18:06:00 #kisslinux <dilynm> Lol
2020-09-25T18:06:01 #kisslinux <merakor2> Wow :D
2020-09-25T18:06:30 #kisslinux <dilynm> Now kiss depends on readelf!
2020-09-25T18:06:44 #kisslinux <dylanaraps> It already depends on strip from binutils/wherever
2020-09-25T18:06:45 #kisslinux <dylanaraps> Also
2020-09-25T18:06:50 #kisslinux <dilynm> ;P
2020-09-25T18:06:59 #kisslinux <dylanaraps> fixdeps will just be skipped if readelf unvailable
2020-09-25T18:07:15 #kisslinux <dylanaraps> can fallback to ldd if you like ;)
2020-09-25T18:08:38 #kisslinux <dylanaraps> Question now is if readelf output is standard...
2020-09-25T18:11:29 #kisslinux <merakor> Does readelf work on libraries?
2020-09-25T18:11:41 #kisslinux <dylanaraps> Yes
2020-09-25T18:11:48 #kisslinux <merakor> Oh nice
2020-09-25T18:14:11 #kisslinux <dylanaraps> We could also use objdump
2020-09-25T18:17:32 #kisslinux <dylanaraps> OK. We can do this POSIX
2020-09-25T19:40:03 #kisslinux <dylanaraps> OK. Fixed.
2020-09-25T19:40:12 #kisslinux <dylanaraps> - Can use old or new method.
2020-09-25T19:40:37 #kisslinux <dylanaraps> - New method requires objdump or readelf.
2020-09-25T19:40:55 #kisslinux <dylanaraps> - Method is autodetected but can be forced via envar.
2020-09-25T19:41:28 #kisslinux <dylanaraps> - Uses NEEDED output from both commands to avoid recursively listing dependencies.
2020-09-25T20:23:22 #kisslinux <periish> Hello!
2020-09-25T20:23:50 #kisslinux <periish> Would anyone here happen to know how to convert the ^[ key sequences into escape codes I can send to a terminal?
2020-09-25T20:24:09 #kisslinux <dylanaraps> '033'?
2020-09-25T20:24:15 #kisslinux <periish> Oh, that works?
2020-09-25T20:24:36 #kisslinux <dylanaraps> What are you trying to do?
2020-09-25T20:24:45 #kisslinux <periish> Send key input to a pty
2020-09-25T20:24:48 #kisslinux <periish> Like arrow keys
2020-09-25T20:25:54 #kisslinux <dylanaraps> Arrow keys are just cursor move sequences
2020-09-25T20:25:55 #kisslinux <dylanaraps> '
2020-09-25T20:25:59 #kisslinux <periish> Oh
2020-09-25T20:26:01 #kisslinux <periish> It works!
2020-09-25T20:26:03 #kisslinux <dylanaraps> 033[[ABCD]
2020-09-25T20:26:14 #kisslinux <periish> Lovely
2020-09-25T20:26:16 #kisslinux <periish> Thank you
2020-09-25T20:27:00 #kisslinux <periish> Nano doesn't want to accept my cursor has moved, but that's ok
2020-09-25T20:30:34 #kisslinux <periish> Hmm
2020-09-25T20:30:42 #kisslinux <periish> Can't figure out how to send something like alt + g
2020-09-25T20:34:01 #kisslinux <dylanaraps> alt+g is ^[g in my terminal
2020-09-25T20:34:04 #kisslinux <dylanaraps> ie 033g
2020-09-25T20:34:16 #kisslinux <periish> That one doesn't play nicely, hm
2020-09-25T20:36:06 #kisslinux <E5ten> dylanaraps: for the objdump/readelf thing, I think the case should check for *readelf and the same for objdump in case someone has a situation like both binutils and LLVM installed and wants to set KISS_ELFCMD to llvm-readelf or something
2020-09-25T20:36:24 #kisslinux <periish> Trying to create a remote control terminal, ysee
2020-09-25T20:36:32 #kisslinux <periish> But the curses apps nor the shell care
2020-09-25T20:46:24 #kisslinux <dylanaraps> E5ten: Will do.
2020-09-25T20:46:28 #kisslinux <dylanaraps> Good idea
2020-09-25T21:21:00 #kisslinux <periish> hmmmmmm
2020-09-25T22:39:28 #kisslinux <periish> dylanaraps
2020-09-25T22:39:41 #kisslinux <sh4rm4^bnc> interesting read about firefox https://digdeeper.neocities.org/ghost/mozilla.html
2020-09-25T22:39:41 #kisslinux <periish> Apparently rustup can be used to get a stable version of rustc
2020-09-25T22:39:58 #kisslinux <periish> is there any reason why KISS does not do this?
2020-09-25T22:59:08 #kisslinux <periish> Also, is there any reason we have all of the xcb-util-* packages split?
2020-09-25T23:25:23 #kisslinux <E5ten> well they don't come together, like it's a different source for each package
2020-09-25T23:26:03 #kisslinux <periish> Aye
2020-09-25T23:26:12 #kisslinux <periish> But I can deal with that
2020-09-25T23:38:52 #kisslinux <periish> Dylan, where are the speedups you mentioned? I'd like to backport them to my branch :p