Subject: pkg/30225: [patch] editors/emacs: does not build on DragonFly
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <peter.schuller@infidyne.com>
List: pkgsrc-bugs
Date: 05/13/2005 21:11:00
>Number:         30225
>Category:       pkg
>Synopsis:       [patch] 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 May 13 21:11:00 +0000 2005
>Originator:     Peter Schuller
>Release:        N/A
>Organization:
>Environment:
DragonFly  1.3-DEVELOPMENT DragonFly 1.3-DEVELOPMENT #4: Sat Apr 16 07:05:16 GMT 2005     toor@:/usr/obj/usr/src/sys/THUNDERBOLT  i386
>Description:
editors/emacs does not build because the OS identifier is not recognized by the configure script
>How-To-Repeat:
cvsup latest pkgsrc; bmake install in editors/emacs
>Fix:
Compiles by pretending it's FreeBSD for now. pkgdiff:ed patch against patch-ab, which already patches some other things in the configure script:

$NetBSD$

--- patch-ab.orig	2005-05-13 13:57:42.000000000 +0000
+++ patch-ab
@@ -2,5 +2,5 @@ $NetBSD: patch-ab,v 1.18 2004/07/31 21:0
 
---- configure.orig	Tue Mar 18 15:19:12 2003
-+++ configure	Sat Jul 31 03:56:01 2004
-@@ -822,9 +822,13 @@
+--- configure.orig	2003-03-18 14:19:12.000000000 +0000
++++ configure
+@@ -822,9 +822,13 @@ case "${canonical}" in
        sparc*-*-netbsd*)	machine=sparc ;;
@@ -18,7 +18,14 @@ $NetBSD: patch-ab,v 1.18 2004/07/31 21:0
      opsys=openbsd
-@@ -9123,6 +9127,22 @@
- 
+@@ -1659,6 +1663,7 @@ case "${canonical}" in
+       *-sysv4.2uw* )	  	opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
+       *-386bsd* )	        opsys=386bsd ;;
+       *-freebsd* )	        opsys=freebsd ;;
++      *-dragonfly* )	        opsys=freebsd ;;
+       *-nextstep* )             opsys=nextstep ;;
+       ## Otherwise, we'll fall through to the generic opsys code at the bottom.
+     esac
+@@ -9124,6 +9129,22 @@ EOF
  fi
  
-+
+ 
 +# NETBSD: NetBSD's newer run-time linker fix.
@@ -38,4 +45,5 @@ $NetBSD: patch-ab,v 1.18 2004/07/31 21:0
 +fi
- 
++
  # Set up the CFLAGS for real compilation, so we can substitute it.
  CFLAGS="$REAL_CFLAGS"
+ CPPFLAGS="$REAL_CPPFLAGS"