rpmbuild macro problem

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

 



I am running rpmbuild version 4.2.3 and trying to build and RPM from a spec file . When I run rpmbuild -ba foo.spec the process stops at:

+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd fftw-2.1.3
+ $'\r'
: command not found885: line 30: 
error: Bad exit status from /var/tmp/rpm-tmp.87885 (%prep)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.87885 (%prep)

I checked the /var/tmp/rpm-tmp.87885 with vi and it is placing  a visible ^M at here:

if [ $STATUS -ne 0 ]; then
  exit $STATUS
fi
cd fftw-2.1.3
^M

I ran sh -x rpm-tmp.87885 and it fails. The shell is evidently trying to interpret the ^M as a command and fails.
I removed the ^M and ran sh -x rpm-tmp.87885 and it succeeds.

Why the macro putting a ^M in my macro file?


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux