LinuxQuestions.org
Help answer threads with 0 replies.
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 03-09-2012, 09:26 AM   #1
dsdonut
LQ Newbie
 
Registered: Jan 2009
Posts: 22

Rep: Reputation: 0
Bogus dependency in an rpm package?


I created an RPM file that will be installed on some machines via puppet. I've never created an RPM before, and I went through a lot of trial and error to get it to work so I may have done something wrong.

When I try to install the rpm, it says there is a dependency on perl(Unix::Syslog). There is no way that this is actually a dependency. In the past, we just installed this software by simply unzipping a zip file into the correct directory, so really that's all I need the rpm to do. If I manually install the rpm with the --nodeps flag, it works just fine.

The problem is that there is no perl(Unix::Syslog) in our repository. Google searches have found really old packages with similar (but not exact) names. It's not something that I want to install.

The only way to get the puppet package type to work with this would be to modify the puppet rpm provider to always use --nodeps. I could see that potentially causing problems with other packages in the future.

I tried installing it with exec instead of package, but the problem there is that after the first time the manifest is applied, it errors out by saying the package is already installed. Because it errors out, puppet won't perform anything that depends on that exec.

Sorry for rambling on there. What I really want to know is, can I somehow get rid of this dependency?
 
Old 03-09-2012, 12:00 PM   #2
dafydd2277
Member
 
Registered: Mar 2010
Posts: 58

Rep: Reputation: 5
Hi, dsdonut,

Would you mind sharing the actual rpm install command you're using and the output it generates? Also, consider sharing an installation attempt with the rpm -v or rpm -vv switches. (Search the rpm man page for "verbose.")

Thanks!
dafydd
 
Old 03-09-2012, 12:31 PM   #3
dsdonut
LQ Newbie
 
Registered: Jan 2009
Posts: 22

Original Poster
Rep: Reputation: 0
[root@puppet-agent ullink]# rpm -ivv UL_BRIDGE-3.6.0-06.x86_64.rpm
D: ============== UL_BRIDGE-3.6.0-06.x86_64.rpm
D: Expected size: 38018397 = lead(96)+sigs(180)+pad(4)+data(38018117)
D: Actual size: 38018397
D: UL_BRIDGE-3.6.0-06.x86_64.rpm: Header SHA1 digest: OK (aec03831426ed75b6583d232b797b4c71e77a000)
D: added binary package [0]
D: found 0 source and 1 binary packages
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: ========== +++ UL_BRIDGE-3.6.0-06 x86_64/linux 0x0
D: opening db index /var/lib/rpm/Depends create mode=0x0
D: opening db index /var/lib/rpm/Basenames rdonly mode=0x0
D: opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0
D: read h# 33 Header V3 DSA signature: NOKEY, key ID e8562897
D: Requires: /bin/sh YES (db files)
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
D: read h# 86 Header V3 DSA signature: NOKEY, key ID e8562897
D: Requires: perl(Exporter) YES (db provides)
D: read h# 86 Header V3 DSA signature: NOKEY, key ID e8562897
D: Requires: perl(Fcntl) YES (db provides)
D: read h# 86 Header V3 DSA signature: NOKEY, key ID e8562897
D: Requires: perl(FileHandle) YES (db provides)
D: Requires: perl(Unix::Syslog) NO
D: package UL_BRIDGE-3.6.0-06.x86_64 has unsatisfied Requires: perl(Unix::Syslog)
D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 YES (rpmlib provides)
D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 YES (rpmlib provides)
D: opening db index /var/lib/rpm/Conflictname rdonly mode=0x0
D: closed db index /var/lib/rpm/Pubkeys
D: closed db index /var/lib/rpm/Depends
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
error: Failed dependencies:
perl(Unix::Syslog) is needed by UL_BRIDGE-3.6.0-06.x86_64
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth, breadth)
D: 0 0 0 0 1 0 +UL_BRIDGE-3.6.0-06.x86_64
D: May free Score board((nil))
 
Old 03-10-2012, 04:56 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,688

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
'perl-unix-syslog' is available for EL 6 : perl-Unix-Syslog-1.1-3.el6.x86_64.rpm


Meaning that it should be possible to create an rpm package for e.g. EL 5,
from the src.rpm : perl-Unix-Syslog-1.1-3.el6.src.rpm
ftp://ftp.pbone.net/mirror/download....-3.el6.src.rpm

.
 
1 members found this post helpful.
  


Reply

Tags
puppet, rpm, rpmbuild


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
RH 8.0 - Minimal package install- RPM dependency issue johnrams Red Hat 3 02-17-2009 08:32 PM
correct .rpm package for freewrl software which doesnt give dependency error rkarthi2k5 Linux - Software 3 12-13-2008 01:19 AM
RHEL 4 RPM package dependency problem tekhed21 Linux - Enterprise 2 01-06-2006 01:18 PM
possible to downgrade a package? (rpm dependency hell) Goog Linux - Software 3 05-26-2003 09:13 AM
Help : rpm dependency error when install video driver rpm ymdwxm Linux - Software 1 04-04-2003 04:55 PM


All times are GMT -5. The time now is 01:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration