What is the patch in XSLoader.pm good for?

Hi,

PatchContent.pm has an entry for XSLoader.pm:

goto \&XSLoader::bootstrap_inherit unless $module and defined
&dl_load_file;' =3D> 'goto \&XSLoader::bootstrap_inherit;

This means, the "unless $module and defined &dl_load_file" condition is
stripped in line 34 of XSLoader.pm with the effect that "goto
\&XSLoader::bootstrap_inherit" is undonditional.

What is it good for?

TIA,

Oliver
0
list_ob
7/9/2019 1:56:30 PM
perl.par 1171 articles. 0 followers. Follow

2 Replies
48 Views

Similar Articles

[PageSpeed] 53

--000000000000d9620e058d7a4ee1
Content-Type: text/plain; charset="UTF-8"

On Fri, Jul 12, 2019 at 5:32 AM Oliver Betz <list_ob@gmx.net> wrote:

> PatchContent.pm has an entry for XSLoader.pm:
> ...
>
What is it good for?
>

Good question, I dunno. Unfortunately the commit log that added this entry
was lost 13 years ago,
so that won't help either. It's effectively useless, as XSLoader.pm
nowadays is always included in
the "FILE" section (cf. PAR::Tutorial, chapter "Anatomy of a Self-Contained
PAR executable")
of a packed executable in *unpatched* form (all PAR::Filter stuff, incl.
PatchContent, applies only
to  the zip section of the executable).

Cheers, Roderich

--000000000000d9620e058d7a4ee1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">On Fri, Jul 12, 2019 at 5:32 AM Oliver Be=
tz &lt;<a href=3D"mailto:list_ob@gmx.net">list_ob@gmx.net</a>&gt; wrote:<br=
></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex">PatchContent.pm has an entry for XSLoader.pm:<br>...<br></blockq=
uote><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo=
rder-left:1px solid rgb(204,204,204);padding-left:1ex">What is it good for?=
<br></blockquote><div><br></div><div>Good question, I dunno. Unfortunately =
the commit log that added this entry was lost 13 years ago, <br></div><div>=
so that won&#39;t help either. It&#39;s effectively useless, as XSLoader.pm=
 nowadays is always included in</div><div>the &quot;FILE&quot; section (cf.=
 PAR::Tutorial, chapter &quot;Anatomy of a Self-Contained PAR executable&qu=
ot;) <br></div><div>of a packed executable in <b>unpatched</b> form (all PA=
R::Filter stuff, incl. PatchContent, applies only</div><div>to=C2=A0 the zi=
p section of the executable).</div><div><br></div><div>Cheers, Roderich<br>=
</div></div></div>

--000000000000d9620e058d7a4ee1--
0
roderich
7/12/2019 11:35:21 AM
Roderich Schupp wrote

> Good question, I dunno. Unfortunately the commit log that added this
> entry was lost 13 years ago,
> so that won't help either. It's effectively useless, as XSLoader.pm

thanks for the insight.

Oliver
0
list_ob
7/15/2019 5:53:11 AM
Reply: