Solved

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

Posted on 2013-05-22
3
872 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
tailoreddigital earned 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

740 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