FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 07-31-2012, 01:16 AM
"David C. Rankin"
 
Default pkgbuild depends() can you have both >= <=?

Guys,

Is it possible to have both a 'greater than' and 'less than' dependency on any
single package listed as a depends in a PKGBUILD? I want to specify gegl
>=0.1.8 and <=0.2 for gimp26. Possible?

Man page says:

<quote>
Entries can also include a version requirement of the form name<>version, where
<> is one of five comparisons: >= (greater than or equal to), <= (less than or
equal to), = (equal to), > (greater than), or < (less than).
</quote>

Where the operative phrase is: 'is one of five...'
^^^

Can you list a depends twice? (i.e.: gegl>=0.1.8 gegl<=0.2)

--
David C. Rankin, J.D.,P.E.
 
Old 07-31-2012, 01:19 AM
Daniel Wallace
 
Default pkgbuild depends() can you have both >= <=?

On Mon, Jul 30, 2012 at 08:16:28PM -0500, David C. Rankin wrote:
> Guys,
>
> Is it possible to have both a 'greater than' and 'less than' dependency on any
> single package listed as a depends in a PKGBUILD? I want to specify gegl
> >=0.1.8 and <=0.2 for gimp26. Possible?
>
> Man page says:
>
> <quote>
> Entries can also include a version requirement of the form name<>version, where
> <> is one of five comparisons: >= (greater than or equal to), <= (less than or
> equal to), = (equal to), > (greater than), or < (less than).
> </quote>
>
> Where the operative phrase is: 'is one of five...'
> ^^^
>
> Can you list a depends twice? (i.e.: gegl>=0.1.8 gegl<=0.2)
>
> --
> David C. Rankin, J.D.,P.E.

see the pkgbuild for nvidia
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/nvidia
 
Old 07-31-2012, 04:53 AM
Magnus Therning
 
Default pkgbuild depends() can you have both >= <=?

On Mon, Jul 30, 2012 at 08:16:28PM -0500, David C. Rankin wrote:
> Guys,
>
> Is it possible to have both a 'greater than' and 'less than' dependency on any
> single package listed as a depends in a PKGBUILD? I want to specify gegl
> >=0.1.8 and <=0.2 for gimp26. Possible?
>
> Man page says:
>
> <quote>
> Entries can also include a version requirement of the form name<>version, where
> <> is one of five comparisons: >= (greater than or equal to), <= (less than or
> equal to), = (equal to), > (greater than), or < (less than).
> </quote>
>
> Where the operative phrase is: 'is one of five...'
> ^^^
>
> Can you list a depends twice? (i.e.: gegl>=0.1.8 gegl<=0.2)

Yes, and they have to be listed just like you did above, i.e. as two
separate depends.

/M

--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: magnus@therning.org jabber: magnus@therning.org
twitter: magthe http://therning.org/magnus

I invented the term Object-Oriented, and I can tell you I did not have
C++ in mind.
-- Alan Kay
 

Thread Tools




All times are GMT. The time now is 05:02 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org