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 11-14-2009, 02:05 PM   #1
jerel4565
Member
 
Registered: Jun 2009
Distribution: Red Hat/ Centos
Posts: 33

Rep: Reputation: 16
Rpm build fails


Hello all,

I have built a rpm but every I run rpmbuild -ba spec I get the following errors.
Code:
Processing files: NetbackupClient-6.5-1
error: File not found: /tmp/NetbackupClient-buildroot/usr/openv
error: File not found: /tmp/NetbackupClient-buildroot/etc/xinetd.d/bpcd
error: File not found: /tmp/NetbackupClient-buildroot/etc/xinetd.d/bpjava-msvc
error: File not found: /tmp/NetbackupClient-buildroot/etc/xinetd.d/vnetd
error: File not found: /tmp/NetbackupClient-buildroot/etc/xinetd.d/vopied
error: File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc2.d/S95nbclient
error: File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc3.d/S95nbclient
error: File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc5.d/S95nbclient
error: File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc0.d/K01nbclient
error: File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc1.d/K01nbclient
error: File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc6.d/K01nbclient
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/NetbackupClient-buildroot


RPM build errors:
    File not found: /tmp/NetbackupClient-buildroot/usr/openv
    File not found: /tmp/NetbackupClient-buildroot/etc/xinetd.d/bpcd
    File not found: /tmp/NetbackupClient-buildroot/etc/xinetd.d/bpjava-msvc
    File not found: /tmp/NetbackupClient-buildroot/etc/xinetd.d/vnetd
    File not found: /tmp/NetbackupClient-buildroot/etc/xinetd.d/vopied
    File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc2.d/S95nbclient
    File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc3.d/S95nbclient
    File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc5.d/S95nbclient
    File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc0.d/K01nbclient
    File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc1.d/K01nbclient
    File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc6.d/K01nbclient
Here is my spec file:
Code:
Summary: Installs NetBackup Client.
Name: NetbackupClient
Version: 6.5
Release: 1
License: 
Group: System Environment/Base
Requires: xinetd
Source: http://ip/pub/NetBackup_6.5_CLIENTS2.tar.gz
Prefix: /usr/openv
Packager: me
BuildRoot: /tmp/%{name}-buildroot

%description
This rpm will install the NetBackup Client software.

%prep
%setup -q -n  NB_65_CLIENTS2_20070723

%build

%install
./install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_prefix}/openv/
%{_sysconfdir}/xinetd.d/bpcd
%{_sysconfdir}/xinetd.d/bpjava-msvc
%{_sysconfdir}/xinetd.d/vnetd
%{_sysconfdir}/xinetd.d/vopied
%{_sysconfdir}/rc.d/rc2.d/S95nbclient
%{_sysconfdir}/rc.d/rc3.d/S95nbclient
%{_sysconfdir}/rc.d/rc5.d/S95nbclient
%{_sysconfdir}/rc.d/rc0.d/K01nbclient
%{_sysconfdir}/rc.d/rc1.d/K01nbclient
%{_sysconfdir}/rc.d/rc6.d/K01nbclient

%post
service xinetd start
service nbclient start

Any help would be greatly appreciated.
 
Old 11-15-2009, 06:25 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,457
Blog Entries: 54

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
First of all it's good you included the actual .spec file but since %configure and %install may be configured on the fly to take different values it would be good to also attach the build log.

Quote:
Originally Posted by jerel4565 View Post
Code:
Processing files: NetbackupClient-6.5-1
error: File not found: /tmp/NetbackupClient-buildroot/usr/openv
(..)
RPM build errors:
    File not found: /tmp/NetbackupClient-buildroot/etc/rc.d/rc2.d/S95nbclient
(..)
- Here 'bpcd' needs to be "/etc/xinetd.d/bpcd", so maybe you need to explicitly make the .spec's %configure take sysconfigdir as being /etc instead of "(${RPM_BUILDROOT}/)%{_prefix}/openv/".
- Any incorporation of "rc.d/rc?.d/{K,S}.*nbclient" type symbolic links or files in %files can be avoided if /etc/rc.d/init.d/nbclient contains the right chkconfig line. Then a %post using 'chkconfig --add' will populate your SysV initscripts tree with the right symbolic links.
* If you're building RPM's as root user please move to using an unprivileged user account instead.
 
Old 11-15-2009, 04:55 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
Ref # 2 : Setting up 'an unprivileged user account' :

http://www.linuxquestions.org/questi...5.1-766486/#10
> > post # 10

http://www.linuxquestions.org/questi...6/highlight#13
> > post # 13
.....

Last edited by knudfl; 11-19-2009 at 03:19 PM.
 
  


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
self build rpm fails with missing dependencies on build host zhjim Linux - Software 1 09-24-2009 08:47 AM
RPM build fails Musikolo Linux - Software 8 06-13-2007 11:55 AM
postfix .src.rpm fails to build mardanian Fedora 1 03-02-2007 06:21 AM
anaconda build from src rpm fails LampMan Fedora 3 03-28-2005 02:55 AM


All times are GMT -5. The time now is 10:15 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