From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 60BA227D0D for ; Tue, 26 Feb 2019 07:11:40 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AFk4Q-HEDs04 for ; Tue, 26 Feb 2019 07:11:40 -0500 (EST) Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id E3D25227BD for ; Tue, 26 Feb 2019 07:11:39 -0500 (EST) From: Vladislav Shpilevoy Subject: [tarantool-patches] [PATCH v2 0/4] Move 'core' lib to src/lib Date: Tue, 26 Feb 2019 15:11:32 +0300 Message-Id: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org Cc: kostja@tarantool.org The commit messages comprehensively describe the intention of this patchset, so I will not copypaste it here. Just one sentence: it is needed for SWIM, since SWIM depends in src/, being itself placed in src/lib/ - it is illegal. Branch: http://github.com/tarantool/tarantool/tree/gerold103/relocate-core-lib v1: https://www.freelists.org/post/tarantool-patches/PATCH-02-Move-core-lib-to-srclib Changes in v2: - Extracted http_parser and collations into separate libraries. Vladislav Shpilevoy (4): Remove dead dependency of http_parser on httpc Move 'http_parser' to src/lib Move 'core' and 'uuid' libs to src/lib Extract 'coll' library from 'core' CMakeLists.txt | 1 + src/CMakeLists.txt | 73 +++---------------------- src/box/applier.h | 2 +- src/box/coll_id.c | 2 +- src/box/coll_id_def.h | 2 +- src/box/recovery.h | 1 - src/box/replication.h | 2 +- src/box/sql/expr.c | 2 +- src/box/sql/fk_constraint.c | 2 +- src/box/sql/func.c | 2 +- src/box/sql/select.c | 2 +- src/box/sql/vdbeaux.c | 2 +- src/box/sql/where.c | 2 +- src/box/sql/whereexpr.c | 2 +- src/box/tuple.c | 1 - src/box/tuple.h | 2 +- src/box/tuple_compare.cc | 2 +- src/box/tuple_hash.cc | 2 +- src/box/xlog.h | 2 +- src/box/xrow.h | 2 +- src/lib/CMakeLists.txt | 4 ++ src/lib/coll/CMakeLists.txt | 2 + src/{ => lib/coll}/coll.c | 0 src/{ => lib/coll}/coll.h | 0 src/{ => lib/coll}/coll_def.c | 0 src/{ => lib/coll}/coll_def.h | 0 src/lib/core/CMakeLists.txt | 46 ++++++++++++++++ src/{ => lib/core}/assoc.c | 0 src/{ => lib/core}/assoc.h | 0 src/{ => lib/core}/backtrace.cc | 0 src/{ => lib/core}/backtrace.h | 0 src/{ => lib/core}/cbus.c | 0 src/{ => lib/core}/cbus.h | 0 src/{ => lib/core}/clock.c | 0 src/{ => lib/core}/clock.h | 0 src/{ => lib/core}/coio.cc | 0 src/{ => lib/core}/coio.h | 0 src/{ => lib/core}/coio_buf.cc | 0 src/{ => lib/core}/coio_buf.h | 0 src/{ => lib/core}/coio_file.c | 0 src/{ => lib/core}/coio_file.h | 0 src/{ => lib/core}/coio_task.c | 0 src/{ => lib/core}/coio_task.h | 0 src/{ => lib/core}/diag.c | 0 src/{ => lib/core}/diag.h | 0 src/{ => lib/core}/errinj.c | 0 src/{ => lib/core}/errinj.h | 0 src/{ => lib/core}/evio.c | 0 src/{ => lib/core}/evio.h | 0 src/{ => lib/core}/exception.cc | 0 src/{ => lib/core}/exception.h | 0 src/{ => lib/core}/fiber.c | 0 src/{ => lib/core}/fiber.h | 0 src/{ => lib/core}/fiber_channel.c | 0 src/{ => lib/core}/fiber_channel.h | 0 src/{ => lib/core}/fiber_cond.c | 0 src/{ => lib/core}/fiber_cond.h | 0 src/{ => lib/core}/fiber_pool.c | 0 src/{ => lib/core}/fiber_pool.h | 0 src/{ => lib/core}/fio.c | 0 src/{ => lib/core}/fio.h | 0 src/{ => lib/core}/latch.c | 0 src/{ => lib/core}/latch.h | 0 src/{ => lib/core}/memory.c | 0 src/{ => lib/core}/memory.h | 0 src/{ => lib/core}/mpstream.c | 0 src/{ => lib/core}/mpstream.h | 0 src/{ => lib/core}/port.c | 0 src/{ => lib/core}/port.h | 0 src/{ => lib/core}/random.c | 0 src/{ => lib/core}/random.h | 0 src/{ => lib/core}/ratelimit.h | 0 src/{ => lib/core}/reflection.c | 0 src/{ => lib/core}/reflection.h | 0 src/{ => lib/core}/say.c | 0 src/{ => lib/core}/say.h | 0 src/{ => lib/core}/sio.c | 0 src/{ => lib/core}/sio.h | 0 src/{ => lib/core}/trigger.cc | 0 src/{ => lib/core}/trigger.h | 0 src/{ => lib/core}/util.c | 0 src/lib/http_parser/CMakeLists.txt | 1 + src/{ => lib/http_parser}/http_parser.c | 1 - src/{ => lib/http_parser}/http_parser.h | 0 src/lib/uuid/CMakeLists.txt | 2 + src/{ => lib/uuid}/tt_uuid.c | 0 src/{ => lib/uuid}/tt_uuid.h | 0 src/lua/httpc.c | 4 +- src/lua/utf8.c | 2 +- src/main.cc | 3 +- test/unit/CMakeLists.txt | 6 +- test/unit/coll.cpp | 4 +- test/unit/uuid.c | 2 +- test/unit/vy_iterators_helper.c | 2 +- test/unit/xrow.cc | 2 +- 95 files changed, 92 insertions(+), 97 deletions(-) create mode 100644 src/lib/coll/CMakeLists.txt rename src/{ => lib/coll}/coll.c (100%) rename src/{ => lib/coll}/coll.h (100%) rename src/{ => lib/coll}/coll_def.c (100%) rename src/{ => lib/coll}/coll_def.h (100%) create mode 100644 src/lib/core/CMakeLists.txt rename src/{ => lib/core}/assoc.c (100%) rename src/{ => lib/core}/assoc.h (100%) rename src/{ => lib/core}/backtrace.cc (100%) rename src/{ => lib/core}/backtrace.h (100%) rename src/{ => lib/core}/cbus.c (100%) rename src/{ => lib/core}/cbus.h (100%) rename src/{ => lib/core}/clock.c (100%) rename src/{ => lib/core}/clock.h (100%) rename src/{ => lib/core}/coio.cc (100%) rename src/{ => lib/core}/coio.h (100%) rename src/{ => lib/core}/coio_buf.cc (100%) rename src/{ => lib/core}/coio_buf.h (100%) rename src/{ => lib/core}/coio_file.c (100%) rename src/{ => lib/core}/coio_file.h (100%) rename src/{ => lib/core}/coio_task.c (100%) rename src/{ => lib/core}/coio_task.h (100%) rename src/{ => lib/core}/diag.c (100%) rename src/{ => lib/core}/diag.h (100%) rename src/{ => lib/core}/errinj.c (100%) rename src/{ => lib/core}/errinj.h (100%) rename src/{ => lib/core}/evio.c (100%) rename src/{ => lib/core}/evio.h (100%) rename src/{ => lib/core}/exception.cc (100%) rename src/{ => lib/core}/exception.h (100%) rename src/{ => lib/core}/fiber.c (100%) rename src/{ => lib/core}/fiber.h (100%) rename src/{ => lib/core}/fiber_channel.c (100%) rename src/{ => lib/core}/fiber_channel.h (100%) rename src/{ => lib/core}/fiber_cond.c (100%) rename src/{ => lib/core}/fiber_cond.h (100%) rename src/{ => lib/core}/fiber_pool.c (100%) rename src/{ => lib/core}/fiber_pool.h (100%) rename src/{ => lib/core}/fio.c (100%) rename src/{ => lib/core}/fio.h (100%) rename src/{ => lib/core}/latch.c (100%) rename src/{ => lib/core}/latch.h (100%) rename src/{ => lib/core}/memory.c (100%) rename src/{ => lib/core}/memory.h (100%) rename src/{ => lib/core}/mpstream.c (100%) rename src/{ => lib/core}/mpstream.h (100%) rename src/{ => lib/core}/port.c (100%) rename src/{ => lib/core}/port.h (100%) rename src/{ => lib/core}/random.c (100%) rename src/{ => lib/core}/random.h (100%) rename src/{ => lib/core}/ratelimit.h (100%) rename src/{ => lib/core}/reflection.c (100%) rename src/{ => lib/core}/reflection.h (100%) rename src/{ => lib/core}/say.c (100%) rename src/{ => lib/core}/say.h (100%) rename src/{ => lib/core}/sio.c (100%) rename src/{ => lib/core}/sio.h (100%) rename src/{ => lib/core}/trigger.cc (100%) rename src/{ => lib/core}/trigger.h (100%) rename src/{ => lib/core}/util.c (100%) create mode 100644 src/lib/http_parser/CMakeLists.txt rename src/{ => lib/http_parser}/http_parser.c (99%) rename src/{ => lib/http_parser}/http_parser.h (100%) create mode 100644 src/lib/uuid/CMakeLists.txt rename src/{ => lib/uuid}/tt_uuid.c (100%) rename src/{ => lib/uuid}/tt_uuid.h (100%) -- 2.17.2 (Apple Git-113)