rpmbuild --eval of lua macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm trying to get rpmbuild to print the expansion of the %{patches}
macro in our kernel package.  When I run rpmbuild --eval %{patches}
kernel.spec, I get the following error:

error: lua script failed: [string "<lua>"]:1: bad argument #1 to
'ipairs' (table expected, got nil)

Looking at the macro, it seems it is dynamically constructed as rpm
parses the spec file.  What I cannot figure out is how to force rpm to
actually do that when passing --eval.  It seems the --eval option
doesn't call the code that would build the patches table?  That is my
best guess anyway.

So is there a way to get rpm to expand this macro and print out the value?

josh
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list



[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux