GNU bug report logs - #8455
Bug#610576: Re: Build of emacs_23.2+1-7

Previous Next

Package: emacs;

Reported by: Rob Browning <rlb <at> defaultvalue.org>

Date: Sat, 9 Apr 2011 04:13:01 UTC

Severity: normal

Merged with 8450

Found in version 23.2.1

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8455 in the body.
You can then email your comments to 8455 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8455; Package emacs. (Sat, 09 Apr 2011 04:13:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Rob Browning <rlb <at> defaultvalue.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 09 Apr 2011 04:13:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Rob Browning <rlb <at> defaultvalue.org>
To: bug-gnu-emacs <at> gnu.org
Cc: 610576-forwarded <at> bugs.debian.org, debian-hurd <at> lists.debian.org,
	610576 <at> bugs.debian.org, Svante Signell <srs <at> kth.se>
Subject: Re: Bug#610576: Re: Build of emacs_23.2+1-7
Date: Fri, 08 Apr 2011 23:07:59 -0500
[Message part 1 (text/plain, inline)]
(If possible, please preserve the 610576-forwarded address in any replies.)

It looks like there may be a problem with src/term.c on GNU/Hurd
systems.

Samuel Thibault <sthibault <at> debian.org> writes:

> Svante Signell, le Wed 19 Jan 2011 14:10:09 +0100, a écrit :
>> After installing emacs23 when trying to start it I get the following
>> error: (Googling did not give any useful.)
>> (Trying both xterm from a ssh login and hurd-console)
>> 
>> user <at> kvm-hurd:~ emacs -nw
>> emacs: Not a tty device: /dev/tty
>
> There's bogus code there indeed:
>
> #ifdef O_IGNORE_CTTY
>     if (!ctty)
>       /* Open the terminal device.  Don't recognize it as our
>          controlling terminal, and don't make it the controlling tty
>          if we don't have one at the moment.  */
>       fd = emacs_open (name, O_RDWR | O_IGNORE_CTTY | O_NOCTTY, 0);
>     else
> #else
>       /* Alas, O_IGNORE_CTTY is a GNU extension that seems to be only
>          defined on Hurd.  On other systems, we need to explicitly
>          dissociate ourselves from the controlling tty when we want to
>          open a frame on the same terminal.  */
>       fd = emacs_open (name, O_RDWR | O_NOCTTY, 0);
> #endif /* O_IGNORE_CTTY */
>
>     tty->name = xstrdup (name);
>
> When O_IGNORE_CTTY is defined (which is the case only on GNU/Hurd...),
> the else branch is actually tty->name = xstrdup(name); ... The obvious
> fix is attached.

[tmp.diff (text/x-diff, inline)]
--- src/term.c.orig	2011-01-20 02:14:50.000000000 +0100
+++ src/term.c	2011-01-20 02:15:43.000000000 +0100
@@ -3428,13 +3428,12 @@ init_tty (char *name, char *terminal_typ
          if we don't have one at the moment.  */
       fd = emacs_open (name, O_RDWR | O_IGNORE_CTTY | O_NOCTTY, 0);
     else
-#else
+#endif /* O_IGNORE_CTTY */
       /* Alas, O_IGNORE_CTTY is a GNU extension that seems to be only
          defined on Hurd.  On other systems, we need to explicitly
          dissociate ourselves from the controlling tty when we want to
          open a frame on the same terminal.  */
       fd = emacs_open (name, O_RDWR | O_NOCTTY, 0);
-#endif /* O_IGNORE_CTTY */
 
     tty->name = xstrdup (name);
     terminal->name = xstrdup (name);
[Message part 3 (text/plain, inline)]
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610576 for
additional information.

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

Forcibly Merged 8450 8455. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 09 Apr 2011 17:19:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 08 May 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 52 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.