Re: rpmbuild --rcfile does not recognize entries in rpmrc file

Isabelle Poueriet <[email protected]>
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
Thanks Michael. I was following old docs.

I ended up using this format for my goal:

 rpmbuild -ba --define "_topdir /usr/src/redhat/RPMS/5.5.0.0" <templatefileName>

We build various versions of the product on the same system and sometimes the rpms collide. So the above format works for us now ;-)


----- Original Message ----
From: Michael Jennings <[email protected]>
To: [email protected]
Sent: Friday, October 5, 2007 4:40:08 PM
Subject: Re: rpmbuild --rcfile does not recognize entries in rpmrc file


On Friday, 05 October 2007, at 10:27:22 (-0700),
Isabelle Poueriet wrote:

> Hello, can anyone help here? Thanks in advance.
> 
> slughorn#rpm --rcfile ./rpmrc --showrc returns:
> 
> error: bad option 'vendor' at linux/pkg/rpmrc:1
> error: bad option 'sourcedir' at linux/pkg/rpmrc:2
> error: bad option 'rpmdir' at linux/pkg/rpmrc:3
> 
> slughorn#cat ./rpmrc
> vendor:XYZ
> sourcedir:/usr/src/packages/SOURCES
> rpmdir:/usr/src/packages/RPMS/5.5.0.0
> 
> I can recreate this problem in any of the following environments:
> 
> rpm versions: 
> 3.0.6-127
> 4.1.1-177
> 4.3.3-22
> 
> Linux vendors: 
> RHEL4, SLES7,SLES9,

Those aren't rpmrc entries.  You're confusing rpmrc with macros.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[email protected]>
Linux Server/Cluster Admin, LBL.gov       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
"I feel wonderful because I see the love light in your eyes, and the
  wonder of it all is that you just don't realize how much I love
  you."                           -- Eric Clapton, "Wonderful Tonight"

_______________________________________________
Rpm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rpm-list


      ____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

_______________________________________________
Rpm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rpm-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.