quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] [PATCH 2/4] quilt: unset POSIXLY_CORRECT to ensure that patc


From: Raphaël Hertzog
Subject: [Quilt-dev] [PATCH 2/4] quilt: unset POSIXLY_CORRECT to ensure that patch works non-interactively
Date: Fri, 24 Feb 2012 00:27:37 +0100

POSIXLY_CORRECT=1 breaks quilt because quilt relies on patch working
non-interactively which is not the case in POSIX mode.

Bug-Debian: http://bugs.debian.org/462578
Reported-by: Brian M. Carlson <address@hidden>
Signed-off-by: Raphaël Hertzog <address@hidden>
---
 Makefile.in  |    1 +
 bin/quilt.in |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 6912bca..f06c0ee 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -398,6 +398,7 @@ test/.%.ok : test/%.test
 endif
        @LANG=C; LC_ALL=C;                                              \
        export LANG LC_ALL;                                             \
+       unset POSIXLY_CORRECT;                                          \
        $(CHECK_ENV);                                                   \
        cd $(@D);                                                       \
        ./run -q $(<F)
diff --git a/bin/quilt.in b/bin/quilt.in
index 30df4dc..c7fcf8e 100644
--- a/bin/quilt.in
+++ b/bin/quilt.in
@@ -6,6 +6,10 @@
 #
 #  See the COPYING and AUTHORS files for more details.
 
+# unset posix strict conformance variable since patch cannot be run
+# non-interactively when it's set.
+unset POSIXLY_CORRECT
+
 export TEXTDOMAIN=quilt
 export address@hidden@
 
-- 
1.7.9.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]