about summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks
Commit message (Collapse)AuthorAge
* fix win-dll-link.sh setup hook (#20925)Tomas Hlavaty2016-12-07
| | | | if a dll is symlink then dll files from the symlinked directory need to be taken
* stdenv moveToOutput: move even broken symlinksVladimír Čunát2016-11-26
| | | | | | | | I believe this reduces surprises and is actually simpler semantically. This is important e.g. for relative symlinks when moving both source and target - now the order of moving won't matter. Fixes #20723 (a particular instance of the surprise).
* outputDocdev -> outputDevdocEelco Dolstra2016-09-20
| | | | For consistency with the devdoc output.
* Don't nuke section 3 manpages by defaultEelco Dolstra2016-09-20
| | | | | | They now go to devman, devdoc, or $outputMan, in that order. This is to prevent cases such as the man-pages package quietly losing its section 3 pages.
* docdev -> devdocEelco Dolstra2016-09-01
| | | | | It's "developer documentation", not "documentation developer" after all.
* stdenv/multiple-outputs.sh: Change output propagation logicTuomas Tynkkynen2016-08-29
| | | | Because 'dev' will most often not be the default output after my changes.
* patchShebangs: quote variable assignmentNikolay Amiantov2016-07-09
|
* patchShebangs: strip trailing whitespaceCireo2016-07-09
| | | | | | | | | | | | | | | | | | | | Prior to this commit, trailing whitespace would be introduced when modifying '#!' lines with no arguments. For example (whitespace added): /nix/store/.../foo: interpreter directive changed from "/bin/bash" to "/nix/store/...-bash-4.3-p42/bin/bash " /nix/store/.../bar: interpreter directive changed from "/bin/baz wef" to "/nix/store/...-baz wef " We add a sed command to strip trailing whitespace, so the above commands would drop the two spaces after "bash", or the one space after "baz wef". abbradar: fixed commit title Closes #16785.
* make-wrapper: fixup #14753 changes to make tests workVladimír Čunát2016-06-19
| | | | | | | The tests need to expand passed variable and very carefully. I could see no other easy way than to change single-quoting in makeWrapper to double-quoting. The tests now fail with the same problem as on master...
* Merge #14753: makeWrapper: allow spaces in variablesVladimír Čunát2016-06-09
|\
| * makeWrapper: allow special characters in variable contentsMarius Bakke2016-04-16
| |
* | setup-hooks: do not pass missing dirs to find (close #15405)Guillaume Maudoux2016-05-22
| | | | | | | | | | | | find fails when called with an inexistent search path. That situation may arise when the output is created after by a postFixup hook. vcunat amended the PR by clarifying one more `return` to `return 0`.
* | Merge branch 'master' to resolve conflictsVladimír Čunát2016-05-05
|\ \
| * | Remove obsolete scatter output hookMaxim Ivanov2016-04-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are no users of it in main tree and recent merge of multiple outputs branch makes it obsolete for private trees too. At the time hook was created, recently merged multiple output branch was relying on passing flags to autotools to split outputs, which obviously wasn't working for other build systems Scatter output was taking different approach where files were moved out from a build tree based on known paths, which is more or less what current multiple-outputs.sh hook is able to do too.
* | | stdenv for windows: auto-link dependency DLLsVladimír Čunát2016-04-23
|/ / | | | | | | | | | | | | | | | | | | For every *.{exe,dll} in $output/bin/ we try to find all (potential) transitive dependencies and symlink those DLLs into $output/bin so they are found on invocation. (DLLs are first searched in the directory of the running exe file.) The links are relative, so relocating whole /nix/store won't break them. The hook is activated on cygwin and when cross-compiling to mingw.
* | stdenv multiple-outputs: fix cross-build propagationVladimír Čunát2016-04-20
| | | | | | | | | | Fixes #14817. The outputs weren't propagated correctly when cross-building.
* | stdenv multiple-outputs: fix #14782 --docdir locationVladimír Čunát2016-04-20
|/ | | | | | - the default --docdir is typically DATAROOTDIR/doc/pkgName - I saw no other way than to employ some magic to guess this `pkgName` - user can override it by setting $shareDocName
* Merge branch 'master' into closure-sizeVladimír Čunát2016-04-10
|\ | | | | | | | | | | Comparison to master evaluations on Hydra: - 1255515 for nixos - 1255502 for nixpkgs
| * useOldCXXAbi: Change into a setup hookEelco Dolstra2016-04-01
| | | | | | | | Stdenv adapters considered weird.
* | Merge branch 'master' into closure-sizeVladimír Čunát2016-04-01
|\| | | | | | | | | Beware that stdenv doesn't build. It seems something more will be needed than just resolution of merge conflicts.
| * Merge remote-tracking branch 'origin/staging'Domen Kožar2016-03-27
| |\
| | * Merge remote-tracking branch 'origin/binutils-2.26' into stagingEelco Dolstra2016-03-11
| | |\ | | | | | | | | | | | | | | | | | | | | This still breaks a few packages, but nothing really major: http://hydra.nixos.org/eval/1241850?filter=x86_64-linux&compare=1237919&full=#tabs-now-fail
| | | * glibc: Enable separate debug symbolsEelco Dolstra2016-02-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The importance of glibc makes it worthwhile to provide debug symbols. However, this revealed an issue with separateDebugInfo: it was indiscriminately adding --build-id to all ld invocations, while in fact it should only do that for final links. Glibc also uses non-final ("relocatable") links, leading to subsequent failure to apply a build ID ("Cannot create .note.gnu.build-id section, --build-id ignored"). So now ld-wrapper.sh only passes --build-id for final links.
| | | * separateDebugInfo: Compress debug sections at compile/link timeEelco Dolstra2016-02-28
| | | |
| | * | make-wrapper.sh: add an --unset argumentzimbatm2016-03-06
| | |/ | | | | | | | | | | | | `--set FOO ""` is not strictly equivalent to `--unset FOO`. In the former case the environment variable still exists with an empty string as a value.
| * / wrap-gapps-hook.sh: fix double inclusion guardPeter Simons2016-03-18
| |/ | | | | | | | | The simple "return" would not override the non-zero error code set by the preceding test command, therefore aborting scripts running with "set -e".
* | Merge master into closure-sizeVladimír Čunát2016-03-08
|\| | | | | | | | | The kde-5 stuff still didn't merge well. I hand-fixed what I saw, but there may be more problems.
| * Don't try to apply patchelf to non-ELF binariesEelco Dolstra2016-02-18
| |
| * separateDebugInfo: Handle weird filenames properlyEelco Dolstra2016-02-18
| |
| * separateDebugInfo: Restore ELF checkEelco Dolstra2016-02-18
| |
* | Merge recent 'staging' into closure-sizeVladimír Čunát2016-02-03
|\| | | | | | | Let's get rid of those merge conflicts.
| * stdenv: fix set-source-date-epoch-to-latest (close #12602)zimbatm2016-01-29
| | | | | | | | | | | | | | | | | | | | | | In some cases the $sourceRoot is missing. Skip the hook instead of showing the following cryptic error: find: cannot search `': No such file or directory /nix/store/0p1afvl8jcpi6dvsq2n58i90w9c59vz1-set-source-date-epoch-to-latest.sh: line 12: [: : integer expression expected vcunat removed the warning; the hook will just skip silently in these cases. Perhaps someone can improve on it some time.
* | Merge branch 'staging' into closure-sizeVladimír Čunát2016-01-19
|\|
| * Merge branch 'master' into stagingVladimír Čunát2016-01-18
| |\
| | * separateDebugInfo: Create symlinks matching original binariesEelco Dolstra2016-01-15
| | | | | | | | | | | | | | | | | | | | | | | | For instance, a binary like libfoo.so will cause a symlink lib/debug/libfoo.so.debug -> .build-id/<build-ID>.debug to be created. This is primarily useful for use with eu-addr2line, if you know the name of a binary and the relative address, but not the build ID.
| * | set-source-date-epoch-to-latest.sh: Support DarwinEelco Dolstra2016-01-06
| | |
| * | Set SOURCE_DATE_EPOCH to latest source fileEelco Dolstra2016-01-05
| |/ | | | | | | | | This provides a timestamp that's more useful than 1970-01-01 yet still deterministic.
* | stdenv/multiple-outputs.sh: small tweaksVladimír Čunát2016-01-12
| | | | | | | | | | | | - fix in silencing some moveToOutput messages - allow removing (developer) documentation even without defining outputs (note: some paths are auto-removed by default, e.g. gtk-doc and man3)
* | Merge branch 'master' into closure-sizeLuca Bruno2015-12-11
|\|
| * Fix patchShebangs on SmartOSDanny Wilson2015-11-16
| | | | | | | | Tail is very picky about the space after -c when compiled by Nix on Illumos (no idea why).
* | rename moveToOutput and propagatedBuildInputsLuca Bruno2015-12-02
| |
* | Merge staging into closure-sizeVladimír Čunát2015-11-20
|\| | | | | | | | | | | The most complex problems were from dealing with switches reverted in the meantime (gcc5, gmp6, ncurses6). It's likely that darwin is (still) broken nontrivially.
| * wrapGAppsHook: fix $gappsWrapperArgs as intendedVladimír Čunát2015-11-09
| | | | | | | | i.e. define it even if $dontWrapGApps is set, and document the intention.
| * wrapGAppsHook: avoid running multiple timesVladimír Čunát2015-11-09
| | | | | | | | /cc #10351 and @lethalman.
* | stdenv/multiple-outputs: add REMOVE target, use for docdevVladimír Čunát2015-10-28
| | | | | | | | | | | | Now any developer docs are removed by default, unless "docdev" is in $outputs or $outputDocdev is defined. Currently devdoc consists of just man3 and gtk-doc.
* | stdenv/multiple-outputs: autoremove empty directoriesVladimír Čunát2015-10-28
| | | | | | | | i.e. remove chains of empty dirs after moving contents out of them.
* | stdenv/multiple-outputs: mainly add $docdevVladimír Čunát2015-10-28
| | | | | | | | | | Packages often provide some developer documentation which is useless to typical users (e.g. man3 and gtk-doc).
* | stdenv/multiple-outputs: Fix checking of propagatedOutputsTuomas Tynkkynen2015-10-03
| | | | | | | | | | | | | | '[[ ! -v "$propagatedOutputs" ]]' is incorrect and always evaluates to true. The correct form using double brackets would be '[[ ! -v propagatedOutputs ]]', but I strongly dislike '[[ ]]' due to the totally different quoting rules compared to everything else in bash.
* | stdenv/multiple-outputs: Guard greps with 'set +/-o pipefail'Tuomas Tynkkynen2015-10-03
| | | | | | | | | | This is required since #7524 is fixed ("stdenv: Errors in hooks (such as postUnpack) get ignored")
* | Merge commit staging+systemd into closure-sizeVladimír Čunát2015-10-03
|\| | | | | | | Many non-conflict problems weren't (fully) resolved in this commit yet.