Your message dated Wed, 02 May 2007 05:32:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#420832: fixed in console-setup 1.16
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: console-setup
Version: 1.15
Severity: wishlist
Tags: patch

I have found it useful to have a --save-only option to setupcon, which
acts like 'setupcon --save' except that it does *not* attempt to set the
keyboard or font immediately. This is useful so that you can run
'setupcon --save-only' while in X to get the keymap and font onto the
root filesystem, e.g. on upgrade, and avoid triggering problems caused
by some kernel console drivers (at least vgacon) being fundamentally
unable to change the font only on some virtual consoles and corrupting
video memory if you try.

The attached patch implements this option.

Thanks,

-- 
Colin Watson                                       [EMAIL PROTECTED]
--- console-setup.orig/setupcon	2006-09-28 08:00:10.000000000 +0100
+++ console-setup/setupcon	2007-01-15 17:27:38.000000000 +0000
@@ -48,6 +48,11 @@
 	--save)
 	    save=yes
 	    ;;
+	--save-only)
+	    force=yes
+	    save=yes
+	    save_only=yes
+	    ;;
 	-h|--help)
 	    cat >&2 <<EOF
 Usage: setupcon [OPTION] [VARIANT]
@@ -59,6 +64,7 @@
   -v, --verbose        explain what is being doing, try it if s.t. goes wrong
       --save           copy the font and the ACM in /etc/console-setup,
                          update /etc/console-setup/boottime.kmap.gz
+      --save-only      only save; don't setup keyboard/font immediately
   -h, --help           display this help and exit
 
 If VARIANT is not specified setupcon looks for the configuration files
@@ -140,10 +146,12 @@
     for console in $ACTIVE_CONSOLES; do
 	[ -w $console ] || continue
 	# Setup unicode/non-unicode mode
-	if [ "$CHARMAP" = UTF-8 ] || [ -z "$ACM$CHARMAP" ]; then
-	    /bin/echo -n -e '\033%G' >$console
-	else
-	    /bin/echo -n -e '\033%@' >$console
+	if [ "$save_only" != yes ]; then
+	    if [ "$CHARMAP" = UTF-8 ] || [ -z "$ACM$CHARMAP" ]; then
+		/bin/echo -n -e '\033%G' >$console
+	    else
+		/bin/echo -n -e '\033%@' >$console
+	    fi
 	fi
 
 	# Load the font
@@ -194,13 +202,15 @@
 		    ;;
 	    esac
 	fi
-	if which consolechars >/dev/null; then
-	    if [ "$bigfont" = yes ]; then
-		echo "setupcon: The console-chars utility from the console-setup font can load only fonts witn 8 pixel width matrix.  Please install the setfont utility from the kbd package." >&2
-	    fi
-	    eval consolechars -v --tty=$console -f "$FONT" $verbose
-	elif which setfont >/dev/null; then
-	    eval setfont -v -C $console "$FONT" $verbose
+	if [ "$save_only" != yes ]; then
+	    if which consolechars >/dev/null; then
+		if [ "$bigfont" = yes ]; then
+		    echo "setupcon: The console-chars utility from the console-setup font can load only fonts witn 8 pixel width matrix.  Please install the setfont utility from the kbd package." >&2
+		fi
+		eval consolechars -v --tty=$console -f "$FONT" $verbose
+	    elif which setfont >/dev/null; then
+		eval setfont -v -C $console "$FONT" $verbose
+	    fi
 	fi
 
 	# Load the ACM
@@ -226,7 +236,7 @@
 	else
 	    ACM="$CHARMAP.acm.gz"
 	fi
-	if [ "$CHARMAP" != UTF-8 ]; then
+	if [ "$save_only" != yes ] && [ "$CHARMAP" != UTF-8 ]; then
 	    if which consolechars >/dev/null; then
 		eval consolechars -v --tty=$console --acm "$ACM" $verbose
 	    elif which setfont >/dev/null; then
@@ -247,7 +257,8 @@
     # This code was borrowed from the keymap.sh script of console-common
     # Copyright © 2001 Yann Dirson
     # Copyright © 2001 Alcove http://www.alcove.fr/
-    if [ -x /sbin/sysctl ] && [ -r /etc/sysctl.conf ]; then
+    if [ "$save_only" != yes ] && \
+       [ -x /sbin/sysctl ] && [ -r /etc/sysctl.conf ]; then
 	if grep -v '^\#' /etc/sysctl.conf | grep -q keycodes ; then
 	    grep keycodes /etc/sysctl.conf | grep -v "^#" \
 		| while read d ; do
@@ -256,12 +267,14 @@
 	fi
     fi
     
-    if which kbd_mode >/dev/null; then
-	if [ "$CHARMAP" = UTF-8 ] || [ -z "$ACM" ]; then
-	    kbd_mode -u
-	else
-	    kbd_mode -a
-	fi	
+    if [ "$save_only" != yes ]; then
+	if which kbd_mode >/dev/null; then
+	    if [ "$CHARMAP" = UTF-8 ] || [ -z "$ACM" ]; then
+		kbd_mode -u
+	    else
+		kbd_mode -a
+	    fi
+	fi
     fi
     
     if which loadkeys >/dev/null; then
@@ -271,15 +284,18 @@
 	    else
 		acm_option=''
 	    fi
-	    ckbcomp $acm_option -model "$XKBMODEL" \
-		"$XKBLAYOUT" "$XKBVARIANT" "$XKBOPTIONS" \
-		| eval loadkeys $verbose
+	    if [ "$save_only" != yes ]; then
+		ckbcomp $acm_option -model "$XKBMODEL" \
+		    "$XKBLAYOUT" "$XKBVARIANT" "$XKBOPTIONS" \
+		    | eval loadkeys $verbose
+	    fi
 	    if which gzip >/dev/null && [ "$save" = yes ]; then
 		ckbcomp $acm_option -model "$XKBMODEL" \
 		    "$XKBLAYOUT" "$XKBVARIANT" "$XKBOPTIONS" \
 		    | gzip -9 >/etc/console-setup/boottime.kmap.gz
 	    fi
-	elif [ -f /etc/console-setup/boottime.kmap.gz ]; then
+	elif [ "$save_only" != yes ] && \
+	     [ -f /etc/console-setup/boottime.kmap.gz ]; then
 	    eval loadkeys /etc/console-setup/boottime.kmap.gz $verbose
 	fi
     fi

--- End Message ---
--- Begin Message ---
Source: console-setup
Source-Version: 1.16

We believe that the bug you reported is fixed in the latest version of
console-setup, which is due to be installed in the Debian FTP archive:

bdf2psf_1.16_all.deb
  to pool/main/c/console-setup/bdf2psf_1.16_all.deb
console-setup-mini_1.16_all.deb
  to pool/main/c/console-setup/console-setup-mini_1.16_all.deb
console-setup_1.16.dsc
  to pool/main/c/console-setup/console-setup_1.16.dsc
console-setup_1.16.tar.gz
  to pool/main/c/console-setup/console-setup_1.16.tar.gz
console-setup_1.16_all.deb
  to pool/main/c/console-setup/console-setup_1.16_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Anton Zinoviev <[EMAIL PROTECTED]> (supplier of updated console-setup package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue,  1 May 2007 23:48:12 +0300
Source: console-setup
Binary: console-setup bdf2psf console-setup-mini
Architecture: source all
Version: 1.16
Distribution: unstable
Urgency: low
Maintainer: Console utilities maintainers <[EMAIL PROTECTED]>
Changed-By: Anton Zinoviev <[EMAIL PROTECTED]>
Description: 
 bdf2psf    - Font converter to generate console fonts from BDF source fonts
 console-setup - Setup the font and the keyboard on the console
 console-setup-mini - An experimental micro version of console-setup package
Closes: 402143 405005 415518 420785 420787 420797 420802 420821 420824 420827 
420828 420831 420832 420912 420914 421260 421261 421263 421796
Changes: 
 console-setup (1.16) unstable; urgency=low
 .
   * Update ckbconf with the most recent list of xkeysyms.
   * Thanks to Colin Watson and Ubuntu team for the many bugs and
     improvements fixed in this release.  Patches were provided by Colin
     Watson:
     - Do not sorce the debconf library in the middle of the postinst,
       closes: #420831.
     - Remove from the source package several directories
       debian/UDEB-PACKAGE-NAME.  (The udebs were removed from
       debian/control before running the clean target.)  Closes: #420912.
     - Map fr_CH locale to Swiss French default keyboard
       layout in config.proto.  Closes: #420828.
     - Pass xkbdir variable on the make-command line, because else its
       value is overriden and the keymap definitions in Keyboard/ckb are
       used.  Closes: #420827.
     - A new option --save-only for setupcon.
     - Ship KeyboardNames.pl and kbdnames-maker.  Closes: #420914.
     - Fix Esperanto locale check in config.proto, closes: #420785.  Make
       'epo' the default layout for Esperanto.
     - The Bosnian layout is 'ba', not 'bs'.  Closes: #420787.
     - The layout variant is 'deva', not 'dev'.  Closes: #420797.
     - Do not leave empty default codeset for unsupported locales.
       Closes: #420802.
     - Use 'jp(latin)' instead of 'us' in the Latin mode of Japanese
       keyboards.  Override the keyboard model if it was chosen by default
       and the layout is Japanese or Brasilian.  Closes: #420824.
     - Add --save-only option to setupcon.  Closes: #420832.
     - Multiply the Installer-Menu-Item field of the udebs by 100.
       Closes: #421260.
     - By default do not use AltGr with basic US keyboard.  Closes: #421263.
     - Make sure amiga, ataritt, sun4 and sun5 are in KeyboardNames.pl even
       if they are not in the xml database.  Closes: #420821.
     - Talk about 'national' instead of 'non-Latin' mode in the templates.
       Treat the Lithuanian keyboard as a two-mode keyboard similarly to
       the Serbian keyboard.  Closes: #421261.
   * Do not ignore the Control+ and Alt+non_symbol_key combinations.
     Thanks to Karsten Hilbert, closes: #421796.
   * Two additions to the FAQ:
     - Add a suggestion for the VBERestore option.  Thanks to Dmitry
       Semyonov, closes: #402143.
     - Document CapsLock working as ShiftLock in Unicode mode.
   * Added manual page for setupcon.  Thanks to Vassilis Pandis,
     closes: #405005.
   * Added Dutch translation.  Thanks to Bart Cornelis, closes: #415518.
   * Updated Bulgarian translation.
Files: 
 11402422475ea4baf0851fecd25d9115 738 utils optional console-setup_1.16.dsc
 fc21aa3df996fa9639f6956a7365c066 2345426 utils optional 
console-setup_1.16.tar.gz
 1da78a2204e774ed8bd218231d446be2 442362 utils optional 
console-setup_1.16_all.deb
 681f8d3951a9dd12b36829dc4d17ea58 552180 utils extra 
console-setup-mini_1.16_all.deb
 c9045035de251b0fb2299047c5eb124f 33092 utils optional bdf2psf_1.16_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGOBysJP1eZJv0KwcRAs63AJ4sgnHC1UWgqsPqHBoCt7r0qm0aUgCfX9W5
YlzIRhqF37Mm5mDf314Efm8=
=ROHE
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to