lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev heads-up: INSTALLATION.old / MAKEFILE.old broken?


From: dickey
Subject: Re: lynx-dev heads-up: INSTALLATION.old / MAKEFILE.old broken?
Date: Wed, 3 Feb 1999 05:12:19 -0500 (EST)

> 
> I just fetched lynx 2.8 and tried to build it.  Due to past run-ins 
> with autoconfigure, I went with the non-configure way, editing 
> userdefs.h, lynx.cfg, and Makefile (copied from docs/Makefile.old) by 
> hand, then using "make netbsd".  (The machine is a NetBSD/sparc machine 
> running mostly-stock 1.3F.) 
>  
> It died: 

I'm not going to answer any bug reports against the old (non-autoconf)
makefile).  There's someone on the list who stated he would, but has
not posted to this list for several months.  (Lynx 2.8 is known to build
on netbsd using the configure script).
  
> .... 
> touch ../../Library/netbsd/.created 
> cc -c -o ../../Library/netbsd/HTParse.o -O -DUSE_DIRENT -DDIRED_SUPPORT 
> -DLONG_LIST    -I../../Library/Implementation/ -DXMOSAIC_HACK -DACCESS_AUTH 
> ../../Library/Implementation/HTParse.c 
> cc -c -o ../../Library/netbsd/HTAccess.o -O -DUSE_DIRENT -DDIRED_SUPPORT 
> -DLONG_LIST    -I../../Library/Implementation/ -DXMOSAIC_HACK -DACCESS_AUTH 
> ../../Library/Implementation/HTAccess.c 
> "../../Library/Implementation/HTAccess.c", line 50: HTML.h: No such file or 
> directory 
> "../../Library/Implementation/HTAccess.c", line 61: GridText.h: No such file 
> or directory 
> *** Error code 1 
>  
> Stop. 
> *** Error code 1 
>  
> Stop. 
>  
> I see three alternatives: (1) I did something boneheaded; (2) the 
> non-configure way is broken; (3) the non-configure way is no longer 
> supported.  In case (2), the code and/or Makefiles need fixing; in case 
> (3), the doc files need fixing.  And in case it's (1), I include my 
> TRANSCRIPT file (really a shell script used to automate the build) and 
> the patches below, though I can't see anything I did that would cause 
> this. 
>  
> I'm going to have a stab at doing a configure-based build.  Maybe I'll 
> get lucky and this won't be one of the times when configure makes a 
> mistake, 'cause when it does, it's hell to try to convince it I know 
> better than it does. 
>  
> Cc me or not on replies, as you please, but note I'm not on lynx-dev; 
> I have no intention of getting into lynx development. 
>  
>                                       der Mouse 
>  
>                              address@hidden 
>                    7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B 
>  
> #! /bin/sh 
> # 
> # Shar: Shell Archiver 
> # 
> # This archive created Wed Feb  3 00:30:46 1999 
> # Run this through sh to create: 
> #     TRANSCRIPT 
> #     PATCHES/ 
> #     PATCHES/lynx.cfg 
> #     PATCHES/userdefs.h 
> #     PATCHES/Makefile 
> echo x - TRANSCRIPT \(500 characters\) 
> sed 's/^X//' > TRANSCRIPT << \EOF 
> X# 1999 02 02  Mouse 
> X 
> X# Make sure LOCALROOT is set 
> X: ${LOCALROOT:=/local} 
> X 
> X# Unpack the distribution 
> Xgunzip < DIST/lynx2-8.tar.gz | tar xvfp - 
> X 
> X# Rename to something more in keeping with our naming scheme 
> Xmv lynx2-8 lynx-2.8 
> X 
> X# Work in the source directory 
> Xcd lynx-2.8 
> X 
> X# Copy in the Makefile 
> Xcp docs/Makefile.old Makefile 
> X 
> X# Apply patches 
> X( cd ../PATCHES ; find . -type f -print ) | 
> Xwhile read fn 
> Xdo 
> X     < ../PATCHES/$fn sed -e s\;@@address@hidden;$LOCALROOT\; | patch $fn 
> Xdone 
> X 
> X# Do the build 
> Xmake netbsd 
> EOF 
> if test 500 -ne "`wc -c < TRANSCRIPT`" 
> then 
> echo shar: error transmitting TRANSCRIPT \(should have been 500 characters\) 
> fi 
> mkdir PATCHES>/dev/null 2>&1 
> echo x - PATCHES/lynx.cfg \(1265 characters\) 
> sed 's/^X//' > PATCHES/lynx.cfg << \EOF 
> X--- lynx-2.8-orig/lynx.cfg   Tue Feb  2 23:17:32 1999 
> X+++ lynx-2.8/lynx.cfg        Wed Feb  3 00:02:33 1999 
> X@@ -22,7 +22,7 @@ 
> X #  replace PATH_TO with the complete path to FILENAME 
> X #  use Unix SHELL syntax and include the device on VMS systems) 
> X # 
> X-STARTFILE:http://lynx.browser.org/ 
> X+STARTFILE:file://localhost/ 
> X  
> X # HELPFILE must be defined as a URL and must have a 
> X # complete path if local: 
> X@@ -34,8 +34,7 @@ 
> X # http://www.crl.com/~subir/lynx/lynx_help/lynx_help_main.html 
> X #   This should be changed to the local path. 
> X # 
> X-HELPFILE:http://www.crl.com/~subir/lynx/lynx_help/lynx_help_main.html 
> X-#HELPFILE:file://localhost/PATH_TO/lynx_help/lynx_help_main.html 
> X+HELPFILE:file://localhost@@LOCALROOT@/.lib/lynx_help/lynx_help_main.html 
> X  
> X # DEFAULT_INDEX_FILE is the default file retrieved when the 
> X # user presses the 'I' key when viewing any document. 
> X@@ -1154,7 +1153,7 @@ 
> X # The compilation default, or default defined here, can be toggled via a 
> X # "-minimal" command line switch, and via the LYK_MINIMAL command key. 
> X # 
> X-MINIMAL_COMMENTS:TRUE 
> X+MINIMAL_COMMENTS:FALSE 
> X  
> X # If SOFT_DQUOTES is TRUE, Lynx will emulate the invalid behavior of 
> X # treating '>' as a co-terminator of a double-quoted attribute value 
> X@@ -1756,4 +1755,3 @@ 
> X #   } 
> X # 
> X # RAW_DOS_KEY_HACK:TRUE 
> X- 
> EOF 
> if test 1265 -ne "`wc -c < PATCHES/lynx.cfg`" 
> then 
> echo shar: error transmitting PATCHES/lynx.cfg \(should have been 1265 
> characters\) 
> fi 
> echo x - PATCHES/userdefs.h \(5003 characters\) 
> sed 's/^X//' > PATCHES/userdefs.h << \EOF 
> X--- lynx-2.8-orig/userdefs.h Tue Feb  2 23:18:22 1999 
> X+++ lynx-2.8/userdefs.h      Tue Feb  2 23:54:55 1999 
> X@@ -269,7 +269,7 @@ 
> X #ifdef DOSPATH 
> X #define LYNX_CFG_FILE "./lynx.cfg" 
> X #else 
> X-#define LYNX_CFG_FILE "/usr/local/lib/lynx.cfg" 
> X+#define LYNX_CFG_FILE "@@LOCALROOT@/.lib/lynx-2.8/lynx.cfg" 
> X #endif /* DOSPATH */ 
> X #endif /* LYNX_CFG_FILE */ 
> X #endif /* HAVE_CONFIG_H */ 
> X@@ -280,7 +280,7 @@ 
> X  * These global and personal files override anything in 
> X  * lynx.cfg or src/HTInit.c 
> X  */ 
> X-#define GLOBAL_EXTENSION_MAP "/usr/local/lib/mosaic/mime.types" 
> X+#define GLOBAL_EXTENSION_MAP "@@LOCALROOT@/.lib/lynx-2.8/mime.types" 
> X #define PERSONAL_EXTENSION_MAP ".mime.types" 
> X  
> X /************************** 
> X@@ -289,23 +289,23 @@ 
> X  * These global and personal files override anything in 
> X  * lynx.cfg or src/HTInit.c 
> X  */ 
> X-#define GLOBAL_MAILCAP "/usr/local/lib/mosaic/mailcap" 
> X+#define GLOBAL_MAILCAP "@@LOCALROOT@/.lib/lynx-2.8/mailcap" 
> X #define PERSONAL_MAILCAP ".mailcap" 
> X  
> X /************************** 
> X  * the full path and name of the telnet command 
> X  */ 
> X-#define TELNET_COMMAND "telnet" 
> X+#define TELNET_COMMAND "/usr/bin/telnet" 
> X  
> X /************************** 
> X  * the full path and name of the tn3270 command 
> X  */ 
> X-#define TN3270_COMMAND "tn3270" 
> X+#define TN3270_COMMAND "/usr/bin/tn3270" 
> X  
> X /************************** 
> X  * the full path and name of the rlogin command 
> X  */ 
> X-#define RLOGIN_COMMAND "rlogin" 
> X+#define RLOGIN_COMMAND "/usr/bin/rlogin" 
> X  
> X /************************** 
> X  * XLOADIMAGE_COMMAND will be used as a default in src/HTInit.c for 
> X@@ -322,7 +322,7 @@ 
> X  * open is used as the default for NeXT, instead of the XLOADIMAGE_COMMAND 
> X  * definition. 
> X  */ 
> X-#define XLOADIMAGE_COMMAND "xli %s &" 
> X+#define XLOADIMAGE_COMMAND "/usr/bin/true %s" 
> X  
> X /************************** 
> X  * For UNIX systems this should be sendmail 
> X@@ -343,10 +343,10 @@ 
> X #define SYSTEM_MAIL_FLAGS "-mlruxto,cc\\*" 
> X #else 
> X #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__bsdi__) 
> X-#define SYSTEM_MAIL "/usr/sbin/sendmail" 
> X+#define SYSTEM_MAIL "/local/bin/sendmail" 
> X #define SYSTEM_MAIL_FLAGS "-t -oi" 
> X #else /* everything else: */ 
> X-#define SYSTEM_MAIL "/usr/lib/sendmail" 
> X+#define SYSTEM_MAIL "/local/bin/sendmail" 
> X #define SYSTEM_MAIL_FLAGS "-t -oi" 
> X #endif /* __FreeBSD || __NetBSD__ || __bsdi__ */ 
> X #endif /* MMDF */ 
> X@@ -433,7 +433,7 @@ 
> X  * -lss command line switch will override these definitions. 
> X  */ 
> X #ifndef LYNX_LSS_FILE 
> X-#define LYNX_LSS_FILE "/usr/local/lib/lynx.lss" 
> X+#define LYNX_LSS_FILE "@@LOCALROOT@/.lib/lynx-2.8/lynx.lss" 
> X #endif /* LYNX_LSS_FILE */ 
> X  
> X #endif /* VMS OR UNIX */ 
> X@@ -450,7 +450,7 @@ 
> X  * note: STARTFILE must be a URL.  See the Lynx online help for more 
> X  *       information on URLs 
> X  */ 
> X-#define STARTFILE "http://lynx.browser.org/"; 
> X+#define STARTFILE "file://localhost/" 
> X  
> X /***************************** 
> X  * HELPFILE must be defined as a URL and must have a 
> X@@ -463,8 +463,7 @@ 
> X  * http://www.crl.com/~subir/lynx/lynx_help/lynx_help_main.html 
> X  *   This should be changed here or in lynx.cfg to the local path. 
> X  */ 
> X-#define HELPFILE 
> "http://www.crl.com/~subir/lynx/lynx_help/lynx_help_main.html"; 
> X-/* #define HELPFILE 
> "file://localhost/PATH_TO/lynx_help/lynx_help_main.html" */ 
> X+#define HELPFILE 
> "file://localhost@@LOCALROOT@/.lib/lynx_help/lynx_help_main.html" 
> X  
> X /***************************** 
> X  * DEFAULT_INDEX_FILE is the default file retrieved when the 
> X@@ -572,7 +571,7 @@ 
> X  * if your system does not have utmp capabilities.  CHANGE THIS here 
> X  * or in lynx.cfg. 
> X  */ 
> X-#define LOCAL_DOMAIN "ukans.edu" 
> X+#define LOCAL_DOMAIN "rodents.montreal.qc.ca" 
> X  
> X /******************************** 
> X * The DEFAULT_CACHE_SIZE specifies the number of WWW documents to be 
> X@@ -690,7 +689,7 @@ 
> X  * that preference in their RC file. This may be a comma-separated list 
> X  * of languages in decreasing preference. 
> X  */ 
> X-#define PREFERRED_LANGUAGE "en" 
> X+#define PREFERRED_LANGUAGE "en,fr" 
> X  
> X /***************************** 
> X  * PREFERRED_CHARSET specifies the character set in MIME notation (e.g., 
> X@@ -765,8 +764,8 @@ 
> X  * and use "http://"; as the default (e.g., gopher.wfbr.edu or gopher.wfbr. 
> X  * will be made gopher://gopher.wfbr.edu). 
> X  */ 
> X-#define URL_DOMAIN_PREFIXES "www." 
> X-#define URL_DOMAIN_SUFFIXES ".com,.edu,.net,.org" 
> X+#define URL_DOMAIN_PREFIXES "" 
> X+#define URL_DOMAIN_SUFFIXES "" 
> X  
> X /******************************** 
> X  * If LIST_NEWS_NUMBERS is set TRUE, Lynx will use an ordered list 
> X@@ -798,7 +797,7 @@ 
> X  * from nntp servers if the server indicates that it permits posting. 
> X  * The setting here can be changed in lynx.cfg. 
> X  */ 
> X-#define NEWS_POSTING TRUE 
> X+#define NEWS_POSTING FALSE 
> X  
> X /************************* 
> X  * Define LYNX_SIG_FILE to the name of a file containing a signature which 
> X@@ -1327,8 +1326,8 @@ 
> X **  All Unix: 
> X **  ========= 
> X */ 
> X-#define     ZIP_PATH        "/usr/local/bin/zip" 
> X-#define     UNZIP_PATH      "/usr/local/bin/unzip" 
> X+#define     ZIP_PATH        "/usr/bin/false" 
> X+#define     UNZIP_PATH      "/usr/bin/false" 
> X #define     MKDIR_PATH      "/bin/mkdir" 
> X #define     MV_PATH         "/bin/mv" 
> X #define     RM_PATH         "/bin/rm" 
> EOF 
> if test 5003 -ne "`wc -c < PATCHES/userdefs.h`" 
> then 
> echo shar: error transmitting PATCHES/userdefs.h \(should have been 5003 
> characters\) 
> fi 
> echo x - PATCHES/Makefile \(1943 characters\) 
> sed 's/^X//' > PATCHES/Makefile << \EOF 
> X--- lynx-2.8-orig/Makefile   Wed Feb  3 00:06:54 1999 
> X+++ lynx-2.8/Makefile        Wed Feb  3 00:14:01 1999 
> X@@ -1,31 +1,25 @@ 
> X ##makefile for lynx 
> X  
> X-SHELL = /bin/sh 
> X+VERSION := $(.CURDIR:T) 
> X+LOCALROOT ?= /local 
> X  
> X ##uncomment the next line if your make fails to set $(MAKE) 
> X #MAKE= make 
> X  
> X-##this is the name of the directory the lynx source code is in. 
> X-##(e.g. lynx2-7-1, not the full path) 
> X-lynxdir= lynx2-7-1 
> X- 
> X-##this is the filename for .zip, .tar and .tar.Z archives. 
> X-lynxname= lynx2-7-1 
> X- 
> X ##change the next line if you want lynx installed somewhere 
> X ##besides /usr/local/bin 
> X-exec= /usr/local/bin 
> X+exec=$(LOCALROOT)/.bin/$(VERSION) 
> X  
> X ##change the next line if you want the lynx man file installed somewhere 
> X ##besides /usr/local/man/man1 
> X-doc= /usr/local/man/man1 
> X+doc=$(LOCALROOT)/.man/$(VERSION)/man1 
> X  
> X ##change the next line if you want the lynx.cfg file installed somewhere 
> X ##besides /usr/local/lib 
> X-cfg= /usr/local/lib 
> X+cfg=$(LOCALROOT)/.lib/$(VERSION) 
> X  
> X-installbin= install -c -s -m 755 
> X-installdoc= install -c -m 444 
> X+installbin=install -c -m 775 
> X+installdoc=install -c -m 444 
> X  
> X ##set the relative location of the WWW library Implementation directory, 
> X ##from this directory 
> X@@ -1073,32 +1067,8 @@ 
> X     -rm -f Lynx.prj *~ *.bak *.sav .*_aux 
> X     rm lynx 
> X  
> X-tar:  clean 
> X-    rm -f lynx 
> X-    $(MAKE) save 
> X- 
> X-turnover:   clean 
> X-    $(MAKE) save 
> X- 
> X-zipcompress: compress zip 
> X-    echo "done!" 
> X- 
> X-zip:  clean 
> X-    rm -f src/lynx 
> X-    rm -f lynx 
> X-    rm -f src/a.out 
> X-    rm -f ../$(lynxname).zip 
> X-    cd ..; rm -f $(lynxname).zip; zip -r $(lynxname).zip $(lynxdir) 
> X- 
> X-save: 
> X-    cd ..; rm -f $(lynxname).tar; tar -cf - $(lynxdir) > $(lynxname).tar 
> X- 
> X-compress: tar 
> X-    cd ..; rm -f $(lynxname).tar.Z; compress -f -v $(lynxname).tar 
> X- 
> X install: 
> X-    -mv -f $(exec)/lynx $(exec)/lynx.old 
> X-    -mv -f $(cfg)/lynx.cfg $(cfg)/lynx.oldcfg 
> X+    mkdir -p $(exec) $(cfg) $(doc) 
> X     $(installbin) lynx $(exec)/lynx 
> X     $(installdoc) lynx.man $(doc)/lynx.1 
> X     $(installdoc) lynx.cfg $(cfg)/lynx.cfg 
> EOF 
> if test 1943 -ne "`wc -c < PATCHES/Makefile`" 
> then 
> echo shar: error transmitting PATCHES/Makefile \(should have been 1943 
> characters\) 
> fi 
> exit 0 
> # end of shell archive 


-- 
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]