All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rm_work: Stop appending _setscene to do_image_complete_setscene stamps
@ 2018-05-04 18:21 Mike Crowe
  2018-05-09 11:02 ` [PATCHv2] " Mike Crowe
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Crowe @ 2018-05-04 18:21 UTC (permalink / raw)
  To: openembedded-core; +Cc: Mike Crowe

Each time I build my image after the first, I end up with a
do_image_complete_setscene stamp file with an extra _setscene appended to
the name. Eventually, the filenames end up being so long that mv complains
and the build fails.

It looks like this behaviour was introduced when the special handling was
added for do_image_complete in 2ff9d40dc88d43567472218cf3d3faf414398c71.

So, let's ensure that the *_setscene* pattern is matched before anything
else so that the do_image_complete_setscene stamp file is merely ignored
and only the do_image_complete non-setscene stamp file is moved once.

It's not straightforward to just move *do_image_complete* after the
*_setscene* pattern because do_image_complete stamps would then match
do_image*.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
---
 meta/classes/rm_work.bbclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass
index 31d99e4554..318d121d2b 100644
--- a/meta/classes/rm_work.bbclass
+++ b/meta/classes/rm_work.bbclass
@@ -53,6 +53,10 @@ do_rm_work () {
             *do_setscene*)
                 break
                 ;;
+            *_setscene*)
+                i=dummy
+                break
+                ;;
             *sigdata*|*sigbasedata*)
                 i=dummy
                 break
@@ -89,10 +93,6 @@ do_rm_work () {
                 i=dummy
                 break
                 ;;
-            *_setscene*)
-                i=dummy
-                break
-                ;;
             *$j|*$j.*)
                 mv $i `echo $i | sed -e "s#${j}#${j}_setscene#"`
                 i=dummy
-- 
2.11.0




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

* [PATCHv2] rm_work: Stop appending _setscene to do_image_complete_setscene stamps
  2018-05-04 18:21 [PATCH] rm_work: Stop appending _setscene to do_image_complete_setscene stamps Mike Crowe
@ 2018-05-09 11:02 ` Mike Crowe
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Crowe @ 2018-05-09 11:02 UTC (permalink / raw)
  To: openembedded-core; +Cc: Mike Crowe

Each time I build my image after the first, I end up with a
do_image_complete_setscene stamp file with an extra _setscene appended to
the name. Eventually, the filenames end up being so long that mv complains
and the build fails.

It looks like this behaviour was introduced when the special handling was
added for do_image_complete in 2ff9d40dc88d43567472218cf3d3faf414398c71.

So, let's ensure that the *_setscene* pattern is matched before anything
else so that any do_image_complete_setscene stamp file is always ignored
and the do_image_complete non-setscene stamp file is moved only once.

It's not straightforward to just move *do_image_complete* after the
*_setscene* pattern because do_image_complete stamps would then match
do_image*.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
---
 meta/classes/rm_work.bbclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(diff unchanged, commit message updated so that paragraph three
actually makes sense.)

diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass
index 31d99e4554..318d121d2b 100644
--- a/meta/classes/rm_work.bbclass
+++ b/meta/classes/rm_work.bbclass
@@ -53,6 +53,10 @@ do_rm_work () {
             *do_setscene*)
                 break
                 ;;
+            *_setscene*)
+                i=dummy
+                break
+                ;;
             *sigdata*|*sigbasedata*)
                 i=dummy
                 break
@@ -89,10 +93,6 @@ do_rm_work () {
                 i=dummy
                 break
                 ;;
-            *_setscene*)
-                i=dummy
-                break
-                ;;
             *$j|*$j.*)
                 mv $i `echo $i | sed -e "s#${j}#${j}_setscene#"`
                 i=dummy
-- 
2.11.0




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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-04 18:21 [PATCH] rm_work: Stop appending _setscene to do_image_complete_setscene stamps Mike Crowe
2018-05-09 11:02 ` [PATCHv2] " Mike Crowe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.