Sorry about original subject. Previously I was getting weird buildroot directories as in the subject but I’ve got past that problem. I really need help with this other stuff below.
Martin
-----Original Message-----
Trying to make an RPM work is sucking away my lifeblood but I am slowly making progress.
The version of rpm I am using is 4.0.4. Is that really old?
All the files in my %files section generate file not found errors. However I can cut’n’paste straight for the error text and do an ls on the files. They are there, so what is the problem?
Here’s the %file section. There should be lots more files but I’ll add them when I get this to work.
%files %defattr(-,root,root) %doc README COPYRIGHT EXCLUDED FAQ CHANGES /opt/bind-9.2.3/sbin/named /opt/bind-9.2.3/sbin/rndc
Here’s the last wee bit of the rpm output which shows the errors
/opt/bind-9.2.3/bindirs /home/mhull/rpmbuild/tmp/bind-9.2.3-root /opt/bind-9.2.3/bin isc-config.sh /home/mhull/rpmbuild/tmp/bind-9.2.3-root + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip + /usr/lib/rpm/brp-strip-comment-note Processing files: bind-9.2.3-1 error: File must begin with "/": error: File not found: /home/mhull/rpmbuild/tmp/bind-9.2.3-root/opt/bind-9.2.3/sbin/named error: File not found: /home/mhull/rpmbuild/tmp/bind-9.2.3-root/opt/bind-9.2.3/sbin/rndc Executing(%doc): /bin/sh -e /home/mhull/rpmbuild/tmp/rpm-tmp.92436 + umask 022 + cd /home/mhull/rpmbuild/BUILD + cd bind-9.2.3 + DOCDIR=/home/mhull/rpmbuild/tmp/bind-9.2.3-root/usr/share/doc/bind-9.2.3 + export DOCDIR + rm -rf /home/mhull/rpmbuild/tmp/bind-9.2.3-root/usr/share/doc/bind-9.2.3 + /bin/mkdir -p /home/mhull/rpmbuild/tmp/bind-9.2.3-root/usr/share/doc/bind-9.2.3 /home/mhull/rpmbuild/tmp/bind-9.2.3-root/usr/share/doc/bind-9.2.3 cp: cannot stat `CHANGES\r': No such file or directory error: Bad exit status from /home/mhull/rpmbuild/tmp/rpm-tmp.92436 (%doc)
And here are the files [mhull@mars sbin]$ ls /home/mhull/rpmbuild/tmp/bind-9.2.3-root/opt/bind-9.2.3/sbin/ dnssec-keygen dnssec-signkey lwresd named-checkconf rndc dnssec-makekeyset dnssec-signzone named named-checkzone rndc-confgen
Some more questions. 1. Why do I get an error ‘file must begin with “/”’? 2. Why the error with CHANGES? This file was not copied across. What is the ‘\r’ on the end of the line? Have I got some funny characters on the ends of my lines? Just for a laugh, I swapped the order of the files on this line such that FAQ was last – and now it fails!!! 3. What do I have to do to make this work?!
Thanks Martin
|