Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [RCF 1/2] support: enforce '--binary' when applying patches
@ 2016-09-29 14:57 James Knight
  2016-09-29 14:57 ` [Buildroot] [RCF 2/2] rapidxml: add patch to fix usage with gcc 4.7+ James Knight
  2016-09-29 16:11 ` [Buildroot] [RCF 1/2] support: enforce '--binary' when applying patches Ricardo Martincoski
  0 siblings, 2 replies; 4+ messages in thread
From: James Knight @ 2016-09-29 14:57 UTC (permalink / raw)
  To: buildroot

The following commit enforces the patch operation to "disable the
heuristic for transforming CRLF line endings into LF line endings" [1].
This is to help packages, which source files have been generated on non-
POSIX systems, to apply compatible non-POSIX generated patches. The
addition of this option should have no effect on existing patches [2].

[1]: http://git.savannah.gnu.org/cgit/patch.git/tree/patch.man#n306
[2]: https://www.gnu.org/software/diffutils/manual/html_node/Binary.html

Signed-off-by: James Knight <james.knight@rockwellcollins.com>
---
 support/scripts/apply-patches.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh
index 7ccb39d..a71a51a 100755
--- a/support/scripts/apply-patches.sh
+++ b/support/scripts/apply-patches.sh
@@ -114,7 +114,8 @@ function apply_patch {
         exit 1
     fi
     echo "${path}/${patch}" >> ${builddir}/.applied_patches_list
-    ${uncomp} "${path}/$patch" | patch -g0 -p1 -E -d "${builddir}" -t -N $silent
+    ${uncomp} "${path}/$patch" | \
+            patch --binary -g0 -p1 -E -d "${builddir}" -t -N $silent
     if [ $? != 0 ] ; then
         echo "Patch failed!  Please fix ${patch}!"
         exit 1
-- 
2.8.4.windows.1

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

end of thread, other threads:[~2016-09-29 17:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-29 14:57 [Buildroot] [RCF 1/2] support: enforce '--binary' when applying patches James Knight
2016-09-29 14:57 ` [Buildroot] [RCF 2/2] rapidxml: add patch to fix usage with gcc 4.7+ James Knight
2016-09-29 16:11 ` [Buildroot] [RCF 1/2] support: enforce '--binary' when applying patches Ricardo Martincoski
2016-09-29 17:22   ` James Knight

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