LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-24-2004, 10:17 PM   #1
DrD
Member
 
Registered: Nov 2003
Distribution: Fedora Core 4
Posts: 99

Rep: Reputation: 15
Changing (or adjusting) rpm dependencies


Hi all. My question is: is there a way to change the dependencies an RPM requires? The reason I ask is because I'm trying to install winex from the suse wine rack, and I have fedora core 3. I got it to work in fedora core 2 simply by using --nodeps. I can still do this in fedora core 3, however, later on when I'm solving another fedora/winex issue where I need to disable prelinking and run "prelink ua", it runs into "can't find dependency" issues.

Basically, it simply asks for "python-gtk" and "python-gnome" when installing. FC3 appearently already has these, they're just named "pygtk" and gnome-python", respectfully. So all i need to know is, is there a way I can edit the RPM itself, or run the rpm command, so that it uses "pygtk" and "gnome-python" in place of python-gtk" and "python-gnome"?

Thanks in advance,
 
Old 11-24-2004, 11:10 PM   #2
spoody_goon
Member
 
Registered: Sep 2003
Location: Michigan USA
Distribution: Mandrake, DamnSmallLinux, VectorLinux
Posts: 416

Rep: Reputation: 30
What about a tar.gz install?

Possible help here:
http://www.linuxquestions.org/questi...hreadid=163038
 
Old 11-24-2004, 11:18 PM   #3
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,161
Blog Entries: 4

Rep: Reputation: 136Reputation: 136
Re: Changing (or adjusting) rpm dependencies

Quote:
Originally posted by DrD
Hi all. My question is: is there a way to change the dependencies an RPM requires? The reason I ask is because I'm trying to install winex from the suse wine rack, and I have fedora core 3. I got it to work in fedora core 2 simply by using --nodeps. I can still do this in fedora core 3, however, later on when I'm solving another fedora/winex issue where I need to disable prelinking and run "prelink ua", it runs into "can't find dependency" issues.

Basically, it simply asks for "python-gtk" and "python-gnome" when installing. FC3 appearently already has these, they're just named "pygtk" and gnome-python", respectfully. So all i need to know is, is there a way I can edit the RPM itself, or run the rpm command, so that it uses "pygtk" and "gnome-python" in place of python-gtk" and "python-gnome"?

Thanks in advance,
You can create symbolic link with the name required by the rpm pointing to the correct library using the ln command. Use man ln for more information.

For eg. I have a library named "libsome.so.0" on my system and the dependency asks for "libsomethingalias.so.0" which is another name for the existing library.

So I create a link using:
Code:
ln -s libsome.so.0 libsomethingalias.so.0
Where libsome.so.0 is the "target" and libsomethingalias.so.0 is the name of the link created which will point to the original libsome.so.0.
This way you won't need to change any dependencies.

Last edited by vharishankar; 11-24-2004 at 11:22 PM.
 
Old 11-24-2004, 11:27 PM   #4
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,161
Blog Entries: 4

Rep: Reputation: 136Reputation: 136
In case you are absolutely sure that all dependencies are fulfilled, then you can use the

rpm --force

option or the

rpm --nodeps

options.
 
Old 11-25-2004, 03:11 AM   #5
DrD
Member
 
Registered: Nov 2003
Distribution: Fedora Core 4
Posts: 99

Original Poster
Rep: Reputation: 15
I think you're on to some thing Harishankar; however, where do I place these symbolic links? I can create them, but it only puts a link in whatever folder I'm in at the time, and putting them in the folder with the RPM doesn't make it think those dependencies are aviable.
 
Old 11-25-2004, 03:45 AM   #6
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
symbolic links could be the answers, or not. Some requires are on files; it'll be OK for those. Most requires are on provided features (by other RPM packages), and those can't be changed with symbolic links.

The "clean" solution is to take the SRPM, install it (rpm -i), cd into /usr/src/RPM, edit SPECS/thepackage.spec to make the requires correct, and then rebuilt the RPM with rpmbuild -bb SPECS/thepackage.spec.

Yves.
 
Old 11-25-2004, 03:56 AM   #7
DrD
Member
 
Registered: Nov 2003
Distribution: Fedora Core 4
Posts: 99

Original Poster
Rep: Reputation: 15
Sounds fair enough, but all I have is:
winex3-3.2-4.i586.rpm
from the SUSE wine rack CD

The wine rack also contains python-gnome and python-gtk rpms, but those conflict with the differently named instances of those libraries I already have.
Essentially, it just needs to install using librarys that are already there, but just named differently then it's expecting. I'd imagine there's a relatively strait-forward way to do this...?

(--nodeps installs the package, but later on it messes things up when I do prelink -ua (required for a FC winex fix). It also makes synaptec (apt-get) stop working until I remove the "broken package", so I figured I'd just do it right this time and figure out how to satisfy it's dependencies from the get-go)
 
Old 11-25-2004, 02:57 PM   #8
DrD
Member
 
Registered: Nov 2003
Distribution: Fedora Core 4
Posts: 99

Original Poster
Rep: Reputation: 15
-bump-
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RPM dependencies? bobr Linux - Software 1 04-30-2004 11:29 AM
rpm dependencies? nate1002 Linux - Newbie 1 02-18-2004 01:49 PM
RPM dependencies construct Linux - Software 2 01-22-2004 04:09 PM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM
RPM Dependencies snatale1 Linux - Newbie 8 08-22-2003 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration