What is the correct way to populate depends in an APKBUILD? The wiki
page for creating a package[0] notes for makedepends: "If you set a
package in depends, you do not need to add it to makedepends as well."
Is the converse true also? I'm working on an APKBUILD for touchegg[1]
and built the package for armv7 with multiple makedepends but no
depends. When installing the package, it automatically pulled in
pugixml. Then there's the "tracing dependencies" step that abuild
does, which implies that the depends are being determined
automatically.
Will someone clarify when entries are needed in depends?
Thanks,
Carl
[0]https://wiki.alpinelinux.org/wiki/Creating_an_Alpine_package#depends_.26_makedepends
[1]https://github.com/JoseExposito/touchegg
Hello,
On 2021-07-04 13:27:02 -0400, Carl Chave wrote:
> Will someone clarify when entries are needed in depends?
My (limited) understanding is that dependencies that are linked
dynamically into your program are added to depends automatically.
Anything else you need to add manually. That would include for example
libraries you open using dlopen instead of dynamic linking and anything
you execute.
For example if your program would invoke ffmpeg to do some video
manipulation using system(3p), there is not way to detect that, so you
would need to add ffmpeg into depends manually.
W.
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.