<?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>2505</bug_id>
          
          <creation_ts>2012-05-25 23:54:01 +0000</creation_ts>
          <short_desc>qt4x11.bbclass forces to add qt4-x11-free dependency</short_desc>
          <delta_ts>2012-11-07 08:50:50 +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>1.2</version>
          <rep_platform>x86</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>normal</bug_severity>
          <target_milestone>1.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Felipe Ferreri Tonello">ftonello</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21637</commentid>
    <comment_count>0</comment_count>
    <who name="Felipe Ferreri Tonello">ftonello</who>
    <bug_when>2012-05-25 23:54:01 +0000</bug_when>
    <thetext>qt4x11.bbclass forces to add qt4-x11-free dependency to any recipe that inherits it. I think this is ugly and unnecessasry. If any recipe needs that depedency, the recipe needs to contain that. This will, also, cause to compile Qt4 free with Qt4 commercial, which was my case. And that makes difficult to debug.

The patches removes that line and add the qt4-x11-free dependency to recipes that needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21638</commentid>
    <comment_count>1</comment_count>
      <attachid>539</attachid>
    <who name="Felipe Ferreri Tonello">ftonello</who>
    <bug_when>2012-05-25 23:55:52 +0000</bug_when>
    <thetext>Created attachment 539
Patch to fix that dependency</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21640</commentid>
    <comment_count>2</comment_count>
    <who name="Felipe Ferreri Tonello">ftonello</who>
    <bug_when>2012-05-26 00:01:49 +0000</bug_when>
    <thetext>*** Bug 2504 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22037</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-06-12 10:40:49 +0000</bug_when>
    <thetext>Rather than forcing every recipe to be changed I&apos;d prefer to do something like this in the qt4-x11-free recipe:

PROVIDES += &quot;qt4-x11&quot;

You can do the same in your qt4-commercial recipe; then qt4x11.bbclass can add a DEPENDS on qt4-x11 rather than qt4-x11-free. You&apos;d also want to set PREFERRED_PROVIDER_qt4-x11 = &quot;qt4-commercial&quot; in your local or distro configuration.

Does that sound reasonable?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22211</commentid>
    <comment_count>4</comment_count>
    <who name="Felipe Ferreri Tonello">ftonello</who>
    <bug_when>2012-06-14 17:54:18 +0000</bug_when>
    <thetext>Yes, it&apos;s better approach than changing every recipe.

But qt4.inc still configuring Qt for opensource license. Perhaps we could add a QT_LICENSE variable, if it exists, then do something like this:

echo yes | QT_LICENSE_FILE=${QT_LICENSE} ./configure -v \ ...

What do you think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23603</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-07-30 12:26:37 +0000</bug_when>
    <thetext>I&apos;ve finally got a chance to look into this today, sorry for the delay. I&apos;m happy to add the above; I&apos;ve also added a way to specify the license option (-opensource / -commercial). Patch will be sent out soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23619</commentid>
    <comment_count>6</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-07-30 23:32:24 +0000</bug_when>
    <thetext>I&apos;ve just sent the following patch to OE-Core:

http://patchwork.openembedded.org/patch/33323/

Note that with this change applied, a commercial Qt4 (for X11) recipe should do the following:

PROVIDES += &quot;qt4-x11&quot;
QT_LICENSE_FILE = &quot;license_filename&quot;
QT_LICENSE_FLAGS = &quot;-commercial&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23657</commentid>
    <comment_count>7</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-07-31 13:59:25 +0000</bug_when>
    <thetext>Fix merged in revision 72730329c804bd474655d2f4ab5aed02345fd1e3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27263</commentid>
    <comment_count>8</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-11-06 15:18:08 +0000</bug_when>
    <thetext>I sent an email to the bug owner in order to set this to verified. Waiting for feedback.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27269</commentid>
    <comment_count>9</comment_count>
    <who name="Felipe Ferreri Tonello">ftonello</who>
    <bug_when>2012-11-06 22:01:34 +0000</bug_when>
    <thetext>I didn&apos;t test but I checked the commit and it seems it&apos;s fixed.

Thank you</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27273</commentid>
    <comment_count>10</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-11-07 08:50:50 +0000</bug_when>
    <thetext>As per the above comment I am setting this to Verified. Please feel free to reopen if necessary.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>539</attachid>
            <date>2012-05-25 23:55:52 +0000</date>
            <delta_ts>2012-05-25 23:55:52 +0000</delta_ts>
            <desc>Patch to fix that dependency</desc>
            <filename>remove-qt4-x11-free-forced-depedency.patch</filename>
            <type>text/plain</type>
            <size>890</size>
            <attacher name="Felipe Ferreri Tonello">ftonello</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL21ldGEvY2xhc3Nlcy9xdDR4MTEuYmJjbGFzcyBiL21ldGEvY2xhc3Nlcy9x
dDR4MTEuYmJjbGFzcwppbmRleCA2MTAzOTdkLi5mOTA4ZThhIDEwMDY0NAotLS0gYS9tZXRhL2Ns
YXNzZXMvcXQ0eDExLmJiY2xhc3MKKysrIGIvbWV0YS9jbGFzc2VzL3F0NHgxMS5iYmNsYXNzCkBA
IC0xLDUgKzEsMyBAQAotREVQRU5EU19wcmVwZW5kID0gIiR7QFsicXQ0LXgxMS1mcmVlICIsICIi
XVsoZC5nZXRWYXIoJ0JQTicsIFRydWUpWzoxMl0gPT0gJ3F0NC14MTEtZnJlZScpXX0iCi0KIGlu
aGVyaXQgcW1ha2UyCiAKIFFUX0JBU0VfTkFNRSA9ICJxdDQiCmRpZmYgLS1naXQgYS9tZXRhL3Jl
Y2lwZXMtcXQvcXQtYXBwcy9xbW1wXzAuNS4yLmJiIGIvbWV0YS9yZWNpcGVzLXF0L3F0LWFwcHMv
cW1tcF8wLjUuMi5iYgppbmRleCBkZjE4ZjkxLi40ZDE4NWM5IDEwMDY0NAotLS0gYS9tZXRhL3Jl
Y2lwZXMtcXQvcXQtYXBwcy9xbW1wXzAuNS4yLmJiCisrKyBiL21ldGEvcmVjaXBlcy1xdC9xdC1h
cHBzL3FtbXBfMC41LjIuYmIKQEAgLTUsOSArNSw5IEBAIExJQ0VOU0VfRkxBR1MgPSAiY29tbWVy
Y2lhbCIKIExJQ19GSUxFU19DSEtTVU0gPSAiZmlsZTovL0NPUFlJTkc7bWQ1PTM5M2E1Y2E0NDVm
Njk2NTg3M2VjYTAyNTlhMTdmODMzIgogU0VDVElPTiA9ICJtdWx0aW1lZGlhIgogCi1QUiA9ICJy
MCIKK1BSID0gInIxIgogCi1ERVBFTkRTID0gInRhZ2xpYiBsaWJtYWQgbGlidm9yYmlzIGxpYm9n
ZyBhbHNhLWxpYiIKK0RFUEVORFMgPSAicXQ0LXgxMS1mcmVlIHRhZ2xpYiBsaWJtYWQgbGlidm9y
YmlzIGxpYm9nZyBhbHNhLWxpYiIKIAogU1JDX1VSSSA9ICJodHRwOi8vcW1tcC55bHNvZnR3YXJl
LmNvbS9maWxlcy8ke0JQTn0tJHtQVn0udGFyLmJ6MiIKIAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>