Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616810 - =dev-util/cmake-3.8.0 unnecessarily requires dev-libs/libuv
Summary: =dev-util/cmake-3.8.0 unnecessarily requires dev-libs/libuv
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-28 07:43 UTC by Sergei Golubchik
Modified: 2017-04-28 08:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Golubchik 2017-04-28 07:43:29 UTC
starting from 3.8 dev-util/cmake requires libuv. But, in fact, cmake only needs libuv for the "server mode":

https://cmake.org/cmake/help/v3.7/manual/cmake-server.7.html

    cmake(1) is capable of providing semantic information about CMake code it executes to generate a
    buildsystem. If executed with the -E server command line options, it starts in a long running mode and
    allows a client to request the available information via a JSON protocol.

And this "server mode" is very rarely needed.

Suggested fix:

add a USE flag (e.g. "server") that will configure cmake with

    -DCMake_ENABLE_SERVER_MODE=ON -DCMAKE_USE_LIBUV=ON

withour this USE flag, values should be OFF. (CMake_ENABLE_SERVER_MODE setting is redundant, it'll be automatically set from CMAKE_USE_LIBUV, but having it makes the mode more explicit). And libuv should only be a dependency when the server mode is enabled.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-04-28 08:04:13 UTC
commit 31c96e6a0a9b9f4eb722878519810c51b1ac4087
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Fri Apr 28 10:03:02 2017

    dev-util/cmake: Put cmake-server behind a USE flag (bug #616810).

    This should also fix the bootstrapping issue reported in bug #603012.

    Package-Manager: Portage-2.3.5, Repoman-2.3.2