git.iko.soy/typeable/nixpkgs
on master help sign in
glibc: comments on bin not being the first output

The glibc package does not respect a standard convention to put the executables in the first output which should be as clear as possible to anyone seeking to use such executables (e.g. `ldd`). This commit adds a detailed comment a the top of `common.nix` explaining the deviation from the convention and how to reference the binaries.

commite4afe8fc6c19ca62baa6e7c2c1bb64d7b09f3440 authorIlya Kolpakov <ilya.kolpakov@gmail.com> dateMon 6 Nov 2017, 16:47 (9 years ago) parentda3658f
1 file changed+17−1
pkgs/development/libraries/glibc/common.nix+17−1
pkgs/development/libraries/glibc/common.nix+17−1
@@ -1,5 +1,21 @@
11/* Build configuration used to build glibc, Info files, and locale
2− information. */
2+ information.
3+
4+ Note that this derivation has multiple outputs and does not respect the
5+ standard convention of putting the executables into the first output. The
6+ first output is `lib` so that the libraries provided by this derivation
7+ can be accessed directly, e.g.
8+
9+ "${pkgs.glibc}/lib/ld-linux-x86_64.so.2"
10+
11+ The executables are put into `bin` output and need to be referenced via
12+ the `bin` attribute of the main package, e.g.
13+
14+ "${pkgs.glibc.bin}/bin/ldd".
15+
16+ The executables provided by glibc typically include `ldd`, `locale`, `iconv`
17+ but the exact set depends on the library version and the configuration.
18+*/
319
420{ stdenv, lib
521, buildPlatform, hostPlatform