Skip to contentSkip to conversation

diffutils: fix rebuilds

PATCH Applied Ross Burton 2 participants 2 messages Oct 25, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 diffutils: fix rebuilds

If diffutils rebuilds it tries to remove with "rm" files that don't exist anymore, resulting in an error.

Use rm -f so the removal always succeeds.

---
 meta/recipes-extended/diffutils/diffutils_3.2.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/diffutils/diffutils_3.2.bb +1 -1
index dc87190..400c8a6 100644
@@ -6,7 +6,7 @@ require diffutils.inc
 do_configure_prepend () {
 	# Need to remove gettext macros with weird mix of versions
 	for i in codeset.m4 gettext_gl.m4 intlmacosx.m4 inttypes-pri.m4 lib-ld_gl.m4 lib-prefix_gl.m4 po_gl.m4 ssize_t.m4 wchar_t.m4 wint_t.m4; do
-		rm ${S}/m4/$i
+		rm -f ${S}/m4/$i
 	done
 }
 
Signature · 1 line
1.7.10
Applied
#1 lore raw
Quoted 16 lines · Ross Burton

If diffutils rebuilds it tries to remove with "rm" files that don't exist anymore, resulting in an error.

Use rm -f so the removal always succeeds.

---
  meta/recipes-extended/diffutils/diffutils_3.2.bb |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/diffutils/diffutils_3.2.bb +0 -0
index dc87190..400c8a6 100644

meta/recipes-extended/diffutils/diffutils_3.2.bb require diffutils.inc · line 12

Quoted 8 lines
meta/recipes-extended/diffutils/diffutils_3.2.bb +1 -1
@@ -6,7 +6,7 @@ require diffutils.inc
  do_configure_prepend () {
  	# Need to remove gettext macros with weird mix of versions
  	for i in codeset.m4 gettext_gl.m4 intlmacosx.m4 inttypes-pri.m4 lib-ld_gl.m4 lib-prefix_gl.m4 po_gl.m4 ssize_t.m4 wchar_t.m4 wint_t.m4; do
-		rm ${S}/m4/$i
+		rm -f ${S}/m4/$i
  	done
  }
 

Merged into OE-Core

Thanks
Sau!