Subject: pkg/26847: shells/zsh fix for Interix
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: pkgsrc-bugs
Date: 09/04/2004 22:31:54
>Number:         26847
>Category:       pkg
>Synopsis:       shells/zsh fix for Interix
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 04 13:42:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hiramatsu Yoshifumi
>Release:        NetBSD 2.0E
>Organization:
	
>Environment:
	
	
System: Interix nile 3.5 SP-8.0.1969.1 x86 AMD_x86_Family15_Model12_Stepping0
Architecture: i386
Machine: i386
>Description:
This patch solves two problems on Interix.

1. Interix's tcsetpgrp doesn't work with zsh, so need to add
"--without-tcsetpgrp" to CONFIGURE_ARGS.  

2. modify configure script to enable dynamic loading modules

>How-To-Repeat:
	
>Fix:

diff -buNr zsh.orig/Makefile.common zsh/Makefile.common
--- zsh.orig/Makefile.common	Mon Aug 30 23:01:10 2004
+++ zsh/Makefile.common	Sat Sep  4 18:40:26 2004
@@ -58,6 +58,10 @@
 .  endif
 .endif
 
+.if ${OPSYS} == "Interix"
+CONFIGURE_ARGS+=	--without-tcsetpgrp
+.endif
+
 .undef MANZ
 
 PKG_SHELL=	${PREFIX}/bin/zsh
diff -buNr zsh.orig/distinfo zsh/distinfo
--- zsh.orig/distinfo	Mon Aug 30 23:01:10 2004
+++ zsh/distinfo	Sat Sep  4 18:40:26 2004
@@ -4,5 +4,5 @@
 Size (zsh-4.2.1.tar.bz2) = 2039188 bytes
 SHA1 (patch-aa) = 5e5fde0f21a64c2e0579958868b05737ef0c6afb
 SHA1 (patch-ab) = 65e7343fcea23aa516975521d0b92a67c06d1bda
-SHA1 (patch-ac) = 45edc3320e6347e170173966e38008767c7f374c
+SHA1 (patch-ac) = a9409a63f5d09c9449636cb277f73eb7da650bcb
 SHA1 (patch-ae) = 7d4514d0bad6553d3c0cf115874bf50ed0da3d48
diff -buNr zsh.orig/patches/patch-ac zsh/patches/patch-ac
--- zsh.orig/patches/patch-ac	Mon Aug 30 23:01:10 2004
+++ zsh/patches/patch-ac	Sat Sep  4 18:40:26 2004
@@ -1,18 +1,18 @@
-$NetBSD: patch-ac,v 1.14 2004/08/16 16:17:39 recht Exp $
+$NetBSD$
 
---- configure.orig	2004-08-13 12:24:24.000000000 +0200
-+++ configure	2004-08-16 11:54:09.000000000 +0200
-@@ -13691,6 +13691,10 @@
- 	DLLD="${DLLD=/usr/ccs/bin/cc}"
- 	DLLDARG="${LDARG}"
+--- configure.orig	Fri Aug 13 19:24:24 2004
++++ configure	Sun Aug 29 06:06:03 2004
+@@ -13713,6 +13713,10 @@
+         DLLD="${DLLD=$CC}"
+         DLLDARG=""
        ;;
 +      *interix*)
 +	DLLD="${DLLD=$CC}"
 +	DLLDARG=""
 +      ;;
        * )
- 	DLLD="${DLLD=$CC}"
- 	DLLDARG="${LDARG}"
+ 	DLLD="${DLLD=ld}"
+ 	DLLDARG=""
 @@ -13736,7 +13740,7 @@
      esac
    fi
>Release-Note:
>Audit-Trail:
>Unformatted: