Skip to content

Commit ffa94cf

Browse files
committed
FAQ: Hunter and system package managers
1 parent 878318a commit ffa94cf

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

Diff for: docs/creating-new/cmake-dependencies.rst

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ directory instead of standard one:
1414
hunter_add_package(Foo)
1515
find_package(Foo)
1616
17+
.. _dependencies conflict:
18+
1719
Conflict
1820
========
1921

Diff for: docs/faq.rst

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
44
FAQ
55
---
6+
7+
.. toctree::
8+
:glob:
9+
:maxdepth: 1
10+
11+
/faq/*

Diff for: docs/faq/interaction-with-other-package-managers.rst

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.. Copyright (c) 2016, Ruslan Baratov
2+
.. All rights reserved.
3+
4+
How does Hunter interact with other package managers?
5+
=====================================================
6+
7+
Mixing package managers in general is a bad idea (see for example
8+
`Macports and Homebrew <http://superuser.com/q/181337/252568>`__). Such approach
9+
may lead to :ref:`conflicts <dependencies conflict>`, violates
10+
:doc:`automatic downloads principle </overview/automatic>` and make impossible
11+
the usage of central server with binaries because information about dependency
12+
will not be saved. Also it does break reproducibility feature of Hunter since
13+
version of system package may differs for different OSes, e.g. default version
14+
of Boost on ``Ubuntu 14.04`` is ``1.54.0`` and for ``Ubuntu 16.04``
15+
it's ``1.58.0``.
16+
17+
Note that Hunter can install packages in the same way as regular package
18+
managers do: you can set all build types to ``Release``, ``BUILD_SHARED_LIBS=ON``
19+
and upload binaries to public. So the question
20+
``How to make Hunter interact with system libraries?`` should really be
21+
``How to improve Hunter so it behaves like system package manager?``, e.g.
22+
add new packages that are currently missing.
23+
24+
.. seealso::
25+
26+
* `Feature requests: use system packages <https://github.com/ruslo/hunter/issues/501>`__

0 commit comments

Comments
 (0)