To me, it seems like this kind of "download upstream source and build" kind of functionality would belong in pkgctl, which also would make it a lot less political than implementing the same kind of thing in a more long-standing citizen of the arch environment.
In other words, IMO leave pacman interfaces alone, but perhaps improve pkgctl to incorporate download, audit, makepkg, install workflows for those who find doing those 4 steps separately to be too cumbersome.
Build. Install. Find out the fun way what breaks :)
Obviously making lists are the real answer, but I find that if I'm current enough with a project to miss an update while it sits on testing, then I'm usually current enough to sort out things that might arise
That is a bullet dodged my friend. Do you really want to spend a significant amount of your life with people who not only do not trust you but obviously don't value the work you're doing if that was an issue.
This happened to me early in my career and I felt bad about it for ages and like I was a problem. Now? I know it's a sticking point for me, and I recognize that if I ever get to that point with an employer again, then that was likely going to be the lease of our worries in the long run.
Especially given that it's monitoring software... not going to lie that level of mistrust among coworkers just doesn't even compute to me.
I've done it to require booting a USB environment twice in like 8 years.
I made a typo manually editing my bootloader configuration instead of using the generator. All I had to do was delete a single character and reboot.
I lost power while switching between llvm packages, from custom back to upstream, and had not yet installed the Mesa version that would work with the new packages. All that was required is installing that package and rebooting.
Because those who don't will now look up pacman hooks and maybe learn something and some their problem...
I always have just reactively installed it first, but hadn't thought of just adding a hook like I have for other things, so I don't get the hate for the comment.
FYI, AMDVLK uses it's own fork of llvm, without which it cannot compile. It's always in a different state of behind, sometimes rebased off of a recent time point, sometimes ages ago.
Well actually my assumption that I needed LLVM 15 was actually based off of this post; I never tried mesa 22.3.1 on LLVM 14 personally.
It makes sense that a newer, but still API-compatible version of LLVM could be required when changes to the actual code generated by LLVM would be required (like new kinds of GPU instructions or something).
I just checked out the LLVM 15 release notes, though, and there does not appear to be anything significant like that for changes to the AMDGPU backend, so maybe 22.3.1 would work for me and something else went wrong for you. I'll try and remember to check it out later to confirm one way or another.
It's not working with the official repository versions of mesa and llvm, but this is mostly just due to the fact that as of today (20221226), the official repos are still using LLVM 14, and mesa builds are tied tightly to LLVM version.
This means you're half right.
It's not working right now with the non-AUR builds of the packages.
It's not (at least for me), required to use -git versions though, as LLVM 15 is released as stable upstream, and mesa 22.3.1 is also stable upstream (whereas official repos are on 22.2.x series still at time of writing.
I took the -git PKGBUILDs from the AUR, and just tweaked them by adding #tag=foo specifications to their git URLs, to build upstream-released versions of the packages.
You could also take the approach of using asp or something to download the "official" arch linux PKGBUILDs as they are now, and update versions that way, which is preferrable, but you're more likely to run in to missing/changed/etc. build options that were added in the new version that the -git AUR package authors may have already accounted for in their PKGBUILD(s). This method is usually preferable because you get a new version, but as close to the "official repo build conditions" as you can get.
In the case of {lib32-,}{llvm,mesa}-git packages though, I can vouch that the PKGBUILDS are somewhat decent as is if you just add #tag=llvmorg-15.0.6 for LLVM, and #tag=22.3.1 for mesa at time of writing.
Since I do a lot of tweaking, I actually manage my own installation of mesa pretty much always with this method.
For the lazy with mesa, here also lies my meant-for-me PKGBUILD that I just used to build 22.3.1 for myself based off of the mesa-git AUR package, complete with a few additional options from the 22.3 series, including (possible) rusticl support, if you have the right LLVM spirv lib versions available
-m, --mkdir[=mode]
Allow to make a target directory (mountpoint) if it does not exist yet. Alias to "-o X-mount.mkdir[=mode]", the default mode is 0755. For more details see X-mount.mkdir below.
This is the a good answer. Just to try to get you up to speed so you understand that all these separate things are not more complex than windows, but in fact less, here's a super quick n' dirty rundown. I only mention this because before I got in to driver development a few years back, this was something I had just never bothered to learn.
there's two parts to "drivers". Kernel code, that actually talks directly to the hardware, performing things that you wouldn't want any random libraries to do in userspace. This is amdgpu for you. If you're using any hardware that isn't trying to be a dickhead, then this just ships with your linux kernel, updates with your linux kernel, and you're good to go.
The other side is userspace drivers, like mesa (which has an OpenGL implementation (from the gallium family of state trackers if you hear that), a vulkan implementation in RADV, and much more, including other userspace drivers for things that aren'tamdgpu. In userspace, mesa is pretty much the end-all-be-all de-facto standard right now due to supporting pretty much everyone that allows it to. Userspace drivers like these know how to talk to different kernel drivers, but provide the same API to application developers regardles of what's under the hood. That's their job.
The only thing I disagree with /u/Calslock on is the recommendation for amdvlk. While it's fine 99.9% of the time, the developers that are working on new sofware on linux are testing on Mesa for the most part, so you'll "accidentally" have things working much more easily in my experience sticking with that. You can have both installed, and use something like loader layers to choose which driver to use for each application, but that might be not quite the level of involvement you're looking for from what it sounded like.
Performance between amdvlk and RADV for me has been all but a tossup, in the situations where both worked, but I found amdvlk to have more issues (specifially in the WSI space, the part of the driver that interacts with window systems).
Just my 2c. Mesa is what 99% of people are using most of the time, so you'll get others taking care of things before it trickles down to you much more on that side in my experience.
I wrote off all the native btrfs RAID support a long time ago when it was immature due to some horror stories. How's the state of things these days with it?
Currently, I'm just running ext4 on mdadm, which is obviously not ideal, but without going ZFS and "putting up with" the license, I didn't think there were other options that had reached enough of a level of maturity to be used in critical workloads.
Man my zsh completions (of which I've only ever custom-made 1-2 for a few self-made tools), have honestly gone completely to shit recently in the past month or two. Capital letters appearing as suggestions where the only possible answer is lowercase, hung completions scripts, etc.
This is one of those things that I keep shoving to the back of the todo pile, but some day it's definitely going to strike the wrong nerve.
Definitely makes me curious what caused it, though, as I haven't had any instability in the completions scripts shipped by my package manager in the past.
I got around this at a gig in the past once. You'd have to be okay with losing the windows data if it's using bitlocker, but even if you don't know the BIOS PW, there's usually a BIOS settings reset jumper somewhere on the board.
Ability to use a Linux box I build from scratch is now a hard sticking point for me with jobs. I used to feel bad about needing to run Linux at work, but my opinion has changed.
If you want a productive developer, then I'm your guy. If you don't trust you own developers to use their own computers, then you shouldn't be trusting them to write your company's software. If a company can't trust me to use a hammer to build their house, and instead forces me to use a nerf bat, then that relationship isn't going to work out for either of us.
It's taken me a long time to come to terms with this and not feel like the "outsider" / "special case" that needs to run Linux, but ever since I made this a sticking point for me, I've just been a lot happier at work in general.
Umm... that's old, but according to kernel.org, is still supported, though the most recent release of that lts tree would be 4.4.280, not .0
Personally, there's a lot of wasted space up there used up for the graphics, but whatever floats your boat. I'm sure there's plenty about my system that wouldn't be useful to others, as well.
to /usr/share/vulkan/implicit_layer.d/amd_icd{32,64}.json.
this is AMD's switchable graphics layer trying to be cool, but really just being annoying. If you disable the layer, then you can just use something like vulkan-device-filter to choose what device/driver to use on a per-application basis.
Who rotates their pacman log? I like having a complete package history for my system. It’s very useful when an upgrade DOES cause an issue.
The pacman log takes up so little space I assumed nobody actually rotated it due to the usefulness of hanging the full history available in a single location … TIL
To me, it seems like this kind of "download upstream source and build" kind of functionality would belong in pkgctl, which also would make it a lot less political than implementing the same kind of thing in a more long-standing citizen of the arch environment.
In other words, IMO leave pacman interfaces alone, but perhaps improve
pkgctlto incorporate download, audit, makepkg, install workflows for those who find doing those 4 steps separately to be too cumbersome.Build. Install. Find out the fun way what breaks :)
Obviously making lists are the real answer, but I find that if I'm current enough with a project to miss an update while it sits on testing, then I'm usually current enough to sort out things that might arise
I thought this was such a meme of a warning g messages in AUR helpers a decade ago.
Now, I can't imagine not auditing... or even still using an AUR helper for that matter!
That is a bullet dodged my friend. Do you really want to spend a significant amount of your life with people who not only do not trust you but obviously don't value the work you're doing if that was an issue.
This happened to me early in my career and I felt bad about it for ages and like I was a problem. Now? I know it's a sticking point for me, and I recognize that if I ever get to that point with an employer again, then that was likely going to be the lease of our worries in the long run.
Especially given that it's monitoring software... not going to lie that level of mistrust among coworkers just doesn't even compute to me.
I've done it to require booting a USB environment twice in like 8 years.
Because those who don't will now look up pacman hooks and maybe learn something and some their problem...
I always have just reactively installed it first, but hadn't thought of just adding a hook like I have for other things, so I don't get the hate for the comment.
FYI,
AMDVLKuses it's own fork ofllvm, without which it cannot compile. It's always in a different state of behind, sometimes rebased off of a recent time point, sometimes ages ago.Well actually my assumption that I needed LLVM 15 was actually based off of this post; I never tried mesa 22.3.1 on LLVM 14 personally.
It makes sense that a newer, but still API-compatible version of LLVM could be required when changes to the actual code generated by LLVM would be required (like new kinds of GPU instructions or something).
I just checked out the LLVM 15 release notes, though, and there does not appear to be anything significant like that for changes to the
AMDGPUbackend, so maybe 22.3.1 would work for me and something else went wrong for you. I'll try and remember to check it out later to confirm one way or another.mesa 22.3.1 will work, at least it is for me (also
swayuser).You do, however, have to build it yourself rather than using the version from the repos, as it has to be built against LLVM 15
It's not working with the official repository versions of
mesaandllvm, but this is mostly just due to the fact that as of today (20221226), the official repos are still using LLVM 14, andmesabuilds are tied tightly to LLVM version.This means you're half right.
-gitversions though, as LLVM 15 is released as stable upstream, and mesa22.3.1is also stable upstream (whereas official repos are on22.2.xseries still at time of writing.I took the
-gitPKGBUILDs from the AUR, and just tweaked them by adding#tag=foospecifications to their git URLs, to build upstream-released versions of the packages.You could also take the approach of using
aspor something to download the "official" arch linux PKGBUILDs as they are now, and update versions that way, which is preferrable, but you're more likely to run in to missing/changed/etc. build options that were added in the new version that the-gitAUR package authors may have already accounted for in their PKGBUILD(s). This method is usually preferable because you get a new version, but as close to the "official repo build conditions" as you can get.In the case of
{lib32-,}{llvm,mesa}-gitpackages though, I can vouch that the PKGBUILDS are somewhat decent as is if you just add#tag=llvmorg-15.0.6for LLVM, and#tag=22.3.1for mesa at time of writing.I'd recommend checking
mesa's gitlab, andthellvm` project GitHub for release versions.Since I do a lot of tweaking, I actually manage my own installation of
mesapretty much always with this method.For the lazy with mesa, here also lies my meant-for-me PKGBUILD that I just used to build
22.3.1for myself based off of the mesa-git AUR package, complete with a few additional options from the 22.3 series, including (possible) rusticl support, if you have the right LLVM spirv lib versions availableYou don't.
From the
mount(8)man page.This is the a good answer. Just to try to get you up to speed so you understand that all these separate things are not more complex than windows, but in fact less, here's a super quick n' dirty rundown. I only mention this because before I got in to driver development a few years back, this was something I had just never bothered to learn.
there's two parts to "drivers". Kernel code, that actually talks directly to the hardware, performing things that you wouldn't want any random libraries to do in userspace. This is
amdgpufor you. If you're using any hardware that isn't trying to be a dickhead, then this just ships with your linux kernel, updates with your linux kernel, and you're good to go.The other side is userspace drivers, like
mesa(which has an OpenGL implementation (from thegalliumfamily of state trackers if you hear that), avulkanimplementation inRADV, and much more, including other userspace drivers for things that aren'tamdgpu. In userspace, mesa is pretty much the end-all-be-all de-facto standard right now due to supporting pretty much everyone that allows it to. Userspace drivers like these know how to talk to different kernel drivers, but provide the same API to application developers regardles of what's under the hood. That's their job.The only thing I disagree with /u/Calslock on is the recommendation for
amdvlk. While it's fine 99.9% of the time, the developers that are working on new sofware on linux are testing on Mesa for the most part, so you'll "accidentally" have things working much more easily in my experience sticking with that. You can have both installed, and use something like loader layers to choose which driver to use for each application, but that might be not quite the level of involvement you're looking for from what it sounded like.Performance between
amdvlkandRADVfor me has been all but a tossup, in the situations where both worked, but I foundamdvlkto have more issues (specifially in the WSI space, the part of the driver that interacts with window systems).Just my 2c. Mesa is what 99% of people are using most of the time, so you'll get others taking care of things before it trickles down to you much more on that side in my experience.
Welcome to the open side!
I wrote off all the native btrfs RAID support a long time ago when it was immature due to some horror stories. How's the state of things these days with it?
Currently, I'm just running ext4 on mdadm, which is obviously not ideal, but without going ZFS and "putting up with" the license, I didn't think there were other options that had reached enough of a level of maturity to be used in critical workloads.
Man my
zshcompletions (of which I've only ever custom-made 1-2 for a few self-made tools), have honestly gone completely to shit recently in the past month or two. Capital letters appearing as suggestions where the only possible answer is lowercase, hung completions scripts, etc.This is one of those things that I keep shoving to the back of the todo pile, but some day it's definitely going to strike the wrong nerve.
Definitely makes me curious what caused it, though, as I haven't had any instability in the completions scripts shipped by my package manager in the past.
I run my own due to patches. There’s probably a lot of people that do, I would think.
I guess that’s really all I wanted… type and launch.
I know there are some more complex things like collapsing but I just never found the need
“I like to hack” - oof cringe
Personally I think the color scheme would hurt my eyes, but I think everyone just had their own preference
I’ve liked rofi/wofi for i3/Sway
I got around this at a gig in the past once. You'd have to be okay with losing the windows data if it's using bitlocker, but even if you don't know the BIOS PW, there's usually a BIOS settings reset jumper somewhere on the board.
Even better on sway! ;)
(I'm joking; I'm not starting display environment wars, just jesting)
Ability to use a Linux box I build from scratch is now a hard sticking point for me with jobs. I used to feel bad about needing to run Linux at work, but my opinion has changed.
If you want a productive developer, then I'm your guy. If you don't trust you own developers to use their own computers, then you shouldn't be trusting them to write your company's software. If a company can't trust me to use a hammer to build their house, and instead forces me to use a nerf bat, then that relationship isn't going to work out for either of us.
It's taken me a long time to come to terms with this and not feel like the "outsider" / "special case" that needs to run Linux, but ever since I made this a sticking point for me, I've just been a lot happier at work in general.
Umm... that's old, but according to
kernel.org, is still supported, though the most recent release of that lts tree would be4.4.280, not.0Personally, there's a lot of wasted space up there used up for the graphics, but whatever floats your boat. I'm sure there's plenty about my system that wouldn't be useful to others, as well.
Just add
"enable_environment": { "ENABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1": "1" }to
/usr/share/vulkan/implicit_layer.d/amd_icd{32,64}.json.this is AMD's switchable graphics layer trying to be cool, but really just being annoying. If you disable the layer, then you can just use something like vulkan-device-filter to choose what device/driver to use on a per-application basis.
EDIT: Corrected file path
Who rotates their pacman log? I like having a complete package history for my system. It’s very useful when an upgrade DOES cause an issue.
The pacman log takes up so little space I assumed nobody actually rotated it due to the usefulness of hanging the full history available in a single location … TIL
Wow, I wouldn't expect a generic extension to have done that well. I picked it up, though I'm keeping it on a whitelist for the time being. Thanks!