Your message dated Sat, 17 Dec 2011 12:48:52 +0000
with message-id <[email protected]>
and subject line Bug#605679: fixed in xvt 2.1-20.1
has caused the Debian Bug report #605679,
regarding On GNU/kFreeBSD: no CTTY and incorrect baud rate
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
605679: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605679
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xvt
Version: 2.1-20
Severity: important
Tags: patch
Usertags: kfreebsd
X-Debbugs-CC: [email protected]

It is almost common knowledge that BSD systems need to use
ioctl with TIOCSCTTY to get a controlling TTY, and that they
need to use cfsetispeed(3) to set a required baud rate correctly.
GNU/kFreeBSD is no exception to this. However, the code
in "xvt-2.1/ttyinit.c" neglects to do so. Thus the terminal
emilator Xvt is broken in GNU/kFreeBSD.

Patch included, which is equally necessary on FreeBSD and OpenBSD!
The situation for GNU/Hurd is unknown to me.


Regards,

Mats Erik Andersson, DM



--- xvt-2.1.debian/ttyinit.c
+++ xvt-2.1/ttyinit.c
@@ -159,6 +159,9 @@
 #include <sys/ioctl.h>
 #define LIBC_OPENPTY
 #define SVR4_UTMP
+# if defined(__GLIBC__) && defined(__FreeBSD_kernel__)
+#  define SCTTY_IOCTL
+# endif
 #endif
 
 #ifdef UKC_LOCATIONS
@@ -507,11 +510,13 @@
        if (!is_eightbit())
                term.c_iflag |= ISTRIP;
        term.c_oflag = OPOST | ONLCR;
-       term.c_cflag = B9600 | CREAD;
+       term.c_cflag = CREAD;
        if (!is_eightbit())
                term.c_cflag |=  PARENB | CS7;
        else
                term.c_cflag |= CS8;
+       cfsetispeed(&term, B9600);
+       cfsetospeed(&term, B9600);
        term.c_lflag = ISIG | IEXTEN | ICANON | ECHO | ECHOE | ECHOK;
 #ifdef ECHOCTL
        term.c_lflag |= ECHOCTL;

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: xvt
Source-Version: 2.1-20.1

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

xvt_2.1-20.1.diff.gz
  to main/x/xvt/xvt_2.1-20.1.diff.gz
xvt_2.1-20.1.dsc
  to main/x/xvt/xvt_2.1-20.1.dsc
xvt_2.1-20.1_kfreebsd-amd64.deb
  to main/x/xvt/xvt_2.1-20.1_kfreebsd-amd64.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.
Mats Erik Andersson <[email protected]> (supplier of updated xvt 
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.8
Date: Wed, 07 Dec 2011 02:28:08 +0100
Source: xvt
Binary: xvt
Architecture: source kfreebsd-amd64
Version: 2.1-20.1
Distribution: unstable
Urgency: low
Maintainer: Sam Hocevar (Debian packages) <[email protected]>
Changed-By: Mats Erik Andersson <[email protected]>
Description: 
 xvt        - X terminal-emulator similar to xterm, but smaller
Closes: 605679 650396
Changes: 
 xvt (2.1-20.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Baudrate setting and controlling terminal in kfreebsd-*.
     + debian/patches/065_bsd_ctty_baudrate_605679.diff: New file.
     + Closes: #605679.
   * Incomplete UTMP and WTMP handling.
     + debian/patches/070_full_utmp_wtmp_650396.diff: New file.
     + Closes: #650396.
Checksums-Sha1: 
 13202688f50bd0d4798235f77615d88b2a80971c 1052 xvt_2.1-20.1.dsc
 864721fde639d3b1409e317350f0364ff3dc60a3 12353 xvt_2.1-20.1.diff.gz
 ef369455a26571c24d4074f3c81e5f8241dfd9f6 44256 xvt_2.1-20.1_kfreebsd-amd64.deb
Checksums-Sha256: 
 8de0e0048b59aed6f0304450d5bd1661146f29e0e7ca89f0eac66908c5c9c363 1052 
xvt_2.1-20.1.dsc
 cf16af762ad274a3bdcb13f5598f313d4e507bbec02528543581aea005b8a2e8 12353 
xvt_2.1-20.1.diff.gz
 af9f458c5308bc1ca7677f125f0b382ab61e45c540c78a005e536e2f11a693c9 44256 
xvt_2.1-20.1_kfreebsd-amd64.deb
Files: 
 3656ac6d3728c8484b718176661a0075 1052 x11 optional xvt_2.1-20.1.dsc
 e0d064100dcd9c2be52214ee20d41273 12353 x11 optional xvt_2.1-20.1.diff.gz
 4f23e1177dc8853c718e176598a2f1ec 44256 x11 optional 
xvt_2.1-20.1_kfreebsd-amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/kFreeBSD)

iEYEARECAAYFAk7fVlAACgkQC19io6rUCv+r8QCghEtbvRxT3nrCT1jXSAQVDcjn
HQYAnRL+SJ3RvZnWILatY46RVJgJNGzI
=j4nO
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to