[pkg-wine-party] Send error messages to STDERR
While wine is used in a script the homebrewed wrapper scripts you added for
Debian is producing noise which is disturbing a script e.g. shell script.
So please send (error/debug) messages to the error channel STDERR.
See patch for
1.) /usr/bin/wine-development
2.) /usr/lib/wine-development/wineserver
--
Best regards,
Joerg Schiermeier
wine@Debian64
--- ./wine-development-ORIG 2016-02-07 20:42:00.000000000 +0100
+++ ./wine-development 2016-02-11 21:22:22.100549183 +0100
@@ -15,12 +15,12 @@
fi
if [ "$(dpkg --print-architecture)" = "amd64" -a "$(dpkg --print-foreign-architectures | grep -cx "i386")" -ne 1 ] ||
[ "$WINEARCH" = "win32" ]; then
- echo "it looks like multiarch needs to be enabled. as root, please"
- echo "execute \"dpkg --add-architecture i386 && apt-get update &&"
- echo "apt-get install $(echo $script | sed s/wine/wine32/)\""
+ echo "it looks like multiarch needs to be enabled. as root, please" >&2
+ echo "execute \"dpkg --add-architecture i386 && apt-get update &&" >&2
+ echo "apt-get install $(echo $script | sed s/wine/wine32/)\"" >&2
fi
else
- echo "error: unable to find wine executable. this shouldn't happen."
+ echo "error: unable to find wine executable. this shouldn't happen." >&2
exit 1
fi
--- ./wineserver-ORIG 2016-02-07 19:03:00.000000000 +0100
+++ ./wineserver 2016-02-11 21:12:39.948119432 +0100
@@ -11,7 +11,7 @@
elif test -x "$wineserver32"; then
wineserver=$wineserver32
else
- echo "error: unable to find wineserver executable. this shouldn't happen."
+ echo "error: unable to find wineserver executable. this shouldn't happen." >&2
exit 1
fi
@@ -19,8 +19,8 @@
arch=$(dpkg --print-architecture)
version=$($wineserver --version 2>&1 | cut -d- -f2)
-echo "Executing $script ($(basename $wineserver)) $version on Debian $dist ($arch)."
-echo "If something goes wrong, please rerun with \"WINEDEBUG=err+all $script\""
-echo "for more detailed debugging output."
+echo "Executing $script ($(basename $wineserver)) $version on Debian $dist ($arch)." >&2
+echo "If something goes wrong, please rerun with \"WINEDEBUG=err+all $script\"" >&2
+echo "for more detailed debugging output." >&2
exec $wineserver -p0 "$@"
Reply to: