<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-11 16:20 GMT+02:00 David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5">On Sun, May 11, 2014 at 09:38:06AM +0200, Nicolas Cellier wrote:<br>
&gt; 2014-05-11 9:18 GMT+02:00 Nicolas Cellier &lt;<br>
&gt; <a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>&gt;:<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; 2014-05-11 3:48 GMT+02:00 David T. Lewis &lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt;:<br>
&gt; &gt;<br>
&gt; &gt; On Sat, May 10, 2014 at 03:00:41PM -0700, tim Rowledge wrote:<br>
&gt; &gt;&gt; &gt; There?s a related issue that could do with a fix sometime - the jpeg<br>
&gt; &gt;&gt; library we used to make the jepegreadwriteplugin is out of date and Debian<br>
&gt; &gt;&gt; (at least) considers that a security risk and thus they mangle the sources<br>
&gt; &gt;&gt; to not use those file but link to the ?standard? library. Which<br>
&gt; &gt;&gt; unfortunately doesn?t actually work within our plugin!<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; Leaving aside the sheer rudeness of throwing unapproved ?patches? into<br>
&gt; &gt;&gt; somebody?s code (without ever letting Ian know, for example) and resulting<br>
&gt; &gt;&gt; in a broken function, I imagine that if looked into we would be able to<br>
&gt; &gt;&gt; tweak our plugin code to actually work with the new jpeg library code. This<br>
&gt; &gt;&gt; would be a Good Thing. If anyone knows enough about jpeg library, Debian,<br>
&gt; &gt;&gt; blah blah blah to look into this then it might make a nice project that<br>
&gt; &gt;&gt; would benefit the Raspberry Pi Scratch using world - several tens of<br>
&gt; &gt;&gt; thousands of kids in the UK alone.<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; This issue is tracked in Mantis 7539: &quot;Plugins should use platform<br>
&gt; &gt;&gt; libraries<br>
&gt; &gt;&gt; where possible. Gentoo removed Squeak for this reason.&quot;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;    <a href="http://bugs.squeak.org/view.php?id=7539" target="_blank">http://bugs.squeak.org/view.php?id=7539</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; It was originally reported based on Gentoo rejecting Squeak, and it<br>
&gt; &gt;&gt; affects Debian<br>
&gt; &gt;&gt; and other Linux distributions that (quite reasonably) expect that<br>
&gt; &gt;&gt; supported<br>
&gt; &gt;&gt; applications should link to current versions of system libraries.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; If anyone is interested in working to improve this, please do. It would<br>
&gt; &gt;&gt; be a great<br>
&gt; &gt;&gt; way for someone to contribute a really useful update to the VM.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Dave<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt; A general idea would be to proceed in two steps:<br>
&gt; &gt; -1) upgrade the library in squeak svn repository, so as to fix the API<br>
&gt; &gt; evolutions mismatch<br>
&gt; &gt; -2) provide a way to link to existing library (via cmake/configure in<br>
&gt; &gt; VMMaker and apt/rpm package dependency at distrib level)<br>
&gt; &gt;<br>
&gt; &gt; Good plan, but what are the starting points?<br>
&gt; &gt; Which library exactly should be used?<br>
&gt; &gt; libjpeg - <a href="http://sourceforge.net/projects/libjpeg/" target="_blank">http://sourceforge.net/projects/libjpeg/</a> - which is the<br>
&gt; &gt; successor of the library used in squeak is licenced GPL v2, should we taint<br>
&gt; &gt; the whole VM?<br>
&gt; &gt; There is also an opened issue (<a href="http://sourceforge.net/p/libjpeg/bugs/5/" target="_blank">http://sourceforge.net/p/libjpeg/bugs/5/</a> -<br>
&gt; &gt; 5 years old!!!) telling it does not compile on win32 (not sure which<br>
&gt; &gt; compiler though, it might be MSVC only), so this might be a hurdle for step<br>
&gt; &gt; 1).<br>
&gt; &gt;<br>
&gt; &gt; So what is the plan in details?<br>
&gt; &gt;<br>
&gt;<br>
&gt; Maybe <a href="http://www.openjpeg.org/" target="_blank">http://www.openjpeg.org/</a> is a better match, BSD license... But it&#39;s<br>
&gt; huge.<br>
<br>
</div></div>The Mantis entry has links to the earlier discussions, so there is a good<br>
summary of the issues there. I do not know what the detailed plan should be<br>
but I think that we need two things:<br>
<br>
1) Some platforms, probably including some unix platforms, need to use the<br>
old jpeg library code that we keep in platforms/Cross/plugins/JPEGReadWriter2Plugin.<br>
This must continue to work for the platforms that require it.<br>
<br>
2) Other platforms, especially Linux distributions, would prefer to link<br>
directly to the jpeg runtime library provided by the operating system.<br>
<br>
There should be no GPL issues because linking to a runtime libjpeg is no<br>
different from linking to any other runtime library on Linux.<br>
<br></blockquote><div><br></div><div>Beware, this is why LGPL was created for, no?<br>But GPL is different from LGPL.</div><div>I don&#39;t feel like reading those licenses again, it&#39;s just too boring, so someone should confirm that:<br>
link with GPL and you become GPL, it&#39;s viral.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
It may be that the best way to achieve this is to provide different variants<br>
of jpeg plugin in VMMaker. But I have not looked at this in detail, so I<br>
cannot say what is the best approach.<br>
<br>
Dave<br>
<br>
<br>
</blockquote></div><br></div></div>