RPM Build errors
Jason Pyeron
jpyeron at pdinc.us
Thu Sep 3 13:42:18 UTC 2009
Please don't post in HTML.
________________________________
From: rpm-list-bounces at lists.rpm.org
[mailto:rpm-list-bounces at lists.rpm.org] On Behalf Of ram s
Sent: Thursday, September 03, 2009 9:24
To: rpm-list at lists.rpm.org
Subject: RPM Build errors
hello ,
I build my source using rpm now.
But, build errors comes
<snip/>
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/home/nco_user/rpmbuild/BUILDROOT/example-1-1.x86_64
error: Installed (but unpackaged) file(s) found:
/usr/lib/debug/.build-id/cf/aa1ce9e8f932fed22fb6e54a87b2d9fcc35d2b
/usr/lib/debug/.build-id/cf/aa1ce9e8f932fed22fb6e54a87b2d9fcc35d2b.debug
/usr/lib/debug/home/nco_user/rpmbuild/tmp/example.debug
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/lib/debug/.build-id/cf/aa1ce9e8f932fed22fb6e54a87b2d9fcc35d2b
/usr/lib/debug/.build-id/cf/aa1ce9e8f932fed22fb6e54a87b2d9fcc35d2b.debug
/usr/lib/debug/home/nco_user/rpmbuild/tmp/example.debug
[/Error]
What this says is that your "make install" command is producing more files than
you specified in the %files section of your spec file.
<snip/>
Requires: gcc
BuildArch:x86_64
%description
This Package install CDaemon application
%prep
%setup -q
Option 1: patch the make file to not produce the files you don't need.
%build
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_tmppath}
install -m755 daemon $RPM_BUILD_ROOT%{_tmppath}/daemon
Option 2: Clean up the files that you don't need and should not exist.
%files
%defattr(-,root,root,-)
%dir /home/user/rpmbuild/SOURCES/daemon-1
%{_bindir}/*
Option 3: list the files here.
<snip/>
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.
More information about the Rpm-list
mailing list