From owner-svn-ports-all@freebsd.org Mon Jan 30 22:29:25 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B1EFCC813B; Mon, 30 Jan 2017 22:29:25 +0000 (UTC) (envelope-from grembo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 45B18C25; Mon, 30 Jan 2017 22:29:25 +0000 (UTC) (envelope-from grembo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0UMTOhm002309; Mon, 30 Jan 2017 22:29:24 GMT (envelope-from grembo@FreeBSD.org) Received: (from grembo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0UMTOad002306; Mon, 30 Jan 2017 22:29:24 GMT (envelope-from grembo@FreeBSD.org) Message-Id: <201701302229.v0UMTOad002306@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: grembo set sender to grembo@FreeBSD.org using -f From: Michael Gmelin Date: Mon, 30 Jan 2017 22:29:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432888 - in head: . devel/ice devel/ice/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 22:29:25 -0000 Author: grembo Date: Mon Jan 30 22:29:23 2017 New Revision: 432888 URL: https://svnweb.freebsd.org/changeset/ports/432888 Log: Fix 64-bit platform detection for pre C++11 compilers. In version 3.6.3, Ice started detecting 64 bit platforms by checking __WORDSIZE. When using C++98/03, __STDC_LIMIT_MACROS isn't set by default and __WORDSIZE is always set to 32, even if the required headers weren't included beforehand. Until a proper fix is available in base (e.g. not setting __WORDSIZE at all if __STDC_LIMIT_MACROS isn't defined), we detect if C++11 or newer is used and only rely on __WORDSIZE in this case, otherwise we fall back to detecting the platform using other macros. PR: 216609 Reported by: jbeich Modified: head/UPDATING head/devel/ice/Makefile head/devel/ice/files/patch-cpp-include-IceUtil-Config.h Modified: head/UPDATING ============================================================================== --- head/UPDATING Mon Jan 30 22:09:49 2017 (r432887) +++ head/UPDATING Mon Jan 30 22:29:23 2017 (r432888) @@ -5,6 +5,17 @@ they are unavoidable. You should get into the habit of checking this file for changes each time you update your ports collection, before attempting any port upgrades. +20170130: + AFFECTS: users of devel/ice, devel/py-ice, devel/php5-ice + AUTHOR: grembo@FreeBSD.org + + Since __WORDSIZE as defined by always reports 32 when using + C++98/03 (unless __STDC_LIMIT_MACROS is set explictly), Ice 3.6.3 used + "long long" for Int64 instead of "long" on 64-bit platforms by mistake. + A workaround has been added in version 3.6.3_2 of these three ports, + requiring to upgrade all of them at the same time and to rebuild all + custom code that links against them. + 20170129: AFFECTS: users of multimedia/motion AUTHOR: jhale@FreeBSD.org Modified: head/devel/ice/Makefile ============================================================================== --- head/devel/ice/Makefile Mon Jan 30 22:09:49 2017 (r432887) +++ head/devel/ice/Makefile Mon Jan 30 22:29:23 2017 (r432888) @@ -3,7 +3,7 @@ PORTNAME= Ice PORTVERSION= 3.6.3 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONPREFIX= v CATEGORIES= devel Modified: head/devel/ice/files/patch-cpp-include-IceUtil-Config.h ============================================================================== --- head/devel/ice/files/patch-cpp-include-IceUtil-Config.h Mon Jan 30 22:09:49 2017 (r432887) +++ head/devel/ice/files/patch-cpp-include-IceUtil-Config.h Mon Jan 30 22:29:23 2017 (r432888) @@ -1,6 +1,24 @@ ---- cpp/include/IceUtil/Config.h.orig 2015-06-27 15:37:32.688102665 +0000 -+++ cpp/include/IceUtil/Config.h 2015-06-27 15:37:34.926179135 +0000 -@@ -49,6 +49,16 @@ +--- cpp/include/IceUtil/Config.h.orig 2016-10-05 16:59:08.000000000 +0200 ++++ cpp/include/IceUtil/Config.h 2017-01-30 22:11:08.235308977 +0100 +@@ -80,13 +80,15 @@ + // + # include + +-# if defined(__WORDSIZE) && (__WORDSIZE == 64) ++# if (__cplusplus >= 201103L) && defined(__WORDSIZE) && (__WORDSIZE == 64) + # define ICE_64 +-# elif defined(__WORDSIZE) && (__WORDSIZE == 32) ++# elif (__cplusplus >= 201103L) && defined(__WORDSIZE) && (__WORDSIZE == 32) + # define ICE_32 + # elif defined(__sun) && (defined(__sparcv9) || defined(__x86_64)) || \ + defined(__linux) && defined(__x86_64) || \ + defined(__APPLE__) && defined(__x86_64) || \ ++ defined(__FreeBSD__) && defined(__x86_64) || \ ++ defined(__FreeBSD__) && defined(__LP64__) || \ + defined(__hppa) && defined(__LP64__) || \ + defined(_ARCH_COM) && defined(__64BIT__) || \ + defined(__alpha__) || \ +@@ -98,6 +100,16 @@ #endif //