Solved

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

Posted on 2013-05-22
3
911 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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

628 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