/srv/irclogs.ubuntu.com/2024/07/15/#ubuntu-devel.txt

=== gurupras- is now known as guruprasad
ahasenackjuliank: hi, wondering here if apt ever had the concept of "dynamic" dependencies, or if this was ever thought of12:57
ahasenackfor example, I'd like a package to depend on `linux-tools-$(uname -r)`12:57
ahasenackso it would match the running kernel, instead of pulling in the latest linux-tools (which would be the case if I depended on linux-tools-generic)12:57
ahasenackbecause the latest linux-tools-generic would then also pull in the latest kernel, and I don't want to have to reboot12:58
ahasenackor can you see some other way to solve this?12:58
rbasakI'd appreciate a review of my proposed revert of a regression apparmor SRU in bug 2072811 please. https://paste.ubuntu.com/p/s2rNHz4rWd/ is the diff against the target of the revert. Note the "really" and rm_conffile entries.14:54
-ubottu:#ubuntu-devel- Bug 2072811 in apparmor (Ubuntu Noble) "Apparmor: New update broke flatpak with `apparmor='DENIED'`" [Critical, Triaged] https://launchpad.net/bugs/207281114:54
=== cplfidgvnekaibts is now known as papmqjazclroccek
=== papmqjazclroccek is now known as georgiag
juliankahasenack: That's way more dynamic than I thought15:17
juliankahasenack: But you should just depend on linux-tools15:18
ahasenackfor sure I wouldn't expect exactly a shell expansion in there15:18
ahasenackbut perhaps a variable15:18
juliankThis will not be super helpful and install linux-tools-aws for you15:18
ahasenacklinux-tools is provided by tons of packages15:18
juliankIf you don't have one installed15:18
ahasenackyeah15:18
ahasenackthe general theme seems to be depending on the running kernel, not the available one(s)15:19
juliankWe can make it resolve kernel packages specially15:19
juliankOr we can consider Enhances when looking at the providers15:20
juliankBut linux-tools-$flavour doesn't have Enhances: linux-image-$flavour yetz15:20
ahasenackeven if I'm on the kernel of the same flavor, the other thing that a dependency on, say, linux-tools-generic, would do, is update the kernel15:21
juliankAlso linux-generic why does it have Recommends: linux-tools-<version>-generic; it should have a Recommends on the matching flavour package15:21
ahasenacki.e., again it would not install the right package for my running kernel15:21
juliankahasenack: Yes but that's what I want15:21
ahasenackI don't want to have to reboot to be able to do "import perf" in python15:22
juliankI do not want to make it depend on the current kernel15:22
juliankI do not want your dependencies to become broken just because you reboot into a different kernel15:22
ahasenacksure15:22
ahasenackthe dependency would be dynamic15:23
ahasenackbut of course I have not thought it through15:23
ahasenackI'm facing this problem now, and wondering how to address it15:23
=== dbungert1 is now known as dbungert

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!