This produce a core dump (also on rpm 5.4.10) rpm -E '%{lua}'
this produce a malloc failed rpm -E '%{perl}' ( I think the all the builtin - git , python - without the body do the same ). (not so interesting as a bug but i hope useful to tell anyway) But but what should be the right result ? On Tue, Aug 6, 2013 at 6:31 PM, Jeffrey Johnson <n3...@me.com> wrote: > > On Aug 6, 2013, at 9:55 AM, Per Øyvind Karlsen wrote: > > >> Meanwhile "Write a test case." is the only sane response to preventing >> regressions. >> > Yes, I've included a simple regression test in the patch included which > fixes the regression as well. > > > And the regression test case is visibly syntactically incorrect: > > --- rpm-5.4.12/tests/Makefile.am.rpmluaext~ 2013-08-06 15:52:53.941594400 > +0200 > +++ rpm-5.4.12/tests/Makefile.am 2013-08-06 15:52:42.851402687 +0200 > @@ -974,6 +974,7 @@ check-convert: > check-lua: > @echo "=== $@ ===" > @-${rpm} -E '%{lua:print("--> lua: Hard Rocks!")}' > + @-${rpm} -E '%{lua:print(rpm.expand("--> lua: rpm macro expansion > works on rpm %{_rpmversion}!")) > @-${rpm} -e lua-test > @-${rpm} -U lua-test/lua-test-*.noarch.rpm > @-${rpm} -e lua-test > > Did you even bother to try-and-see before wasting my time?!? > > 73 de Jeff > >