Solved

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

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now