<div dir="ltr"><div>Hi, <br></div><div>after this patch I get this build error.</div><div>If I revert this all disappear.<br></div><div></div><div><br></div><div><br></div><div>system: docker image from crops (ubuntu 16.04)<br></div><div><br></div><div>Regards</div><div>Nicola Lunghi<br></div><div><br></div><div>=============================================<br></div><div><br></div><div>ERROR: os-release-1.0-r0 do_install: Function failed: do_install (log 
file is located at 
/workspace/vegas-demo/build-imx7/tmp/work/all-poky-linux/os-release/1.0-r0/temp/log.do_install.169)                    
  </div>
<div>ERROR: Logfile of failure stored in: 
/workspace/vegas-demo/build-imx7/tmp/work/all-poky-linux/os-release/1.0-r0/temp/log.do_install.169                                                                         
  <br>
Log data follows:<br>
| DEBUG: Executing python function extend_recipe_sysroot<br>
| NOTE: Direct dependencies are 
[&#39;virtual:native:/workspace/vegas-demo/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot&#39;,
 
&#39;/workspace/vegas-demo/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot&#39;]<br>
| NOTE: Installed into sysroot: []<br>
| NOTE: Skipping as already exists in sysroot: [&#39;pseudo-native&#39;, &#39;quilt-native&#39;]<br>
| DEBUG: Python function extend_recipe_sysroot finished<br>
| DEBUG: Executing shell function do_install<br>
| <span style="color:rgb(255,0,0)">mv: 
&#39;/workspace/vegas-demo/build-imx7/tmp/work/all-poky-linux/os-release/1.0-r0/image/etc/os-release&#39;
 and 
&#39;/workspace/vegas-demo/build-imx7/tmp/work/all-poky-linux/os-release/1.0-r0/image/usr/lib/os-release&#39;
 are the same file</span><br>
| WARNING: exit code 1 from a shell command.<br>
| ERROR: Function failed: do_install (log file is located at 
/workspace/vegas-demo/build-imx7/tmp/work/all-poky-linux/os-release/1.0-r0/temp/log.do_install.169)                                                
  <br>
ERROR: Task 
(/workspace/vegas-demo/poky/meta/recipes-core/os-release/os-release.bb:do_install)
 failed with exit code 
&#39;1&#39;                                                                                        
  <br>
NOTE: Tasks Summary: Attempted 3835 tasks of which 3834 didn&#39;t need to be rerun and 1 failed.<br>
NOTE: Writing buildhistory<br>
<br>
</div>
======================================================<br>
<p style="margin-top:0px;margin-bottom:0px"><br>
</p>

<div>commit c539765288bf3bc2c8578e037ce8fc9c2323b745<br>
Author: Joshua Lock &lt;<a href="mailto:joshua.g.lock@intel.com">joshua.g.lock@intel.com</a>&gt;<br>
Date:   Tue Sep 4 16:50:00 2018 +0100<br>
<br>
    os-release: fix to install in the expected location<br>
    <br>
    os-release (5) recommends that the os-release file be installed in<br>
    /usr/lib/os-release and that /etc/os-release be a relative symlink to it.<br>
    <br>
    (From OE-Core rev: 4feb8614ee25a3d3ceb7f5187120a1256a993155)<br>
    <br>
    Signed-off-by: Joshua Lock &lt;<a href="mailto:joshua.g.lock@intel.com">joshua.g.lock@intel.com</a>&gt;<br>
    Signed-off-by: Ross Burton &lt;<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>&gt;<br>
    Signed-off-by: Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>&gt;<br>
<br>
diff --git a/meta/recipes-core/os-release/<a href="http://os-release.bb">os-release.bb</a> b/meta/recipes-core/os-release/<a href="http://os-release.bb">os-release.bb</a><br>
index f988704756..bf4f815a10 100644<br>
--- a/meta/recipes-core/os-release/<a href="http://os-release.bb">os-release.bb</a><br>
+++ b/meta/recipes-core/os-release/<a href="http://os-release.bb">os-release.bb</a><br>
@@ -1,7 +1,7 @@<br>
 inherit allarch<br>
 <br>
 SUMMARY = &quot;Operating system identification&quot;<br>
-DESCRIPTION = &quot;The /etc/os-release file contains operating system identification data.&quot;<br>
+DESCRIPTION = &quot;The /usr/lib/os-release file contains operating system identification data.&quot;<br>
 LICENSE = &quot;MIT&quot;<br>
 INHIBIT_DEFAULT_DEPS = &quot;1&quot;<br>
 <br>
@@ -42,6 +42,9 @@ python do_compile () {<br>
 do_compile[vardeps] += &quot;${OS_RELEASE_FIELDS}&quot;<br>
 <br>
 do_install () {<br>
-    install -d ${D}${sysconfdir}<br>
-    install -m 0644 os-release ${D}${sysconfdir}/<br>
+    install -d ${D}${libdir} ${D}${sysconfdir}<br>
+    install -m 0644 os-release ${D}${libdir}/<br>
+    lnr ${D}${libdir}/os-release ${D}${sysconfdir}/os-release<br>
 }<br>
+<br>
+FILES_${PN} += &quot;${libdir}/os-release&quot;</div></div>