Discussion:
rpmbuild --rcfile does not recognize entries in rpmrc file
Isabelle Poueriet
2007-10-05 17:27:22 UTC
Permalink
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,



____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting
Michael Jennings
2007-10-05 23:40:08 UTC
Permalink
On Friday, 05 October 2007, at 10:27:22 (-0700),
Post by Isabelle Poueriet
Hello, can anyone help here? Thanks in advance.
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
3.0.6-127
4.1.1-177
4.3.3-22
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/ <***@kainx.org>
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"
Isabelle Poueriet
2007-10-06 00:21:09 UTC
Permalink
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 <***@kainx.org>
To: rpm-***@redhat.com
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),
Post by Isabelle Poueriet
Hello, can anyone help here? Thanks in advance.
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
3.0.6-127
4.1.1-177
4.3.3-22
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/ <***@kainx.org>
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
Rpm-***@redhat.com
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
Loading...