diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2012-11-13 21:20:46 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2012-11-13 21:20:46 +0400 |
commit | d73deca60d52f13127f8d7f0145fc7bf01f63e85 (patch) | |
tree | b4a949a58ae7f425eb7d14e8a1f6695dc0de9284 /quilt/patches/patch-wrapper_do_depend_on_proc | |
parent | 135c50cb24211d6cf5873bdb3bb972aaad10f42b (diff) | |
download | cibs-pkgs-d73deca60d52f13127f8d7f0145fc7bf01f63e85.tar.gz |
Quilt with Debian patches
Diffstat (limited to 'quilt/patches/patch-wrapper_do_depend_on_proc')
-rw-r--r-- | quilt/patches/patch-wrapper_do_depend_on_proc | 21 |
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) |