lol

Merge pull request #185972 from Artturin/gccstrictdeps

gcc/: correct gnused conditionals

authored by

Artturi and committed by
GitHub
9adf0c20 51422b18

+44 -40
+4 -4
pkgs/development/compilers/gcc/10/default.nix
··· 33 assert libelf != null -> zlib != null; 34 35 # Make sure we get GNU sed. 36 - assert stdenv.hostPlatform.isDarwin -> gnused != null; 37 38 # The go frontend is written in c++ 39 assert langGo -> langCC; ··· 159 nativeBuildInputs = [ texinfo which gettext ] 160 ++ (optional (perl != null) perl) 161 ++ (optional langAda gnatboot) 162 ; 163 164 # For building runtime libs ··· 177 targetPackages.stdenv.cc.bintools # For linking code at run-time 178 ] ++ (optional (isl != null) isl) 179 ++ (optional (zlib != null) zlib) 180 - # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 181 - # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 182 - ++ (optional hostPlatform.isDarwin gnused) 183 ; 184 185 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
··· 33 assert libelf != null -> zlib != null; 34 35 # Make sure we get GNU sed. 36 + assert stdenv.buildPlatform.isDarwin -> gnused != null; 37 38 # The go frontend is written in c++ 39 assert langGo -> langCC; ··· 159 nativeBuildInputs = [ texinfo which gettext ] 160 ++ (optional (perl != null) perl) 161 ++ (optional langAda gnatboot) 162 + # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 163 + # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 164 + ++ (optional buildPlatform.isDarwin gnused) 165 ; 166 167 # For building runtime libs ··· 180 targetPackages.stdenv.cc.bintools # For linking code at run-time 181 ] ++ (optional (isl != null) isl) 182 ++ (optional (zlib != null) zlib) 183 ; 184 185 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+4 -4
pkgs/development/compilers/gcc/11/default.nix
··· 33 assert libelf != null -> zlib != null; 34 35 # Make sure we get GNU sed. 36 - assert stdenv.hostPlatform.isDarwin -> gnused != null; 37 38 # The go frontend is written in c++ 39 assert langGo -> langCC; ··· 167 nativeBuildInputs = [ texinfo which gettext ] 168 ++ (optional (perl != null) perl) 169 ++ (optional langAda gnatboot) 170 ; 171 172 # For building runtime libs ··· 185 targetPackages.stdenv.cc.bintools # For linking code at run-time 186 ] ++ (optional (isl != null) isl) 187 ++ (optional (zlib != null) zlib) 188 - # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 189 - # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 190 - ++ (optional hostPlatform.isDarwin gnused) 191 ; 192 193 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
··· 33 assert libelf != null -> zlib != null; 34 35 # Make sure we get GNU sed. 36 + assert stdenv.buildPlatform.isDarwin -> gnused != null; 37 38 # The go frontend is written in c++ 39 assert langGo -> langCC; ··· 167 nativeBuildInputs = [ texinfo which gettext ] 168 ++ (optional (perl != null) perl) 169 ++ (optional langAda gnatboot) 170 + # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 171 + # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 172 + ++ (optional buildPlatform.isDarwin gnused) 173 ; 174 175 # For building runtime libs ··· 188 targetPackages.stdenv.cc.bintools # For linking code at run-time 189 ] ++ (optional (isl != null) isl) 190 ++ (optional (zlib != null) zlib) 191 ; 192 193 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+4 -4
pkgs/development/compilers/gcc/12/default.nix
··· 33 assert libelf != null -> zlib != null; 34 35 # Make sure we get GNU sed. 36 - assert stdenv.hostPlatform.isDarwin -> gnused != null; 37 38 # The go frontend is written in c++ 39 assert langGo -> langCC; ··· 162 nativeBuildInputs = [ texinfo which gettext ] 163 ++ (optional (perl != null) perl) 164 ++ (optional langAda gnatboot) 165 ; 166 167 # For building runtime libs ··· 180 targetPackages.stdenv.cc.bintools # For linking code at run-time 181 ] ++ (optional (isl != null) isl) 182 ++ (optional (zlib != null) zlib) 183 - # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 184 - # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 185 - ++ (optional hostPlatform.isDarwin gnused) 186 ; 187 188 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
··· 33 assert libelf != null -> zlib != null; 34 35 # Make sure we get GNU sed. 36 + assert stdenv.buildPlatform.isDarwin -> gnused != null; 37 38 # The go frontend is written in c++ 39 assert langGo -> langCC; ··· 162 nativeBuildInputs = [ texinfo which gettext ] 163 ++ (optional (perl != null) perl) 164 ++ (optional langAda gnatboot) 165 + # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 166 + # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 167 + ++ (optional buildPlatform.isDarwin gnused) 168 ; 169 170 # For building runtime libs ··· 183 targetPackages.stdenv.cc.bintools # For linking code at run-time 184 ] ++ (optional (isl != null) isl) 185 ++ (optional (zlib != null) zlib) 186 ; 187 188 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+6 -5
pkgs/development/compilers/gcc/4.8/default.nix
··· 43 assert libelf != null -> zlib != null; 44 45 # Make sure we get GNU sed. 46 - assert stdenv.hostPlatform.isDarwin -> gnused != null; 47 48 # The go frontend is written in c++ 49 assert langGo -> langCC; ··· 165 depsBuildBuild = [ buildPackages.stdenv.cc ]; 166 nativeBuildInputs = [ texinfo which gettext ] 167 ++ (optional (perl != null) perl) 168 - ++ (optional javaAwtGtk pkg-config); 169 170 # For building runtime libs 171 depsBuildTarget = ··· 186 ++ (optional (zlib != null) zlib) 187 ++ (optionals langJava [ boehmgc zip unzip ]) 188 ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs)) 189 - # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 190 - # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 191 - ++ (optional hostPlatform.isDarwin gnused) 192 ; 193 194 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
··· 43 assert libelf != null -> zlib != null; 44 45 # Make sure we get GNU sed. 46 + assert stdenv.buildPlatform.isDarwin -> gnused != null; 47 48 # The go frontend is written in c++ 49 assert langGo -> langCC; ··· 165 depsBuildBuild = [ buildPackages.stdenv.cc ]; 166 nativeBuildInputs = [ texinfo which gettext ] 167 ++ (optional (perl != null) perl) 168 + ++ (optional javaAwtGtk pkg-config) 169 + # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 170 + # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 171 + ++ (optional buildPlatform.isDarwin gnused) 172 + ; 173 174 # For building runtime libs 175 depsBuildTarget = ··· 190 ++ (optional (zlib != null) zlib) 191 ++ (optionals langJava [ boehmgc zip unzip ]) 192 ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs)) 193 ; 194 195 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+6 -5
pkgs/development/compilers/gcc/4.9/default.nix
··· 43 assert libelf != null -> zlib != null; 44 45 # Make sure we get GNU sed. 46 - assert stdenv.hostPlatform.isDarwin -> gnused != null; 47 48 # The go frontend is written in c++ 49 assert langGo -> langCC; ··· 185 depsBuildBuild = [ buildPackages.stdenv.cc ]; 186 nativeBuildInputs = [ texinfo which gettext ] 187 ++ (optional (perl != null) perl) 188 - ++ (optional javaAwtGtk pkg-config); 189 190 # For building runtime libs 191 depsBuildTarget = ··· 206 ++ (optional (zlib != null) zlib) 207 ++ (optionals langJava [ boehmgc zip unzip ]) 208 ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs)) 209 - # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 210 - # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 211 - ++ (optional hostPlatform.isDarwin gnused) 212 ; 213 214 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
··· 43 assert libelf != null -> zlib != null; 44 45 # Make sure we get GNU sed. 46 + assert stdenv.buildPlatform.isDarwin -> gnused != null; 47 48 # The go frontend is written in c++ 49 assert langGo -> langCC; ··· 185 depsBuildBuild = [ buildPackages.stdenv.cc ]; 186 nativeBuildInputs = [ texinfo which gettext ] 187 ++ (optional (perl != null) perl) 188 + ++ (optional javaAwtGtk pkg-config) 189 + # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 190 + # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 191 + ++ (optional buildPlatform.isDarwin gnused) 192 + ; 193 194 # For building runtime libs 195 depsBuildTarget = ··· 210 ++ (optional (zlib != null) zlib) 211 ++ (optionals langJava [ boehmgc zip unzip ]) 212 ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs)) 213 ; 214 215 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+4 -4
pkgs/development/compilers/gcc/6/default.nix
··· 44 assert libelf != null -> zlib != null; 45 46 # Make sure we get GNU sed. 47 - assert stdenv.hostPlatform.isDarwin -> gnused != null; 48 49 # The go frontend is written in c++ 50 assert langGo -> langCC; ··· 196 ++ (optional javaAwtGtk pkg-config) 197 ++ (optional (with stdenv.targetPlatform; isVc4 || isRedox) flex) 198 ++ (optional langAda gnatboot) 199 ; 200 201 # For building runtime libs ··· 216 ++ (optional (zlib != null) zlib) 217 ++ (optionals langJava [ boehmgc zip unzip ]) 218 ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs)) 219 - # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 220 - # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 221 - ++ (optional hostPlatform.isDarwin gnused) 222 ; 223 224 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
··· 44 assert libelf != null -> zlib != null; 45 46 # Make sure we get GNU sed. 47 + assert stdenv.buildPlatform.isDarwin -> gnused != null; 48 49 # The go frontend is written in c++ 50 assert langGo -> langCC; ··· 196 ++ (optional javaAwtGtk pkg-config) 197 ++ (optional (with stdenv.targetPlatform; isVc4 || isRedox) flex) 198 ++ (optional langAda gnatboot) 199 + # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 200 + # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 201 + ++ (optional buildPlatform.isDarwin gnused) 202 ; 203 204 # For building runtime libs ··· 219 ++ (optional (zlib != null) zlib) 220 ++ (optionals langJava [ boehmgc zip unzip ]) 221 ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs)) 222 ; 223 224 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+6 -5
pkgs/development/compilers/gcc/7/default.nix
··· 30 assert libelf != null -> zlib != null; 31 32 # Make sure we get GNU sed. 33 - assert stdenv.hostPlatform.isDarwin -> gnused != null; 34 35 # The go frontend is written in c++ 36 assert langGo -> langCC; ··· 164 165 depsBuildBuild = [ buildPackages.stdenv.cc ]; 166 nativeBuildInputs = [ texinfo which gettext ] 167 - ++ (optional (perl != null) perl); 168 169 # For building runtime libs 170 depsBuildTarget = ··· 182 targetPackages.stdenv.cc.bintools # For linking code at run-time 183 ] ++ (optional (isl != null) isl) 184 ++ (optional (zlib != null) zlib) 185 - # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 186 - # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 187 - ++ (optional hostPlatform.isDarwin gnused) 188 ; 189 190 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
··· 30 assert libelf != null -> zlib != null; 31 32 # Make sure we get GNU sed. 33 + assert stdenv.buildPlatform.isDarwin -> gnused != null; 34 35 # The go frontend is written in c++ 36 assert langGo -> langCC; ··· 164 165 depsBuildBuild = [ buildPackages.stdenv.cc ]; 166 nativeBuildInputs = [ texinfo which gettext ] 167 + ++ (optional (perl != null) perl) 168 + # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 169 + # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 170 + ++ (optional buildPlatform.isDarwin gnused) 171 + ; 172 173 # For building runtime libs 174 depsBuildTarget = ··· 186 targetPackages.stdenv.cc.bintools # For linking code at run-time 187 ] ++ (optional (isl != null) isl) 188 ++ (optional (zlib != null) zlib) 189 ; 190 191 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+6 -5
pkgs/development/compilers/gcc/8/default.nix
··· 30 assert libelf != null -> zlib != null; 31 32 # Make sure we get GNU sed. 33 - assert stdenv.hostPlatform.isDarwin -> gnused != null; 34 35 # The go frontend is written in c++ 36 assert langGo -> langCC; ··· 148 149 depsBuildBuild = [ buildPackages.stdenv.cc ]; 150 nativeBuildInputs = [ texinfo which gettext ] 151 - ++ (optional (perl != null) perl); 152 153 # For building runtime libs 154 depsBuildTarget = ··· 166 targetPackages.stdenv.cc.bintools # For linking code at run-time 167 ] ++ (optional (isl != null) isl) 168 ++ (optional (zlib != null) zlib) 169 - # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 170 - # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 171 - ++ (optional hostPlatform.isDarwin gnused) 172 ; 173 174 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
··· 30 assert libelf != null -> zlib != null; 31 32 # Make sure we get GNU sed. 33 + assert stdenv.buildPlatform.isDarwin -> gnused != null; 34 35 # The go frontend is written in c++ 36 assert langGo -> langCC; ··· 148 149 depsBuildBuild = [ buildPackages.stdenv.cc ]; 150 nativeBuildInputs = [ texinfo which gettext ] 151 + ++ (optional (perl != null) perl) 152 + # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 153 + # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 154 + ++ (optional buildPlatform.isDarwin gnused) 155 + ; 156 157 # For building runtime libs 158 depsBuildTarget = ··· 170 targetPackages.stdenv.cc.bintools # For linking code at run-time 171 ] ++ (optional (isl != null) isl) 172 ++ (optional (zlib != null) zlib) 173 ; 174 175 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
+4 -4
pkgs/development/compilers/gcc/9/default.nix
··· 38 assert libelf != null -> zlib != null; 39 40 # Make sure we get GNU sed. 41 - assert stdenv.hostPlatform.isDarwin -> gnused != null; 42 43 # The go frontend is written in c++ 44 assert langGo -> langCC; ··· 161 nativeBuildInputs = [ texinfo which gettext ] 162 ++ (optional (perl != null) perl) 163 ++ (optional langAda gnatboot) 164 ; 165 166 # For building runtime libs ··· 179 targetPackages.stdenv.cc.bintools # For linking code at run-time 180 ] ++ (optional (isl != null) isl) 181 ++ (optional (zlib != null) zlib) 182 - # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 183 - # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 184 - ++ (optional hostPlatform.isDarwin gnused) 185 ; 186 187 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;
··· 38 assert libelf != null -> zlib != null; 39 40 # Make sure we get GNU sed. 41 + assert stdenv.buildPlatform.isDarwin -> gnused != null; 42 43 # The go frontend is written in c++ 44 assert langGo -> langCC; ··· 161 nativeBuildInputs = [ texinfo which gettext ] 162 ++ (optional (perl != null) perl) 163 ++ (optional langAda gnatboot) 164 + # The builder relies on GNU sed (for instance, Darwin's `sed' fails with 165 + # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. 166 + ++ (optional buildPlatform.isDarwin gnused) 167 ; 168 169 # For building runtime libs ··· 182 targetPackages.stdenv.cc.bintools # For linking code at run-time 183 ] ++ (optional (isl != null) isl) 184 ++ (optional (zlib != null) zlib) 185 ; 186 187 depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;