title: Bitbake depends AAA packet, it will rdepends AAA-dev
body: <p>I add depends packet to a exist <code>.bb</code> file, such as add <code>DPENDS="AAA"</code> line to <code>.bb</code> file, when I compile the <code>.bb</code> file, it failed for <code>XXX rdepends on AAA-dev [dev-deps]</code>, and I search google, all the answer almost is add line <code>INSANE_SKIP_${PN} += "dev-deps"</code> or <code>RDEPENDS_${PN}_remove = "AAA-dev"</code> to <code>.bb</code> file.</p>
  
  <p>But my question is why? why one packet depend AAA packet, it should also <code>RDPENDS</code> AAA-dev, is there any other answer to fix this problem  </p>
  
  <p>The <code>bb</code> source file is:</p>
  
  <pre><code>inherit autotools qcommon
  DESCRIPTION = "Daemon to handle AT commands"
  DEPENDS = "glib-2.0 qmi qmi-framework qmi-client-helper ocean-link"
  
  SRC_DIR = "${WORKSPACE}/atfwd-daemon/"
  S = "${WORKDIR}/atfwd-daemon/"
  
  PR = "r3"
  EXTRA_OECONF += "--with-glib --with-common-includes=${STAGING_INCDIR}"
  
  do_configure_append() {
      echo "/*This is compiled to generate, only look don't try*/" &gt; ${S}atfwd_config.h
      echo "#ifndef _ATFWD_CONFIG_H_" &gt;&gt; ${S}atfwd_config.h
      echo "#define _ATFWD_CONFIG_H_" &gt;&gt; ${S}atfwd_config.h
  
  #//&lt;!-- ODM feature caogang@2015-07-13
      if [ "${PRJ_NAU8810}" = "NAU8810_CODEC" ]; then
          echo "#define NAU8810_CODEC" &gt;&gt; ${S}atfwd_config.h
      fi
  
      if [ "${FEATURE_ACDB_ENABLE}" = "true" ]; then
          echo "#define FEATURE_ACDB_ENABLE 1" &gt;&gt; ${S}atfwd_config.h
      fi
  
      if [ "${PRJ_XXX}" != "" ]; then
          echo "#define  ${PRJ_XXX}" &gt;&gt; ${S}atfwd_config.h
      fi
  #//end--&gt;
  </code></pre>
  
  <p>I add a <code>DEPENDS</code> on onenet pkg</p>
  
  <pre><code>inherit autotools qcommon
  DESCRIPTION = "Daemon to handle AT commands"
  DEPENDS = "glib-2.0 qmi qmi-framework qmi-client-helper ocean-link onenet"
  
  SRC_DIR = "${WORKSPACE}/atfwd-daemon/"
  S = "${WORKDIR}/atfwd-daemon/"
  
  PR = "r3"
  EXTRA_OECONF += "--with-glib --with-common-includes=${STAGING_INCDIR}"
  
  do_configure_append() {
      echo "/*This is compiled to generate, only look don't try*/" &gt; ${S}atfwd_config.h
      echo "#ifndef _ATFWD_CONFIG_H_" &gt;&gt; ${S}atfwd_config.h
      echo "#define _ATFWD_CONFIG_H_" &gt;&gt; ${S}atfwd_config.h
  
  #//&lt;!-- ODM feature caogang@2015-07-13
      if [ "${PRJ_NAU8810}" = "NAU8810_CODEC" ]; then
          echo "#define NAU8810_CODEC" &gt;&gt; ${S}atfwd_config.h
      fi
  
      if [ "${FEATURE_ACDB_ENABLE}" = "true" ]; then
          echo "#define FEATURE_ACDB_ENABLE 1" &gt;&gt; ${S}atfwd_config.h
      fi
  
      if [ "${PRJ_XXX}" != "" ]; then
          echo "#define  ${PRJ_XXX}" &gt;&gt; ${S}atfwd_config.h
      fi
  #//end--&gt;
  </code></pre>
  
  <p>The <code>onenet.bb</code> is:</p>
  
  <pre><code>inherit pkgconfig cmake
  DESCRIPTION = "onenet sdk"
  LICENSE = "PD"
  PR = "r0"
  LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=bae84cdd023be37582157d865da54cc6"
  SRCREV = "065d98dd8de91544315d6167ce73626ce739666d"
  SRC_URI = "git://github.com/cm-heclouds/MQTT.git;protocol=https"
  S = "${WORKDIR}/git/mqtt_sdk"
  
  do_install() {
      install -d ${D}/usr/lib
      install -d ${D}/usr/include/onenet
  
      install -m 0644 ${B}/bin/libmqtt.so -D ${D}/usr/lib/
  
      for inc in $(find ${S} -name *.h ! -name 'cJSON.h'); do
          install -m 0644 ${inc} -D ${D}/usr/include/onenet
      done
  }s
  </code></pre>