nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

waf: use wafConfigureFlags for waf flags

This avoids the potential conflict between autoconf flags and the waf
flags. There is some overlap between the two but waf errors when it
doesn’t recognize the flag.

(cherry picked from commit a79a8f29bc509b2d51158846c9562e64e1239b4c)

authored by

Matthew Bauer and committed by
Dmitry Kalinkin
c90e7a3d 05fa5932

+16 -33
+1 -1
pkgs/applications/audio/ardour/default.nix
··· 49 49 patchShebangs ./tools/ 50 50 ''; 51 51 52 - configureFlags = [ 52 + wafConfigureFlags = [ 53 53 "--optimize" 54 54 "--docs" 55 55 "--with-backends=jack,alsa,dummy"
+1 -1
pkgs/applications/audio/guitarix/default.nix
··· 28 28 zita-resampler curl 29 29 ]; 30 30 31 - configureFlags = [ 31 + wafConfigureFlags = [ 32 32 "--shared-lib" 33 33 "--no-desktop-update" 34 34 "--enable-nls"
+1 -1
pkgs/applications/misc/xiphos/default.nix
··· 37 37 export SWORD_HOME=${sword}; 38 38 ''; 39 39 40 - configureFlags= [ "--enable-webkit2" ]; 40 + wafConfigureFlags = [ "--enable-webkit2" ]; 41 41 42 42 meta = with stdenv.lib; { 43 43 description = "A GTK Bible study tool";
+1 -1
pkgs/development/libraries/audio/lvtk/default.nix
··· 19 19 sed -i '/target[ ]*= "ttl2c"/ ilib=["boost_system"],' tools/wscript_build 20 20 ''; 21 21 22 - configureFlags = [ 22 + wafConfigureFlags = [ 23 23 "--boost-includes=${boost.dev}/include" 24 24 "--boost-libs=${boost.out}/lib" 25 25 ];
+1 -1
pkgs/development/libraries/ndn-cxx/default.nix
··· 13 13 }; 14 14 nativeBuildInputs = [ pkgconfig wafHook ]; 15 15 buildInputs = [ openssl doxygen boost sqlite python pythonPackages.sphinx]; 16 - configureFlags = [ 16 + wafConfigureFlags = [ 17 17 "--with-openssl=${openssl.dev}" 18 18 "--boost-includes=${boost.dev}/include" 19 19 "--boost-libs=${boost.out}/lib"
+1 -1
pkgs/development/libraries/science/networking/ns3/default.nix
··· 63 63 patchShebangs doc/ns3_html_theme/get_version.sh 64 64 ''; 65 65 66 - configureFlags = with stdenv.lib; [ 66 + wafConfigureFlags = with stdenv.lib; [ 67 67 "--enable-modules=${stdenv.lib.concatStringsSep "," modules}" 68 68 "--with-python=${pythonEnv.interpreter}" 69 69 ]
+1 -1
pkgs/development/libraries/talloc/default.nix
··· 17 17 18 18 wafPath = "buildtools/bin/waf"; 19 19 20 - configureFlags = [ 20 + wafConfigureFlags = [ 21 21 "--enable-talloc-compat1" 22 22 "--bundled-libraries=NONE" 23 23 "--builtin-libraries=replace"
+1 -1
pkgs/development/libraries/tdb/default.nix
··· 17 17 18 18 wafPath = "buildtools/bin/waf"; 19 19 20 - configureFlags = [ 20 + wafConfigureFlags = [ 21 21 "--bundled-libraries=NONE" 22 22 "--builtin-libraries=replace" 23 23 ];
+5 -22
pkgs/development/tools/build-managers/waf/setup-hook.sh
··· 6 6 cp @waf@ "$wafPath" 7 7 fi 8 8 9 - if [[ -z "${dontAddPrefix:-}" && -n "$prefix" ]]; then 10 - configureFlags="${prefixKey:---prefix=}$prefix $configureFlags" 9 + if [ -z "${dontAddPrefix:-}" ] && [ -n "$prefix" ]; then 10 + wafConfigureFlags="${prefixKey:---prefix=}$prefix $wafConfigureFlags" 11 11 fi 12 12 13 - local flagsArray=(@crossFlags@); 14 - for flag in $configureFlags "${configureFlagsArray[@]}"; 15 - do 16 - if [[ 17 - # waf does not support these flags, but they are "blindly" added by the 18 - # pkgsStatic overlay, for example. 19 - $flag != "--enable-static" 20 - && $flag != "--disable-static" 21 - && $flag != "--enable-shared" 22 - && $flag != "--disable-shared" 23 - # these flags are added by configurePlatforms but waf just uses them 24 - # to bail out in cross compilation cases 25 - && $flag != --build=* 26 - && $flag != --host=* 27 - ]]; 28 - then 29 - flagsArray=("${flagsArray[@]}" "$flag"); 30 - fi; 31 - done 32 - flagsArray=( 13 + local flagsArray=( 14 + @crossFlags@ 33 15 "${flagsArray[@]}" 16 + $wafConfigureFlags "${wafConfigureFlagsArray[@]}" 34 17 ${configureTargets:-configure} 35 18 ) 36 19 echoCmd 'configure flags' "${flagsArray[@]}"
+1 -1
pkgs/misc/emulators/wxmupen64plus/default.nix
··· 17 17 export CXXFLAGS="-I${libX11.dev}/include/X11 -DLIBDIR=\\\"${mupen64plus}/lib/\\\"" 18 18 export LDFLAGS="-lwx_gtk2u_adv-2.9" 19 19 20 - configureFlagsArray+=("--mupenapi=$APIDIR" "--wxconfig=`type -P wx-config`") 20 + wafConfigureFlagsArray+=("--mupenapi=$APIDIR" "--wxconfig=`type -P wx-config`") 21 21 ''; 22 22 23 23 NIX_CFLAGS_COMPILE = "-fpermissive";
+1 -1
pkgs/misc/jackaudio/default.nix
··· 56 56 export NIX_CFLAGS_COMPILE="-F${CoreFoundation}/Library/Frameworks $NIX_CFLAGS_COMPILE" 57 57 ''; 58 58 59 - configureFlags = [ 59 + wafConfigureFlags = [ 60 60 "--classic" 61 61 "--autostart=${if (optDbus != null) then "dbus" else "classic"}" 62 62 ] ++ optional (optDbus != null) "--dbus"
+1 -1
pkgs/tools/graphics/glmark2/default.nix
··· 17 17 libjpeg libpng xorg.libxcb libX11 libGL libdrm python27 wayland udev mesa_noglu 18 18 ]; 19 19 20 - configureFlags = ["--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2"]; 20 + wafConfigureFlags = ["--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2"]; 21 21 22 22 meta = with stdenv.lib; { 23 23 description = "OpenGL (ES) 2.0 benchmark";