LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   defining requries in RPM's (https://www.linuxquestions.org/questions/programming-9/defining-requries-in-rpms-40076/)

acid_kewpie 01-02-2003 09:17 AM

defining requries in RPM's
 
programming... yeah why not...

can someone tell me how i can force a dependency in an RPM i'm trying to build. it automatically sets the requirement of perl-base to 5.800, which is what i'm using, but i only want the dependency to be for 5.600, but i can't suss out how to override this. If i set "Requires: perl-base >= 5.600" then it just requires BOTH version, which naturally makes no sense...

incidentally i can't even install this rpm on my own system!
Code:

[root@trevor RPM]# rpm -Uvh RPMS/noarch/acidrip-0.6-1.noarch.rpm
error: failed dependencies:
        perl-base >= 5.800 is needed by acidrip-0.6-1
[root@trevor RPM]# rpm -q perl-base
perl-base-5.8.0-13mdk

go figure... it uses MY system to work out dependencies and then wo't even install!! :D

Hko 01-02-2003 12:11 PM

Not being expert at rpm at all, but because I'm planning to make my first rpm soon, I've tried to look it up.

You may want to have a look here:
http://www.rpm.org/max-rpm/s1-rpm-de...endencies.html

Or, more general:
http://www.rpm.org/
http://www.madboa.com/geek/specs/

If this doesn't help, posting your spec file, especially the "requires: ...." line(s) may help.

acid_kewpie 01-02-2003 12:23 PM

well i've read those docs a dozen times today. it's that rpm uses a standard plugin type thing to find the requires as well as manually defining them
Code:

Finding  Requires: (using /usr/lib/rpm/find-requires)...
it's the results of that that are getting me confused. maybe i'll just delete it!

acid_kewpie 01-02-2003 12:36 PM

arse
Code:

AutoReqProv: no
thanks

Hko 01-02-2003 01:24 PM

I'll try to remember that pitfall when I start speccing rpm's.
Thanks for posting the solution.


All times are GMT -5. The time now is 10:40 AM.