You are not logged in.

#1 2011-09-07 06:11:33

cleem
Member
Registered: 2010-03-19
Posts: 4

[Solved] Optdepends in build()

How must package be created, if it's building depends of the presence of the another packages? For example, for enabling MPI support in some package, I must it declare on building step. But this version of package will have "openmpi" (for example) package as dependency, and it will not work without "openmpi". So, how can I write PKGBUILD correctly? "openmpi" package is not strong dependency, but it is not optional dependency too. I can prepare two packages with and whithout MPI support, but I'm not sure that it is good way.

Last edited by cleem (2011-09-07 11:45:38)

Offline

#2 2011-09-07 07:28:39

yngwin
Member
Registered: 2009-05-08
Posts: 67

Re: [Solved] Optdepends in build()

This is the downside of not having useflags in Arch. As pkgbuild writer you will need to make that choice, whether or not to include it.

Offline

#3 2011-09-07 08:38:21

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] Optdepends in build()

Arch is a binary distro, so anyone building packages for it decides at build-time what functionalty will be included, and therefore what dependencies are required. Users always have the option to rebuild if they disagree with the packager's decisions.

Offline

#4 2011-09-07 11:44:40

cleem
Member
Registered: 2010-03-19
Posts: 4

Re: [Solved] Optdepends in build()

Thank you for replies.

Offline

Board footer

Powered by FluxBB