Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2016 17:23:57 +0000 (UTC)
From:      Michael Gmelin <grembo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r423875 - in head/devel: ice ice/files py-ice
Message-ID:  <201610121723.u9CHNvxu092510@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: grembo
Date: Wed Oct 12 17:23:57 2016
New Revision: 423875
URL: https://svnweb.freebsd.org/changeset/ports/423875

Log:
  Update ice ports to 3.6.3
  
  A few critical patches got merged upstream, a few new were required
  to maintain LibreSSL support and fix other new issues. Note that slice2py
  moved from devel/py-ice to devel/ice.
  
  Approved by:	mentors (implicit)

Added:
  head/devel/ice/files/patch-cpp-src-IceSSL-Util.cpp   (contents, props changed)
  head/devel/ice/files/patch-cpp-src-IceUtil-Cond.cpp   (contents, props changed)
  head/devel/ice/files/patch-cpp-test-Slice-unicodePaths-run.py   (contents, props changed)
  head/devel/ice/files/patch-python-test-Slice-unicodePaths-run.py   (contents, props changed)
Deleted:
  head/devel/ice/files/patch-cpp-include-IceUtil-IconvStringConverter.h
  head/devel/ice/files/patch-cpp-src-Ice-Network.cpp
  head/devel/ice/files/patch-cpp-src-Ice-StreamSocket.cpp
  head/devel/ice/files/patch-cpp-src-IceGrid-Parser.cpp
  head/devel/ice/files/patch-cpp-test-IceGrid-simple-AllTests.cpp
  head/devel/ice/files/patch-scripts-icehashpassword.py
Modified:
  head/devel/ice/Makefile
  head/devel/ice/distinfo
  head/devel/ice/files/patch-config-Make.common.rules
  head/devel/ice/files/patch-cpp-config-Make.rules
  head/devel/ice/files/patch-cpp-src-Glacier2CryptPermissionsVerifier-CryptPermissionsVerifierI.cpp
  head/devel/ice/files/patch-cpp-src-IceSSL-Makefile
  head/devel/ice/files/patch-cpp-src-IceSSL-OpenSSLEngine.cpp
  head/devel/ice/files/patch-cpp-test-Ice-objects-Makefile
  head/devel/ice/files/patch-cpp-test-IceGrid-deployer-AllTests.cpp
  head/devel/ice/files/patch-cpp-test-IceSSL-configuration-AllTests.cpp
  head/devel/ice/files/patch-cpp-test-IceSSL-configuration-run.py
  head/devel/ice/files/patch-php-config-Make.rules.php
  head/devel/ice/files/patch-scripts-TestUtil.py
  head/devel/ice/pkg-plist
  head/devel/py-ice/Makefile
  head/devel/py-ice/pkg-plist

Modified: head/devel/ice/Makefile
==============================================================================
--- head/devel/ice/Makefile	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/Makefile	Wed Oct 12 17:23:57 2016	(r423875)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=		Ice
-PORTVERSION=		3.6.2
-PORTREVISION=		1
+PORTVERSION=		3.6.3
 DISTVERSIONPREFIX=	v
 CATEGORIES=		devel
 

Modified: head/devel/ice/distinfo
==============================================================================
--- head/devel/ice/distinfo	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/distinfo	Wed Oct 12 17:23:57 2016	(r423875)
@@ -1,2 +1,3 @@
-SHA256 (zeroc-ice-Ice-v3.6.2_GH0.tar.gz) = 5e9305a5eb6081c8f128d63a5546158594e9f115174fc91208f645dbe2fc02fe
-SIZE (zeroc-ice-Ice-v3.6.2_GH0.tar.gz) = 5393239
+TIMESTAMP = 1476218141
+SHA256 (zeroc-ice-Ice-v3.6.3_GH0.tar.gz) = 82ff74e6d24d9fa396dbb4d9697dc183b17bc9c3f6f076fecdc05632be80a2dc
+SIZE (zeroc-ice-Ice-v3.6.3_GH0.tar.gz) = 5512741

Modified: head/devel/ice/files/patch-config-Make.common.rules
==============================================================================
--- head/devel/ice/files/patch-config-Make.common.rules	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/files/patch-config-Make.common.rules	Wed Oct 12 17:23:57 2016	(r423875)
@@ -1,5 +1,5 @@
---- config/Make.common.rules.orig	2015-06-23 15:30:20.000000000 +0000
-+++ config/Make.common.rules	2015-06-27 23:55:59.468049240 +0000
+--- config/Make.common.rules.orig	2016-10-05 16:59:08.000000000 +0200
++++ config/Make.common.rules	2016-10-11 22:39:50.774367911 +0200
 @@ -19,7 +19,8 @@
  SHORT_VERSION   = 3.6
  SOVERSION	= 36
@@ -10,7 +10,7 @@
  INSTALL_PROGRAM	= ${INSTALL}
  INSTALL_LIBRARY	= ${INSTALL}
  INSTALL_DATA	= ${INSTALL}
-@@ -49,13 +50,13 @@
+@@ -53,13 +54,13 @@
  #
  # usr_dir_install means we want to install with a /usr style layout.
  #
@@ -31,33 +31,20 @@
  
  #
  # A /usr style layout can be forced by setting USR_DIR_INSTALL=yes.
-@@ -461,20 +463,24 @@
- 	    then \
- 		    ln -s Ice-$(VERSION)/slice $(DESTDIR)/$(prefix)/share/slice ; \
- 	    fi ; \
-+	fi
-+
-+	@if test -d $(DESTDIR)$(install_slicedir) ; \
-+	then \
- 	    cd $(top_srcdir)/../slice ; \
- 	    for subdir in * ; \
- 	    do \
- 	        echo "Copying slice/$$subdir to $(DESTDIR)$(install_slicedir)..." ; \
- 	        cp -fpr $$subdir $(DESTDIR)$(install_slicedir) ; \
- 	    done ; \
--	    fi
-+	fi
+@@ -507,12 +508,12 @@
+ 		fi ; \
+ 	fi
  
 -	@if test ! -f $(DESTDIR)$(install_docdir)/ICE_LICENSE$(TEXT_EXTENSION) ; \
 +	@if test ! -f $(DESTDIR)$(install_slicedir)/ICE_LICENSE$(TEXT_EXTENSION) ; \
  	then \
--	    $(call installdata,$(top_srcdir)/../ICE_LICENSE$(TEXT_EXTENSION),$(DESTDIR)$(install_docdir)) ; \
-+	    $(call installdata,$(top_srcdir)/../ICE_LICENSE$(TEXT_EXTENSION),$(DESTDIR)$(install_slicedir)) ; \
+-		$(call installdata,$(top_srcdir)/../ICE_LICENSE$(TEXT_EXTENSION),$(DESTDIR)$(install_docdir)) ; \
++		$(call installdata,$(top_srcdir)/../ICE_LICENSE$(TEXT_EXTENSION),$(DESTDIR)$(install_slicedir)) ; \
  	fi
  
 -	@if test ! -f $(DESTDIR)$(install_docdir)/LICENSE$(TEXT_EXTENSION) ; \
 +	@if test ! -f $(DESTDIR)$(install_slicedir)/LICENSE$(TEXT_EXTENSION) ; \
  	then \
--	    $(call installdata,$(top_srcdir)/../LICENSE$(TEXT_EXTENSION),$(DESTDIR)$(install_docdir)) ; \
-+	    $(call installdata,$(top_srcdir)/../LICENSE$(TEXT_EXTENSION),$(DESTDIR)$(install_slicedir)) ; \
+-		$(call installdata,$(top_srcdir)/../LICENSE$(TEXT_EXTENSION),$(DESTDIR)$(install_docdir)) ; \
++		$(call installdata,$(top_srcdir)/../LICENSE$(TEXT_EXTENSION),$(DESTDIR)$(install_slicedir)) ; \
  	fi

Modified: head/devel/ice/files/patch-cpp-config-Make.rules
==============================================================================
--- head/devel/ice/files/patch-cpp-config-Make.rules	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/files/patch-cpp-config-Make.rules	Wed Oct 12 17:23:57 2016	(r423875)
@@ -26,12 +26,3 @@
  	endif
     endif
  endif
-@@ -381,7 +381,7 @@
- .cpp.o:
- 	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<
- 	@mkdir -p .depend
--	@$(CXX) -DMAKEDEPEND -MM $(CPPFLAGS) $< > .depend/$(*F).d
-+	@$(CXX) -DMAKEDEPEND -MM $(CPPFLAGS) $(CXXFLAGS) $< > .depend/$(*F).d
- 
- .c.o:
- 	$(CC) -c $(CPPFLAGS) $(CFLAGS) $<

Modified: head/devel/ice/files/patch-cpp-src-Glacier2CryptPermissionsVerifier-CryptPermissionsVerifierI.cpp
==============================================================================
--- head/devel/ice/files/patch-cpp-src-Glacier2CryptPermissionsVerifier-CryptPermissionsVerifierI.cpp	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/files/patch-cpp-src-Glacier2CryptPermissionsVerifier-CryptPermissionsVerifierI.cpp	Wed Oct 12 17:23:57 2016	(r423875)
@@ -1,64 +1,11 @@
---- cpp/src/Glacier2CryptPermissionsVerifier/CryptPermissionsVerifierI.cpp.orig	2015-06-23 15:30:20.000000000 +0000
-+++ cpp/src/Glacier2CryptPermissionsVerifier/CryptPermissionsVerifierI.cpp	2015-06-27 17:04:09.625743300 +0000
-@@ -17,6 +17,8 @@
- 
- #if defined(__GLIBC__)
- #   include <crypt.h>
-+#elif defined(__FreeBSD__)
-+#   include <unistd.h>
- #elif defined(__APPLE__)
- #   include <CoreFoundation/CoreFoundation.h>
- #   include <Security/Security.h>
-@@ -33,6 +35,28 @@
- namespace
- {
- 
-+#if defined(__FreeBSD__)
-+IceUtil::Mutex* _staticMutex = 0;
-+
-+class Init
-+{
-+public:
-+
-+    Init()
-+    {
-+        _staticMutex = new IceUtil::Mutex;
-+    }
-+
-+    ~Init()
-+    {
-+        delete _staticMutex;
-+        _staticMutex = 0;
-+    }
-+};
-+
-+Init init;
-+#endif
-+
- class CryptPermissionsVerifierI : public PermissionsVerifier
- {
- public:
-@@ -140,7 +164,7 @@
-     {
-         return false;
-     }
--#if defined(__GLIBC__)
-+#if defined(__GLIBC__) || defined(__FreeBSD__)
-     size_t i = p->second.rfind('$');
-     string salt;
-     if(i == string::npos)
-@@ -162,9 +186,14 @@
-             return false;
-         }
-     }
-+#   if defined(__GLIBC__)
-     struct crypt_data data;
-     data.initialized = 0;
+--- cpp/src/Glacier2CryptPermissionsVerifier/CryptPermissionsVerifierI.cpp~	2016-10-05 16:59:08.000000000 +0200
++++ cpp/src/Glacier2CryptPermissionsVerifier/CryptPermissionsVerifierI.cpp	2016-10-11 23:40:30.829983908 +0200
+@@ -200,7 +200,7 @@
      return p->second == crypt_r(password.c_str(), salt.c_str(), &data);
-+#   else
-+    IceUtilInternal::MutexPtrLock<IceUtil::Mutex> lock(_staticMutex);
+ #   else
+     IceUtilInternal::MutexPtrLock<IceUtil::Mutex> lock(_staticMutex);
+-    return p->second == crypt(password.c_str(), salt.c_str())
 +    return p->second == crypt(password.c_str(), salt.c_str());
-+#   endif
- #elif defined(__APPLE__) || defined(_WIN32)    
+ #   endif
+ #elif defined(__APPLE__) || defined(_WIN32)
      //
-     // Pbkdf2 string format:

Modified: head/devel/ice/files/patch-cpp-src-IceSSL-Makefile
==============================================================================
--- head/devel/ice/files/patch-cpp-src-IceSSL-Makefile	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/files/patch-cpp-src-IceSSL-Makefile	Wed Oct 12 17:23:57 2016	(r423875)
@@ -4,8 +4,8 @@
  CPPFLAGS		:= -I.. $(CPPFLAGS) -DICE_SSL_API_EXPORTS $(OPENSSL_FLAGS)
  SLICE2CPPFLAGS	:= --ice --include-dir IceSSL --dll-export ICE_SSL_API $(SLICE2CPPFLAGS)
  
--LINKWITH        := $(BZIP2_RPATH_LINK) -lIce -lIceUtil $(SSL_OS_LIBS) $(CXXLIBS)
-+LINKWITH        := $(BZIP2_RPATH_LINK) -lIce -lIceUtil $(OPENSSL_RPATH_LINK) $(SSL_OS_LIBS) $(CXXLIBS)
+-LINKWITH	:= $(BZIP2_RPATH_LINK) -lIce -lIceUtil $(SSL_OS_LIBS) $(CXXLIBS)
++LINKWITH	:= $(BZIP2_RPATH_LINK) -lIce -lIceUtil $(OPENSSL_RPATH_LINK) $(SSL_OS_LIBS) $(CXXLIBS)
  
  ifeq ($(STATICLIBS),yes)
  $(libdir)/$(LIBNAME): $(OBJS)

Modified: head/devel/ice/files/patch-cpp-src-IceSSL-OpenSSLEngine.cpp
==============================================================================
--- head/devel/ice/files/patch-cpp-src-IceSSL-OpenSSLEngine.cpp	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/files/patch-cpp-src-IceSSL-OpenSSLEngine.cpp	Wed Oct 12 17:23:57 2016	(r423875)
@@ -1,6 +1,51 @@
---- cpp/src/IceSSL/OpenSSLEngine.cpp.orig	2015-09-14 23:12:17.842563990 +0000
-+++ cpp/src/IceSSL/OpenSSLEngine.cpp	2015-09-14 23:13:21.929560990 +0000
-@@ -267,7 +267,9 @@
+--- cpp/src/IceSSL/OpenSSLEngine.cpp.orig	2016-10-05 16:59:08.000000000 +0200
++++ cpp/src/IceSSL/OpenSSLEngine.cpp	2016-10-12 01:59:40.150375902 +0200
+@@ -43,7 +43,7 @@
+ int instanceCount = 0;
+ bool initOpenSSL = false;
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ IceUtil::Mutex* locks = 0;
+ #endif
+ 
+@@ -62,7 +62,7 @@
+         // OpenSSL 1.1.0 introduces a new thread API and removes 
+         // the need to use a custom thread callback.
+         //
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+         CRYPTO_set_locking_callback(0);
+         CRYPTO_set_id_callback(0);
+ 
+@@ -87,7 +87,7 @@
+ // OpenSSL 1.1.0 introduces a new thread API and removes 
+ // the need to use a custom thread callback.
+ //
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ //
+ // OpenSSL mutex callback.
+ //
+@@ -158,7 +158,7 @@
+ DH*
+ IceSSL_opensslDHCallback(SSL* ssl, int /*isExport*/, int keyLength)
+ {
+-#  if OPENSSL_VERSION_NUMBER >= 0x10100000L
++#  if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+     SSL_CTX* ctx = SSL_get_SSL_CTX(ssl);
+ #  else
+     SSL_CTX* ctx = ssl->ctx;
+@@ -219,7 +219,7 @@
+             //
+             // OpenSSL 1.1.0 remove the need for library initialization and cleanup.
+             //
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+             //
+             // Create the mutexes and set the callbacks.
+             //
+@@ -292,7 +292,9 @@
              string entropyDaemon = properties->getProperty("IceSSL.EntropyDaemon");
              if(!entropyDaemon.empty())
              {
@@ -10,3 +55,30 @@
                  {
                      throw PluginInitializationException(__FILE__, __LINE__,
                                                          "IceSSL: EGD failure using file " + entropyDaemon);
+@@ -326,7 +328,7 @@
+ //
+ // OpenSSL 1.1.0 remove the need for library initialization and cleanup.
+ //
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+     //
+     // Clean up OpenSSL resources.
+     //
+@@ -399,7 +401,7 @@
+                                                     "IceSSL: unable to create SSL context:\n" + sslErrors());
+             }
+ 
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+             int securityLevel = properties->getPropertyAsIntWithDefault(propPrefix + "SecurityLevel", -1);
+             if(securityLevel != -1)
+             {
+@@ -954,7 +956,7 @@
+ SSL_METHOD*
+ OpenSSLEngine::getMethod(int /*protocols*/)
+ {
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+     SSL_METHOD* meth = const_cast<SSL_METHOD*>(TLS_method());
+ #else
+     //

Added: head/devel/ice/files/patch-cpp-src-IceSSL-Util.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/ice/files/patch-cpp-src-IceSSL-Util.cpp	Wed Oct 12 17:23:57 2016	(r423875)
@@ -0,0 +1,29 @@
+--- cpp/src/IceSSL/Util.cpp~	2016-10-05 16:59:08.000000000 +0200
++++ cpp/src/IceSSL/Util.cpp	2016-10-12 01:55:08.517427902 +0200
+@@ -110,7 +110,7 @@
+ {
+ 
+ #  ifndef OPENSSL_NO_DH
+-#    if OPENSSL_VERSION_NUMBER < 0x10100000L
++#    if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ 
+ // The following arrays are predefined Diffie Hellman group parameters.
+ // These are known strong primes, distributed with the OpenSSL library
+@@ -338,7 +338,7 @@
+ //
+ // Convert a predefined parameter set into a DH value.
+ //
+-#    if OPENSSL_VERSION_NUMBER >= 0x10100000L
++#    if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+ static DH*
+ convertDH(const unsigned char* buf, int len)
+ {
+@@ -428,7 +428,7 @@
+     // No match found. Use one of the predefined parameter sets instead.
+     //
+     IceUtil::Mutex::Lock sync(*this);
+-#    if OPENSSL_VERSION_NUMBER >= 0x10100000L
++#    if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+     if(keyLength >= 4096)
+     {
+         if(!_dh4096)

Added: head/devel/ice/files/patch-cpp-src-IceUtil-Cond.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/ice/files/patch-cpp-src-IceUtil-Cond.cpp	Wed Oct 12 17:23:57 2016	(r423875)
@@ -0,0 +1,11 @@
+--- cpp/src/IceUtil/Cond.cpp.orig	2016-10-12 00:34:17.622732906 +0200
++++ cpp/src/IceUtil/Cond.cpp	2016-10-12 00:34:40.133725906 +0200
+@@ -332,7 +332,7 @@
+         throw ThreadSyscallException(__FILE__, __LINE__, rc);
+     }
+ 
+-#if !defined(__hppa) && !defined(__APPLE__) && !defined(__FreeBSD__)
++#if !defined(__hppa) && !defined(__APPLE__)
+     rc = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); 
+     if(rc != 0)
+     {

Modified: head/devel/ice/files/patch-cpp-test-Ice-objects-Makefile
==============================================================================
--- head/devel/ice/files/patch-cpp-test-Ice-objects-Makefile	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/files/patch-cpp-test-Ice-objects-Makefile	Wed Oct 12 17:23:57 2016	(r423875)
@@ -1,17 +1,14 @@
---- cpp.orig/test/Ice/objects/Makefile.orig	2016-04-05 23:00:02.156584966 +0200
-+++ cpp/test/Ice/objects/Makefile	2016-04-05 23:44:31.611624964 +0200
-@@ -12,9 +12,9 @@
+--- cpp/test/Ice/objects/Makefile.orig	2016-10-05 16:59:08.000000000 +0200
++++ cpp/test/Ice/objects/Makefile	2016-10-11 23:05:25.082085910 +0200
+@@ -12,7 +12,7 @@
  CLIENT		= $(call mktestname,client)
  SERVER		= $(call mktestname,server)
  COLLOCATED	= $(call mktestname,collocated)
 -TESTLIBNAME	= libTestDerived.a
 +TESTLIBNAME	= libTestDerived.so
  
--TARGETS		= $(CLIENT) $(SERVER) $(COLLOCATED)
-+TARGETS		= $(CLIENT) $(SERVER) $(COLLOCATED) $(TESTLIBNAME)
+ TARGETS		= $(CLIENT) $(SERVER) $(COLLOCATED) $(TESTLIBNAME)
  
- SLICE_OBJS	= Test.o \
- 		  Derived.o \
 @@ -47,11 +47,11 @@
  
  $(TESTLIBNAME): $(SLICE_OBJS)

Modified: head/devel/ice/files/patch-cpp-test-IceGrid-deployer-AllTests.cpp
==============================================================================
--- head/devel/ice/files/patch-cpp-test-IceGrid-deployer-AllTests.cpp	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/files/patch-cpp-test-IceGrid-deployer-AllTests.cpp	Wed Oct 12 17:23:57 2016	(r423875)
@@ -1,5 +1,5 @@
---- cpp/test/IceGrid/deployer/AllTests.cpp.orig	2015-07-04 13:12:57.306420997 +0200
-+++ cpp/test/IceGrid/deployer/AllTests.cpp	2015-07-04 13:13:30.146599997 +0200
+--- cpp/test/IceGrid/deployer/AllTests.cpp.orig	2016-10-05 16:59:08.000000000 +0200
++++ cpp/test/IceGrid/deployer/AllTests.cpp	2016-10-11 23:09:05.053078910 +0200
 @@ -126,21 +126,21 @@
          //
          // Test with empty file.
@@ -48,7 +48,7 @@
          test(it->read(1024, lines) && lines.empty());
          test(it->read(1024, lines) && lines.empty());
          it->destroy();
-         
+ 
 -        it = session->openServerLog("LogServer", testDir + "/log2.txt", 1);
 +        it = session->openServerLog("LogServer", testDir + "/db/log2.txt", 1);
          test(it->read(1024, lines) && lines.size() == 1);
@@ -64,7 +64,7 @@
 @@ -195,37 +195,37 @@
          //
          // Test with log file with one line with EOL on last line.
-         // 
+         //
 -        string path = testDir + "/log3.txt";
 +        string path = testDir + "/db/log3.txt";
          ofstream os(path.c_str());
@@ -84,7 +84,7 @@
          test(it->read(1024, lines) && lines.empty());
          test(it->read(1024, lines) && lines.empty());
          it->destroy();
-         
+ 
 -        it = session->openServerLog("LogServer", testDir + "/log3.txt", 1);
 +        it = session->openServerLog("LogServer", testDir + "/db/log3.txt", 1);
          test(it->read(1024, lines) && lines.size() == 2);
@@ -131,7 +131,7 @@
          test(it->read(1024, lines) && lines.empty());
          test(it->read(1024, lines) && lines.empty());
          it->destroy();
-         
+ 
 -        it = session->openServerLog("LogServer", testDir + "/log4.txt", 1);
 +        it = session->openServerLog("LogServer", testDir + "/db/log4.txt", 1);
          test(it->read(1024, lines) && lines.size() == 2);
@@ -182,7 +182,7 @@
          test(it->read(1024, lines) && lines.size() == 2 && isLongLineEnd(lines[0]) && lines[1].empty());
          test(it->read(1024, lines) && lines.empty());
          it->destroy();
-         
+ 
 -        it = session->openServerLog("LogServer", testDir + "/log1.txt", 2);
 +        it = session->openServerLog("LogServer", testDir + "/db/log1.txt", 2);
          test(!it->read(1024, lines) && lines.size() == 1 && isLongLineStart(lines[0]));

Modified: head/devel/ice/files/patch-cpp-test-IceSSL-configuration-AllTests.cpp
==============================================================================
--- head/devel/ice/files/patch-cpp-test-IceSSL-configuration-AllTests.cpp	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/files/patch-cpp-test-IceSSL-configuration-AllTests.cpp	Wed Oct 12 17:23:57 2016	(r423875)
@@ -1,18 +1,22 @@
---- cpp/test/IceSSL/configuration/AllTests.cpp.orig	2015-06-23 15:30:20.000000000 +0000
-+++ cpp/test/IceSSL/configuration/AllTests.cpp	2015-09-15 00:15:34.865304987 +0000
-@@ -3164,6 +3184,7 @@
+--- cpp/test/IceSSL/configuration/AllTests.cpp.orig	2016-10-05 16:59:08.000000000 +0200
++++ cpp/test/IceSSL/configuration/AllTests.cpp	2016-10-12 01:57:47.897380902 +0200
+@@ -27,7 +27,7 @@
+ //
+ // With OpenSSL 1.1.0 we need to set SECLEVEL=0 to allow ADH ciphers
+ //
+-#  if OPENSSL_VERSION_NUMBER >= 0x10100000L
++#  if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+ const string anonCiphers = "ADH:@SECLEVEL=0";
+ #  else
+ const string anonCiphers = "ADH";
+@@ -3215,9 +3215,7 @@
  #endif
      }
  
+-#ifndef _AIX
+-    // On AIX 6.1, the default root certificates don't validate demo.zeroc.com
+-
 +#if 0 // we don't want to talk to zeroc while building
      cout << "testing system CAs... " << flush;
      {
          InitializationData initData;
-@@ -3208,6 +3229,7 @@
-         comm->destroy();
-     }
-     cout << "ok" << endl;
-+#endif
- 
-     if(shutdown)
-     {

Modified: head/devel/ice/files/patch-cpp-test-IceSSL-configuration-run.py
==============================================================================
--- head/devel/ice/files/patch-cpp-test-IceSSL-configuration-run.py	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/files/patch-cpp-test-IceSSL-configuration-run.py	Wed Oct 12 17:23:57 2016	(r423875)
@@ -9,15 +9,6 @@
  
  cleanup()
  atexit.register(cleanup)
-@@ -43,7 +43,7 @@
-     os.system("security create-keychain -p password %s" % keychainPath)
-     for cert in ["s_rsa_ca1.p12", "c_rsa_ca1.p12"]:
-         os.system("security import %s -f pkcs12 -A -P password -k %s" % (os.path.join(certsPath, cert), keychainPath))
--elif TestUtil.isLinux():
-+elif TestUtil.isLinux() or TestUtil.isFreeBSD():
-     #
-     # Create copies of the CA certificates named after the subject
-     # hash. This is used by the tests to find the CA certificates in
 @@ -51,6 +51,6 @@
      #
      for c in ["cacert1.pem", "cacert2.pem"]:

Added: head/devel/ice/files/patch-cpp-test-Slice-unicodePaths-run.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/ice/files/patch-cpp-test-Slice-unicodePaths-run.py	Wed Oct 12 17:23:57 2016	(r423875)
@@ -0,0 +1,11 @@
+--- cpp/test/Slice/unicodePaths/run.py.orig	2016-10-05 16:59:08.000000000 +0200
++++ cpp/test/Slice/unicodePaths/run.py	2016-10-12 12:01:29.065901876 +0200
+@@ -26,7 +26,7 @@
+         print("failed!")
+         sys.exit(1)
+ 
+-if TestUtil.isAIX() or TestUtil.isLinux():
++if TestUtil.isAIX() or TestUtil.isLinux() or TestUtil.isFreeBSD():
+     encoding = locale.getdefaultlocale()[1]
+     if encoding != "UTF-8":
+         print("Please set LC_ALL to xx_xx.UTF-8, for example FR_FR.UTF-8")

Modified: head/devel/ice/files/patch-php-config-Make.rules.php
==============================================================================
--- head/devel/ice/files/patch-php-config-Make.rules.php	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/files/patch-php-config-Make.rules.php	Wed Oct 12 17:23:57 2016	(r423875)
@@ -9,7 +9,7 @@
 -    install_libdir  	= $(prefix)/php
 -else
 -    install_phpdir  	= $(prefix)/share/php
--    install_libdir  	= $(shell php -r "echo(ini_get('extension_dir'));")
+-    install_libdir  	= $(shell $(PHP_CONFIG) --extension-dir)
 -endif
 +install_phpdir  	= $(prefix)/share/pear
 +install_libdir  	= $(prefix)/lib/php/$(PHP_EXT_DIR)

Added: head/devel/ice/files/patch-python-test-Slice-unicodePaths-run.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/ice/files/patch-python-test-Slice-unicodePaths-run.py	Wed Oct 12 17:23:57 2016	(r423875)
@@ -0,0 +1,11 @@
+--- python/test/Slice/unicodePaths/run.py.orig	2016-10-05 16:59:08.000000000 +0200
++++ python/test/Slice/unicodePaths/run.py	2016-10-12 12:00:24.045889876 +0200
+@@ -26,7 +26,7 @@
+         print("failed!")
+         sys.exit(1)
+ 
+-if TestUtil.isAIX() or TestUtil.isLinux():
++if TestUtil.isAIX() or TestUtil.isLinux() or TestUtil.isFreeBSD():
+     encoding = locale.getdefaultlocale()[1]
+     if encoding != "UTF-8":
+         print("Please set LC_ALL to xx_xx.UTF-8, for example FR_FR.UTF-8")

Modified: head/devel/ice/files/patch-scripts-TestUtil.py
==============================================================================
--- head/devel/ice/files/patch-scripts-TestUtil.py	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/files/patch-scripts-TestUtil.py	Wed Oct 12 17:23:57 2016	(r423875)
@@ -1,8 +1,8 @@
---- scripts/TestUtil.py.orig	2015-06-23 15:30:20.000000000 +0000
-+++ scripts/TestUtil.py	2015-06-27 10:59:56.354249500 +0000
-@@ -120,6 +120,25 @@
- def isSles():
-     return isLinux() and linuxDistribution and linuxDistribution == "SUSE LINUX"
+--- scripts/TestUtil.py.orig	2016-10-05 16:59:08.000000000 +0200
++++ scripts/TestUtil.py	2016-10-11 23:30:25.933993909 +0200
+@@ -145,6 +145,25 @@
+ def iceUseOpenSSL():
+     return any(sys.platform.startswith(p) for p in ["linux", "freebsd"])
  
 +def isFreeBSD():
 +    return sys.platform.startswith("freebsd")
@@ -26,7 +26,7 @@
  def getCppCompiler():
      compiler = ""
      if os.environ.get("CPP_COMPILER", "") != "":
-@@ -324,7 +324,7 @@
+@@ -340,7 +359,7 @@
          print("uname failed:\n" + p.stdout.read().strip())
          sys.exit(1)
      line = p.stdout.readline().decode('UTF-8').strip()
@@ -35,17 +35,17 @@
          x64 = True
      elif line == "armv7l":
          armv7l = True
-@@ -1887,7 +1906,7 @@
-         if lang == "java":
-             addLdPath(os.path.join(getIceDir("cpp"), "bin", "x64" if x64 else ""), env) # Add bin for db53_vc100.dll
+@@ -2013,7 +2032,7 @@
+         addLdPath(getCppLibDir(lang), env)
+     elif isAIX():
          addLdPath(getCppLibDir(lang), env)
 -    elif lang in ["python", "ruby", "php", "js", "objective-c"]:
 +    elif lang in ["cpp", "python", "ruby", "php", "js", "objective-c"]:
+         # C++ binaries use rpath $ORIGIN or similar to find the Ice libraries
          addLdPath(getCppLibDir(lang), env)
  
-     if lang == "java":
-@@ -2233,6 +2252,14 @@
-                 print("%s*** test not supported under Darwin%s" % (prefix, suffix))
+@@ -2366,6 +2385,14 @@
+                 print("%s*** test not supported under Yocto%s" % (prefix, suffix))
                  continue
  
 +            if isFreeBSD() and "nofreebsd" in config:

Modified: head/devel/ice/pkg-plist
==============================================================================
--- head/devel/ice/pkg-plist	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/ice/pkg-plist	Wed Oct 12 17:23:57 2016	(r423875)
@@ -20,6 +20,7 @@ bin/slice2html
 bin/slice2java
 bin/slice2js
 bin/slice2php
+bin/slice2py
 bin/transformdb
 include/Freeze/BackgroundSaveEvictor.h
 include/Freeze/Catalog.h
@@ -240,49 +241,49 @@ include/Slice/PythonUtil.h
 include/Slice/RubyUtil.h
 include/Slice/Util.h
 lib/libFreeze.so
-lib/libFreeze.so.3.6.2
+lib/libFreeze.so.3.6.3
 lib/libFreeze.so.36
 lib/libGlacier2.so
-lib/libGlacier2.so.3.6.2
+lib/libGlacier2.so.3.6.3
 lib/libGlacier2.so.36
 lib/libGlacier2CryptPermissionsVerifier.so
-lib/libGlacier2CryptPermissionsVerifier.so.3.6.2
+lib/libGlacier2CryptPermissionsVerifier.so.3.6.3
 lib/libGlacier2CryptPermissionsVerifier.so.36
 lib/libIce.so
-lib/libIce.so.3.6.2
+lib/libIce.so.3.6.3
 lib/libIce.so.36
 lib/libIceBox.so
-lib/libIceBox.so.3.6.2
+lib/libIceBox.so.3.6.3
 lib/libIceBox.so.36
 lib/libIceDiscovery.so
-lib/libIceDiscovery.so.3.6.2
+lib/libIceDiscovery.so.3.6.3
 lib/libIceDiscovery.so.36
 lib/libIceGrid.so
-lib/libIceGrid.so.3.6.2
+lib/libIceGrid.so.3.6.3
 lib/libIceGrid.so.36
 lib/libIceLocatorDiscovery.so
-lib/libIceLocatorDiscovery.so.3.6.2
+lib/libIceLocatorDiscovery.so.3.6.3
 lib/libIceLocatorDiscovery.so.36
 lib/libIcePatch2.so
-lib/libIcePatch2.so.3.6.2
+lib/libIcePatch2.so.3.6.3
 lib/libIcePatch2.so.36
 lib/libIceSSL.so
-lib/libIceSSL.so.3.6.2
+lib/libIceSSL.so.3.6.3
 lib/libIceSSL.so.36
 lib/libIceStorm.so
-lib/libIceStorm.so.3.6.2
+lib/libIceStorm.so.3.6.3
 lib/libIceStorm.so.36
 lib/libIceStormService.so
-lib/libIceStormService.so.3.6.2
+lib/libIceStormService.so.3.6.3
 lib/libIceStormService.so.36
 lib/libIceUtil.so
-lib/libIceUtil.so.3.6.2
+lib/libIceUtil.so.3.6.3
 lib/libIceUtil.so.36
 lib/libIceXML.so
-lib/libIceXML.so.3.6.2
+lib/libIceXML.so.3.6.3
 lib/libIceXML.so.36
 lib/libSlice.so
-lib/libSlice.so.3.6.2
+lib/libSlice.so.3.6.3
 lib/libSlice.so.36
 man/man1/dumpdb.1.gz
 man/man1/glacier2router.1.gz
@@ -306,6 +307,7 @@ man/man1/slice2html.1.gz
 man/man1/slice2java.1.gz
 man/man1/slice2js.1.gz
 man/man1/slice2php.1.gz
+man/man1/slice2py.1.gz
 man/man1/transformdb.1.gz
 %%DATADIR%%/Freeze/BackgroundSaveEvictor.ice
 %%DATADIR%%/Freeze/CatalogData.ice

Modified: head/devel/py-ice/Makefile
==============================================================================
--- head/devel/py-ice/Makefile	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/py-ice/Makefile	Wed Oct 12 17:23:57 2016	(r423875)
@@ -37,8 +37,5 @@ post-install:
 		-exec ${CHMOD} u+w {} \;
 	@${PYTHON_CMD} -m compileall -d ${PYSITEDIR}/Ice ${STAGEDIR}${PYSITEDIR}/Ice
 	@${PYTHON_CMD} -O -m compileall -d ${PYSITEDIR}/Ice ${STAGEDIR}${PYSITEDIR}/Ice
-	${INSTALL_MAN} ${WRKSRC}/man/man1/slice2py.1 ${STAGEDIR}${PREFIX}/man/man1
-	${INSTALL_SCRIPT} ${BUILD_WRKSRC}/config/s2py.py \
-		${STAGEDIR}${PREFIX}/bin/slice2py
 
 .include "${MASTERDIR}/Makefile"

Modified: head/devel/py-ice/pkg-plist
==============================================================================
--- head/devel/py-ice/pkg-plist	Wed Oct 12 16:47:13 2016	(r423874)
+++ head/devel/py-ice/pkg-plist	Wed Oct 12 17:23:57 2016	(r423875)
@@ -206,5 +206,3 @@
 %%PYTHON_SITELIBDIR%%/Ice/Ice_ServantLocator_ice.py
 %%PYTHON_SITELIBDIR%%/Ice/Ice_SliceChecksumDict_ice.py
 %%PYTHON_SITELIBDIR%%/Ice/Ice_Version_ice.py
-bin/slice2py
-man/man1/slice2py.1.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610121723.u9CHNvxu092510>