Discussion:
Naive question: boolean dependency
Vladimir Mihai Pacuraru
2008-02-21 15:29:09 UTC
Permalink
From: Michael Jennings <mej kainx org>
To: rpm-list redhat com
Subject: Re: Naive question: boolean dependency
Date: Tue, 5 Feb 2008 20:49:12 -0800
On Tuesday, 05 February 2008, at 08:00:42 (+0100),
It is possible to express boolean dependencies in RPM?
Yes. grep -ir for examples in /usr/lib/rpm.
Please share some. I would love to see them.
Same interest here!
Requires: (pkg <=1.0.3) | (pkg>=1.9.3)
The above hasn't anything to do with Boolean switches but is given
with the Requires: and/or BuildRequires: definitions.
Please illustrate.
Michael
Again, I would like to do pretty much the same thing (say that a package
requires either a version or another) and tried to adapt the above
Requires: example but instead got this error:

error: line 17: Dependency tokens must begin with alpha-numeric, '_' or '/':

What exactly are the uses for the underscore and the / characters?

Thanks a lot!

Vlad
Michael Jennings
2008-02-21 17:31:11 UTC
Permalink
On Thursday, 21 February 2008, at 16:29:09 (+0100),
Post by Vladimir Mihai Pacuraru
Please share some. I would love to see them.
Same interest here!
I could be wrong, but you may have missed the subtlety. :)

Put more bluntly: "Had you actually grep'd for them yourself, you
wouldn't have found any because they don't exist. RPM can't do that."
Post by Vladimir Mihai Pacuraru
Again, I would like to do pretty much the same thing (say that a package
requires either a version or another) and tried to adapt the above
Because you can't do that either.
Post by Vladimir Mihai Pacuraru
What exactly are the uses for the underscore and the / characters?
Underscores are generally considered "word" characters for historical
programmer reasons. / allows file dependencies.

Michael
--
Michael Jennings (a.k.a. KainX) http://www.kainx.org/ <***@kainx.org>
Linux Server/Cluster Admin, LBL.gov Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
"The future is all around us, waiting in moments of transition to be
born in moments of revelation." -- G'Kar, Babylon 5
Vladimir Mihai Pacuraru
2008-02-21 19:52:36 UTC
Permalink
Re: Naive question: boolean dependency
From: Michael Jennings <mej kainx org>
To: rpm-list redhat com
Subject: Re: Naive question: boolean dependency
Date: Thu, 21 Feb 2008 09:31:11 -0800
On Thursday, 21 February 2008, at 16:29:09 (+0100),
Post by Vladimir Mihai Pacuraru
Please share some. I would love to see them.
Same interest here!
I could be wrong, but you may have missed the subtlety. :)
Put more bluntly: "Had you actually grep'd for them yourself, you
wouldn't have found any because they don't exist. RPM can't do that."
So basically you can't do boolean dependencies, right? I mean what I
need to do is to say install package X if version Y or Z is already
installed.
Post by Vladimir Mihai Pacuraru
Again, I would like to do pretty much the same thing (say that a
package requires either a version or another) and tried to adapt the
error: line 17: Dependency tokens must begin with alpha-numeric, '_'
Because you can't do that either.
What exactly are the uses for the underscore and the / characters?
Underscores are generally considered "word" characters for historical
programmer reasons. / allows file dependencies.
Thank you very much for your answer, Michael!

Loading...