[Pkg-octave-devel] Bug#681065: octave: Please use --no-window-system in postinst

Santiago Vila sanvila at unex.es
Tue Jul 10 11:35:22 UTC 2012


Package: octave
Version: 3.6.2-2
Severity: minor

When octave is installed I see this:

Configurando octave (3.6.2-2) ...
warning: X11 DISPLAY environment variable not set


As "apt-get upgrade" is supposed to work on a terminal, this warning
about DISPLAY variable not set is a little bit misleading and it would
be much better to avoid it if possible.

The following patch seems to disable the warning:

diff -ru octave-3.6.2.original/debian/octave.postinst octave-3.6.2/debian/octave.postinst
--- octave-3.6.2.original/debian/octave.postinst	2012-06-05 21:02:56.000000000 +0200
+++ octave-3.6.2/debian/octave.postinst	2012-07-10 13:33:02.924950342 +0200
@@ -7,7 +7,7 @@
 #DEBHELPER#
 
 rebuild_pkg_database () {
-    octave --silent --no-history --no-init-file	\
+    octave --silent --no-history --no-init-file --no-window-system \
 	   --eval "pkg ('rebuild');"
 }
 

Thanks.





More information about the Pkg-octave-devel mailing list