Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to rectify rpmbuild error "Two files on one line"?

Posted on 2013-05-22
3
Medium Priority
?
965 Views
Last Modified: 2013-07-12
When i execute the following command:

[exec] rpmbuild -bb --buildroot /var/tmp/ipa/oam/package /var/tmp/ipa/oam/package/oam.spec
[exec] Processing files: oam-4.1.0-1
[exec] error: Two files on one line: /usr/lib/ipa/oam-web/html/endorsed.jnlp.template
[exec] error: File must begin with "/":

where should I look into?
The line:     /usr/lib/ipa/oam-web/html/endorsed.jnlp.template   is part of omcr.spec.
It is listed under %files section.
0
Comment
Question by:pvinodp
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
tailoreddigital earned 2000 total points
ID: 39189838
I'm not very good with Linux.   I'm just tossing an idea at you hoping it can help,

I've thumbed through these links,

On the first link a poster mentions,
"Double quoting, and only double quoting ("), does work for me (in %files
section)."

http://blog.gmane.org/gmane.linux.redhat.rpm.general/month=20061001/page=11

http://stackoverflow.com/questions/10003276/how-do-i-include-files-with-spaces-in-their-names-when-using-rpm-maven-plugin

http://www.redhat.com/archives/rpm-list/2006-October/msg00118.html
0
 

Assisted Solution

by:pvinodp
pvinodp earned 0 total points
ID: 39194655
THanks for the info.
I found that the issue that that the file was edited in dos and had delimiters from there.
I had written teh same contents in a linux system and replaced teh old one with this.
Now things work fine.
0
 

Author Closing Comment

by:pvinodp
ID: 39320167
Thanks
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month12 days, 18 hours left to enroll

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question