pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/shells/zsh Avoid mixing _POSIX_C_SOURCE and C99 on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bd5f285973b1
branches:  trunk
changeset: 648782:bd5f285973b1
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Mar 19 12:34:37 2015 +0000

description:
Avoid mixing _POSIX_C_SOURCE and C99 on SunOS.

diffstat:

 shells/zsh/distinfo         |   4 ++--
 shells/zsh/patches/patch-ac |  31 ++++++++++++++++++++++---------
 2 files changed, 24 insertions(+), 11 deletions(-)

diffs (97 lines):

diff -r 1a5291d61db2 -r bd5f285973b1 shells/zsh/distinfo
--- a/shells/zsh/distinfo       Thu Mar 19 11:52:12 2015 +0000
+++ b/shells/zsh/distinfo       Thu Mar 19 12:34:37 2015 +0000
@@ -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 -r 1a5291d61db2 -r bd5f285973b1 shells/zsh/patches/patch-ac
--- a/shells/zsh/patches/patch-ac       Thu Mar 19 11:52:12 2015 +0000
+++ b/shells/zsh/patches/patch-ac       Thu Mar 19 12:34:37 2015 +0000
@@ -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 @@
 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 @@
    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 @@
    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 @@
    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 @@
  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 @@
        * )
        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}" ;;



Home | Main Index | Thread Index | Old Index