boost: Kill unnecessary 'lib' output

This was split in somewhere pre-2014 without the current infra which
automates parts of this, in particular the output propagation.
This commit is contained in:
Tuomas Tynkkynen 2016-04-28 00:41:28 +03:00
parent 4ff8f377af
commit b465dc202f
29 changed files with 33 additions and 38 deletions

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
miniupnpc utillinux protobuf ] miniupnpc utillinux protobuf ]
++ optionals withGui [ qt4 qrencode ]; ++ optionals withGui [ qt4 qrencode ];
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ] configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
++ optionals withGui [ "--with-gui=qt4" ]; ++ optionals withGui [ "--with-gui=qt4" ];
meta = { meta = {

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec{
++ optionals withGui [ qt4 qrencode ]; ++ optionals withGui [ qt4 qrencode ];
configureFlags = [ configureFlags = [
"--with-boost-libdir=${boost.lib}/lib" "--with-boost-libdir=${boost.out}/lib"
"--with-libcurl-headers=${curl.dev}/include" "--with-libcurl-headers=${curl.dev}/include"
] ++ optionals withGui [ "--with-gui=qt4" ]; ] ++ optionals withGui [ "--with-gui=qt4" ];

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation rec{
++ optionals stdenv.isLinux [ utillinux ] ++ optionals stdenv.isLinux [ utillinux ]
++ optionals withGui [ qt4 qrencode ]; ++ optionals withGui [ qt4 qrencode ];
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ] configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
++ optionals withGui [ "--with-gui=qt4" ]; ++ optionals withGui [ "--with-gui=qt4" ];
meta = { meta = {

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
buildInputs = [ pkgconfig autoreconfHook glib openssl db48 yasm buildInputs = [ pkgconfig autoreconfHook glib openssl db48 yasm
boost zlib miniupnpc protobuf qt4 qrencode utillinux ]; boost zlib miniupnpc protobuf qt4 qrencode utillinux ];
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ]; configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
version = "0.12.0.55"; version = "0.12.0.55";

View File

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
''; '';
configureFlags = [ "--with-incompatible-bdb" configureFlags = [ "--with-incompatible-bdb"
"--with-boost-libdir=${boost.lib}/lib" ] "--with-boost-libdir=${boost.out}/lib" ]
++ optionals withGui [ "--with-gui" ]; ++ optionals withGui [ "--with-gui" ];
meta = { meta = {

View File

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
openssl db48 boost zlib miniupnpc glib protobuf utillinux ] openssl db48 boost zlib miniupnpc glib protobuf utillinux ]
++ optionals withGui [ qt4 qrencode ]; ++ optionals withGui [ qt4 qrencode ];
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ] configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
++ optionals withGui [ "--with-gui=qt4" ]; ++ optionals withGui [ "--with-gui=qt4" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation rec{
miniupnpc utillinux protobuf ] miniupnpc utillinux protobuf ]
++ optionals withGui [ qt4 qmake4Hook qrencode ]; ++ optionals withGui [ qt4 qmake4Hook qrencode ];
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ] configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
++ optionals withGui [ "--with-gui=qt4" ]; ++ optionals withGui [ "--with-gui=qt4" ];
preBuild = optional (!withGui) "cd src; cp makefile.unix Makefile"; preBuild = optional (!withGui) "cd src; cp makefile.unix Makefile";

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation rec{
miniupnpc utillinux protobuf ] miniupnpc utillinux protobuf ]
++ optionals withGui [ qt4 qmake4Hook qrencode ]; ++ optionals withGui [ qt4 qmake4Hook qrencode ];
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ] configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
++ optionals withGui [ "--with-gui=qt4" ]; ++ optionals withGui [ "--with-gui=qt4" ];
preBuild = optional (!withGui) "cd src; cp makefile.unix Makefile"; preBuild = optional (!withGui) "cd src; cp makefile.unix Makefile";

View File

@ -35,7 +35,7 @@ let
configureFlags = [ configureFlags = [
"--with-boost=${boost.dev}" "--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.lib}/lib" "--with-boost-libdir=${boost.out}/lib"
]; ];
buildInputs = [ buildInputs = [

View File

@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
configureFlags = [ configureFlags = [
"--with-ldap-dir=${openldap}" "--with-ldap-dir=${openldap}"
"--with-libsasl2-dir=${cyrus_sasl}" "--with-libsasl2-dir=${cyrus_sasl}"
"--with-boost-libdir=${boost.lib}/lib" "--with-boost-libdir=${boost.out}/lib"
"--disable-gconf" "--disable-gconf"
]; ];

View File

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
++ optional guiSupport dbus_libs; ++ optional guiSupport dbus_libs;
configureFlags = [ configureFlags = [
"--with-boost-libdir=${boost.lib}/lib" "--with-boost-libdir=${boost.out}/lib"
"--with-boost=${boost.dev}" "--with-boost=${boost.dev}"
(if guiSupport then "" else "--disable-gui") (if guiSupport then "" else "--disable-gui")
(if webuiSupport then "" else "--disable-webui") (if webuiSupport then "" else "--disable-webui")

View File

@ -29,7 +29,7 @@ in stdenv.mkDerivation rec {
"--disable-deprecated-functions" "--disable-deprecated-functions"
"--enable-tests" "--enable-tests"
"--enable-python-binding" "--enable-python-binding"
"--with-boost-libdir=${boost.lib}/lib" "--with-boost-libdir=${boost.out}/lib"
]; ];
buildInputs = [ buildInputs = [

View File

@ -172,7 +172,7 @@ in stdenv.mkDerivation rec {
configureFlags = [ configureFlags = [
"${if withHelp then "" else "--without-help"}" "${if withHelp then "" else "--without-help"}"
"--with-boost=${boost.dev}" "--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.lib}/lib" "--with-boost-libdir=${boost.out}/lib"
"--with-beanshell-jar=${bsh}" "--with-beanshell-jar=${bsh}"
"--with-vendor=NixOS" "--with-vendor=NixOS"
"--with-commons-logging-jar=${commonsLogging}/share/java/commons-logging-1.2.jar" "--with-commons-logging-jar=${commonsLogging}/share/java/commons-logging-1.2.jar"

View File

@ -172,7 +172,7 @@ in stdenv.mkDerivation rec {
configureFlags = [ configureFlags = [
"${if withHelp then "" else "--without-help"}" "${if withHelp then "" else "--without-help"}"
"--with-boost=${boost.dev}" "--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.lib}/lib" "--with-boost-libdir=${boost.out}/lib"
"--with-beanshell-jar=${bsh}" "--with-beanshell-jar=${bsh}"
"--with-vendor=NixOS" "--with-vendor=NixOS"
"--with-commons-logging-jar=${commonsLogging}/share/java/commons-logging-1.2.jar" "--with-commons-logging-jar=${commonsLogging}/share/java/commons-logging-1.2.jar"

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
boost glm boost glm
]; ];
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ]; configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];
NIX_CFLAGS_COMPILE = "-fpermissive " + # fix build with newer gcc versions NIX_CFLAGS_COMPILE = "-fpermissive " + # fix build with newer gcc versions
"-std=c++11"; # fix build with glm >= 0.9.6.0 "-std=c++11"; # fix build with glm >= 0.9.6.0

View File

@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
buildInputs = with stdenv.lib; buildInputs = with stdenv.lib;
[ pkgconfig intltool libX11 wxGTK fontconfig freetype mesa [ pkgconfig intltool libX11 wxGTK fontconfig freetype mesa
libass fftw ffms ffmpeg zlib icu boost boost.lib libiconv libass fftw ffms ffmpeg zlib icu boost boost.out libiconv
] ]
++ optional spellcheckSupport hunspell ++ optional spellcheckSupport hunspell
++ optional automationSupport lua ++ optional automationSupport lua

View File

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
configureFlags = [ configureFlags = [
"--enable-magic" "--enable-magic"
"--enable-optimization" "--enable-optimization"
"--with-boost-libdir=${boost.lib}/lib" "--with-boost-libdir=${boost.out}/lib"
"--disable-debug" "--disable-debug"
"--disable-profiling" "--disable-profiling"
"--disable-precompiled-headers" "--disable-precompiled-headers"

View File

@ -22,7 +22,7 @@ let
url = "https://bitbucket.org/pypy/pypy/get/${pypy-tag}.tar.bz2"; url = "https://bitbucket.org/pypy/pypy/get/${pypy-tag}.tar.bz2";
sha256 = "1cs9xqs1rmzdcnwxxkbvy064s5cbp6vvzhn2jmyzh5kg4di1r3bn"; sha256 = "1cs9xqs1rmzdcnwxxkbvy064s5cbp6vvzhn2jmyzh5kg4di1r3bn";
}; };
libs = [ libffi libedit libuv boost.dev boost.lib zlib ]; libs = [ libffi libedit libuv boost.dev boost.out zlib ];
include-path = stdenv.lib.concatStringsSep ":" include-path = stdenv.lib.concatStringsSep ":"
(map (p: "${p}/include") libs); (map (p: "${p}/include") libs);
library-path = stdenv.lib.concatStringsSep ":" library-path = stdenv.lib.concatStringsSep ":"
@ -47,7 +47,7 @@ let
patchPhase = '' patchPhase = ''
(cd pixie-src (cd pixie-src
patch -p1 < ${./load_paths.patch} patch -p1 < ${./load_paths.patch}
libraryPaths='["${libuv}" "${libedit}" "${libffi}" "${boost.dev}" "${boost.lib}" "${zlib}"]' libraryPaths='["${libuv}" "${libedit}" "${libffi}" "${boost.dev}" "${boost.out}" "${zlib}"]'
export libraryPaths export libraryPaths
substituteAllInPlace ./pixie/ffi-infer.pxi) substituteAllInPlace ./pixie/ffi-infer.pxi)
''; '';

View File

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
configurePhase = '' configurePhase = ''
python waf configure --prefix=$out \ python waf configure --prefix=$out \
--boost-includes="${boost.dev}/include" \ --boost-includes="${boost.dev}/include" \
--boost-libs="${boost.lib}/lib" --boost-libs="${boost.out}/lib"
''; '';
buildPhase = "python waf"; buildPhase = "python waf";

View File

@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
patches = [ ./blitz-gcc47.patch ./blitz-testsuite-stencil-et.patch ]; patches = [ ./blitz-gcc47.patch ./blitz-testsuite-stencil-et.patch ];
buildInputs = [ pkgconfig gfortran texinfo ] buildInputs = [ pkgconfig gfortran texinfo ]
++ optional (boost != null) [ boost.lib ]; ++ optional (boost != null) [ boost.out ];
configureFlags = configureFlags =
[ "--enable-shared" [ "--enable-shared"
@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
++ optional enablePadding "--enable-array-length-padding" ++ optional enablePadding "--enable-array-length-padding"
++ optional enableSerialization "--enable-serialization" ++ optional enableSerialization "--enable-serialization"
++ optionals (boost != null) [ "--with-boost=${boost.dev}" ++ optionals (boost != null) [ "--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.lib}/lib" ] "--with-boost-libdir=${boost.out}/lib" ]
++ optional stdenv.is64bit "--enable-64bit" ++ optional stdenv.is64bit "--enable-64bit"
; ;

View File

@ -53,7 +53,7 @@ let
genericB2Flags = [ genericB2Flags = [
"--includedir=$dev/include" "--includedir=$dev/include"
"--libdir=$lib/lib" "--libdir=$out/lib"
"-j$NIX_BUILD_CORES" "-j$NIX_BUILD_CORES"
"--layout=${layout}" "--layout=${layout}"
"variant=${variant}" "variant=${variant}"
@ -90,10 +90,6 @@ let
# Let boost install everything else # Let boost install everything else
./b2 ${b2Args} install ./b2 ${b2Args} install
# Create a derivation which encompasses everything, making buildInputs nicer
mkdir -p $out/nix-support
echo "$dev $lib" > $out/nix-support/propagated-native-build-inputs
''; '';
commonConfigureFlags = [ commonConfigureFlags = [
@ -127,10 +123,9 @@ stdenv.mkDerivation {
}; };
preConfigure = '' preConfigure = ''
NIX_LDFLAGS="$(echo $NIX_LDFLAGS | sed "s,$out,$lib,g")"
if test -f tools/build/src/tools/clang-darwin.jam ; then if test -f tools/build/src/tools/clang-darwin.jam ; then
substituteInPlace tools/build/src/tools/clang-darwin.jam \ substituteInPlace tools/build/src/tools/clang-darwin.jam \
--replace '@rpath/$(<[1]:D=)' "$lib/lib/\$(<[1]:D=)"; --replace '@rpath/$(<[1]:D=)' "$out/lib/\$(<[1]:D=)";
fi; fi;
'' + optionalString (mpi != null) '' '' + optionalString (mpi != null) ''
cat << EOF > user-config.jam cat << EOF > user-config.jam
@ -158,7 +153,7 @@ stdenv.mkDerivation {
postFixup = fixup; postFixup = fixup;
outputs = [ "out" "dev" "lib" ]; outputs = [ "dev" "out" ];
setOutputFlags = false; setOutputFlags = false;
crossAttrs = rec { crossAttrs = rec {

View File

@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
patchShebangs build patchShebangs build
''; '';
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ]; configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
"--with-libgeoip=system" "--with-libgeoip=system"
"--with-libiconv=yes" "--with-libiconv=yes"
"--with-boost=${boost.dev}" "--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.lib}/lib" "--with-boost-libdir=${boost.out}/lib"
"--with-libiconv=yes" "--with-libiconv=yes"
]; ];

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation {
./waf configure \ ./waf configure \
--with-cryptopp=${cryptopp} \ --with-cryptopp=${cryptopp} \
--boost-includes=${boost.dev}/include \ --boost-includes=${boost.dev}/include \
--boost-libs=${boost.lib}/lib \ --boost-libs=${boost.out}/lib \
--with-examples \ --with-examples \
--prefix=$out --prefix=$out
''; '';

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
patchShebangs ./scons patchShebangs ./scons
./scons openssl=${openssl} \ ./scons openssl=${openssl} \
boost_includedir=${boost.dev}/include \ boost_includedir=${boost.dev}/include \
boost_libdir=${boost.lib}/lib \ boost_libdir=${boost.out}/lib \
boost_bundled_enable=false \ boost_bundled_enable=false \
SWIFTEN_INSTALLDIR=$out $out SWIFTEN_INSTALLDIR=$out $out
''; '';

View File

@ -1866,7 +1866,7 @@ let
RVowpalWabbit = old.RVowpalWabbit.overrideDerivation (attrs: { RVowpalWabbit = old.RVowpalWabbit.overrideDerivation (attrs: {
configureFlags = [ configureFlags = [
"--with-boost=${pkgs.boost.dev}" "--with-boost-libdir=${pkgs.boost.lib}/lib" "--with-boost=${pkgs.boost.dev}" "--with-boost-libdir=${pkgs.boost.out}/lib"
]; ];
}); });

View File

@ -267,7 +267,7 @@ stdenv.mkDerivation {
# Fix .la file link dependencies # Fix .la file link dependencies
find "$lib/lib" -name \*.la | xargs sed -i \ find "$lib/lib" -name \*.la | xargs sed -i \
-e 's,-lboost_[a-z]*,-L${boost.lib}/lib \0,g' \ -e 's,-lboost_[a-z]*,-L${boost.out}/lib \0,g' \
'' + optionalString (cryptoStr == "cryptopp") '' '' + optionalString (cryptoStr == "cryptopp") ''
-e 's,-lcryptopp,-L${optCryptopp}/lib \0,g' \ -e 's,-lcryptopp,-L${optCryptopp}/lib \0,g' \
'' + optionalString (cryptoStr == "nss") '' '' + optionalString (cryptoStr == "nss") ''

View File

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
export ANT_HOME=${ant} export ANT_HOME=${ant}
export BOOST_INCLUDEDIR=${boost.dev}/include export BOOST_INCLUDEDIR=${boost.dev}/include
export BOOST_LIBRARYDIR=${boost.lib}/lib export BOOST_LIBRARYDIR=${boost.out}/lib
export OPENSSL_ROOT_DIR=${openssl} export OPENSSL_ROOT_DIR=${openssl}
substituteInPlace cpp/cmake/FindValgrind.cmake \ substituteInPlace cpp/cmake/FindValgrind.cmake \

View File

@ -14,7 +14,7 @@ stdenv.mkDerivation {
buildInputs = [ boost ]; buildInputs = [ boost ];
configureFlags = [ "--with-boost=${boost.lib}" ]; configureFlags = [ "--with-boost=${boost.out}" ];
enableParallelBuilding = false; enableParallelBuilding = false;