[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: broken src rpm
- From: rpjday <rpjday mindspring com>
- To: rpm-list redhat com
- Subject: Re: broken src rpm
- Date: Fri, 31 May 2002 17:12:05 -0400 (EDT)
On Fri, 31 May 2002, Jeff Johnson wrote:
> On Fri, May 31, 2002 at 04:53:52PM -0400, rpjday wrote:
> >
> > i just hacked a src rpm that failed to build, most likely due to
> > a misspelled variable name. autolog-0.40-1.src.rpm, whose spec file
> > started with:
> >
> > ... some stuff deleted ...
> >
> > %prep
> > %setup -q
> >
> > %build
> > # Remove stale binaries
> > %{__make} clean
> >
> > %{__make} CFLAGS="%{rpmcflags}"
> >
> >
> >
> > trying to build the i386 rpm eventually generated the message:
> >
> > ...
> > gcc %{rpmcflags} -o autolog autolog.c
> > gcc: %{rpmcflags}: No such file or directory
> > make: *** [autolog] Error 1
> >
> >
> > just removing the "CFLAGS" part of that line in the spec file fixed it.
> > is that a misspelled variable name or something? where does one find a
> > summary of spec file variables and directives? thanks.
>
> Here's what you have configured:
> rpm --showrc | more
> Descriptions in /usr/lib/ropm/macros.
ok, now we're getting somewhere. i see nothing about a "rpmcflags" macro.
"optflags", yes. so any guess as to what the author of this src rpm was
thinking? could this macro be a local one he/she set, which would let
the build work on the local host, then cause it to break everywhere else?
for now, i'm just removing the CFLAGS part. other advice always welcome.
rday
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]