<?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>14366</bug_id>
          
          <creation_ts>2021-04-27 16:05:02 +0000</creation_ts>
          <short_desc>populate_sdk_ext fails with pseudo path mismatch due to COPY_LIC_DIRS hard links</short_desc>
          <delta_ts>2021-08-04 21:56:15 +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>oe-core other</component>
          <version>3.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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>3.4 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tony Battersby">tonyb</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>yp.pseudo.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90137</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Battersby">tonyb</who>
    <bug_when>2021-04-27 16:05:02 +0000</bug_when>
    <thetext>Environment: Hardknott on Ubuntu 20.04

Steps to reproduce:

Add the &quot;lmsensors-sensors&quot; and &quot;shadow&quot; packages to your image.

Add the following to local.conf:
COPY_LIC_DIRS     = &quot;1&quot;
COPY_LIC_MANIFEST = &quot;1&quot;

Then &quot;bitbake -c populate_sdk_ext core-image-whatever&quot;.

Result:

Pseudo log:
Setup complete, sending SIGUSR1 to pid 535434.
path mismatch [10 links]: ino 17702263 db &apos;/home/tonyb/projects/yocto/poky/build-cyber-v/tmp/work/genericx86_64-poky-linux/core-image-cyberv/1.0-r0/rootfs/usr/share/common-licenses/lmsensors-config-libsensors/COPYING.MIT&apos; req &apos;/home/tonyb/projects/yocto/poky/meta/COPYING.MIT&apos;.

And the esdk build fails.

The following page talks about this problem being related to deleted files causing inode reuse:
https://wiki.yoctoproject.org/wiki/Pseudo_Abort

But in this case, the problem is triggered by the fact that the two COPYING.MIT file names are both hard links of the same file.  Neither has been deleted.  They both share the same inode 17702263.  In fact many of the files in rootfs/usr/share/common-licenses have multiple hard links.

Our local.conf has:
COPY_LIC_DIRS     = &quot;1&quot;
COPY_LIC_MANIFEST = &quot;1&quot;

The problem goes away when we comment out these two lines in our local.conf, which removes the rootfs/usr/share/common-licenses directory that is causing the conflict.

A different fix for the problem is to edit the following recipes used in our image:
meta-openembedded/meta-oe/recipes-bsp/lm_sensors/lmsensors-config_1.0.bb
meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb
meta/recipes-extended/shadow/shadow-securetty_4.6.bb

...and make a change such as:
-LIC_FILES_CHKSUM = &quot;file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420&quot;
+LIC_FILES_CHKSUM = &quot;file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302&quot;

Reproducibility: always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91112</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-08-04 21:56:15 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c568dd9799c9ee2efadffa05dbea93e9c2ed7051</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>