summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-08-13 08:38:44 +0200
committerLars Wendler <polynomial-c@gentoo.org>2018-08-13 08:42:35 +0200
commit0bd11f8244d3c83037a41b92b317483c336d5167 (patch)
treefe61d69b2d007108506474129e309bed710df1c0 /sys-block/di/files
parentsys-fs/cryptsetup: fix static pwquality build (diff)
downloadgentoo-0bd11f8244d3c83037a41b92b317483c336d5167.tar.gz
gentoo-0bd11f8244d3c83037a41b92b317483c336d5167.tar.bz2
gentoo-0bd11f8244d3c83037a41b92b317483c336d5167.zip
sys-block/di: Bump to version 4.47
Package-Manager: Portage-2.3.46, Repoman-2.3.10
Diffstat (limited to 'sys-block/di/files')
-rw-r--r--sys-block/di/files/di-4.47-no_echo-n.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-block/di/files/di-4.47-no_echo-n.patch b/sys-block/di/files/di-4.47-no_echo-n.patch
new file mode 100644
index 000000000000..ff6c2045f23f
--- /dev/null
+++ b/sys-block/di/files/di-4.47-no_echo-n.patch
@@ -0,0 +1,24 @@
+Neither "echo -n" nor "echo ... \c" is POSIX compliant.
+
+See "man 1p echo" section "APPLICATION USAGE" or
+https://www.in-ulm.de/%7Emascheck/various/echo+printf/
+
+--- di-4.47/mkconfig/bin/shellfuncs.sh
++++ di-4.47/mkconfig/bin/shellfuncs.sh
+@@ -45,15 +45,7 @@
+
+ test_echo () {
+ # It was suggested to use printf().
+- # printf does not quite work the same in the Tru64 shell.
+- # Of course no one uses that any more...
+- _tEN='-n'
+- _tEC=''
+- if [ "`echo -n test`" = "-n test" ]; then
+- _tEN=''
+- _tEC='\c'
+- fi
+- eval 'putsnonl () { echo ${_tEN} "$*"${_tEC}; }'
++ eval 'putsnonl () { printf '%s' "$*"; }'
+ eval 'puts () { echo "$*"; }'
+ }
+