[Pkg-sysvinit-devel] Bug#660335: missing bits of TERM=xterm transition

Robert Millan rmh at debian.org
Sat Feb 18 12:22:44 UTC 2012


Package: sysvinit
Version: 2.88dsf-13.1
Severity: wishlist
Tags: patch
User: debian-bsd at lists.debian.org
Usertags: kfreebsd

Please consider adding the following changes so that sysvinit can handle the
TERM=xterm transition all by itself without having to depend on versioned
kbdcontrol package.

This will allow eventual backporting of sysvinit to Squeeze without having to
drag everything else in GNU/kFreeBSD userland with it (freebsd-utils,
freebsd-libs, kfreebsd-kernel-headers, etc).

Thanks!

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sysvinit depends on:
ii  initscripts                 2.88dsf-13.1 scripts for initializing and shutt
ii  libc0.1                     2.11.3-2     Embedded GNU C Library: Shared lib
ii  sysv-rc                     2.88dsf-13.1 System-V-like runlevel change mech
ii  sysvinit-utils              2.88dsf-13.1 System-V-like utilities

sysvinit recommends no packages.

sysvinit suggests no packages.

-- no debconf information
-------------- next part --------------
=== modified file 'debian/control'
--- debian/control	2012-02-18 12:10:05 +0000
+++ debian/control	2012-02-18 12:17:09 +0000
@@ -25,8 +25,18 @@ Pre-Depends: initscripts (>= 2.88dsf-13.
 Depends: ${shlibs:Depends}, ${misc:Depends},
 # For ischroot
  debianutils (>= 4),
-# Required for TERM=xterm switch (see #605777)
- kbdcontrol (>= 8.2+ds2-6) [kfreebsd-any]
+Breaks:
+# Broken by TERM=xterm transition
+ kfreebsd-image-8.1-1-amd64 [kfreebsd-any],
+ kfreebsd-image-8.1-1-486 [kfreebsd-any],
+ kfreebsd-image-8.1-1-686 [kfreebsd-any],
+ kfreebsd-image-8.1-1-686-smp [kfreebsd-any],
+ kfreebsd-image-8.1-1-xen [kfreebsd-any],
+ kfreebsd-image-8.2-1-amd64 (<< 8.2-12) [kfreebsd-any],
+ kfreebsd-image-8.2-1-486 (<< 8.2-12) [kfreebsd-any],
+ kfreebsd-image-8.2-1-686 (<< 8.2-12) [kfreebsd-any],
+ kfreebsd-image-8.2-1-686-smp (<< 8.2-12) [kfreebsd-any],
+ kfreebsd-image-8.2-1-xen (<< 8.2-12) [kfreebsd-any],
 Description: System-V-like init utilities
  This package contains programs required for booting
  a Debian system and doing basic process management.

=== modified file 'debian/postinst'
--- debian/postinst	2012-02-18 12:10:05 +0000
+++ debian/postinst	2012-02-18 12:12:12 +0000
@@ -17,7 +17,8 @@ esac
 umask 022
 
 INITCTL=/run/initctl
-case "$(uname -s)" in
+UNAME=$(uname -s)
+case "$UNAME" in
   *FreeBSD)
 	OLDINITCTL=/etc/.initctl
 	;;
@@ -50,6 +51,13 @@ rm -f /etc/ioctl.save
 if [ ! -f /etc/inittab ]
 then
 	cp -p /usr/share/sysvinit/inittab /etc/inittab
+else
+	case "$UNAME" in
+		*FreeBSD)
+			# TEKEN_XTERM transition
+			sed -i /etc/inittab -e "s/cons25$/xterm/"
+		;;
+	esac
 fi
 
 # Tell init to re-exec itself.  We loop on failure because to reduce



More information about the Pkg-sysvinit-devel mailing list