LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-02-2003, 09:17 AM   #1
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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!!
 
Old 01-02-2003, 12:11 PM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
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.
 
Old 01-02-2003, 12:23 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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!
 
Old 01-02-2003, 12:36 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
arse
Code:
AutoReqProv: no
thanks
 
Old 01-02-2003, 01:24 PM   #5
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are source RPM's and binary RPM's installed the same way? Simon Adebisi Linux - Software 3 06-28-2005 03:45 AM
defining servername as comps IP sherm Linux - Software 2 08-21-2004 05:32 PM
Defining terms Kurt M. Weber General 1 10-25-2003 07:25 PM
Defining Custom RunLevel Bheki Linux - General 3 08-13-2003 04:04 AM
Defining the Slices desbyleo Solaris / OpenSolaris 10 05-07-2003 09:18 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration