You are not logged in.
@allan suggested to put runtime dependencies in the package function. somebody has an example PKGBUILD how to do so?
discussin in this pacman issue:
https://gitlab.archlinux.org/pacman/pacman/-/issues/22
Offline
You're defining the variable, you're just doing it inside the function instead of globally.
Online
https://wiki.archlinux.org/title/Talk:P … on_depends
Edit: to be fair, from the notion in the wiki alone it's not clear whether the array should be grown, replaced or shadowed w/ a local namesake
Last edited by seth (2023-05-20 12:52:43)
Offline
Edit: to be fair, from the notion in the wiki alone it's not clear whether the array should be grown, replaced or shadowed w/ a local namesake
Because you can do any of them, depending on what you're trying to accomplish.
Online
Dependencies defined inside the package() function are only required to run the software.
I'm not gonna pretend to teach English, but "defined" sounds like the array is "defined" there and the goal is to have "Dependencies … only required to run the software."
Defining "depends" inside "package" is gonna replace it, a local variable is inert and only "depends+=" will achieve what's suggested.
From my naive understanding as a non-native English babbler
Dependencies defined added inside the package() function are only required to run the software.
would much rather catch the situation, but I'll grant that's maybe just me.
Offline
"depends+=" is just a bashism for "depends=$depends". It's still defining the array.
Who says you don't want to completely redefine/replace it? Or who says there's even a depends array in the global scope? 'Added' only covers a subset of what's possible.
Online
I also prefer to separate build & runtime dependencies (and don't mind listing a dep that is both multiple times) .
https://aur.archlinux.org/cgit/aur.git/ … inimal-git only has runtime depends in the package-*() functions and none in the main body of the PKGBUILD.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline