Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed
@ 2018-09-18 10:36 Belal, Awais
  2018-09-18 11:02 ` ✗ patchtest: failure for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Belal, Awais @ 2018-09-18 10:36 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 1560 bytes --]

In case the baselib is lib64 we would want to delete /usr/lib
after removing the /usr/lib/locale dir and the implementation
wanted to do that earlier as well but the fault was checking
an already removed dir (/usr/lib/locale) before trying to
remove /usr/lib as that check would always fail.
Now we simply try to delete /usr/lib after deleting
/usr/lib/locale to make sure it deletes cleanly and is empty
at the time of deletion.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
---
 meta/recipes-core/glibc/glibc-package.inc | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
index 9ea41b7..22a59d2 100644
--- a/meta/recipes-core/glibc/glibc-package.inc
+++ b/meta/recipes-core/glibc/glibc-package.inc
@@ -207,11 +207,10 @@ do_poststash_install_cleanup () {
     rm -rf ${D}/${localedir}
     rm -rf ${D}${datadir}/locale
     if [ "${libdir}" != "${exec_prefix}/lib" ]; then
-        if [ -d ${D}${exec_prefix}/lib/locale ] ; then
-            rm -rf ${D}${exec_prefix}/lib/locale
-            # error out if directory isn't empty
-            rm -f ${D}${exec_prefix}/lib
-        fi
+        # error out if directory isn't empty
+        # this dir should only contain locale dir
+        # which has been deleted in the previous step
+        rmdir ${D}${exec_prefix}/lib
     fi
 }
 addtask do_poststash_install_cleanup after do_stash_locale do_install before do_populate_sysroot do_package
--
2.7.4


[-- Attachment #2: Type: text/html, Size: 2904 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* ✗ patchtest: failure for glibc-package.inc: correct intention for deleting /usr/lib as needed
  2018-09-18 10:36 [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed Belal, Awais
@ 2018-09-18 11:02 ` Patchwork
  2018-09-20  8:00 ` [PATCH] " Belal, Awais
  2018-09-20 11:10 ` Burton, Ross
  2 siblings, 0 replies; 9+ messages in thread
From: Patchwork @ 2018-09-18 11:02 UTC (permalink / raw)
  To: Belal, Awais; +Cc: openembedded-core

== Series Details ==

Series: glibc-package.inc: correct intention for deleting /usr/lib as needed
Revision: 1
URL   : https://patchwork.openembedded.org/series/14118/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue             Series does not apply on top of target branch [test_series_merge_on_head] 
  Suggested fix    Rebase your series on top of targeted branch
  Targeted branch  master (currently at 6a1e550838)



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed
  2018-09-18 10:36 [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed Belal, Awais
  2018-09-18 11:02 ` ✗ patchtest: failure for " Patchwork
@ 2018-09-20  8:00 ` Belal, Awais
  2018-09-20 11:10 ` Burton, Ross
  2 siblings, 0 replies; 9+ messages in thread
From: Belal, Awais @ 2018-09-20  8:00 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 1940 bytes --]

ping!


BR,
Awais
________________________________
From: openembedded-core-bounces@lists.openembedded.org <openembedded-core-bounces@lists.openembedded.org> on behalf of Belal, Awais
Sent: Tuesday, September 18, 2018 3:36 PM
To: openembedded-core@lists.openembedded.org
Subject: [OE-core] [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed


In case the baselib is lib64 we would want to delete /usr/lib
after removing the /usr/lib/locale dir and the implementation
wanted to do that earlier as well but the fault was checking
an already removed dir (/usr/lib/locale) before trying to
remove /usr/lib as that check would always fail.
Now we simply try to delete /usr/lib after deleting
/usr/lib/locale to make sure it deletes cleanly and is empty
at the time of deletion.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
---
 meta/recipes-core/glibc/glibc-package.inc | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
index 9ea41b7..22a59d2 100644
--- a/meta/recipes-core/glibc/glibc-package.inc
+++ b/meta/recipes-core/glibc/glibc-package.inc
@@ -207,11 +207,10 @@ do_poststash_install_cleanup () {
     rm -rf ${D}/${localedir}
     rm -rf ${D}${datadir}/locale
     if [ "${libdir}" != "${exec_prefix}/lib" ]; then
-        if [ -d ${D}${exec_prefix}/lib/locale ] ; then
-            rm -rf ${D}${exec_prefix}/lib/locale
-            # error out if directory isn't empty
-            rm -f ${D}${exec_prefix}/lib
-        fi
+        # error out if directory isn't empty
+        # this dir should only contain locale dir
+        # which has been deleted in the previous step
+        rmdir ${D}${exec_prefix}/lib
     fi
 }
 addtask do_poststash_install_cleanup after do_stash_locale do_install before do_populate_sysroot do_package
--
2.7.4


[-- Attachment #2: Type: text/html, Size: 4021 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed
  2018-09-18 10:36 [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed Belal, Awais
  2018-09-18 11:02 ` ✗ patchtest: failure for " Patchwork
  2018-09-20  8:00 ` [PATCH] " Belal, Awais
@ 2018-09-20 11:10 ` Burton, Ross
  2018-09-20 14:04   ` Belal, Awais
  2 siblings, 1 reply; 9+ messages in thread
From: Burton, Ross @ 2018-09-20 11:10 UTC (permalink / raw)
  To: Belal, Awais; +Cc: OE-core

Can you resend using git-send-email, as this patch is encoded in HTML.

Ross
On Tue, 18 Sep 2018 at 11:53, Belal, Awais <Awais_Belal@mentor.com> wrote:
>
> In case the baselib is lib64 we would want to delete /usr/lib
> after removing the /usr/lib/locale dir and the implementation
> wanted to do that earlier as well but the fault was checking
> an already removed dir (/usr/lib/locale) before trying to
> remove /usr/lib as that check would always fail.
> Now we simply try to delete /usr/lib after deleting
> /usr/lib/locale to make sure it deletes cleanly and is empty
> at the time of deletion.
>
> Signed-off-by: Awais Belal <awais_belal@mentor.com>
> ---
>  meta/recipes-core/glibc/glibc-package.inc | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
> index 9ea41b7..22a59d2 100644
> --- a/meta/recipes-core/glibc/glibc-package.inc
> +++ b/meta/recipes-core/glibc/glibc-package.inc
> @@ -207,11 +207,10 @@ do_poststash_install_cleanup () {
>      rm -rf ${D}/${localedir}
>      rm -rf ${D}${datadir}/locale
>      if [ "${libdir}" != "${exec_prefix}/lib" ]; then
> -        if [ -d ${D}${exec_prefix}/lib/locale ] ; then
> -            rm -rf ${D}${exec_prefix}/lib/locale
> -            # error out if directory isn't empty
> -            rm -f ${D}${exec_prefix}/lib
> -        fi
> +        # error out if directory isn't empty
> +        # this dir should only contain locale dir
> +        # which has been deleted in the previous step
> +        rmdir ${D}${exec_prefix}/lib
>      fi
>  }
>  addtask do_poststash_install_cleanup after do_stash_locale do_install before do_populate_sysroot do_package
> --
> 2.7.4
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed
  2018-09-20 11:10 ` Burton, Ross
@ 2018-09-20 14:04   ` Belal, Awais
  2018-09-20 14:46     ` Burton, Ross
  0 siblings, 1 reply; 9+ messages in thread
From: Belal, Awais @ 2018-09-20 14:04 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

Hi Ross,

>> Can you resend using git-send-email, as this patch is encoded in HTML.
My SMTP server is acting up these days, should I simply resend the patch here as an attachment?

BR,
Awais

________________________________________
From: Burton, Ross [ross.burton@intel.com]
Sent: Thursday, September 20, 2018 4:10 PM
To: Belal, Awais
Cc: OE-core
Subject: Re: [OE-core] [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed

Can you resend using git-send-email, as this patch is encoded in HTML.

Ross
On Tue, 18 Sep 2018 at 11:53, Belal, Awais <Awais_Belal@mentor.com> wrote:
>
> In case the baselib is lib64 we would want to delete /usr/lib
> after removing the /usr/lib/locale dir and the implementation
> wanted to do that earlier as well but the fault was checking
> an already removed dir (/usr/lib/locale) before trying to
> remove /usr/lib as that check would always fail.
> Now we simply try to delete /usr/lib after deleting
> /usr/lib/locale to make sure it deletes cleanly and is empty
> at the time of deletion.
>
> Signed-off-by: Awais Belal <awais_belal@mentor.com>
> ---
>  meta/recipes-core/glibc/glibc-package.inc | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
> index 9ea41b7..22a59d2 100644
> --- a/meta/recipes-core/glibc/glibc-package.inc
> +++ b/meta/recipes-core/glibc/glibc-package.inc
> @@ -207,11 +207,10 @@ do_poststash_install_cleanup () {
>      rm -rf ${D}/${localedir}
>      rm -rf ${D}${datadir}/locale
>      if [ "${libdir}" != "${exec_prefix}/lib" ]; then
> -        if [ -d ${D}${exec_prefix}/lib/locale ] ; then
> -            rm -rf ${D}${exec_prefix}/lib/locale
> -            # error out if directory isn't empty
> -            rm -f ${D}${exec_prefix}/lib
> -        fi
> +        # error out if directory isn't empty
> +        # this dir should only contain locale dir
> +        # which has been deleted in the previous step
> +        rmdir ${D}${exec_prefix}/lib
>      fi
>  }
>  addtask do_poststash_install_cleanup after do_stash_locale do_install before do_populate_sysroot do_package
> --
> 2.7.4
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed
  2018-09-20 14:04   ` Belal, Awais
@ 2018-09-20 14:46     ` Burton, Ross
  2018-09-21 13:31       ` Belal, Awais
  0 siblings, 1 reply; 9+ messages in thread
From: Burton, Ross @ 2018-09-20 14:46 UTC (permalink / raw)
  To: Belal, Awais; +Cc: OE-core

That's better than HTML!
On Thu, 20 Sep 2018 at 15:04, Belal, Awais <Awais_Belal@mentor.com> wrote:
>
> Hi Ross,
>
> >> Can you resend using git-send-email, as this patch is encoded in HTML.
> My SMTP server is acting up these days, should I simply resend the patch here as an attachment?
>
> BR,
> Awais
>
> ________________________________________
> From: Burton, Ross [ross.burton@intel.com]
> Sent: Thursday, September 20, 2018 4:10 PM
> To: Belal, Awais
> Cc: OE-core
> Subject: Re: [OE-core] [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed
>
> Can you resend using git-send-email, as this patch is encoded in HTML.
>
> Ross
> On Tue, 18 Sep 2018 at 11:53, Belal, Awais <Awais_Belal@mentor.com> wrote:
> >
> > In case the baselib is lib64 we would want to delete /usr/lib
> > after removing the /usr/lib/locale dir and the implementation
> > wanted to do that earlier as well but the fault was checking
> > an already removed dir (/usr/lib/locale) before trying to
> > remove /usr/lib as that check would always fail.
> > Now we simply try to delete /usr/lib after deleting
> > /usr/lib/locale to make sure it deletes cleanly and is empty
> > at the time of deletion.
> >
> > Signed-off-by: Awais Belal <awais_belal@mentor.com>
> > ---
> >  meta/recipes-core/glibc/glibc-package.inc | 9 ++++-----
> >  1 file changed, 4 insertions(+), 5 deletions(-)
> >
> > diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
> > index 9ea41b7..22a59d2 100644
> > --- a/meta/recipes-core/glibc/glibc-package.inc
> > +++ b/meta/recipes-core/glibc/glibc-package.inc
> > @@ -207,11 +207,10 @@ do_poststash_install_cleanup () {
> >      rm -rf ${D}/${localedir}
> >      rm -rf ${D}${datadir}/locale
> >      if [ "${libdir}" != "${exec_prefix}/lib" ]; then
> > -        if [ -d ${D}${exec_prefix}/lib/locale ] ; then
> > -            rm -rf ${D}${exec_prefix}/lib/locale
> > -            # error out if directory isn't empty
> > -            rm -f ${D}${exec_prefix}/lib
> > -        fi
> > +        # error out if directory isn't empty
> > +        # this dir should only contain locale dir
> > +        # which has been deleted in the previous step
> > +        rmdir ${D}${exec_prefix}/lib
> >      fi
> >  }
> >  addtask do_poststash_install_cleanup after do_stash_locale do_install before do_populate_sysroot do_package
> > --
> > 2.7.4
> >
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed
  2018-09-20 14:46     ` Burton, Ross
@ 2018-09-21 13:31       ` Belal, Awais
  2018-09-27  9:03         ` Belal, Awais
  0 siblings, 1 reply; 9+ messages in thread
From: Belal, Awais @ 2018-09-21 13:31 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 3006 bytes --]

>> That's better than HTML!
Attached.

BR,
Awais

________________________________________
From: Burton, Ross <ross.burton@intel.com>
Sent: Thursday, September 20, 2018 7:46 PM
To: Belal, Awais
Cc: OE-core
Subject: Re: [OE-core] [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed

That's better than HTML!
On Thu, 20 Sep 2018 at 15:04, Belal, Awais <Awais_Belal@mentor.com> wrote:
>
> Hi Ross,
>
> >> Can you resend using git-send-email, as this patch is encoded in HTML.
> My SMTP server is acting up these days, should I simply resend the patch here as an attachment?
>
> BR,
> Awais
>
> ________________________________________
> From: Burton, Ross [ross.burton@intel.com]
> Sent: Thursday, September 20, 2018 4:10 PM
> To: Belal, Awais
> Cc: OE-core
> Subject: Re: [OE-core] [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed
>
> Can you resend using git-send-email, as this patch is encoded in HTML.
>
> Ross
> On Tue, 18 Sep 2018 at 11:53, Belal, Awais <Awais_Belal@mentor.com> wrote:
> >
> > In case the baselib is lib64 we would want to delete /usr/lib
> > after removing the /usr/lib/locale dir and the implementation
> > wanted to do that earlier as well but the fault was checking
> > an already removed dir (/usr/lib/locale) before trying to
> > remove /usr/lib as that check would always fail.
> > Now we simply try to delete /usr/lib after deleting
> > /usr/lib/locale to make sure it deletes cleanly and is empty
> > at the time of deletion.
> >
> > Signed-off-by: Awais Belal <awais_belal@mentor.com>
> > ---
> >  meta/recipes-core/glibc/glibc-package.inc | 9 ++++-----
> >  1 file changed, 4 insertions(+), 5 deletions(-)
> >
> > diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
> > index 9ea41b7..22a59d2 100644
> > --- a/meta/recipes-core/glibc/glibc-package.inc
> > +++ b/meta/recipes-core/glibc/glibc-package.inc
> > @@ -207,11 +207,10 @@ do_poststash_install_cleanup () {
> >      rm -rf ${D}/${localedir}
> >      rm -rf ${D}${datadir}/locale
> >      if [ "${libdir}" != "${exec_prefix}/lib" ]; then
> > -        if [ -d ${D}${exec_prefix}/lib/locale ] ; then
> > -            rm -rf ${D}${exec_prefix}/lib/locale
> > -            # error out if directory isn't empty
> > -            rm -f ${D}${exec_prefix}/lib
> > -        fi
> > +        # error out if directory isn't empty
> > +        # this dir should only contain locale dir
> > +        # which has been deleted in the previous step
> > +        rmdir ${D}${exec_prefix}/lib
> >      fi
> >  }
> >  addtask do_poststash_install_cleanup after do_stash_locale do_install before do_populate_sysroot do_package
> > --
> > 2.7.4
> >
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-glibc-package.inc-correct-intention-for-deleting-usr.patch --]
[-- Type: text/x-patch; name="0001-glibc-package.inc-correct-intention-for-deleting-usr.patch", Size: 1689 bytes --]

From 5bc4f7f07903baf8b9bd150ccd66107941747312 Mon Sep 17 00:00:00 2001
From: Awais Belal <awais_belal@mentor.com>
Date: Tue, 18 Sep 2018 13:50:59 +0500
Subject: [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as
 needed

In case the baselib is lib64 we would want to delete /usr/lib
after removing the /usr/lib/locale dir and the implementation
wanted to do that earlier as well but the fault was checking
an already removed dir (/usr/lib/locale) before trying to
remove /usr/lib as that check would always fail.
Now we simply try to delete /usr/lib after deleting
/usr/lib/locale to make sure it deletes cleanly and is empty
at the time of deletion.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
---
 meta/recipes-core/glibc/glibc-package.inc | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
index 9ea41b7..22a59d2 100644
--- a/meta/recipes-core/glibc/glibc-package.inc
+++ b/meta/recipes-core/glibc/glibc-package.inc
@@ -207,11 +207,10 @@ do_poststash_install_cleanup () {
 	rm -rf ${D}/${localedir}
 	rm -rf ${D}${datadir}/locale
 	if [ "${libdir}" != "${exec_prefix}/lib" ]; then
-		if [ -d ${D}${exec_prefix}/lib/locale ] ; then
-			rm -rf ${D}${exec_prefix}/lib/locale
-			# error out if directory isn't empty
-			rm -f ${D}${exec_prefix}/lib
-		fi
+		# error out if directory isn't empty
+		# this dir should only contain locale dir
+		# which has been deleted in the previous step
+		rmdir ${D}${exec_prefix}/lib
 	fi
 }
 addtask do_poststash_install_cleanup after do_stash_locale do_install before do_populate_sysroot do_package
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed
  2018-09-21 13:31       ` Belal, Awais
@ 2018-09-27  9:03         ` Belal, Awais
  2018-09-27 11:23           ` Richard Purdie
  0 siblings, 1 reply; 9+ messages in thread
From: Belal, Awais @ 2018-09-27  9:03 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

Hi Ross,

When do you think this would go in?

BR,
Awais

________________________________________
From: openembedded-core-bounces@lists.openembedded.org <openembedded-core-bounces@lists.openembedded.org> on behalf of Belal, Awais
Sent: Friday, September 21, 2018 6:31 PM
To: Burton, Ross
Cc: OE-core
Subject: Re: [OE-core] [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed

>> That's better than HTML!
Attached.

BR,
Awais

________________________________________
From: Burton, Ross <ross.burton@intel.com>
Sent: Thursday, September 20, 2018 7:46 PM
To: Belal, Awais
Cc: OE-core
Subject: Re: [OE-core] [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed

That's better than HTML!
On Thu, 20 Sep 2018 at 15:04, Belal, Awais <Awais_Belal@mentor.com> wrote:
>
> Hi Ross,
>
> >> Can you resend using git-send-email, as this patch is encoded in HTML.
> My SMTP server is acting up these days, should I simply resend the patch here as an attachment?
>
> BR,
> Awais
>
> ________________________________________
> From: Burton, Ross [ross.burton@intel.com]
> Sent: Thursday, September 20, 2018 4:10 PM
> To: Belal, Awais
> Cc: OE-core
> Subject: Re: [OE-core] [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed
>
> Can you resend using git-send-email, as this patch is encoded in HTML.
>
> Ross
> On Tue, 18 Sep 2018 at 11:53, Belal, Awais <Awais_Belal@mentor.com> wrote:
> >
> > In case the baselib is lib64 we would want to delete /usr/lib
> > after removing the /usr/lib/locale dir and the implementation
> > wanted to do that earlier as well but the fault was checking
> > an already removed dir (/usr/lib/locale) before trying to
> > remove /usr/lib as that check would always fail.
> > Now we simply try to delete /usr/lib after deleting
> > /usr/lib/locale to make sure it deletes cleanly and is empty
> > at the time of deletion.
> >
> > Signed-off-by: Awais Belal <awais_belal@mentor.com>
> > ---
> >  meta/recipes-core/glibc/glibc-package.inc | 9 ++++-----
> >  1 file changed, 4 insertions(+), 5 deletions(-)
> >
> > diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
> > index 9ea41b7..22a59d2 100644
> > --- a/meta/recipes-core/glibc/glibc-package.inc
> > +++ b/meta/recipes-core/glibc/glibc-package.inc
> > @@ -207,11 +207,10 @@ do_poststash_install_cleanup () {
> >      rm -rf ${D}/${localedir}
> >      rm -rf ${D}${datadir}/locale
> >      if [ "${libdir}" != "${exec_prefix}/lib" ]; then
> > -        if [ -d ${D}${exec_prefix}/lib/locale ] ; then
> > -            rm -rf ${D}${exec_prefix}/lib/locale
> > -            # error out if directory isn't empty
> > -            rm -f ${D}${exec_prefix}/lib
> > -        fi
> > +        # error out if directory isn't empty
> > +        # this dir should only contain locale dir
> > +        # which has been deleted in the previous step
> > +        rmdir ${D}${exec_prefix}/lib
> >      fi
> >  }
> >  addtask do_poststash_install_cleanup after do_stash_locale do_install before do_populate_sysroot do_package
> > --
> > 2.7.4
> >
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed
  2018-09-27  9:03         ` Belal, Awais
@ 2018-09-27 11:23           ` Richard Purdie
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Purdie @ 2018-09-27 11:23 UTC (permalink / raw)
  To: Belal, Awais, Burton, Ross; +Cc: OE-core

On Thu, 2018-09-27 at 09:03 +0000, Belal, Awais wrote:
> When do you think this would go in?

Its not going in, it doesn't build and broke things.

I thought someone had reported back but that hasn't happened, sorry.
Getting SWAT on the autobuilder to happen reliably is proving tricky
right now :(.

An example failure:

https://autobuilder.yoctoproject.org/typhoon/#/builders/2/builds/62/steps/7/logs/step1b

I think we aborted that build run after the errors:
https://autobuilder.yoctoproject.org/typhoon/#/builders/6/builds/71
so most say cancelled but I think other errors were piling up.

Cheers,

Richard





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-09-27 11:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-18 10:36 [PATCH] glibc-package.inc: correct intention for deleting /usr/lib as needed Belal, Awais
2018-09-18 11:02 ` ✗ patchtest: failure for " Patchwork
2018-09-20  8:00 ` [PATCH] " Belal, Awais
2018-09-20 11:10 ` Burton, Ross
2018-09-20 14:04   ` Belal, Awais
2018-09-20 14:46     ` Burton, Ross
2018-09-21 13:31       ` Belal, Awais
2018-09-27  9:03         ` Belal, Awais
2018-09-27 11:23           ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox