<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Dne 28.11.2015 v 14:37 Neal Gompa
napsal(a):<br>
</div>
<blockquote
cite="mid:CAEg-Je92uskuNCEMxDvZFAgBu7_hBjs_vHQpKmys-Pmd4Uo5ow@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:'times new
roman',serif;font-size:small"><span
style="font-family:arial,sans-serif">On Thu, Nov 26, 2015 at
5:20 AM, Florian Festi </span><span dir="ltr"
style="font-family:arial,sans-serif"><<a
moz-do-not-send="true" href="mailto:ffesti@redhat.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:ffesti@redhat.com">ffesti@redhat.com</a></a>></span><span
style="font-family:arial,sans-serif"> wrote:</span><br>
</div>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span
class="">On 11/19/2015 04:09 PM, Vít Ondruch wrote:<br>
> What is the usecase for this? Isn't this just
feature bloat?<br>
<br>
</span>I kinda agree that this looks like feature bloat.
This patch set needs a<br>
very good justification to go in upstream. The overall
trend is to<br>
rather keep minimal installs smaller as this is a big
issue for<br>
containers and VMs. Python is one of the candidates to be
thrown out at<br>
some point.<br>
<br>
Also embedding a particular version of Python into rpm
itself makes this<br>
Python version part of the spec syntax with all kind of
possibly ugly<br>
implications.<br>
<br>
It also seems to not bring many benefits except from
saving the<br>
interpreter starting time (which can be significant if
there are many<br>
Python scriptlets). But the trend here is also to rather
getting rid of<br>
more of the scriptlets using the new file trigger feature
(We'll see how<br>
this works out).<br>
<br>
Having access to the transaction objects of the running
rpm instance<br>
could give such justification as it can hardly done in any
other way.<br>
But I really, really doubt that we wan to go down that
route. Especially<br>
as it gives a whole new way of how scriptlets can break a
transaction.<br>
<br>
As the patch set is not interfering with many places in
the rpm code it<br>
should be not too hard to maintain the changes outside of
the upstream<br>
repository for distributions with (still) rely on this
feature.<br>
<span class=""><font color="#888888"><br>
Florian<br>
<br>
</font></span></blockquote>
</div>
<br>
<div class="gmail_default" style="font-family:'times new
roman',serif;font-size:small">So the main justification for
the Python stuff is less about scriptlets and more about
being able to have templates for spec files. In
OpenMandriva, for instance, the distro-release package[0]
includes a Python script that is used by the main spec file
at build-time (not run-time!) to construct the complete spec
customized for a particular distribution (as there's
actually at least three different distributions hosted and
built through OpenMandriva's ABF system). There's no really
nice way to do this with the existing RPM feature set.</div>
<div class="gmail_default" style="font-family:'times new
roman',serif;font-size:small"><br>
</div>
<div class="gmail_default" style="font-family:'times new
roman',serif;font-size:small">The ways I've seen this done
in the absence of this feature (and I have seen it attempted
a few times before) are pretty terrible. It's usually a
combination of macros, bconds, and a whole bunch of other
crazy things to make it work, and it's an unmanageable mess.</div>
</div>
</div>
</blockquote>
<br>
So what are the other ways? Could you share them with us?<br>
<br>
And why not use LUA?<br>
<br>
Vít<br>
<br>
</body>
</html>