summary refs log tree commit diff
path: root/pkgs/stdenv/generic/setup.sh
AgeCommit message (Collapse)AuthorFilesLines
2012-05-01* Add an installCheckPhase.Eelco Dolstra1-1/+16
svn path=/nixpkgs/branches/stdenv-updates/; revision=33967
2012-04-04Revert r33547Shea Levy1-1/+1
svn path=/nixpkgs/branches/stdenv-updates/; revision=33583
2012-04-04tar doesn't need -f - to read from stdinShea Levy1-1/+1
svn path=/nixpkgs/branches/stdenv-updates/; revision=33574
2012-04-04Don't do verbose unpacking, it's just log noiseShea Levy1-3/+3
svn path=/nixpkgs/branches/stdenv-updates/; revision=33573
2012-02-17Honor propagatedUserEnvPackages in setup.shShea Levy1-0/+5
svn path=/nixpkgs/branches/stdenv-updates/; revision=32369
2012-01-19* Doh.Eelco Dolstra1-1/+1
svn path=/nixpkgs/branches/stdenv-updates/; revision=31726
2012-01-19* Don't rely on tar knowing about .xz.Eelco Dolstra1-0/+4
svn path=/nixpkgs/branches/stdenv-updates/; revision=31708
2012-01-19* "test" -> "[ ... ]" (style cleanup).Eelco Dolstra1-70/+70
svn path=/nixpkgs/branches/stdenv-updates/; revision=31704
2012-01-19* Prepend the "prehook" rather than sourcing it.Eelco Dolstra1-1/+1
* Don't call xargs with the -r flag in the Darwin bootstrap. svn path=/nixpkgs/branches/stdenv-updates/; revision=31703
2012-01-19* The postHook substitution is not used anywhere, so get rid of it.Eelco Dolstra1-4/+1
svn path=/nixpkgs/branches/stdenv-updates/; revision=31702
2012-01-19* Remove an unnecessary check.Eelco Dolstra1-4/+0
svn path=/nixpkgs/branches/stdenv-updates/; revision=31701
2012-01-19* Get rid of params1-5, they're obsolete.Eelco Dolstra1-8/+3
svn path=/nixpkgs/branches/stdenv-updates/; revision=31700
2012-01-19* Don't use the "replace-literal" command in stdenv; instead useEelco Dolstra1-13/+9
bash's pattern replacement feature. "replace-literal" is an uncommon command so it was a headache during the bootstrap. svn path=/nixpkgs/branches/stdenv-updates/; revision=31681
2012-01-19* Seems that bash 3.2 on Mac OS X doesn't know the \e Eelco Dolstra1-2/+2
escape, so use \033 instead. svn path=/nixpkgs/branches/stdenv-updates/; revision=31680
2012-01-18* "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointlessEelco Dolstra1-8/+8
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2011-12-12* Remove the NIX_STRIP_DEBUG flag. It was undocumented and confusingEelco Dolstra1-7/+0
in its interaction with the ‘dontStrip’ attribute. svn path=/nixpkgs/branches/stdenv-updates/; revision=30848
2011-10-27* Only print "@ phase..." messages on demand since they're kind ofEelco Dolstra1-7/+11
ugly and we already print phases (with start and end markers). * Remove some stray tabs. svn path=/nixpkgs/branches/stdenv-updates/; revision=30059
2011-07-28Add a substituteAllInPlace() function to stdenvShea Levy1-0/+7
svn path=/nixpkgs/branches/stdenv-updates/; revision=27993
2011-03-09Improving a bit the manpage gzip code. I decided to gzip hard links and softLluís Batlle i Rossell1-3/+11
links, as nix-store --optimise can care better later. svn path=/nixpkgs/branches/stdenv-updates/; revision=26242
2011-03-09Adding a manpage gzipping stage in the fixupPhase. This should go unnoticed,Lluís Batlle i Rossell1-0/+6
but for the less disk space used. svn path=/nixpkgs/branches/stdenv-updates/; revision=26241
2011-02-25stdenv: Emit `phase-started' and `phase-succeeded' events.Ludovic Courtès1-0/+6
These markers follow the format of those of `nix-store --print-build-trace', which allows extraction of, say, phase durations in a similar way. svn path=/nixpkgs/branches/stdenv-updates/; revision=26115
2010-08-08Adding support for the /lib32 (there was /lib and /lib64 only), for the n32 ↵Lluís Batlle i Rossell1-0/+3
ABI in mips I'm making the longsoon2f system for. svn path=/nixpkgs/branches/stdenv-updates/; revision=23044
2010-06-23pkgs/stdenv/generic/setup.sh: added support for enableParallelBuilding variablePeter Simons1-0/+19
If a build expressions has set "enableParallelBuilding = true", then the generic builder may utilize more than one CPU core to build that particular expression. This feature works out of the box for GNU Make. Expressions that use other build drivers like Boost.Jam or SCons have to specify appropriate flags such as "-j${NIX_BUILD_CORES}" themselves. svn path=/nixpkgs/branches/stdenv-updates/; revision=22399
2010-06-19reverting my patch series adding -j -l support for makeMarc Weber1-23/+10
svn path=/nixpkgs/branches/stdenv-updates/; revision=22336
2010-06-16no longer pass -j to make without arg which means no limit on forks. This ↵Marc Weber1-1/+1
brought down the build farm svn path=/nixpkgs/branches/stdenv-updates/; revision=22293
2010-06-15setup.sh: add -j and -l optionsMarc Weber1-1/+11
svn path=/nixpkgs/branches/stdenv-updates/; revision=22283
2010-06-15generic/setup.sh: remove duplication: - add generic showCommand function ↵Marc Weber1-10/+13
which prints a command before running it - add runMake which is using that function passing the makefile if set make all make invokations use runMake svn path=/nixpkgs/branches/stdenv-updates/; revision=22282
2009-12-18* Add support for lzma patches.Eelco Dolstra1-0/+3
svn path=/nixpkgs/branches/stdenv-updates/; revision=19028
2009-11-23Fixing stdenv's chain of propagated-build-inputs (2nd level propagated buildLluís Batlle i Rossell1-1/+1
inputs did not get in) Updating the xorg builder script to support cross building (in fact, support for propagating the required build inputs). svn path=/nixpkgs/branches/stdenv-updates/; revision=18569
2009-11-22Big fixes in the cross build:Lluís Batlle i Rossell1-1/+8
- Before this changes, cflags and ldflags for the native and the cross compiler got mixed. Not all the gcc-wrapper/gcc-cross-wrapper variables are independant now, but enough, I think. - Fixed the generic stdenv expression, which did a big mess on buildInputs and buildNativeInputs. Now it distinguishes when there is a stdenvCross or not. Maybe we should have a single stdenv and forget about the stdenvCross adapter - this could end in a stdenv a bit complex, but simpler than the generic stdenv + adapter. - Added basic support in pkgconfig for cross-builds: a single PKG_CONFIG_PATH now works for both the cross and the native compilers, but I think this should work well for most cases I can think of. - I tried to fix the guile expression to cross-biuld; guile is built, but not its manual, so the derivation still fails. Guile requires patching to cross-build, as far as I understnad. - Made the glibcCross build to be done through the usage of a gcc-cross-wrapper over the gcc-cross-stage-static, instead of using it directly. - Trying to make physfs (a neverball dependency) cross build. - Updated the gcc expression to support building a cross compiler without getting derivation variables mixed with those of the stdenvCross. svn path=/nixpkgs/branches/stdenv-updates/; revision=18534
2009-11-20stdenv: Let GNU tar select the decompression method.Ludovic Courtès1-7/+3
svn path=/nixpkgs/branches/stdenv-updates/; revision=18492
2009-11-19Attention, people who care on the builders for native builds. In the stdenvLluís Batlle i Rossell1-15/+21
derivation, the "buildInputs" in every stdenv mkDerivation don't map now directly to the environment variable "buildInputs" in the builder, but "buildNativeInputs". So, the inputs build by the native compiler. When cross compiling, they will map to the environment variable "buildInputs" (yes, now the same name), which means does to be built with the cross compiler. I think I improved the naming of variables a bit. There was a big mess, specially in the stdenv adapter for cross building, and also in the default builder script. I also tried to add proper manager of propagatedInputBuilds, these being propagated considering the host or build origin of that input build (so, at the end, being those propagatedInputBuilds being propagated properly to the native or the cross compiler. svn path=/nixpkgs/branches/stdenv-updates/; revision=18477
2009-11-19* Add file support in the runHook function.Nicolas Pierron1-5/+6
svn path=/nixpkgs/branches/stdenv-updates/; revision=18467
2009-11-18Fixing what I broke in the last commit in setup.sh.Lluís Batlle i Rossell1-6/+7
I made the stdenvCross adapter simpler, according to Nicolas Pierron comments, and I commented it a bit. There are still jobs to do. At least: - Plan for the general renaming from buildInputs to hostInputs - We should not break merges from trunk. - Make the generic stdenv understand about host/buildInputs, at least for native builds, because it is used in the always-native building of stdenvLinux. This should allow us to remove all duplications of "*NoCross" in nixpkgs. svn path=/nixpkgs/branches/stdenv-updates/; revision=18449
2009-11-18Adding generic builder management of cross compilation: envHooksHost, ↵Lluís Batlle i Rossell1-4/+22
pkgsHost, ... svn path=/nixpkgs/branches/stdenv-updates/; revision=18446
2009-11-08Adding a check in the generic builder so it halts on the existence ofLluís Batlle i Rossell1-0/+4
/homeless-shelter svn path=/nixpkgs/branches/stdenv-updates/; revision=18302
2009-07-02* setup-new -> setup.Eelco Dolstra1-4/+4
svn path=/nixpkgs/branches/stdenv-updates/; revision=16133
2009-04-21* Pass --disable-static to configure by default it it's supported.Eelco Dolstra1-0/+7
svn path=/nixpkgs/branches/stdenv-updates/; revision=15234
2009-04-18* setup.sh: turn on nullglob globally.Eelco Dolstra1-91/+16
* setup.sh: removed some obsolete features, specifically some that were only used by the old build farm. * addToSearchPath: removed some parameters that weren't used anywhere. svn path=/nixpkgs/branches/stdenv-updates/; revision=15136
2009-03-25* gcc-wrapper: put "gcc-wrapper" in the name, e.g. "gcc-wrapper-4.3.3"Eelco Dolstra1-1/+4
instead of "gcc-4.3.3". This fixed the long-standing annoyance that you can't distinguish the two in (say) nix-store -qR. * On x86_64-linux, put $out/lib64 in the RPATH in addition to $out/lib, because some packages (in particular GCC) put libraries in $out/lib64 and ended up linking against the wrong library. * Strip $out/lib64. * Removed g77_42 because it's exactly the same as gfortran. svn path=/nixpkgs/branches/stdenv-updates/; revision=14708
2009-02-01* Allow hooks like preBuild to be set both through shell functions andEelco Dolstra1-23/+37
variables. This is so you don't have to write things like preBuild=preBuild preBuild() { bla } svn path=/nixpkgs/branches/stdenv-updates/; revision=13941
2009-01-19* Turn on Make indentation.Eelco Dolstra1-0/+4
svn path=/nixpkgs/branches/stdenv-updates/; revision=13810
2008-12-10svn path=/nixpkgs/branches/stdenv-updates/; revision=13603Eelco Dolstra1-1/+1
2008-12-10svn path=/nixpkgs/branches/stdenv-updates/; revision=13602Eelco Dolstra1-2/+2
2008-11-14* Do the right thing if $sourceRoot contains spaces. Contributed byEelco Dolstra1-2/+2
Jeevakan Suresh. svn path=/nixpkgs/branches/stdenv-updates/; revision=13287
2008-10-30* Missing space.Eelco Dolstra1-1/+1
svn path=/nixpkgs/branches/stdenv-updates/; revision=13163
2008-10-07* gcc-wrapper-new -> gcc-wrapper, setup-new -> setup.Eelco Dolstra1-90/+22
svn path=/nixpkgs/branches/stdenv-updates/; revision=12991
2008-06-11* Darwin compatibility.Eelco Dolstra1-3/+3
svn path=/nixpkgs/branches/stdenv-updates/; revision=12038
2008-06-11* Automatically patch shebang paths ("#! /interpreter") to storeEelco Dolstra1-0/+26
paths. E.g. /usr/bin/perl is rewritten to /nix/store/<whatever Perl is in $PATH>. Paths in the Nix store are left unchanged. Contributed by Nicolas Pierron. svn path=/nixpkgs/branches/stdenv-updates/; revision=12036
2008-04-23* Implement the succeedOnFailure flag by trapping EXIT. This makesEelco Dolstra1-35/+57
the fail() function unnecessary. * Flag showBuildStats to print execution times on builder exit. svn path=/nixpkgs/branches/stdenv-updates/; revision=11688