1 |
[ Background: tr1 is a set of extensions to the C++ Standard Library |
2 |
giving various useful things like hash tables and smart pointers. There |
3 |
are partial implementations included in g++-4.1 and boost and full |
4 |
implementations available from Dinkumware. It is likely that a lot of |
5 |
C++ apps will start using it in the not too distant future. ] |
6 |
|
7 |
What is the best way to handle packages that require parts of tr1? The |
8 |
options appear to be: |
9 |
|
10 |
* Hard dep upon boost. This sucks for g++-4.1 users. |
11 |
|
12 |
* Hard dep upon g++-4.1, which isn't available for all archs. This |
13 |
doesn't even work because there's no guarantee that >=4.1 is being used |
14 |
even if it's installed. |
15 |
|
16 |
* || ( ) deps, and hope that if the user has 4.1 installed then they're |
17 |
using it. Since library implementations aren't runtime switchable, this |
18 |
will lead to breakages if users upgrade gcc and then remove boost. |
19 |
|
20 |
None of these are particularly nice... |
21 |
|
22 |
-- |
23 |
Ciaran McCreesh |
24 |
Mail : ciaranm at ciaranm.org |
25 |
Web : http://ciaranm.org/ |
26 |
Paludis, the secure package manager : http://paludis.pioto.org/ |