Subject: pkg/29859: editors/emacs does not build on DragonFly
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 04/01/2005 20:19:00
>Number:         29859
>Category:       pkg
>Synopsis:       editors/emacs does not build on DragonFly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 01 20:19:00 +0000 2005
>Originator:     Peter Schuller
>Release:        N/A (DragonFly-CURRENT)
DragonFly  1.1-CURRENT DragonFly 1.1-CURRENT #3: Fri Apr  1 11:31:49 GMT 2005     scode@:/usr/obj/usr/src/sys/THUNDERBOLT  i386

editors/emacs fails to build on DragonFly with:

configure: error: Emacs hasn't been ported to `i386-pc-dragonfly1' systems.
Check `etc/MACHINES' for recognized configuration names.
*** Error code 1

cvsup latest pkgsrc on a recent dragonfly, and try to 'bmake install'
in /usr/pkgsrc/editors/emacs
Patching the 'configure' script as follows is enough to make it build by using src/s/freebsd.h. I realize configure is automatically generated, but I am not familiar with autoconf/automake so I'm not sure what the proper fix is. Hopefully it's obvious to someone.

--- configure.orig	2005-04-01 12:13:27.000000000 +0000
+++	2005-04-01 12:13:17.000000000 +0000
@@ -1663,6 +1663,7 @@
       *-sysv4.2uw* )	  	opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
       *-386bsd* )	        opsys=386bsd ;;
       *-freebsd* )	        opsys=freebsd ;;
+      *-dragonfly1* )	        opsys=freebsd ;;
       *-nextstep* )             opsys=nextstep ;;
       ## Otherwise, we'll fall through to the generic opsys code at the bottom.