summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorjperkin <jperkin>2015-03-19 12:34:37 +0000
committerjperkin <jperkin>2015-03-19 12:34:37 +0000
commitc6578911ed39457a6857f6c50c7700f6def10ab1 (patch)
treed8ef5454e693821ebaf144337d93af363fff4278 /shells
parentc8789bbf59bef7a16932af6181c2e57bd7122b2c (diff)
downloadpkgsrc-c6578911ed39457a6857f6c50c7700f6def10ab1.tar.gz
Avoid mixing _POSIX_C_SOURCE and C99 on SunOS.
Diffstat (limited to 'shells')
-rw-r--r--shells/zsh/distinfo4
-rw-r--r--shells/zsh/patches/patch-ac31
2 files changed, 24 insertions, 11 deletions
diff --git a/shells/zsh/distinfo b/shells/zsh/distinfo
index 7c5c4257196..56b3c6a192e 100644
--- a/shells/zsh/distinfo
+++ b/shells/zsh/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.50 2015/02/04 09:22:34 snj Exp $
+$NetBSD: distinfo,v 1.51 2015/03/19 12:34:37 jperkin Exp $
SHA1 (zsh-5.0.7.tar.bz2) = 1500191d16af8a71aec4f719a92775a074682096
RMD160 (zsh-5.0.7.tar.bz2) = 4b1aac38996414783522762b5a8677533bf77d2d
Size (zsh-5.0.7.tar.bz2) = 3181030 bytes
SHA1 (patch-Completion_Base_Utility__call__program) = 3abf3a4f8ef77e6e84038a1fb552f1ac0e1e5041
-SHA1 (patch-ac) = ee0cb8f39bdfd6f9a8facc3ba861c4f438aabcee
+SHA1 (patch-ac) = 75c1b9e56858289adf9f1d9c58d2319bb6df7abc
SHA1 (patch-aczsh.m4) = 36c270d8d7cf727f48787ef889b2bd89cbf065e2
SHA1 (patch-configure.ac) = e34bbae6385442b51a7263b22681898203d0c013
diff --git a/shells/zsh/patches/patch-ac b/shells/zsh/patches/patch-ac
index d5dc5047d95..717e80dc48f 100644
--- a/shells/zsh/patches/patch-ac
+++ b/shells/zsh/patches/patch-ac
@@ -1,6 +1,9 @@
-$NetBSD: patch-ac,v 1.30 2014/06/25 08:38:37 wiz Exp $
+$NetBSD: patch-ac,v 1.31 2015/03/19 12:34:37 jperkin Exp $
-First chunks:
+First chunk:
+Don't use _POSIX_C_SOURCE on SunOS with c99.
+
+Next chunks:
Use a compile test, not a run test, for whether various rlimit values
are equivalent. A compile test is sufficient because zsh uses these
values in switch cases, so they must be compile-time, if not
@@ -14,9 +17,19 @@ Last chunk:
Use -shared instead of -G on SunOS.
Fixes 64-bit package.
---- configure.orig 2012-09-15 20:13:14.000000000 +0000
+--- configure.orig 2014-09-23 18:56:57.000000000 +0000
+++ configure
-@@ -10011,9 +10047,6 @@ $as_echo_n "checking if RLIMIT_VMEM and
+@@ -7645,7 +7645,9 @@ if ${zsh_cv_type_sigset_t+:} false; then
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
++#ifndef __sun
+ #define _POSIX_C_SOURCE 200809L
++#endif
+ #include <sys/types.h>
+ #include <signal.h>
+ int
+@@ -10233,9 +10235,6 @@ $as_echo_n "checking if RLIMIT_VMEM and
if ${zsh_cv_rlimit_vmem_is_rss+:} false; then :
$as_echo_n "(cached) " >&6
else
@@ -26,7 +39,7 @@ Fixes 64-bit package.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -10022,43 +10055,33 @@ else
+@@ -10244,43 +10243,33 @@ else
#include <sys/time.h>
#endif
#include <sys/resource.h>
@@ -77,7 +90,7 @@ Fixes 64-bit package.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -10067,43 +10090,33 @@ else
+@@ -10289,43 +10278,33 @@ else
#include <sys/time.h>
#endif
#include <sys/resource.h>
@@ -128,7 +141,7 @@ Fixes 64-bit package.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -10112,28 +10125,23 @@ else
+@@ -10334,28 +10313,23 @@ else
#include <sys/time.h>
#endif
#include <sys/resource.h>
@@ -164,7 +177,7 @@ Fixes 64-bit package.
if test x$zsh_cv_rlimit_rss_is_as = xyes; then
$as_echo "#define RLIMIT_RSS_IS_AS 1" >>confdefs.h
-@@ -11630,6 +11638,10 @@ $as_echo "$zsh_cv_sys_elf" >&6; }
+@@ -11852,6 +11826,10 @@ $as_echo "$zsh_cv_sys_elf" >&6; }
DLLD="${DLLD=$CC}"
DLLDARG=""
;;
@@ -175,7 +188,7 @@ Fixes 64-bit package.
* )
DLLD="${DLLD=ld}"
DLLDARG=""
-@@ -11659,7 +11699,7 @@ $as_echo "$zsh_cv_sys_elf" >&6; }
+@@ -11881,7 +11859,7 @@ $as_echo "$zsh_cv_sys_elf" >&6; }
sunos*) DLLDFLAGS="${DLLDFLAGS=-assert nodefinitions}" ;;
sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G $ldflags}" ;;
aix*) DLLDFLAGS="${DLLDFLAGS=-G -bexpall -lc}" ;;