tags:

views:

272

answers:

1

I needed some help debugging my rpm build. Any time it encounters a %files or %build or %install directive it gives me an error and I am not able to figure out what "[rpm] + $'\r'" means

  [rpm] Building the RPM based on the LBR.spec file
  [rpm] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.2932
  [rpm] + umask 022
  [rpm] + cd /home/user.username/workspace/LBR/dist/BUILD
  [rpm] + LANG=C
  [rpm] + export LANG
  [rpm] + unset DISPLAY
  [rpm] + $'\r'
  [rpm] /var/tmp/rpm-tmp.2932: line 28:
  [rpm] : command not founderror: Bad exit status from /var/tmp/rpm-tmp.2932 (%build)
  [rpm]     Bad exit status from /var/tmp/rpm-tmp.2932 (%build)
  [rpm]
  [rpm]
  [rpm] RPM build errors:
+1  A: 

Little late... but...

After the build fails, vi/open the file /var/tmp/rpm-tmp.2932 (or whatever it is for that build) and go to line 28. Whatever the command is at that line, is what is failing. From this output, it is probably "$'\r'" which is bogus and not a command or valid statement... so you probably have a typo or something.

You said it happened ion %build, %install, and %files? What is the build command you are issuing?

derks