title: Yocto build fails due to conflict between recipes
body: <p>I have two recipes, the first, adduser, is based on the useradd example in the meta-skeleton layer, and creates the directory /home/foo/, for the user foo:</p>
  
  <pre><code>SUMMARY = "Example recipe for using inherit useradd"
  DESCRIPTION = "This recipe serves as an example for using features from useradd.bbclass"
  SECTION = "examples"
  PR = "r1"
  LICENSE = "MIT"
  
  S = "${WORKDIR}"
  
  inherit useradd
  
  # You must set USERADD_PACKAGES when you inherit useradd. This
  # lists which output packages will include the user/group
  # creation code.
  USERADD_PACKAGES = "${PN}"
  
  USERADD_PARAM_${PN} = "-d /home/foo -r -s /bin/bash -p 'bar' foo"
  
  do_install () {
          install -d -m 755 ${D}/usr/share/foo
          install -d -m 755 ${D}/home/foo
      chown -R foo ${D}/usr/share/foo
      chown -R foo ${D}/home/foo
  }
  
  FILES_${PN} = "/usr/share/foo /home/foo"
  
  # Prevents do_package failures with:
  # debugsources.list: No such file or directory:
  INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  </code></pre>
  
  <p>I then have a second recipe, which should add the directory "code" to the user's home directory, and put a file in it:</p>
  
  <pre><code>LICENSE = "CLOSED"
  
  DEPENDS = "adduser"
  
  FILES_${PN} += "/home/foo/code /home/foo/code/base_reading.py"
  
  SRC_URI = "file://base_reading.py \
  "
  
  S = "${WORKDIR}"
  
  do_install() {
      install -d ${D}/home/foo/code
      install -m 0755 ${S}/base_reading.py ${D}/home/foo/code/base_reading.py
      chown -R foo ${D}/home/foo/code
  }
  </code></pre>
  
  <p>This is the whole error: <a href="https://paste.ubuntu.com/p/6bfH4vf8qw" rel="nofollow noreferrer">https://paste.ubuntu.com/p/6bfH4vf8qw</a> but the TL;DR is: </p>
  
  <pre><code>Error: Transaction check error:
    file /home/foo conflicts between attempted installs of basecode-1.0-r0.cortexa7hf_neon_vfpv4 and adduser-1.0-r1.cortexa7hf_neon_vfpv4
  </code></pre>
  
  <p>At first, I tried to fix this by adding the <code>DEPENDS = "adduser"</code>, thinking that that would ensure that <code>/home/foo</code> exists before it tries to create <code>/home/foo/code</code>, but it didn't make any difference.</p>