Solved

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

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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
Linux Hosting 16 107
Krita v3 Linux Mint/Ubuntu 16.04 9 76
change password for AD retention policy and Citrix 2 89
phpmyadmin memory error 55 96
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Fine Tune your automatic Updates for Ubuntu / Debian
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.

752 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