LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-25-2006, 07:45 AM   #1
eur0dad
Member
 
Registered: Jul 2006
Posts: 57

Rep: Reputation: 15
Noob Question about rebuilding source RPMs


Hello, I'm trying to rebuild an SRPM that requires a library to be installed. Is it possible to add the library package to the RPM and the instructions on isntalling it so that the new RPM can install correctly without throwing dependency errors for the missing library?
 
Old 07-25-2006, 08:59 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Depends. If you build mainstream RPM's then if the application or library are commonly used then you would best build separate application, src, library, lib-dev and lib-src RPM's. If you're building an RPM that will never be publicly distributed you could incorporate the library or even build a static binary (if that's possible and you don't mind size). Maybe tell us what you're trying to build.
 
Old 07-25-2006, 10:43 AM   #3
eur0dad
Member
 
Registered: Jul 2006
Posts: 57

Original Poster
Rep: Reputation: 15
I'm trying to rebuild the source apt rpm for x86_64, but libxml2 2.6.16 is a dependency that Redhat AS 3.0 doesn't have.
 
Old 07-25-2006, 12:36 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Why not get apt-0.5.15lorg3.2-1.el3.rf.x86_64.rpm from DAG at http://dag.wieers.com/packages/apt/ ?
 
Old 07-25-2006, 12:46 PM   #5
eur0dad
Member
 
Registered: Jul 2006
Posts: 57

Original Poster
Rep: Reputation: 15
that's the one that gives me those libxml2 errors. I'm also going to need to get apt for ppc and ia64 architectures.
 
Old 07-25-2006, 12:57 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
[edit]Check if libxml2_2-2.6.22-1_21.el3.at.x86_64.rpm fixes this dep?

Last edited by unSpawn; 07-25-2006 at 01:03 PM.
 
Old 07-25-2006, 01:08 PM   #7
eur0dad
Member
 
Registered: Jul 2006
Posts: 57

Original Poster
Rep: Reputation: 15
This is what I get when installing that patch you listed:

[root@cert-x64-1 carlos]# rpm -ivh apt-0.5.15lorg3.2-1.el3.rf.x86_64.rpm
warning: apt-0.5.15lorg3.2-1.el3.rf.x86_64.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
libxml2 >= 2.6.16 is needed by apt-0.5.15lorg3.2-1.el3.rf


This is the source RPM that I'm using: apt-0.5.15lorg3.2-1.rf.src.rpm
 
Old 07-25-2006, 01:40 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
And if you rpm -ivh apt-0.5.15lorg3.2-1.el3.rf.x86_64.rpm libxml2_2-2.6.22-1_21.el3.at.x86_64.rpm? I mean it sez 2.6.22.
 
Old 07-25-2006, 02:02 PM   #9
eur0dad
Member
 
Registered: Jul 2006
Posts: 57

Original Poster
Rep: Reputation: 15
I get the same thing. And if I try to install libxml2 by itself, I get:

[root@cert-x64-1 carlos]# rpm -ivh libxml2_2-2.6.22-1_21.el3.at.x86_64.rpm warning: libxml2_2-2.6.22-1_21.el3.at.x86_64.rpm: V3 DSA signature: NOKEY, key ID 66534c2b
Preparing... ########################################### [100%]
file /usr/lib64/libxml2.so.2 from install of libxml2_2-2.6.22-1_21.el3.at conflicts with file from package libxml2-2.5.10-7
 
Old 07-25-2006, 02:54 PM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
file /usr/lib64/libxml2.so.2 from install of libxml2_2-2.6.22-1_21.el3.at conflicts with file from package libxml2-2.5.10-7
Uh. Upgrade LibXML first? Be warned though the libxml2_2-2.6.22-1_21.el3.at is an At repo rpm and that means you gotta load some At repo rpm from them if you want to upgrade through Yum/Apt/Autoupd/whatever else.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rebuilding RH9 kernel question oasisbhrnw99 Linux - Newbie 1 10-17-2004 05:39 AM
SuSe - Noob question - How can I edit source? Kalkran Linux - Distributions 1 08-22-2004 04:47 PM
Using Source RPMs Ross Clement Red Hat 3 11-23-2003 02:44 PM
Complete noob question from a noob noob_hampster Linux - Software 2 09-04-2003 12:03 AM
Rebuilding RPMs tarballedtux Linux - Software 1 07-02-2002 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:52 AM.

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