<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
        {margin-top:0;
        margin-bottom:0}--></style>
</head>
<body dir="ltr" style="font-size:10pt;color:#000000;background-color:#FFFFFF;font-family:Tahoma,Geneva,sans-serif;">
<p>ping!<br>
</p>
<p><br>
</p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px"><font face="Tahoma"></font>
<div style="font-size:13px">
<div><font size="2" face="Tahoma"><span lang="en-US">
<div style="margin:0">BR,</div>
<div style="margin:0"><i>Awais</i></div>
</span></font></div>
</div>
<font face="Tahoma"></font></div>
</div>
<div dir="ltr" style="font-size:10pt; color:#000000; background-color:#FFFFFF; font-family:Tahoma,Geneva,sans-serif">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> openembedded-core-bounces@lists.openembedded.org <openembedded-core-bounces@lists.openembedded.org> on behalf of Belal, Awais<br>
<b>Sent:</b> Tuesday, September 18, 2018 3:36 PM<br>
<b>To:</b> openembedded-core@lists.openembedded.org<br>
<b>Subject:</b> [OE-core] [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed</font>
<div> </div>
</div>
<div>
<p>In case the baselib is lib64 we would want to delete /usr/lib<br>
after removing the /usr/lib/locale dir and the implementation<br>
wanted to do that earlier as well but the fault was checking<br>
an already removed dir (/usr/lib/locale) before trying to<br>
remove /usr/lib as that check would always fail.<br>
Now we simply try to delete /usr/lib after deleting<br>
/usr/lib/locale to make sure it deletes cleanly and is empty<br>
at the time of deletion.<br>
<br>
Signed-off-by: Awais Belal <awais_belal@mentor.com><br>
---<br>
meta/recipes-core/glibc/glibc-package.inc | 9 ++++-----<br>
1 file changed, 4 insertions(+), 5 deletions(-)<br>
<br>
diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc<br>
index 9ea41b7..22a59d2 100644<br>
--- a/meta/recipes-core/glibc/glibc-package.inc<br>
+++ b/meta/recipes-core/glibc/glibc-package.inc<br>
@@ -207,11 +207,10 @@ do_poststash_install_cleanup () {<br>
rm -rf ${D}/${localedir}<br>
rm -rf ${D}${datadir}/locale<br>
if [ "${libdir}" != "${exec_prefix}/lib" ]; then<br>
- if [ -d ${D}${exec_prefix}/lib/locale ] ; then<br>
- rm -rf ${D}${exec_prefix}/lib/locale<br>
- # error out if directory isn't empty<br>
- rm -f ${D}${exec_prefix}/lib<br>
- fi<br>
+ # error out if directory isn't empty<br>
+ # this dir should only contain locale dir<br>
+ # which has been deleted in the previous step<br>
+ rmdir ${D}${exec_prefix}/lib<br>
fi<br>
}<br>
addtask do_poststash_install_cleanup after do_stash_locale do_install before do_populate_sysroot do_package<br>
-- <br>
2.7.4<font size="2" face="Tahoma"><span lang="en-US"></span></font></p>
<font size="2" face="Tahoma">
<div style="margin:0"><i><br>
</i></div>
</font>
<p></p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-size:13px">
<div><font size="2" face="Tahoma"><span lang="en-US"></span></font></div>
</div>
<font face="Tahoma"></font></div>
</div>
</div>
</div>
</body>
</html>