<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8628</bug_id>
          
          <creation_ts>2015-11-02 17:21:31 +0000</creation_ts>
          <short_desc>Use libjpeg-turbo in place of libjpeg</short_desc>
          <delta_ts>2016-02-16 15:52:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>graphics</component>
          <version>2.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Maxin B. John">maxin.john</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>alexandru.c.georgescu</cc>
    
    <cc>jku</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Daniel Istrate">daniel.alexandrux.istrate</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56107</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-11-02 17:21:31 +0000</bug_when>
    <thetext>It seems most of the major Linux distributions have moved from libjpeg over to libjpeg-turbo, and not just for performance reasons.

http://www.libjpeg-turbo.org/Main/HomePage

There&apos;s a lengthy discussion over on the Debian mailing lists where they discussed their own move:
http://debian.2.n7.nabble.com/jpeg8-vs-jpeg-turbo-tt2921094.html

It may be about time for us to make this move ourselves. meta-oe has been maintaining a libjpeg-turbo recipe for some time now which could easily be pulled in to replace our existing libjpeg recipe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56126</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2015-11-03 08:51:49 +0000</bug_when>
    <thetext>+1, this is something I&apos;ve been meaning to suggest.

One thing to note though: we currently have libjpeg 9a. This may have been a mistake in the first place but it&apos;s something we have to take into account.

My understanding of the situation:
* distros are largely on API version 6 (I believe both Fedora and Debian)
* jpeg-turbo can support 6 or 8 
* jpeg-turbo does not support 9 and never will (and we probably shouldn&apos;t do that either by default)

http://www.libjpeg-turbo.org/About/Jpeg-9


So if we move to jpeg-turbo, it seems we will &quot;break&quot; API. The question is, should we default to APIv6 like others or continue with 8 which would be closest to the current 9? This probably warrants a mailing list thread after release.

Alex: does webkit support both or just APIv8?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56128</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-11-03 09:34:41 +0000</bug_when>
    <thetext>That is a good point. As you suggest I think the best course would be to put it out to the community on the mailing list and see what people think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56133</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-11-03 12:53:30 +0000</bug_when>
    <thetext>I never investigated that, I simply updated jpeg together with webkit. Someone needs to swap one for the other and see what breaks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56134</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-11-03 13:01:51 +0000</bug_when>
    <thetext>I suspect nothing will, but of course we won&apos;t know for sure until it&apos;s tested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56856</commentid>
    <comment_count>5</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-11-27 13:17:10 +0000</bug_when>
    <thetext>Sent RFC patch to oe-core:
http://lists.openembedded.org/pipermail/openembedded-core/2015-November/113459.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56890</commentid>
    <comment_count>6</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-12-01 12:58:54 +0000</bug_when>
    <thetext>patch sent to oe-core mailing list:

http://lists.openembedded.org/pipermail/openembedded-core/2015-November/113516.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57619</commentid>
    <comment_count>7</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2016-01-07 14:14:50 +0000</bug_when>
    <thetext>Accepted upstream:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ffa746946f830c8161e43a151df7cd942bce63f3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59109</commentid>
    <comment_count>8</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2016-02-16 15:52:20 +0000</bug_when>
    <thetext>Verified on master: 7a700f59d98ffe08714582532d3edb97abc2e33e

Steps:
1. $ bitbake -s | grep libjpeg
libjpeg-turbo                                    :8d+1.4.2-r0                          
libjpeg-turbo-native                             :8d+1.4.2-r0

No libjpeg recipe found, only libjpeg-turbo.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>