Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] apply-patches: run patch in batch mode
@ 2013-08-22  5:44 Arnout Vandecappelle
  2013-08-22  8:09 ` Luca Ceresoli
  2013-08-22 19:13 ` Ralph Siemsen
  0 siblings, 2 replies; 7+ messages in thread
From: Arnout Vandecappelle @ 2013-08-22  5:44 UTC (permalink / raw)
  To: buildroot

If the file to be patched is missing, then `patch' will interactively
ask for a file to be patched. This is annoying in e.g. the autobuilders
because they have to wait for a timeout instead of failing.

Giving the '-t' (dry-run) option to patch fixes this: it will skip the
missing file, and return a non-zero exit code. So the build cleanly
fails.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
I actually discovered this during my allyesconfig night build, where I
use make -k.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 support/scripts/apply-patches.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh
index 2995ea9..e9c6869 100755
--- a/support/scripts/apply-patches.sh
+++ b/support/scripts/apply-patches.sh
@@ -80,7 +80,7 @@ function apply_patch {
     echo ""
     echo "Applying $patch using ${type}: "
 	echo $patch >> ${builddir}/.applied_patches_list
-    ${uncomp} "${path}/$patch" | patch -g0 -p1 -E -d "${builddir}"
+    ${uncomp} "${path}/$patch" | patch -g0 -p1 -E -d "${builddir}" -t
     if [ $? != 0 ] ; then
         echo "Patch failed!  Please fix ${patch}!"
 	exit 1
-- 
1.8.4.rc3

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

end of thread, other threads:[~2013-08-27 20:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-22  5:44 [Buildroot] [PATCH] apply-patches: run patch in batch mode Arnout Vandecappelle
2013-08-22  8:09 ` Luca Ceresoli
2013-08-22 18:02   ` Arnout Vandecappelle
2013-08-27 20:30     ` Peter Korsgaard
2013-08-22 19:13 ` Ralph Siemsen
2013-08-22 19:38   ` Arnout Vandecappelle
2013-08-22 19:43     ` Ralph Siemsen

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