[MacPorts] #47197: cmake-based ports: Switch to cmake 1.1 portgroup
MacPorts
noreply at macports.org
Sat Jul 6 06:59:41 UTC 2019
#47197: cmake-based ports: Switch to cmake 1.1 portgroup
-------------------------------------------------+-------------------------
Reporter: mojca | Owner: macports-
| tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: Cockatrice Io PlasmaClient |
PlasmaShop TOra Vidalia allegro alps assimp2 |
autopano-sift-c cgal chemkit chipmunk choqok |
clucene clucene-devel coinor-liblemon |
collada-dom dolfin ebook-tools efte emergent |
ettercap fann freecell-solver generatorrunner |
graphite2 indi indi_maxdomeii json_spirit |
libhsplasma liblas libmsn libmusicbrainz3 |
libpcl libtuxcap metis mysql55-connector-cpp |
newmat nifticlib oce ogre openal-soft |
openbabel orocos-kdl orocos-rtt osgswig-devel |
parmetis pgrouting piklab playerstage-player |
playerstage-stage portmidi py-dynd qfsm |
qlandkartegt-garmindev qore-qt4-module |
rabbitmq-c rspamd scalapack seqan-apps sfcgal |
soci streamlog synergy toluapp vtk5 vxl |
-------------------------------------------------+-------------------------
Comment (by yan12125):
In [changeset:"8b7d032eacddc1d81ded2f26331109a29ed81efe/macports-ports"
8b7d032eacddc1d81ded2f26331109a29ed81efe/macports-ports] (master):
{{{
#!ConfigurableCommitTicketReference repository="macports-ports"
revision="8b7d032eacddc1d81ded2f26331109a29ed81efe"
percona: update to 8.0.15-6
* RocksDB does not build. Some relevant discussions:
https://jira.percona.com/browse/PS-2285
https://jira.percona.com/browse/PS-4116
I tried a few patching tricks. With this patch:
--- storage/rocksdb/CMakeLists.txt.orig 2019-06-22 02:42:18.000000000
+0800
+++ storage/rocksdb/CMakeLists.txt 2019-06-22 02:42:08.000000000
+0800
@@ -103,6 +103,8 @@
IF(HAVE_FALLOCATE AND HAVE_LINUX_FALLOC_H)
ADD_DEFINITIONS(-DROCKSDB_FALLOCATE_PRESENT)
ENDIF()
+ elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
+ add_definitions(-DOS_MACOSX)
ENDIF()
ENDIF()
@@ -184,7 +186,7 @@
${ROCKSDB_LIB_SOURCES}
)
-SET(rocksdb_static_libs ${rocksdb_static_libs} ${ZLIB_LIBRARY} regex
"-lrt")
+SET(rocksdb_static_libs ${rocksdb_static_libs} ${ZLIB_LIBRARY} regex)
MYSQL_ADD_PLUGIN(rocksdb ${ROCKSDB_SOURCES} STORAGE_ENGINE DEFAULT
MODULE_ONLY
LINK_LIBRARIES ${rocksdb_static_libs}
--- storage/rocksdb/rdb_buff.h
+++ storage/rocksdb/rdb_buff.h
@@ -30,6 +30,16 @@
#include <string>
#include <vector>
+#if __APPLE__
+#include <libkern/OSByteOrder.h>
+#define htobe64(x) OSSwapHostToBigInt64(x)
+#define be64toh(x) OSSwapBigToHostInt64(x)
+#define htobe32(x) OSSwapHostToBigInt32(x)
+#define be32toh(x) OSSwapBigToHostInt32(x)
+#define htobe16(x) OSSwapHostToBigInt16(x)
+#define be16toh(x) OSSwapBigToHostInt16(x)
+#endif
+
namespace myrocks {
/*
RocksDB still fails when building ha_rocksdb.cc. A MariaDB commit [1]
seems related, but it does not apply on top of this Percona version.
* Many tricks in Portfile are borrowed from mysql8. Examples are the
boost workaround, compiler selection, legacysupport port group and
configurations about debug/non-debug variants.
* There are no more sample configuration files. There are no hard-coded
/etc/my.cnf paths found in the Percona code base, either.
* Skip running libmysql_api_test - it doesn't work as it uses absolute
paths for percona dylibs during the build.
* Switch to cmake 1.1 port group
Closes: https://trac.macports.org/ticket/55912
Closes: https://trac.macports.org/ticket/50960
See: https://trac.macports.org/ticket/47197
}}}
--
Ticket URL: <https://trac.macports.org/ticket/47197#comment:83>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list