RE: rpmbuild macro problem

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

 



I found the problem to my problem:
I used an Windows scp program to transfer the spec file down to the
server. It was set to automatic transfer type which defaulted to binary
for the spec files. I forced the scp transfer to ASCII and it left out
the ^M which must have been put in when I transferred using binary.

-----Original Message-----
From: Krewson, Tom 
Sent: Thursday, April 28, 2005 12:43 PM
To: rpm-list@xxxxxxxxxx
Subject: rpmbuild macro problem


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


_______________________________________________
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