Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

the problem about using --macros

 
   Soft32 Home -> Linux -> Partner Relationship Management RSS
Next:  Linux 2.6.22.6  
Author Message
robertsong2000

External


Since: Aug 30, 2007
Posts: 1



(Msg. 1) Posted: Thu Aug 30, 2007 6:38 pm
Post subject: the problem about using --macros
Archived from groups: linux>redhat>rpm (more info?)

hello,everyone.
now i have one problem that the rpm --macros seems no work.

the command is as follow:

rpm -qi --rcfile=/usr/lib/rpm/rpmrc --macros="test.rpmmacros" --
specfile ltt-control/test.spec

now I want to use the test.rpmmacros directly, not by containing it in
the rcfile, and I
see that
Common options for all rpm modes:
--macros=<FILE:...> read <FILE:...> instead of default
file(s)
--rcfile=<FILE:...> read <FILE:...> instead of default
file(s)

So I think that it means that macros option can used to read the
macros files.
And I defined the BuildRequires: %{target_config}-cross-libopt-for-dev
in the spec file.
and %target_config is defined in the test.rpmmacros.
But when I run the command, it generates the error.
error: line 27: Dependency tokens must begin with alpha-numeric, '_'
or '/': BuildRequires: %{target_config}-cross-libopt-for-dev
error: query of specfile ltt-control/test.spec failed, can't parse

the macros defined in the test.rpmmacros seems cann't be checkd, and I
am puzzled.

if anyone has any suggestion, I would be so thankful for the advice!
Back to top
Login to vote
Display posts from previous:   
Related Topics:
macros expanding to source file names - Hello, I would like to ask a very simple spec file macros question... Just wondering whether there are macros that..

problem - hi! I am a newbie to rpm-tar.gz build so when I do a rpm-ba to a .spec file I got this reply from rpm-the packages don'...

more problem with 'Requires' - hello , please also let me know how to write more than one packages in the 'Requires' section of spec file, in the rpm...

RPM 4.1 Problem - Hi there, I have a problem using rpm -4.1, when i try to use it i get messages like these: error: Failed..

Download problem - I have tried 5 times to download the new rpm's for authentication with RHN, but the one that goes with 'gnome' (I can't...

rpm problem - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi. I administer a server for a friend of mine, which is physically..
       Soft32 Home -> Linux -> Partner Relationship Management All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]