Debian Bug report logs - #78948
lynx: [patch] doesn't work w/o a terminal in -dump mode

version graph

Package: lynx; Maintainer for lynx is Debian Lynx Packaging Team <pkg-lynx-maint@lists.alioth.debian.org>; Source for lynx is src:lynx (PTS, buildd, popcon).

Reported by: joey@kitenet.net (Joey Hess)

Date: Wed, 6 Dec 2000 21:03:33 UTC

Severity: important

Tags: fixed

Merged with 64632, 65007, 68786, 75728

Found in versions 2.8.3-1, 2.8.1-3

Done: Adrian Bunk <bunk@fs.tum.de>

Bug is archived. No further changes may be made.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Christian Hudon <chrish@debian.org>:
Bug#78948; Package lynx. (full text, mbox, link).


Acknowledgement sent to Joey Hess <joey@valinux.com>:
New Bug report received and forwarded. Copy sent to Christian Hudon <chrish@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Joey Hess <joey@valinux.com>
To: submit@bugs.debian.org
Subject: lynx: [patch] doesn't work w/o a terminal in -dump mode
Date: Wed, 06 Dec 2000 13:02:17 -0800
Package: lynx
Version: 2.8.3-1
Severity: normal

Lynx should be usable in -dump mode w/o a controlling terminal, and even if
TERM is not set properly. It is currently not. This means that for example,
debhelper which uses it to convert some html changelogs, makes packages
that will not build properly in an autobuilder, which lacks a controlling
terminal. Here is another symptom of the same problem:

joey@gumdrop:/tmp/lynx-2.8.3>TERM= ./lynx -dump http://slashdot.org/
Unknown terminal: 
Check the TERM environment variable.
Also make sure that the terminal is defined in the terminfo database.
Alternatively, set the TERMCAP environment variable to the desired
termcap entry.

Here is a patch:

diff -ur old/lynx-2.8.3/src/LYMain.c lynx-2.8.3/src/LYMain.c
--- old/lynx-2.8.3/src/LYMain.c	Sun Apr 23 18:44:03 2000
+++ lynx-2.8.3/src/LYMain.c	Wed Dec  6 13:00:03 2000
@@ -1444,11 +1444,6 @@
     }
     fclose(fp);
 
-#if defined(USE_KEYMAPS) && defined(USE_SLANG)
-    if (-1 == lynx_initialize_keymaps ())
-	exit (-1);
-#endif
-
     /*
      * Make sure we have the character sets declared.
      *	This will initialize the CHARTRANS handling. - KW
@@ -1585,6 +1580,13 @@
     for (i = 1; i < argc; i++) {
 	parse_arg(&argv[i], &i);
     }
+
+#if defined(USE_KEYMAPS) && defined(USE_SLANG)
+    if (! dump_output_immediately) {
+            if (-1 == lynx_initialize_keymaps ())
+                exit (-1);
+    }
+#endif
 
     /*
      *  Process any stdin-derived arguments for a lone "-"  which we've

BTW, lynx does not build with -g, and should.

-- System Information
Debian Release: woody
Kernel Version: Linux gumdrop 2.2.14-va.4.4-i686-smp #1 SMP Tue Sep 5 14:22:08 PDT 2000 i686 unknown

Versions of the packages lynx depends on:
ii  debconf        0.5.32         Debian configuration management system
ii  libc6          2.2-4          GNU C Library: Shared libraries and Timezone
ii  slang1         1.4.1-1        The S-Lang programming library - runtime ver
ii  zlib1g         1.1.3-11       compression library - runtime
	^^^ (Provides virtual package libz1)



Merged 64632 65007 68786 75728 78948. Request was from "H. Nanosecond" <aldomel@ix.netcom.com> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `important'. Request was from Herbert Xu <herbert@gondor.apana.org.au> to control@bugs.debian.org. (full text, mbox, link).


Bug closed, send any further explanations to Hamish Moffatt <hamish@rising.com.au> Request was from joey@kitenet.net (Joey Hess) to control@bugs.debian.org. (full text, mbox, link).


Bug reopened, originator set to joey@kitenet.net (Joey Hess). Request was from joey@kitenet.net (Joey Hess) to control@bugs.debian.org. (full text, mbox, link).


Bug closed, send any further explanations to joey@kitenet.net (Joey Hess) Request was from joey@kitenet.net (Joey Hess) to control@bugs.debian.org. (full text, mbox, link).


Bug reopened, originator set to joey@kitenet.net (Joey Hess). Request was from joey@kitenet.net (Joey Hess) to control@bugs.debian.org. (full text, mbox, link).


Bug closed, send any further explanations to joey@kitenet.net (Joey Hess) Request was from joey@kitenet.net (Joey Hess) to control@bugs.debian.org. (full text, mbox, link).


Bug reopened, originator set to joey@kitenet.net (Joey Hess). Request was from joey@kitenet.net (Joey Hess) to control@bugs.debian.org. (full text, mbox, link).


Tags added: fixed Request was from mdanish@andrew.cmu.edu to control@bugs.debian.org. (full text, mbox, link).


Tags added: fixed Request was from Matthew Danish <mdanish@andrew.cmu.edu> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Adrian Bunk <bunk@fs.tum.de>:
You have taken responsibility. (full text, mbox, link).


Notification sent to joey@kitenet.net (Joey Hess):
Bug acknowledged by developer. (full text, mbox, link).


Message #30 received at 64632-done@bugs.debian.org (full text, mbox, reply):

From: Adrian Bunk <bunk@fs.tum.de>
To: 33563-done@bugs.debian.org, <39514-done@bugs.debian.org>, <45520-done@bugs.debian.org>, <63391-done@bugs.debian.org>, <94918-done@bugs.debian.org>, <64632-done@bugs.debian.org>, <80125-done@bugs.debian.org>, <95763-done@bugs.debian.org>, <19843-done@bugs.debian.org>, <22884-done@bugs.debian.org>, <33853-done@bugs.debian.org>, <54237-done@bugs.debian.org>, <54588-done@bugs.debian.org>, <63999-done@bugs.debian.org>, <74551-done@bugs.debian.org>, <83482-done@bugs.debian.org>, <83767-done@bugs.debian.org>, <83925-done@bugs.debian.org>, <83926-done@bugs.debian.org>, <92373-done@bugs.debian.org>, <92841-done@bugs.debian.org>, <93227-done@bugs.debian.org>, <94605-done@bugs.debian.org>, <64785-done@bugs.debian.org>, <80048-done@bugs.debian.org>
Subject: These bugs are already fixed
Date: Wed, 10 Oct 2001 15:53:56 +0200 (CEST)
These bugs are already fixed in lynx in unstable/testing. Thanks to
everyone for the NMUs!

cu
Adrian

-- 

Get my GPG key: finger bunk@debian.org | gpg --import

Fingerprint: B29C E71E FE19 6755 5C8A  84D4 99FC EA98 4F12 B400




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Jun 5 02:00:51 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.