Subject: pkg/4871: xemacs20 does not build on NetBSD/m68k due to a bug in configure
To: None <gnats-bugs@gnats.netbsd.org>
From: None <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 01/22/1998 17:21:50
>Number:         4871
>Category:       pkg
>Synopsis:       xemacs20 does not build on NetBSD/m68k due to a bug in configure
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 22 08:35:02 1998
>Last-Modified:
>Originator:     Thorsten Frueauf
>Organization:
private
	
>Release:        <NetBSD-current source date> NetBSD 1.3B 21.01.1998
>Environment:
	
System: NetBSD NetBSD 1.3 NetBSD 1.3 (MILANO-DEBUG) #0: Thu Jan 15 21:46:33 MET 1998 frueauf@NetBSD:/home/i41am1/NetBSD-1.3-src/sys/arch/amiga/compile/MILANO-DEBUG amiga


>Description:
	
There are two problems with xemacs-20.3:

	1) The configure script classifies all NetBSD/m68k machines
	   as p9000s300 - which is obviously not correct.

	2) The xemacs-send-pr script contains false paths for
	   the gnats datadir and for sendmail.

I have reportet 1) via (the fixed :) xemacs-send-pr back to the xemacs.org ppl
(pr configuration/255).

>How-To-Repeat:
	
On a NetBSD/m68k machine:
cd /usr/pkgsrc/editors/xemacs20
make

>Fix:
	
Note that my fix for 2) is not perfect, cause it nails the pkg to /usr/pkg.
So one should find a way to substitute "/usr/pkg/lib/xemacs-20.3/etc"
into "${PREFIX}/lib/xemacs-20.3/etc" in the send-pr script, where
$PREFIX is set to the choosen PREFIX by the user. Been short on time -
I was not able to think of proper method to achieve this.

Take the following patch into pkgsrc/xemacs20/patches/patch-aa:

--- snip ---
--- ./configure-orig	Thu Nov 20 03:13:44 1997
+++ ./configure	Thu Jan 22 13:46:50 1998
@@ -902,7 +902,7 @@
     case "$canonical" in
       i[3-9]86-*-netbsd*) machine=intel386 ;;
       hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
-                                            machine=hp9000s300 ;;
+                                            machine=m68k ;;
       pc532-*-netbsd* | ns32k-*-netbsd* )  machine=ns32000 ;;
       pmax-*-netbsd*  | mips-*-netbsd*  )  machine=pmax ;;
     esac
--- ./configure.in-orig	Thu Nov 20 03:13:33 1997
+++ ./configure.in	Thu Jan 22 13:58:06 1998
@@ -1013,8 +1013,7 @@
     case "$canonical" in
       i[[3-9]]86-*-netbsd*) machine=intel386 ;;
       hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
-                      dnl Yes, this is somewhat bogus.
-                      machine=hp9000s300 ;;
+                      machine=m68k ;;
       pc532-*-netbsd* | ns32k-*-netbsd* )  machine=ns32000 ;;
       pmax-*-netbsd*  | mips-*-netbsd*  )  machine=pmax ;;
     esac
--- ./lib-src/send-pr-orig	Thu Jan 22 14:54:07 1998
+++ ./lib-src/send-pr	Thu Jan 22 15:09:10 1998
@@ -35,7 +35,7 @@
 
 # Where the gnats category tree lives.
 [ -z "$DATADIR" ] &&
-DATADIR=/usr/share
+DATADIR=/usr/pkg/lib/xemacs-20.3/etc
 
 # If we've been moved around, try using GCC_EXEC_PREFIX.
 [ ! -d $DATADIR/gnats -a -d "$GCC_EXEC_PREFIX" ] && 
@@ -56,7 +56,7 @@
 
 # What mailer to use.  This must come after the config file, since it is
 # host-dependent.
-MAIL_AGENT="/usr/lib/sendmail -oi -t"
+MAIL_AGENT="/usr/sbin/sendmail -oi -t"
 
 # How to read the passwd database.
 PASSWD="cat /etc/passwd"
--- snip ---
>Audit-Trail:
>Unformatted:
xemacs20 does not build on NetBSD/m68k due to a bug in configure