From unknown Sat Aug 16 16:16:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8455: Bug#610576: Re: Build of emacs_23.2+1-7 Resent-From: Rob Browning Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Apr 2011 04:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8455 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8455@debbugs.gnu.org Cc: 610576-forwarded@bugs.debian.org, debian-hurd@lists.debian.org, 610576@bugs.debian.org, Svante Signell X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.130232233721326 (code B ref -1); Sat, 09 Apr 2011 04:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Apr 2011 04:12:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8PWy-0005Xv-Nc for submit@debbugs.gnu.org; Sat, 09 Apr 2011 00:12:17 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8PWw-0005Xj-QW for submit@debbugs.gnu.org; Sat, 09 Apr 2011 00:12:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8PWq-0008Tq-1M for submit@debbugs.gnu.org; Sat, 09 Apr 2011 00:12:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:50244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8PWp-0008Tk-U7 for submit@debbugs.gnu.org; Sat, 09 Apr 2011 00:12:07 -0400 Received: from [140.186.70.92] (port=40326 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8PWn-0005pr-NY for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2011 00:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8PSt-0007JO-1e for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2011 00:08:04 -0400 Received: from defaultvalue.org ([70.85.129.156]:40816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8PSs-0007JK-UZ for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2011 00:08:02 -0400 Received: from omen.defaultvalue.org (localhost [127.0.0.1]) by defaultvalue.org (Postfix) with ESMTP id 8843890D35; Fri, 8 Apr 2011 23:09:19 -0500 (CDT) Received: from raven.defaultvalue.org (raven.defaultvalue.org [192.168.1.7]) by omen.defaultvalue.org (Postfix) with ESMTP id 3956450069; Fri, 8 Apr 2011 23:08:00 -0500 (CDT) Received: by raven.defaultvalue.org (Postfix, from userid 1000) id 185D27BB01F; Fri, 8 Apr 2011 23:08:00 -0500 (CDT) From: Rob Browning References: <20110118213912.GC5801@const.famille.thibault.fr> <1295442609.2580.360.camel@s1499.it.kth.se> <20110120011724.GF6722@const.famille.thibault.fr> Date: Fri, 08 Apr 2011 23:07:59 -0500 In-Reply-To: <20110120011724.GF6722@const.famille.thibault.fr> (Samuel Thibault's message of "Thu, 20 Jan 2011 02:17:24 +0100") Message-ID: <87k4f42hk0.fsf@raven.defaultvalue.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable (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 writes: > Svante Signell, le Wed 19 Jan 2011 14:10:09 +0100, a =C3=A9crit : >> 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) >>=20 >> user@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 =3D 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 =3D emacs_open (name, O_RDWR | O_NOCTTY, 0); > #endif /* O_IGNORE_CTTY */ > > tty->name =3D xstrdup (name); > > When O_IGNORE_CTTY is defined (which is the case only on GNU/Hurd...), > the else branch is actually tty->name =3D xstrdup(name); ... The obvious > fix is attached. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=tmp.diff Content-Description: fix-gnu-hurd-o-ignore-ctty.diff --- 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); --=-=-= 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 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 09 13:19:00 2011 Received: (at control) by debbugs.gnu.org; 9 Apr 2011 17:19:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8boK-0007AQ-Dp for submit@debbugs.gnu.org; Sat, 09 Apr 2011 13:19:00 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8bo2-0007A0-FI for control@debbugs.gnu.org; Sat, 09 Apr 2011 13:18:59 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Q8bnw-0007Et-Oz for control@debbugs.gnu.org; Sat, 09 Apr 2011 13:18:36 -0400 Date: Sat, 09 Apr 2011 13:18:36 -0400 Message-Id: Subject: control message for bug 8455 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) forcemerge 8450 8455