[Rpm-ecosystem] lua, unprivileged rpm, and rpm-ostree

Florian Weimer fweimer at redhat.com
Fri Aug 12 19:41:18 UTC 2016


On 08/11/2016 06:25 PM, Neal Gompa wrote:
> On Thu, Aug 11, 2016 at 11:27 AM, Colin Walters <walters at verbum.org> wrote:
>> Hi, more lua discussion.
>>
>>
>> So finally, a problem is right now we aren't implementing lua:
>> https://github.com/projectatomic/rpm-ostree/pull/424
>>
>> I'd actually like to avoid implementing lua for as long as possible -
>> from my readings in Fedora, most of the usage is for legacy updates
>> or workarounds.  glibc is however using it in a %posttrans, which
>> we could easily port to shell.  I might submit a patch to do so.
>>
>
> There is a very important reason for Lua: it's the only way to do
> scripts without requiring an external interpreter. For packages that
> are part of the minimal rootfs required for building packages or
> creating containers or whatnot, this is critical in order to prevent a
> circular dependency error (package requires /bin/bash but bash isn't
> installed and can't be installed until the package is installed
> first). So, we do need it.

This is largely due to the lack of delayed script execution in RPM. 
dpkg, for instance, guarantees that the dependencies are at least 
unpacked before scripts run, so it's possible to use scripts safely in 
many more cases.

Florian



More information about the Rpm-ecosystem mailing list