Mon May 5 21:25:11 2014 UTC ()
Fix OpenBSD 5.5 build

* OpenBSD 5.5 has /usr/include/sys/atomic.h, but it is different from NetBSD's
  one


(ryoon)
diff -r1.45 -r1.46 pkgsrc/textproc/icu/distinfo
diff -r1.3 -r1.4 pkgsrc/textproc/icu/patches/patch-configure
diff -r1.1 -r1.2 pkgsrc/textproc/icu/patches/patch-configure.ac

cvs diff -r1.45 -r1.46 pkgsrc/textproc/icu/distinfo (expand / switch to context diff)
--- pkgsrc/textproc/icu/distinfo 2014/04/07 11:49:57 1.45
+++ pkgsrc/textproc/icu/distinfo 2014/05/05 21:25:11 1.46
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.45 2014/04/07 11:49:57 adam Exp $
+$NetBSD: distinfo,v 1.46 2014/05/05 21:25:11 ryoon Exp $
 
 SHA1 (icu4c-53_1-src.tgz) = 7eca017fdd101e676d425caaf28ef862d3655e0f
 RMD160 (icu4c-53_1-src.tgz) = 9bd1b4bdc2010545c76a927dcf46049686beeab9
@@ -17,8 +17,8 @@
 SHA1 (patch-config_icu-config-bottom) = 168b89ee9180d4ae545125866ee91eb004010501
 SHA1 (patch-config_mh-cygwin) = e3aa7a926244b448ce12ab2f89156348a02c0659
 SHA1 (patch-config_mh-solaris-gcc) = f81fec8f0d232b9125c7ea7ec334b78872aa2025
-SHA1 (patch-configure) = bea560028b869defa7b5eab8c148aaf6f0e8f3ee
-SHA1 (patch-configure.ac) = d90bf98e97cb2051dd64b847b97092440c1c03f8
+SHA1 (patch-configure) = 6888d11d4e0eb809c50780fec7fbff53861d1901
+SHA1 (patch-configure.ac) = 8a273518838ecb38378ca4577f8b93985e4e86b6
 SHA1 (patch-data_Makefile.in) = a5dcfe848a0444f0a1c036b7f4e343468bf3b3d1
 SHA1 (patch-i18n_Makefile.in) = 935965c0418994271d844a4c908cd9e1fe8279fd
 SHA1 (patch-io_Makefile.in) = f5f5eabb31ea7120130d13c397fab1feddd30447

cvs diff -r1.3 -r1.4 pkgsrc/textproc/icu/patches/patch-configure (expand / switch to context diff)
--- pkgsrc/textproc/icu/patches/patch-configure 2014/03/04 12:07:16 1.3
+++ pkgsrc/textproc/icu/patches/patch-configure 2014/05/05 21:25:11 1.4
@@ -1,10 +1,10 @@
-$NetBSD: patch-configure,v 1.3 2014/03/04 12:07:16 obache Exp $
+$NetBSD: patch-configure,v 1.4 2014/05/05 21:25:11 ryoon Exp $
 
 Portability fix.
 Solaris seems to need -std=c99 with recent pkgsrc so keep it
 and at the same time fix a typo involving CXXFLAGS.
 
---- configure.orig	2013-10-04 20:54:58.000000000 +0000
+--- configure.orig	2013-12-09 17:32:25.000000000 +0000
 +++ configure
 @@ -4083,9 +4083,6 @@ $as_echo "$ac_use_strict_options" >&6; }
          if test "$GCC" = yes
@@ -25,7 +25,7 @@
                          # 2. try xarch=v9 [deprecated]
                          ## TODO: cross compile: the following won't work.
                          SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
-@@ -5452,6 +5449,23 @@ if test "x$ac_cv_header_elf_h" = "xyes";
+@@ -5452,6 +5449,29 @@ if test "x$ac_cv_header_elf_h" = "xyes";
      CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
  fi
  
@@ -42,14 +42,20 @@
 +
 +done
 +
++case "${host}" in
++*-netbsd*)
 +if test "x$ac_cv_header_sys_atomic_h" = "xyes"; then
 +    CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_NETBSD_ATOMIC_OPS=1";
 +fi
++;;
++*)
++;;
++esac
 +
  U_ENABLE_DYLOAD=1
  enable=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5
-@@ -7442,13 +7456,13 @@ fi
+@@ -7442,13 +7462,13 @@ fi
  # Now that we're done using CPPFLAGS etc. for tests, we can change it
  # for build.
  

cvs diff -r1.1 -r1.2 pkgsrc/textproc/icu/patches/patch-configure.ac (expand / switch to context diff)
--- pkgsrc/textproc/icu/patches/patch-configure.ac 2014/03/04 12:07:16 1.1
+++ pkgsrc/textproc/icu/patches/patch-configure.ac 2014/05/05 21:25:11 1.2
@@ -1,24 +1,30 @@
-$NetBSD: patch-configure.ac,v 1.1 2014/03/04 12:07:16 obache Exp $
+$NetBSD: patch-configure.ac,v 1.2 2014/05/05 21:25:11 ryoon Exp $
 
 * Detect NetBSD libatomic
 * test(1) portability fix
 
---- configure.ac.orig	2013-10-04 20:54:58.000000000 +0000
+--- configure.ac.orig	2013-12-09 17:32:25.000000000 +0000
 +++ configure.ac
-@@ -407,6 +407,12 @@ if test "x$ac_cv_header_elf_h" = "xyes";
+@@ -407,6 +407,18 @@ if test "x$ac_cv_header_elf_h" = "xyes";
      CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
  fi
  
 +# check if sys/atomic.h is present.
 +AC_CHECK_HEADERS([sys/atomic.h])
++case "${host}" in
++*-netbsd*)
 +if test "x$ac_cv_header_sys_atomic_h" = "xyes"; then
 +    CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_NETBSD_ATOMIC_OPS=1";
 +fi
++;;
++*)
++;;
++esac
 +
  U_ENABLE_DYLOAD=1
  enable=yes
  AC_MSG_CHECKING([whether to enable dynamic loading of plugins])
-@@ -1249,13 +1255,13 @@ fi
+@@ -1249,13 +1261,13 @@ fi
  # Now that we're done using CPPFLAGS etc. for tests, we can change it
  # for build.