ChanServ changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
zumi_ has joined #asahi-alt
zumi has quit [Remote host closed the connection]
zumi_ is now known as zumi
lactose has joined #asahi-alt
tbm has quit [Quit: .]
tbm has joined #asahi-alt
kidplayer666 has quit [Quit: Connection closed for inactivity]
possiblemeatball has quit [Quit: Quit]
possiblemeatball has joined #asahi-alt
<lactose> Hello, I'm thinking of installing Void Linux and/or Slackware, but I don't know where to get started
<chadmed> you will notice that neither of those have maintainers
<lactose> But could it be theoretically done?
<chadmed> yeah for sure
<lactose> Because at least for Void they offer rootfs images so maybe you could set it up to be bootable via chroot?
<chadmed> there are basically two ways you can implement support for alt distros: wire up an esp and roofs image for them into the official installer, or build uefi-bootable install media with our kernel
<chadmed> much of the actually useful functionality for this platform is not yet upstreamed, so canned arm64 images from ~all distros will not work properly
<lactose> even with an asahi distribution kernel?
<chadmed> well yeah if you add our kernel to the image
<chadmed> but that requires manual work is my point
<chadmed> https://github.com/Marek-Svoboda/slackahi-support this might be a good starting point
<chadmed> someone forked my gentoo stuff and rejigged it for slackware
<lactose> well i know it would be manual but i just want it to see it run
<lactose> anyway i will eat dinner and give that a read, thanks again
jeisom has quit [Ping timeout: 480 seconds]
eiln has quit [Quit: WeeChat 4.1.2]
possiblemeatball has quit [Quit: Quit]
lactose has quit [Quit: Leaving]
lactose has joined #asahi-alt
<lactose> chadmed: I took a look at asahi-gentoosupport and saw the grub entry. I've never seen the root command line parameter be anything other than a block device. How does that work?
zumi_ has joined #asahi-alt
<chadmed> lactose: it triggers a dracut module that mounts the specified squashfs image as a loopback device and pivots to it as the rootfs
zumi has quit [Remote host closed the connection]
zumi_ is now known as zumi
<lactose> >there are basically two ways you can implement support for alt distros: wire up an esp and roofs image for them into the official installer, or build uefi-bootable install media with our kernel
<lactose> How would one go about the former? I can see that the Gentoo stuff does the latter
<lactose> Mainly looking at Debian as an example, it seems to have its own install script?
<chadmed> youd need to first basically build a fully configured rootfs in a ramdisk or similar and dump it out to an image
kidplayer666 has joined #asahi-alt
<leio> chadmed: the libkrun[-gpu] failure is from it still looking for virglrenderer.pc with it, and in that case it's not pulled in
<leio> oh, it's not pulled in with USE=gpu either
<chadmed> it happens from a clean build too so i think we just make gpu unconditional
<leio> doesn't matter, you don't have the dep even with USE=gpu
<chadmed> yeah i didnt get around to it
<chadmed> let me ssh into my studio to see if i started
<chadmed> (im kinda bedridden rn :p)
<leio> how do you have these things compile with clang as system compiler? All cbindgen stuff fails on cc calls for me
<leio> both gpu and -gpu fail for me in rust stuff, https://dpaste.com/45M56M7B3
<leio> (unrelated to the clang question, I'm forcing gcc now)
<chadmed> was cbindgen built with gcc?
<chadmed> i think its a perl/ruby situation there where the compile time settings are baked into it
<leio> that needs fixing at some point then, but that's a gentoo topic
<leio> and yes, it was built with gcc, because its own build calls cc and fails
<chadmed> yeah
<leio> when trying to build with clang
<chadmed> it builds fine for me even with my spicy *FLAGS
<chadmed> i only have a handful of packages set for gcc override
<leio> it doesn't honor linker choice there
<leio> so ld failure from calling it with cc
<j`ey> lactose: for void there's some stuff here https://github.com/void-linux/void-packages/pull/36390
<sam_> my feeling is there's something more to the cbindgen situation
<sam_> feel like this would've come up before
<sam_> then again, there is one element I never fully understood which gyakovlev mentioned every so often
<sam_> something like rust-bin having different behaviour to ruxt
<sam_> rust
<leio> I am on rust-bin
<leio> not quite sure why :D
<sam_> we can ask ionen about whatever the -bin thing is
<sam_> he may have more of a hint
<chadmed> leio: we also need to do the checks for kernel config options for virtio-net support in libkrun
<chadmed> im about to push the virglrenderer dep fix
<chadmed> but i am in no fit state to do the kernel config checks
<chadmed> PRs welcome
<chadmed> there is also interactions with the kernel config used to build libkrunfw so that will need some work too
<leio> no idea what options it needs, and can't compile the crates anyhow
<leio> (unrelated to cbindgen)
<chadmed> what error is it giving
<chadmed> i build this time and time again from the ebuild before pushing, on multiple systems
<leio> pastebin from above: https://dpaste.com/45M56M7B3
<sam_> can i teach you ansifilter leio
<sam_> please
<chadmed> oh you mean just with -gpu
<leio> use of undeclared crate or module `thiserror` and so forth
<sam_> install ansifilter, then PORTAGE_LOG_FILTER_FILE_CMD="bash -c \"ansifilter -c; exec cat\"" in make.conf
<sam_> console logs have colour, on disk has filtered
<leio> but how do I get the colors then after pastebin download for easier red spotting? :P
<sam_> oh u
<leio> chadmed: this kind of error is with both -gpu and gpu
<chadmed> oh thats new then
<chadmed> worked fine here
<chadmed> with USE="gpu"
<leio> sam_: also, if ansifilter is desired, it should work out of the box, but really we should default wgetpaste to a pastebin that understands ANSI colors itself; the current default of bpa.st is also uselessly strict on size so I need to force dpaste often
<leio> oh me :D
<chadmed> only breaks with USE="-gpu"
<sam_> I suspect people would moan if added ansifilter as a dep of portage or something so would need to have some pure python thing instead
<sam_> but yeah, there's some magic which uh.. xfce-terminal? does
<sam_> it has some pastebin integration where it dumps as html
<leio> I wrote ANSI understanding HTML generation back in 2004, it's not rocket science for a pastebin to do :)
<chadmed> i think the only fix for this right now given the vendored pipewire crate spaghetti is to make --features gpu unconditional so that it builds
<chadmed> doesnt really bother me that much since thats what youre clearly here for if youre installing this downstream fork of libkrun
<leio> chadmed: I think I figured out the difference - you don't seem to use FEATURES=test for the stuff you maintain?
<leio> it also reports this from iwdevtools:
<leio> * VDB: detected possibly incorrect RDEPEND (dev-libs/libkrun-1.6.0)
<leio> * > media-libs/virglrenderer
<leio> * > media-video/pipewire:=
<leio> so virglrenderer we figured out before, but pipewire looks kind of obvious need then too :)
<chadmed> oh duh yeah...
<chadmed> *sigh* -r2 coming in
<leio> but yeah, it passes if I don't run tests
<leio> so that'll be a problem for main tree later
<chadmed> yeah this will definitely need cleaning up
<chadmed> i think these ones are special cases since theyre a bit janky
<chadmed> once all this stuff is merged properly it shouldnt need such delicate handling
<leio> it's possible to just force disable tests if it is too hard to fix
<leio> but might be just an outdated crate or smth too
<leio> now what can I do with these libkrun libraries further? :)
<chadmed> i believe the primary use case is isolating any OCI image into a VM
<leio> think it might be worth IUSE default enabling native-context on overlays virglrenderer as the main use case for it in overlay?
<chadmed> and yes i suspect some of the deps for slp's forks are broken just by being out of date since its now a 3 month old fork with no updates
<leio> and same for gpu on libkrun
<leio> (IUSE default like IUSE="static-libs +native-context")
<chadmed> yeah
<leio> also virglrenderer fork has same tarball name which clashes with checksum of main tree one; should save it under a different name on the "->" redirect in SRC_URI
veritas has joined #asahi-alt
<veritas> Hi all. I am having some issues with Hyprland running on M1 Pro after the 6.6 kernel update. It crashes for me at startup. I am using NixOS with the nixos-apple-silicon module, mesa driver using overlay mode, pinned all nixpkgs to the nixos-apple-silicon nixpkgs latest version. Now Hyprland fails with eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c). Anyone has any experience with a similar setup ?
veritas_ has joined #asahi-alt
veritas has quit [Read error: No route to host]
veritas_ has quit [Quit: Leaving]
veritas_ has joined #asahi-alt
kidplayer666 has quit [Quit: Connection closed for inactivity]
<mps> anyone have working hyprland config for macbook
lactose has quit [Read error: Connection reset by peer]
zumi_ has joined #asahi-alt
zumi has quit [Remote host closed the connection]
kidplayer666 has joined #asahi-alt
zumi_ is now known as zumi
<leio> and virglrenderer fails with ../virglrenderer-cacafff69205a62758a22ef73c1334057f72e5d6/vtest/vtest_server.c:244:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive]
veritas_ has quit [Remote host closed the connection]
<leio> i guess it figured to -Werror
<chadmed> yeah i set a gcc override for that guy
jeisom has joined #asahi-alt
possiblemeatball has joined #asahi-alt
john-cabaj has joined #asahi-alt
<mps> question for alt-distro maintainers, are you enabled speakers for distros?
<zzywysm_> NixOS for Apple Silicon has those patches
eslerm has joined #asahi-alt
demon_in_a_jar has joined #asahi-alt
eiln has joined #asahi-alt
jacksonchen666 has joined #asahi-alt
john-cabaj has quit [Quit: john-cabaj]
john-cabaj has joined #asahi-alt
<tobhe> mps: currently only in testing for ubuntu, but everything looks good so I might publish them to the regular channel soon
<mps> tobhe: thanks for info
jacksonchen666 has quit [Ping timeout: 480 seconds]
zumi_ has joined #asahi-alt
zumi has quit [Remote host closed the connection]
jacksonchen666 has joined #asahi-alt
zumi_ is now known as zumi
lactose has joined #asahi-alt
lactose has quit [Read error: Connection reset by peer]
lactose has joined #asahi-alt
lactose has quit [Read error: Connection reset by peer]
lactose has joined #asahi-alt
lactose has quit [Remote host closed the connection]
<mps> interesting, speakers block video playing from mpv and firefox while sounds work and on headphone everything is ok.
lactose has joined #asahi-alt
<mps> ffplay and telegram-desktop works fine on both, speakers and mpv
<mps> tried with X, sway and hyprland
lactose has quit [Read error: Connection reset by peer]
lactose has joined #asahi-alt
lactose has quit [Remote host closed the connection]
lactose has joined #asahi-alt
lactose has quit [Read error: Connection reset by peer]
lactose has joined #asahi-alt
lactose has quit [Read error: Connection reset by peer]
lactose has joined #asahi-alt
lactose has quit [Read error: Connection reset by peer]
lactose has joined #asahi-alt
lactose has quit [Read error: Connection reset by peer]
lactose has joined #asahi-alt
lactose has quit [Read error: Connection reset by peer]
lactose has joined #asahi-alt
lactose has quit [Read error: Connection reset by peer]
lactose has joined #asahi-alt
lactose has quit [Quit: Quit]
possiblemeatball has quit [Quit: Quit]