From owner-svn-ports-head@freebsd.org Thu Apr 7 22:23:21 2016 Return-Path: Delivered-To: svn-ports-head@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 0BF5AB08DC5; Thu, 7 Apr 2016 22:23:21 +0000 (UTC) (envelope-from dim@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 C2D9711A1; Thu, 7 Apr 2016 22:23:20 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u37MNK8k050938; Thu, 7 Apr 2016 22:23:20 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u37MNJq1050931; Thu, 7 Apr 2016 22:23:19 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201604072223.u37MNJq1050931@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Thu, 7 Apr 2016 22:23:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r412695 - in head/databases/mysql57-server: . 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-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2016 22:23:21 -0000 Author: dim (src committer) Date: Thu Apr 7 22:23:19 2016 New Revision: 412695 URL: https://svnweb.freebsd.org/changeset/ports/412695 Log: In the exp-run for bug 208158, building databases/mysql57-server resulted in errors with libc++ 3.8.0, because it declares the allocators for several std::map declarations incorrectly. Fix this by sprinkling const in the right places. Approved by: mokhi64@gmail.com (maintainer) PR: 208525 MFH: 2016Q2 Added: head/databases/mysql57-server/files/patch-sql_json__dom.h (contents, props changed) head/databases/mysql57-server/files/patch-storage_innobase_buf_buf0buf.cc (contents, props changed) head/databases/mysql57-server/files/patch-storage_innobase_dict_dict0stats.cc (contents, props changed) head/databases/mysql57-server/files/patch-storage_innobase_sync_sync0debug.cc (contents, props changed) Modified: head/databases/mysql57-server/Makefile head/databases/mysql57-server/files/patch-include_CMakeLists.txt head/databases/mysql57-server/files/patch-man_CMakeLists.txt Modified: head/databases/mysql57-server/Makefile ============================================================================== --- head/databases/mysql57-server/Makefile Thu Apr 7 20:30:11 2016 (r412694) +++ head/databases/mysql57-server/Makefile Thu Apr 7 22:23:19 2016 (r412695) @@ -3,7 +3,7 @@ PORTNAME= mysql PORTVERSION= 5.7.10 -PORTREVISION?= 3 +PORTREVISION?= 4 CATEGORIES= databases ipv6 MASTER_SITES= MYSQL/MySQL-5.7:MySQL SF/boost/boost/1.59.0:boost PKGNAMESUFFIX?= 57-server Modified: head/databases/mysql57-server/files/patch-include_CMakeLists.txt ============================================================================== --- head/databases/mysql57-server/files/patch-include_CMakeLists.txt Thu Apr 7 20:30:11 2016 (r412694) +++ head/databases/mysql57-server/files/patch-include_CMakeLists.txt Thu Apr 7 22:23:19 2016 (r412695) @@ -1,8 +1,9 @@ --- include/CMakeLists.txt.orig 2015-11-29 19:16:24 UTC +++ include/CMakeLists.txt -@@ -69,10 +69,12 @@ SET(HEADERS +@@ -68,11 +68,13 @@ SET(HEADERS + ${HEADERS_GEN_CONFIGURE} ) - + +IF(FALSE) INSTALL(FILES ../libbinlogevents/export/binary_log_types.h DESTINATION ${INSTALL_INCLUDEDIR}) INSTALL(FILES ${HEADERS} DESTINATION ${INSTALL_INCLUDEDIR} COMPONENT Development) Modified: head/databases/mysql57-server/files/patch-man_CMakeLists.txt ============================================================================== --- head/databases/mysql57-server/files/patch-man_CMakeLists.txt Thu Apr 7 20:30:11 2016 (r412694) +++ head/databases/mysql57-server/files/patch-man_CMakeLists.txt Thu Apr 7 22:23:19 2016 (r412695) @@ -1,11 +1,13 @@ --- man/CMakeLists.txt.orig 2015-11-29 19:16:24 UTC +++ man/CMakeLists.txt -@@ -15,8 +15,6 @@ +@@ -14,9 +14,7 @@ + # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Copy man pages - FILE(GLOB MAN1_FILES *.1) +-FILE(GLOB MAN1_FILES *.1) -FILE(GLOB MAN1_EXCLUDE make_win_bin_dist.1) -FILE(GLOB MAN1_NDB ndb*.1) ++FILE(GLOB MAN1_FILES my_print_defaults.1 myisam_ftdump.1 myisamchk.1 myisamlog.1 myisampack.1 mysql.server.1 mysql_convert_table_format.1 mysql_fix_extensions.1 mysql_install_db.1 mysql_plugin.1 mysql_secure_installation.1 mysql_setpermission.1 mysql_tzinfo_to_sql.1 mysql_upgrade.1 mysql_zap.1 mysqlbug.1 mysqld_multi.1 mysqld_safe.1 mysqldumpslow.1 mysqlhotcopy.1 mysqlman.1 mysqltest.1 perror.1 replace.1 resolve_stack_dump.1 resolveip.1) FILE(GLOB MAN8_FILES *.8) FILE(GLOB MAN8_NDB ndb*.8) IF(MAN1_FILES) Added: head/databases/mysql57-server/files/patch-sql_json__dom.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mysql57-server/files/patch-sql_json__dom.h Thu Apr 7 22:23:19 2016 (r412695) @@ -0,0 +1,22 @@ +--- sql/json_dom.h.orig 2015-11-29 19:16:24 UTC ++++ sql/json_dom.h +@@ -368,7 +368,7 @@ struct Json_key_comparator + Json_object class. + */ + typedef std::map > > Json_object_map; ++ Malloc_allocator > > Json_object_map; + + /** + Represents a JSON container value of type "object" (ECMA), type +--- sql/json_dom.h.orig 2015-11-29 19:16:24 UTC ++++ sql/json_dom.h +@@ -368,7 +368,7 @@ struct Json_key_comparator + Json_object class. + */ + typedef std::map > > Json_object_map; ++ Malloc_allocator > > Json_object_map; + + /** + Represents a JSON container value of type "object" (ECMA), type Added: head/databases/mysql57-server/files/patch-storage_innobase_buf_buf0buf.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mysql57-server/files/patch-storage_innobase_buf_buf0buf.cc Thu Apr 7 22:23:19 2016 (r412695) @@ -0,0 +1,22 @@ +--- storage/innobase/buf/buf0buf.cc.orig 2015-11-29 19:16:24 UTC ++++ storage/innobase/buf/buf0buf.cc +@@ -300,7 +300,7 @@ typedef std::map< + const byte*, + buf_chunk_t*, + std::less, +- ut_allocator > > ++ ut_allocator > > + buf_pool_chunk_map_t; + + static buf_pool_chunk_map_t* buf_chunk_map_reg; +--- storage/innobase/buf/buf0buf.cc.orig 2015-11-29 19:16:24 UTC ++++ storage/innobase/buf/buf0buf.cc +@@ -300,7 +300,7 @@ typedef std::map< + const byte*, + buf_chunk_t*, + std::less, +- ut_allocator > > ++ ut_allocator > > + buf_pool_chunk_map_t; + + static buf_pool_chunk_map_t* buf_chunk_map_reg; Added: head/databases/mysql57-server/files/patch-storage_innobase_dict_dict0stats.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mysql57-server/files/patch-storage_innobase_dict_dict0stats.cc Thu Apr 7 22:23:19 2016 (r412695) @@ -0,0 +1,22 @@ +--- storage/innobase/dict/dict0stats.cc.orig 2015-11-29 19:16:24 UTC ++++ storage/innobase/dict/dict0stats.cc +@@ -139,7 +139,7 @@ then we would store 5,7,10,11,12 in the + typedef std::vector > boundaries_t; + + /** Allocator type used for index_map_t. */ +-typedef ut_allocator > ++typedef ut_allocator > + index_map_t_allocator; + + /** Auxiliary map used for sorting indexes by name in dict_stats_save(). */ +--- storage/innobase/dict/dict0stats.cc.orig 2015-11-29 19:16:24 UTC ++++ storage/innobase/dict/dict0stats.cc +@@ -139,7 +139,7 @@ then we would store 5,7,10,11,12 in the + typedef std::vector > boundaries_t; + + /** Allocator type used for index_map_t. */ +-typedef ut_allocator > ++typedef ut_allocator > + index_map_t_allocator; + + /** Auxiliary map used for sorting indexes by name in dict_stats_save(). */ Added: head/databases/mysql57-server/files/patch-storage_innobase_sync_sync0debug.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mysql57-server/files/patch-storage_innobase_sync_sync0debug.cc Thu Apr 7 22:23:19 2016 (r412695) @@ -0,0 +1,22 @@ +--- storage/innobase/sync/sync0debug.cc.orig 2015-11-29 19:16:24 UTC ++++ storage/innobase/sync/sync0debug.cc +@@ -1704,7 +1704,7 @@ private: + const void*, + File, + std::less, +- ut_allocator > > ++ ut_allocator > > + Files; + + typedef OSMutex Mutex; +--- storage/innobase/sync/sync0debug.cc.orig 2015-11-29 19:16:24 UTC ++++ storage/innobase/sync/sync0debug.cc +@@ -1704,7 +1704,7 @@ private: + const void*, + File, + std::less, +- ut_allocator > > ++ ut_allocator > > + Files; + + typedef OSMutex Mutex;