Re: RPMBUILD ^M in tmp output file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2004-07-12 at 17:43, Dennis Lattka wrote:
> I have created a spec file (see below) and when running rpmbuild -bb
> or and -b flag it always terminates with the following error:
> 
> rpmbuild -bp mbone.spec
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.64764
> + umask 022
> + cd /usr/src/redhat/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + $'\r'
> : command not found764: line 25:
> error: Bad exit status from /var/tmp/rpm-tmp.64764 (%prep)
>  
>  
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.64764 (%prep)
> 
> When opening up the file /var/tmp/rpm-tmp.64764 (using vim), I find ^M
> just after the "unset DISPLAY". Why? This seemingly is where it is
> bombing.
> 
<gratuitous scissor work>

Hmm, A ^M could have got into the file ANY number of ways. Most likely
by typing a ^M to move down a line after typing a ^V.  Either way it is
simple enough to get rid of

from vi in ESC mode type %s/CTRL-V CTRL-M// 

the CTRL-V allows you to put in special characters like ^M.

HTH

Micheal 



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux