<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
['virtual:native:/workspace/vegas-demo/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot',
'/workspace/vegas-demo/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot']<br>
| NOTE: Installed into sysroot: []<br>
| NOTE: Skipping as already exists in sysroot: ['pseudo-native', 'quilt-native']<br>
| DEBUG: Python function extend_recipe_sysroot finished<br>
| DEBUG: Executing shell function do_install<br>
| <span style="color:rgb(255,0,0)">mv:
'/workspace/vegas-demo/build-imx7/tmp/work/all-poky-linux/os-release/1.0-r0/image/etc/os-release'
and
'/workspace/vegas-demo/build-imx7/tmp/work/all-poky-linux/os-release/1.0-r0/image/usr/lib/os-release'
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
'1'
<br>
NOTE: Tasks Summary: Attempted 3835 tasks of which 3834 didn'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 <<a href="mailto:joshua.g.lock@intel.com">joshua.g.lock@intel.com</a>><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 <<a href="mailto:joshua.g.lock@intel.com">joshua.g.lock@intel.com</a>><br>
Signed-off-by: Ross Burton <<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>><br>
Signed-off-by: Richard Purdie <<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>><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 = "Operating system identification"<br>
-DESCRIPTION = "The /etc/os-release file contains operating system identification data."<br>
+DESCRIPTION = "The /usr/lib/os-release file contains operating system identification data."<br>
LICENSE = "MIT"<br>
INHIBIT_DEFAULT_DEPS = "1"<br>
<br>
@@ -42,6 +42,9 @@ python do_compile () {<br>
do_compile[vardeps] += "${OS_RELEASE_FIELDS}"<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} += "${libdir}/os-release"</div></div>