title: Yocto: remove packageconfig item
body: <p>In a recipe (<code>meta-qt5/recipes-qt/qt5/qttools_git.bb</code>) I found:</p>
  
  <pre><code>PACKAGECONFIG ??= ""
  PACKAGECONFIG[qtwebkit] = ",,qtwebkit"
  </code></pre>
  
  <p>now, under my own <code>meta-custom-layer</code> I'm going to create the same path and add a <code>.bbappend</code> file: <code>meta-custom-layer/meta-qt5/recipes-qt/qt5/qttools_git.bbappend</code>.</p>
  
  <p>I want to remove the second line, because I'm not interested in <code>qtwebkit</code>.
  It would be enough to put:</p>
  
  <pre><code>PACKAGECONFIG[qtwebkit] = ""
  </code></pre>
  
  <p>or I need something else? 
  Because there is the <code>??=</code> operator, I guess the <code>PACKAGECONFIG</code> variable is updated with <code>qtwebkit</code> elsewhere. I need to find and remove also that assignement? Is there a quick way to find out where is appended?</p>
  
  <h2>UPDATE</h2>
  
  <p>To find where the <code>qtwebkit</code> is configured I tried to use grep:</p>
  
  <pre><code>$ grep -nrw . -e qtwebkit
  ./layers/meta-st/meta-st-openstlinux/recipes-samples/packagegroups/packagegroup-framework-sample-qt-extra.bb:30:    qtwebkit                    \
  ./layers/meta-st/meta-st-openstlinux/recipes-samples/packagegroups/packagegroup-framework-sample-qt-extra.bb:53:    qtwebkit-examples           \
  Binary file ./layers/meta-qt5/.git/index matches
  ./layers/meta-qt5/README.md:8:When building stuff like `qtdeclarative`, `qtquick`, `qtwebkit`, make
  ./layers/meta-qt5/recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb:12:    ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'qtwebkit-dev', '', d)} \
  ./layers/meta-qt5/recipes-qt/qt5/qttools/0001-add-noqtwebkit-configuration.patch:25:     BROWSER = qtwebkit
  ./layers/meta-qt5/recipes-qt/qt5/qttools/0001-add-noqtwebkit-configuration.patch:32:-equals(BROWSER, "qtwebkit") {
  ./layers/meta-qt5/recipes-qt/qt5/qttools/0001-add-noqtwebkit-configuration.patch:33:+equals(BROWSER, "qtwebkit"):!contains(CONFIG, noqtwebkit) {
  ./layers/meta-qt5/recipes-qt/qt5/qttools_git.bb:28:PACKAGECONFIG[qtwebkit] = ",,qtwebkit"
  ./layers/meta-qt5/recipes-qt/qt5/qttools_git.bb:32:    ${@bb.utils.contains('PACKAGECONFIG', 'qtwebkit', '', 'CONFIG+=noqtwebkit', d)} \
  ./layers/meta-qt5/recipes-qt/qt5/qt5-creator_git.bb:17:DEPENDS = "qtbase qtscript qtwebkit qtxmlpatterns qtx11extras qtdeclarative qttools qttools-native qtsvg chrpath-replacement-native"
  ./layers/meta-qt5/recipes-qt/qt5/qtbase_git.bb:76:# This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency
  ./layers/meta-qt5/recipes-qt/qt5/qtwebkit-examples_git.bb:18:DEPENDS += "qtwebkit qtxmlpatterns"
  ./layers/meta-qt5/recipes-qt/qt5/qtwebkit-examples_git.bb:19:RDEPENDS_${PN}-examples += "qtwebkit-qmlplugins"
  ./layers/meta-qt5/recipes-qt/qt5/qtwebkit_git.bb:12:# Patches from https://github.com/meta-qt5/qtwebkit/commits/b5.11
  ./layers/meta-qt5/lib/recipetool/create_qt5.py:101:              'webkit': 'qtwebkit',
  ./layers/meta-qt5/lib/recipetool/create_qt5.py:102:              'webkitwidgets': 'qtwebkit',
  </code></pre>
  
  <p>So I think the line to remove is the one I described above.
  <code>bitbake -e &lt;image&gt;</code> leads to an output so long that overflows the console buffer... I tried to grep the output looking for <code>qtwebkit</code> but nothing is returned.</p>
  
  <p>The same applies for <code>grep -nrw . -e DISTRO_FEATURES | grep qtwebkit</code>.</p>