RPM Community Forums

Mailing List Message of <rpm-users>

Re: Glibc %post

From: Eric MSP Veith <eveith@wwweb-library.net>
Date: Mon 10 May 2010 - 16:12:40 CEST
Message-Id: <201005101612.42038.eveith@wwweb-library.net>
Hash: SHA1

On Monday 10 May 2010, Jeff Johnson <n3npq@mac.com> wrote:
> > I missed something, please enlighten me: %post -p <perl> does not work
> > here with rpm 5.1.9? If embedding Perl is as easy as embedding lua,
> > I'll use perl, since what I want to archive already has some working
> > Perl code. I mean, using %{perl: ...} will *expand* whatever I produce
> > and put it into the spec file, I don't want this. I merely want to run
> > some Perl/Lua code from the spec file and have access to the specs
> > %defines.
> Yup, no embeddings in 5.1.9. The mebeddings were added in rpm-5.2.0 which
> was supposed to be released 2 weeks after rpm-5.1.9 was.

Ah, ok. push(&todo, "rpm-5.2.1").

Btw, silly me: RPM's spec files are basdically a template language, so 
there's obviously no way to "run" something without expanding. %{perl:...} 
or %{lua:...} is the only way, AFAIK. So wipe that fast-written lines from 
your memory, please. Unless I got something wrong, of course. ;-)

> Well, there's another for of legacy called "future proofing".

Well, uh, constant revising of spec files has to be done anyways, hasn't it?

Version: GnuPG v1.4.9 (GNU/Linux)

Received on Mon May 10 16:13:03 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.