You are not logged in.

#1 2007-10-03 05:32:31

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

PKGBUILD's OR dependances, possible?

Yesterday I made a package for the cvs version of Parma Polyhedra Lib, since I needed to install it in my system.

The lib works using Prolog, but it may use many versions including SWI prolog and Ciao prolog and it actually needs only one. Since I installed SWI prolog I put in the depends array of the PKGBUILD file swi-prolog, but I was wondering if it is possible to express that a program need at least one dependence.

thanks

Offline

#2 2007-10-03 05:36:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: PKGBUILD's OR dependances, possible?

If the various "prologs" are just drop in replacements of each other, the best way is to have them provide "prolog" using the provides() array. Your program can then just depend on prolog.

Offline

#3 2007-10-03 05:52:18

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: PKGBUILD's OR dependances, possible?

Fair enough, but I am not the maintainer of all the prolog packages...
Secondly it won't solve an other problem that or dep may solve:
Program X needs Y.
Y program is updated to version n+1 from n and this upgrade adds a bug. X stop working.
In the n + k version finally Y is fixed and X return working. We would need to say that X depends on Y<=n OR Y>=n+k...

Offline

#4 2007-10-03 10:51:21

Xilon
Member
Registered: 2007-01-01
Posts: 243

Re: PKGBUILD's OR dependances, possible?

That's not necessary, Arch only has one package at a time (not multiple versions), so all you need is Y>=n+k

Offline

Board footer

Powered by FluxBB