nixpkgs/pkgs/development
Bjørn Forsman 3227c1d215 ncurses: fix includedir setting
${out} in configureFlags isn't expanded, so ncursesw5-config ends up
expanding ${out} at *runtime*. Here is the relevant ncursesw5-config
snippet showing how includedir gets its value at runtime.

  bindir="${exec_prefix}/bin"
  includedir="${out}/include"
  libdir="${exec_prefix}/lib"
  datadir="${prefix}/share"
  mandir="${prefix}/man"

When running in a plain shell you get this:
  $ ncursesw5-config --cflags
  -I/include/ncursesw -I/include

And when run in a nix-build shell for e.g. gpsd:
  $ ncursesw5-config --cflags
  -I/nix/store/HASH-gpsd-3.10/include/ncursesw -I/nix/store/HASH-gpsd-3.10/include

This is clearly wrong.

Q: How come this has gone undetected for years?
A: It seems few packages use ncursesw5-config to get the compiler
flags. For example, our python curses module builds its own compiler
flags.

Fix this by moving the --includedir setting to preConfigure where shell
variables are expanded.
2013-12-10 19:47:52 +01:00
..
arduino ino: update to 0.3.6 2013-11-26 23:55:31 +01:00
compilers Merge remote-tracking branch 'origin/master' into stdenv-updates. 2013-12-10 00:25:54 +01:00
eclipse unmaintain several packages 2013-08-16 23:45:01 +02:00
guile-modules guile_ncurses: fix build 2013-11-29 02:41:28 +00:00
interpreters Merge remote-tracking branch 'origin/master' into stdenv-updates. 2013-12-04 18:33:52 +01:00
libraries ncurses: fix includedir setting 2013-12-10 19:47:52 +01:00
lisp-modules Merge remote-tracking branch 'origin/master' into stdenv-updates. 2013-12-04 18:33:52 +01:00
misc Some description fixes 2013-10-05 19:36:23 +02:00
mobile Revert android build tools update 2013-12-02 21:41:40 -05:00
ocaml-modules added OCaml package ocamlsdl 2013-12-05 16:20:32 +01:00
perl-modules Fix some meta.platforms attributes to build more stuff on Darwin 2013-11-05 10:46:59 +01:00
python-modules pyopenssl: update from 0.13 to 0.13.1, potentially fixes CVE-2013-4314 2013-12-04 05:26:34 +02:00
qtcreator qtcreator: Make the qt package optional and introduce the QtSDK 2013-10-21 09:36:45 +02:00
r-modules/generic Wrapped R's package system similarly to perlPackages 2013-09-28 13:19:43 +02:00
ruby-modules Add patch to fix GET Bucket requests to fake-s3 2013-09-04 16:42:20 -04:00
tools Merge remote-tracking branch 'origin/master' into stdenv-updates. 2013-12-10 00:25:54 +01:00
web fix build-node-package 2013-11-26 10:18:42 -05:00