summary refs log tree commit diff
path: root/pkgs/build-support
Commit message (Collapse)AuthorAge
* Fix emacs wrapper expression to honor bash array useMichael Alan Dorman2017-08-04
| | | | | | | | | | | | In 8d76eff, @Ericson2314 changed the representation of the value that `findInputs` generated from a whitespace-separated bunch strings to an actual array of strings. Expressions that *consume* that value, however, also needed to be changed to iterate over all the contents of the array, else they would only select the first value, which turns out to be somewhat limiting. Fixes #27873
* Merge PR #27536John Ericson2017-08-03
|\
| * cc-wrapper: Don't hardcode MacOS min version for delegatesJohn Ericson2017-08-03
| |
| * cc-wrapper: Handle more -l.... gotchasJohn Ericson2017-08-03
| |
| * cc-wrapper: Make sure symbol tables of child delegators is not emptyJohn Ericson2017-07-31
| | | | | | | | | | | | | | | | As described in https://github.com/NixOS/nixpkgs/issues/18461, MacOS no longer accepts dylibs which only reexport other dylibs, because their symbol tables are empty. To get around this, we define an object file with a single "private extern" symbol, which hopefully won't clobber anything.
| * cc-wrapper: Use two scripts instead of patchJohn Ericson2017-07-31
| |
| * cc-wrapper: WIP linking hack for mac OSJohn Ericson2017-07-31
| | | | | | | | | | Probably best to override Haskell packages set, or anything else linking a lot of libraries, with this.
* | dockerTools: fix image json and manifestMathias Schreck2017-08-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The image json is not exactly the same as the layer json, therefore I changed the implementation to use the `baseJson` which doesn’t include layer specific details like `id`, `size` or the checksum of the layer. Also the `history` entry was missing in the image json. I’m not totally sure if this field is required, but a I got an error from a docker registry when I’ve tried to receive the distribution manifest of an image without those `history` entry: GET: `http://<registry-host>/v2/<imageName>/manifests/<imageTag>` ```json { "errors": [ { "code": "MANIFEST_INVALID", "message": "manifest invalid", "detail": {} } ] } ``` I’ve also used a while loop to iterate over all layers which should make sure that the order of the layers is correct. Previously `find` was used and I’m not sure if the order was always correct.
* | dockerTools: fix permissions on base imageAntoine Eiche2017-07-31
| | | | | | | | | | | | | | | | If the base image has been built with nixpkgs.dockerTools, the image configuration and manifest are readonly so we first need to change their permissions before removing them. Fix #27632.
* | Merge commit 'ba68231273bea4cba01413fd2a0e56d68db9234c' into HEADFrederik Rietdijk2017-07-31
|\ \
| * \ Merge remote-tracking branch 'upstream/master' into HEADFrederik Rietdijk2017-07-28
| |\ \
| * \ \ Merge branch 'master' into stagingFranz Pletz2017-07-28
| |\ \ \
| * \ \ \ Merge remote-tracking branch 'upstream/master' into staging-baseJohn Ericson2017-07-26
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: pkgs/build-support/cc-wrapper/default.nix pkgs/build-support/gcc-wrapper-old/builder.sh pkgs/build-support/trivial-builders.nix pkgs/desktops/kde-4.14/kde-package/default.nix pkgs/development/compilers/openjdk-darwin/8.nix pkgs/development/compilers/openjdk-darwin/default.nix pkgs/development/compilers/openjdk/7.nix pkgs/development/compilers/openjdk/8.nix pkgs/development/compilers/oraclejdk/jdk-linux-base.nix pkgs/development/compilers/zulu/default.nix pkgs/development/haskell-modules/generic-builder.nix pkgs/misc/misc.nix pkgs/stdenv/generic/builder.sh pkgs/stdenv/generic/setup.sh
| * | | | | stdenv-setup and misc hooks: Work with bash-3.4 for MacOS nix-shellJohn Ericson2017-07-26
| | | | | | | | | | | | | | | | | | | | | | | | This is a temporary measure until this impurity is removed from Nix.
| * | | | | stdenv-setup and misc pkgs: Revert to space-deliminated propagated-* filesJohn Ericson2017-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We cannot switch to line-delimited yet, because certain Nix commands do not read in the entire file, but just the first line.
| * | | | | cc-wrapper: More quadratic performance fixesEelco Dolstra2017-07-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This eliminates the slow lookup of whether we've already seen an rpath / library path entry. Issue #27609.
| * | | | | cc-wrapper/ld-wrapper: Minor speedup in string concatenationEelco Dolstra2017-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is still a O(n) pattern match in ld-wrapper, so we should probably rewrite that code to use associative arrays.
| * | | | | Merge remote-tracking branch 'upstream/master' into HEADFrederik Rietdijk2017-07-23
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'master' into bugfix/staging/stdenvThomas Tuegel2017-07-21
| |\ \ \ \ \ \
| * | | | | | | fetchurl: remove unpaired call to `stopNest'Thomas Tuegel2017-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #27406. Commit 5d4efb2c816d2143f29cad8153faad1686557b2a added an assertion to `stopNest' which requires it be correctly paired with `startNest'. `fetchurl' calls `stopNest', but never calls `startNest'; the former calls are removed.
| * | | | | | | Merge pull request #27427 from ttuegel/bugfix/buildenv-propagatedThomas Tuegel2017-07-17
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | buildenv: read propagated-user-env-packages line-by-line
| | * | | | | | | buildenv: read propagated-user-env-packages line-by-lineThomas Tuegel2017-07-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since 3cb745d5a69018829ac15f7d5a508135f6bda123, the format of propagated-user-env-packages has changed and propagated packages have not been included by buildenv, including in the system environment. The buildenv builder is modified to read propagated-user-env-packages line-by-line, instead of expecting all packages on one line.
| * | | | | | | | Merge remote-tracking branch 'upstream/master' into HEADFrederik Rietdijk2017-07-17
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| * | | | | | | | Merge pull request #27415 from obsidiansystems/cc-wrapper-prefix-binutilsJohn Ericson2017-07-16
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | cc-wrapper: Always export environment variables for binutils
| | * | | | | | | | cc-wrapper: Use new bash uppercase subsitution syntax in setup hookJohn Ericson2017-07-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While this requires newer bash, stdenv's setup.sh now does across the board anyways. This way is more concise.
| | * | | | | | | | cc-wrapper: Always export environment variables for binutilsJohn Ericson2017-07-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, this only happened when cross compiling.
| * | | | | | | | | Merge branch 'master' into stagingVladimír Čunát2017-07-15
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | |
| * | | | | | | | | cc-wrapper: Unify and improve dynamic linker flag logicJohn Ericson2017-07-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Besides deduplicating overlapping logic, clear warning messages were added for: - No glob/path for dynamic linker provided (use default glob) - Glob did not expand to anything (don't append flag) - glob expanded to multiple things (take first, like before)
* | | | | | | | | | Merge pull request #27775 from rvl/bower2nix-issue-13Peter Hoeg2017-07-31
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ / |/| | | | | | | | | fetchbower: handle packages with slashes in their name
| * | | | | | | | | fetchbower: handle packages with slashes in their nameRodney Lorrimar2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Packages from github repos have slashes in their name. Nix store names shouldn't have slashes. Fixes rvl/bower2nix#13
* | | | | | | | | | Add a setup hook to fill NIX_DEBUG_INFO_DIRSEelco Dolstra2017-07-28
| |_|_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This setup hook is propagated by gdb. Thus, a typical use is: $ nix-shell -p gdb nix nix.debug sqlite.debug ... and gdb will be able find the debug symbols of nix etc. automatically.
* | | | | | | | | makeImageFromDebDist: Add extraDebs argumentsEelco Dolstra2017-07-27
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows adding packages that are not part of the distribution, e.g.g extraDebs = [ (pkgs.fetchurl { name = "openjdk.deb"; url = http://ppa.launchpad.net/openjdk-r/ppa/ubuntu/pool/main/o/openjdk-8/openjdk-8-jdk-headless_8u111-b14-3~14.04.1_amd64.deb; sha256 = "1n5ibpkx9pjmc4nr052rls1yqbq7ckav2rabixjhd4yxbyhjl0ap"; }) ];
* | | | | | | | docker: generate the image configuration and manifestAntoine Eiche2017-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is required to push images to the Docker registry v2.
* | | | | | | | docker: Remove ./ pattern when packing an imageAntoine Eiche2017-07-26
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | Elements in images tar.gz generated by docker don't start by './'.
* | | | | | | debian: 8.8 -> 8.9Eelco Dolstra2017-07-26
| | | | | | |
* | | | | | | docker: do not import configuration and manifest from the base imageAntoine Eiche2017-07-26
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | Fix #27632.
* | | | | | fetchpatch: add excludes parameterRobin Gloster2017-07-26
| | | | | |
* | | | | | docker: lowercase image name and tagAntoine Eiche2017-07-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The docker loading (docker 1.12.6) of an image with uppercase in the name fails with the following message: invalid reference format: repository name must be lowercase
* | | | | | Revert "stdenv: Store one package per line in nix-support/propagated-*"John Ericson2017-07-24
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As @oxij points out in [1], this breakage is especially serious because it changes the contents of built environments without a corresonding change in their hashes. Also, the revert is easier than I thought. This reverts commit 3cb745d5a69018829ac15f7d5a508135f6bda123. [1]: https://github.com/NixOS/nixpkgs/pull/27427#issuecomment-317293040
* | | | | Merge branch 'll-fix-fetchzip-darwin' of ↵Shea Levy2017-07-18
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | https://github.com/obsidiansystems/nixpkgs
| * | | | Fix #27448 argument list too long in fetchzip for darwin.luigy2017-07-17
| | | | | | | | | | | | | | | | | | | | Paired with @Ericson2314
* | | | | build-fhs-userenv: Propagate $XAUTHORITYJamey Sharp2017-07-18
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `DISPLAY` environment variable is propagated into chroots built with `buildFHSUserEnv`, but currently the `XAUTHORITY` variable is not. When the latter is set, its value is usually necessary in order to connect to the X server identified by the former. This matters for users running gdm3, for example, who have `XAUTHORITY` set to something like `/run/user/1000/gdm/Xauthority` instead of the X default of `~/.Xauthority`, which doesn't exist in that setup. Fixes #21532.
* | | | Merge pull request #27017 from LnL7/docker-pure-layerDaiderd Jordan2017-07-15
|\ \ \ \ | |_|_|/ |/| | | docker-tools: set user/group when creating a pure layer
| * | | docker-tools: fixup permssions for extraCommandsDaiderd Jordan2017-07-08
| | | |
| * | | docker-tools: set group/owner when creating a pure layerDaiderd Jordan2017-07-01
| | | |
* | | | Merge pull request #27160 from bkchr/makeautostartitem_fixJörg Thalheim2017-07-14
|\ \ \ \ | | | | | | | | | | make-autostartitem: Use the right path for storing the desktop files
| * | | | make-autostartitem: Use the right path for storing the desktop filesBastian Köcher2017-07-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The freedesktop specification says that the autostart folder is located at $XDG_CONFIG_DIRS/autostart. Nixos defines XDG_CONFIG_DIRS as /etc/xdg. So we need to copy the desktop files into the right folder with make-startupitem.
* | | | | Merge commit 'a889454869e4f7d5ba6067ebcc0ba7fcd26e4417'Domen Kožar2017-07-14
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | Merge staging. It includes fixes for cc-wrapper parsing speed and some other minor things. http://hydra.nixos.org/eval/1375094
| * | | | stdenv: Store one package per line in nix-support/propagated-*John Ericson2017-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes those files a bit easier to read. Also, for what it's worth, it brings us one baby step closer to handling spaces in store paths. Also, I optimized handling of many transitive deps with read. Probably, not very beneficial, but nice to enforce the pkg-per-line structure. Doing so let me find much dubious code and fix it. Two misc notes: - `propagated-user-env-packages` also needed to be adjusted as sometimes it is copied to/from the propagated input files. - `local fd` should ensure that file descriptors aren't clobbered during recursion.
* | | | | tarsum: Fix source path in docker.srcSarah Brofeldt2017-07-13
|/ / / /