maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #05831
Re: How to not install tests or examples
-
To:
Vladislav Vaintroub <vvaintroub@xxxxxxxxx>, "maria-discuss@xxxxxxxxxxxxxxxxxxx" <maria-discuss@xxxxxxxxxxxxxxxxxxx>
-
From:
"Chris Ross (cross2)" <cross2@xxxxxxxxx>
-
Date:
Sat, 27 Jun 2020 03:39:03 +0000
-
Accept-language:
en-US
-
Arc-authentication-results:
i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gRuR1GA/ubAe6zbCAiC63o2Gq9zn3uUQv8UCb8DBsT4=; b=LEKQD1irtxudo6PEEvhXDh5WbboJAVjOHhbjrdHx5ZtuaVDAqQ7Gu94XAOGMj0HFAlvi8ayqxwklFOyMX1dZy22OeBBXe72bI53kjhhbqiIMeeJg1r4P3n8tw2j89wk0eQz3YjTMT2s61Qd2PLxmlfAhSkTAROn1wBHCCtVOPapLAllqUtD7hSh8ZQ7TCpDtQUk37J5t6Ru1Rl6hXtyoVoUyHw1Qm9N3BiEwdiqKDu5hFM0dqCGRLuDs1M7dChXFt29nhlMyxrwKrOxg/V/cNm/JyRxQvYQH5lrz44KBPgJu4TbHq+nvlH5m2WT80pAtx3cWK4LfUbQv1VH0VdtfZw==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mJXjR81PANhuspprQGCT7iKW7RDp2HoxPMWS+xzGnhUkpSSiBIubzV05h4u8Psme0Wob1g/cS4XyPZFNtbIi2P613b51vVTHHyhJ6O3qFDG2wSij8PPDnx5p4CxD5jiRRL+zjwoMnlDtgj8RFFWLuY9cseKDhfW1tfYv8TjEgZWVqFsWsFtdsh7WQBX+MQS5egQXKTkd3pObuhAPsyBGITDxetzk4XuX1Toa9xdd1rY0xhpRD+DW2XuRRxbdtAZifi/9x1go3wi4Z0ZUrwJM4Kpu7xeZWHJi14TfrP6JZ7o4eDVk1O5mf/UdaOfcV+Ah2c1p/sDYHGt9JojnZ9AB0Q==
-
Authentication-results:
gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=cisco.com;
-
In-reply-to:
<6127D8C8-548A-4EA6-9260-C46A4EAFBBEB@hxcore.ol>
-
Ironport-phdr:
9a23:oGrX0RTsxuul9kXkLLSFMc+Nf9psv++ubAcI9poqja5Pea2//pPkeVbS/uhpkESQBNmJ5PdNiu6QuKflCiQM4peE5XYFdpEEFxoIkt4fkAFoBsmZQVb6I/jnY21ffoxCWVZp8mv9PR1TH8DzNFLXq3y2qzUVH0a3OQ98PO+gHInUgoy+3Pyz/JuGZQJOiXK9bLp+IQ/wox/Ws5wdgJBpLeA6zR6arw==
-
Thread-index:
AQHWS/Al/FZeWLC/pECbzo1NDddtzajrdW2AgAAYpYA=
-
Thread-topic:
[Maria-discuss] How to not install tests or examples
-
User-agent:
Microsoft-MacOutlook/16.38.20061401
Thanks. Yeah, -DWITH_EMBEDDED_SERVER=OFF is definitely something I wanted, thank you. And, -DWITH_UNIT_TEST I should have off too, except that I’ve been simultaneously testing the functionality of the build, and also working on the packaging system for my appliance. Trying to do incompatible things. Thanks, now I see that I should work on those separately.
I’ll take a look at CPackZIPConfig.cmake too, to see if that helps. I have a spec file already, for an RPM we’re building from it, so it’s likely the same kind of magic.
- Chris
From: Vladislav Vaintroub <vvaintroub@xxxxxxxxx>
Date: Friday, June 26, 2020 at 18:11
To: "Chris Ross (cross2)" <cross2@xxxxxxxxx>, "maria-discuss@xxxxxxxxxxxxxxxxxxx" <maria-discuss@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Maria-discuss] How to not install tests or examples
Note, if you do not build something, you won’t install it either.
To avoid building unit tests for example, there is -DWITH_UNIT_TESTS=0 (I think it perhaps should be even default, the unit tests run rather rare, mostly on CI)
If you want to exclude embedded -DWITH_EMBEDDED_SERVER=0. Cuts build time and disk space requirements in half.
For an example of customization of component list at package time, take a look into win/packaging/CPackZIPConfig.cmake
This excludes some components from Windows ZIP , even if the binaries were built.
At the build time, there is special win_package target (defined in win/packaging/CMakeLists.txt), which runs cpack –config CPackZipConfig.cmake
From: Chris Ross (cross2)<mailto:cross2@xxxxxxxxx>
Sent: Friday, 26 June 2020 21:30
To: maria-discuss@xxxxxxxxxxxxxxxxxxx<mailto:maria-discuss@xxxxxxxxxxxxxxxxxxx>
Subject: [Maria-discuss] How to not install tests or examples
I am building MariaDB 10.4.13 for a Linux appliance. I do want both the server and client libraries, but I do not want many other things, including the examples and tests that seem to be getting built and installed.
I am configuring as follows:
cmake -DBUILD_CONFIG=mysql_release -DCMAKE_BUILD_TYPE=Debug -DAWS_SDK_EXTERNAL_PROJECT=OFF -DCMAKE_INSTALL_PREFIX:PATH=/base/usr -DWITH_JEMALLOC=OFF -DWITH_PCRE=auto -DWITH_SSL=system -DWITH_ZLIB=system -DWITH_WSREP=OFF -DPLUGIN_WSREP_INFO=NO -DPLUGIN_BLACKHOLE=NO -DPLUGIN_MROONGA=NO -DMRN_GROONGA_EMBED=OFF -DPLUGIN_TOKUDB=NO -DPLUGIN_ROCKSDB=NO)
But as an example of things I want to avoid, the mysql*_embedded binaries in libmysqld/examples get built, and then installed. Looking through the Cmake files, I can see references to CMAKE_INSTALL_COMPONENT of “Test”, and others, but I don’t know how to specify to cmake which components I do and don’t want to install. Can someone help me here?
- Chris
References