Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Add ability to run lua scripts directly (#1273)

2020-10-05 Thread Jonathan Lebon
> But the actual scriptlet running machinery needs all manner of context that 
> only exists inside transactions and so is not meaningfully exportable, really.

OK right, that's what I surmised.

How big is that context? Are we talking about automatically defined variables? 
Is there some way we could provide that context via CLI as well? E.g. basically 
tell rpm "please run this Lua script as a %post scriptlet for this package 
running in the context of a fresh install".

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1273#issuecomment-703731886___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Add ability to run lua scripts directly (#1273)

2020-09-30 Thread Panu Matilainen
You can execute arbitrary Lua with rpmExpand() or --eval with a %{lua:...} 
macro as it is. But the actual scriptlet running machinery needs all manner of 
context that only exists inside transactions.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1273#issuecomment-701358921___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Add ability to run lua scripts directly (#1273)

2020-06-26 Thread Dusty Mabe
Bump. We sure would like to make progress on this so that rpm-ostree can start 
supporting lua appropriately and not asking packagers to rewrite their 
scriptlets. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1273#issuecomment-650429825___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Add ability to run lua scripts directly (#1273)

2020-06-18 Thread Jonathan Lebon
Ahh yup, that looks promising. @pmatilai You mentioned in [this 
comment](https://github.com/rpm-software-management/rpm/issues/1215#issuecomment-628594473)
 that it's not considered public API. Would you be open to exposing them 
through a CLI switch for now? We could mark it experimental/hidden to begin 
with so we can trial it in rpm-ostree.

Also, how far off are the environments in these library functions from what a 
scriptlet environment would be?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1273#issuecomment-646017683___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Add ability to run lua scripts directly (#1273)

2020-06-17 Thread ニール・ゴンパ
@hroncok has made interesting progress in #1215, you might want to check that.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1273#issuecomment-645719776___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


[Rpm-maint] [rpm-software-management/rpm] RFE: Add ability to run lua scripts directly (#1273)

2020-06-17 Thread Jonathan Lebon
It would be great if we could pass a lua script directly to rpm. The primary 
motivation for this is so that rpm-ostree can make use of this when running 
scriptlets. But I suspect it would also be useful for packagers to test their 
lua scripts more easily without having to rebuild an RPM each time.

For more background on this, see also:
https://github.com/coreos/rpm-ostree/issues/749
http://lists.rpm.org/pipermail/rpm-ecosystem/2016-August/000391.html

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1273___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint