True that the ^M chars probably were not visible in vi. However, I bet if you looked at the status bar (bottom line of the term running vi) you would see "[dos]". On Friday 30 January 2004 09:18 am, martin.dm.hull@xxxxxx wrote: > Woohoo, that did it. My original cut for this was a paste from a webpage > into notepad. From there I did a few tweaks and pasted it into vi in an > xterm session. Pasting from notepad was enough to add the evil > characters although oddly they were never visible in vi. Usually the ^M > at the end of every line is a giveaway. > Many thanks for your help. > > -----Original Message----- > From: Bart Whiteley [mailto:bwhiteley@xxxxxxxxxx] > Sent: 30 January 2004 16:06 > To: rpm-list@xxxxxxxxxx; Hull,DM,Martin,XJG12 HULLDM R > Subject: Re: "buildroot?" or "buildroot^M^M" > > Don't create your spec files on a windoze box. :) If you do, run > dos2unix on them, > or > perl -p -i -e 's/\r//g' <spec_file> > > On Friday 30 January 2004 08:57 am, martin.dm.hull@xxxxxx wrote: > > 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 -- Bart Whiteley <bwhiteley@xxxxxxxxxx> Novell, Inc., the leading provider of information solutions http://www.novell.com/ _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list