summaryrefslogtreecommitdiff
path: root/quilt/patches/patch-wrapper_do_depend_on_proc
diff options
context:
space:
mode:
Diffstat (limited to 'quilt/patches/patch-wrapper_do_depend_on_proc')
-rw-r--r--quilt/patches/patch-wrapper_do_depend_on_proc21
1 files changed, 21 insertions, 0 deletions
diff --git a/quilt/patches/patch-wrapper_do_depend_on_proc b/quilt/patches/patch-wrapper_do_depend_on_proc
new file mode 100644
index 0000000..9801889
--- /dev/null
+++ b/quilt/patches/patch-wrapper_do_depend_on_proc
@@ -0,0 +1,21 @@
+Let patch-wrapper die with an informative message when /proc is not mounted
+althrough it needs it to pass the patching request to GNU patch since it
+fails to understand all options.
+
+---
+ bin/patch-wrapper.in | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/bin/patch-wrapper.in
++++ b/bin/patch-wrapper.in
+@@ -171,6 +171,10 @@ then
+ if [ -n "$opt_input" ]
+ then
+ patch=$opt_input
++ elif [ ! -e /proc/self ]
++ then
++ echo "patch-wrapper: /proc not mounted!" >&2
++ exit 1
+ elif [ -e /proc/self/fd/0 ]
+ then
+ patch=$(readlink /proc/self/fd/0)