Commit Graph

363963 Commits

Author SHA1 Message Date
sternenseemann
b5cad4d4a4 stdenv/setup.sh: make sure $sourceRoot has +x before cd-ing
This change is prompted by the following, admittedly cursed tarball:

```
> curl https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz 2>/dev/null \
  | tar -ztv
drw-rw-rw- 0/0               0 2020-02-18 10:50 package
-rw-rw-rw- 0/0             297 2020-02-18 10:50 package/index.d.ts
-rw-rw-rw- 0/0            1920 2020-02-18 10:50 package/index.js
-rw-rw-rw- 0/0            1092 2020-01-31 11:31 package/LICENSE
-rw-rw-rw- 0/0             937 2020-02-18 10:51 package/package.json
-rw-rw-rw- 0/0             713 2020-02-18 10:50 package/README.md
```

The minimal reproducer for the issue is the following derivation trying
to work around the uid 0 issue with `dontMakeSourcesWritable = true`:

```nix
{ stdenv, fetchurl }:

stdenv.mkDerivation {
  name = "test";

  src = fetchurl {
    sha1 = "d744358226217f981ed58f479b1d6bcc29545dcf";
    url = "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz";
  };

  dontMakeSourcesWritable = true;

  installPhase = ''
    cp -R . $out
  '';
}
```

This currently fails in the following way:

```
these derivations will be built:
  /nix/store/pc3jbydl0xcc8nrndf5xkf7hdhpgpb41-test.drv
building '/nix/store/pc3jbydl0xcc8nrndf5xkf7hdhpgpb41-test.drv'...
unpacking sources
unpacking source archive /nix/store/v9p98kqplf4kflmy91p0687xlvr6klb1-char-regex-1.0.2.tgz
source root is package
find: 'package/index.d.ts': Permission denied
find: 'package/index.js': Permission denied
find: 'package/LICENSE': Permission denied
find: 'package/package.json': Permission denied
find: 'package/README.md': Permission denied
/nix/store/6c47azxacncswc1pllzj28zfzqw40d7c-stdenv-linux/setup: line 1311: cd: package: Permission denied
builder for '/nix/store/pc3jbydl0xcc8nrndf5xkf7hdhpgpb41-test.drv' failed with exit code 1
error: build of '/nix/store/pc3jbydl0xcc8nrndf5xkf7hdhpgpb41-test.drv' failed
```

As you can see, the issue is that `$sourceRoot` isn't executable,
prohibiting the call to `cd`. This can be fixed by running
`chmod +x "${sourceRoot}"` before `cd` regardless of
`dontMakeSourcesWritable` in `unpackPhase` since if `chmod` fails, `cd`
would fail as well and we are out of options.

Verified that the workaround works locally.

Another thing to investigate is investigating if we should use
`--no-same-owner` for `tar` and if it helps in this case as well.
See also <https://github.com/Profpatsch/yarn2nix/issues/56>.
2022-03-24 11:13:38 +01:00
Fabian Affolter
dcdad213dc
Merge pull request #165496 from fabaff/bump-responses
python3Packages.responses: 0.18.0 -> 0.20.0
2022-03-24 10:10:07 +01:00
Fabian Affolter
3bf0a85002
Merge pull request #165498 from fabaff/convertdate-mod
python3Packages.convertdate: disable on older Python releases
2022-03-24 08:36:24 +01:00
7c6f434c
bf158b0f4c
Merge pull request #165391 from r-ryantm/auto-update/btrfs-progs
btrfs-progs: 5.16.1 -> 5.16.2
2022-03-24 06:16:25 +00:00
github-actions[bot]
fb0dc315ac
Merge staging-next into staging 2022-03-24 00:02:30 +00:00
Florian Klink
5f3ab4f853
Merge pull request #165411 from trofi/update-systemd
systemd: 250.3 -> 250.4
2022-03-23 21:44:18 +01:00
Vladimír Čunát
a7ccddeb54
Revert "Merge #160259: separateDebugInfo: Use --strip-unneeded"
This reverts commit 848091a52b734f2fb30c0e185befc31a2f3733de, reversing
changes made to ab0e692ac7d4284455410d542b560ae3600242f3.

It caused issues with elfutils tests,
probably through over-stripping of glibc parts.
2022-03-23 21:43:15 +01:00
Fabian Affolter
bf65cd57ca python3Packages.convertdate: disable on older Python releases 2022-03-23 21:11:55 +01:00
Fabian Affolter
e1d32f9407 python3Packages.responses: 0.18.0 -> 0.20.0 2022-03-23 21:03:56 +01:00
github-actions[bot]
85d57ae168
Merge staging-next into staging 2022-03-23 12:09:18 +00:00
Sergei Trofimovich
35e2c61dfd systemd: 250.3 -> 250.4
Among other things fixes build failure on linux-headers-5.17:

    ../src/basic/meson.build:389:8: ERROR: Problem encountered: found unknown filesystem(s) defined in kernel headers:

    Filesystem found in kernel header but not in filesystems-gperf.gperf: CIFS_SUPER_MAGIC
    Filesystem found in kernel header but not in filesystems-gperf.gperf: SMB2_SUPER_MAGIC
2022-03-23 08:44:15 +00:00
Sandro
d29c38eb6b
Merge pull request #164120 from mweinelt/qtwebengine-fix-build 2022-03-23 09:19:42 +01:00
Vladimír Čunát
2102efd88b
Merge branch 'staging' into staging-next 2022-03-23 09:09:55 +01:00
milahu
cd64f8e8b3
bzip2: add symlink libbz2.so.1.0 (#163217)
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2022-03-23 07:54:09 +00:00
Vladimír Čunát
50d5ad4008
Merge branch 'staging' into staging-next 2022-03-23 08:37:12 +01:00
Vladimír Čunát
848091a52b
Merge #160259: separateDebugInfo: Use --strip-unneeded
...into staging
2022-03-23 08:32:39 +01:00
Vladimír Čunát
ab0e692ac7
Merge #161611: python3Packages.uvloop: fix tests on Darwin
...into staging
2022-03-23 08:31:05 +01:00
Sandro
64dd03dc54
Merge pull request #165275 from Stunkymonkey/hicolor-icon-theme-pname-version 2022-03-23 07:58:06 +01:00
R. Ryantm
56f7399734 btrfs-progs: 5.16.1 -> 5.16.2 2022-03-23 06:54:09 +00:00
Sandro
b2c9bceef8
Merge pull request #165162 from andrevmatos/kde/frameworks 2022-03-23 07:51:16 +01:00
github-actions[bot]
c80dabe3b1
Merge staging-next into staging 2022-03-23 06:01:55 +00:00
github-actions[bot]
965d0ba5fa
Merge master into staging-next 2022-03-23 06:01:21 +00:00
Sandro
30d2d4a499
Merge pull request #165190 from r-ryantm/auto-update/python310Packages.arpeggio 2022-03-23 07:00:37 +01:00
Martin Weinelt
252eef0abc
Merge pull request #165372 from SuperSandro2000/certifi 2022-03-23 06:54:01 +01:00
Sandro Jäckel
80e7ea13fc
python39Packages.certifi: disable on python older 3.5, add SuperSandro2000 as maintainer 2022-03-23 06:33:21 +01:00
Sandro
b8e952d474
Merge pull request #165373 from SuperSandro2000/click 2022-03-23 06:30:16 +01:00
Nathan van Doorn
61f798890e
souffle: 2.0.2 -> 2.2 (#164103)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-23 06:30:06 +01:00
Shawn8901
3bf28598c1
autoadb: init at unstable-2020-06-01 (#165244)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-23 06:29:45 +01:00
Sandro
cda6d4f18f
Merge pull request #165370 from SuperSandro2000/brotli 2022-03-23 06:29:14 +01:00
Bernardo Meurer
02ec7d6673
Merge pull request #165350 from mweinelt/firefox
firefox{,-bin}: 98.0.1 -> 98.0.2
2022-03-22 22:14:24 -07:00
github-actions[bot]
247c94fc6a terraform-providers: update 2022-03-23 2022-03-23 15:09:54 +10:00
Ben Siraphob
a05f42ed45
Merge pull request #161534 from mweinelt/tree-sitter-grammars 2022-03-23 00:07:43 -05:00
Sandro Jäckel
d0d06a70d5
python39Packages.click: add SuperSandro2000 as maintainer 2022-03-23 06:03:04 +01:00
Sandro
0eee4c8e38
Merge pull request #165265 from r-ryantm/auto-update/python3.9-sentry-sdk 2022-03-23 05:55:50 +01:00
Sandro
f2d269d37d
Merge pull request #161249 from lunik1/lounge-plugin-fixes 2022-03-23 05:54:37 +01:00
Armeen Mahdian
e0bd12836b
udis86: 1.7.2 -> unstable-2014-12-25, patch for python3 builds (#165177)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-23 05:53:51 +01:00
Sandro
3c14c74bde
Merge pull request #164606 from applePrincess/exploitdb-2022-03-17 2022-03-23 05:52:54 +01:00
R. RyanTM
8e9b5c9f88
katago: 1.10.0 -> 1.11.0 (#165090)
Co-authored-by: OmnipotentEntity <OmnipotentEntity@gmail.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-23 05:52:43 +01:00
Sandro
8f0607cab8
Merge pull request #165311 from tfmoraes/zettlr-2.2.4 2022-03-23 05:52:30 +01:00
Francesco Gazzetta
f40327ce40
hut: init at unstable-2022-03-02 (#162663)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-23 05:51:47 +01:00
Chuang Zhu
e9c91a137a
gotktrix: init at 0.1.1 (#162571)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-23 05:50:12 +01:00
Sandro Jäckel
607723da24
python39Packages.brotli: update comments, add SuperSandro2000 as maintainer 2022-03-23 05:49:40 +01:00
Will Dietz
9994b33f0e
biblatex-check: 2019-11-09 -> 1.0.1 (#157597) 2022-03-23 05:49:23 +01:00
Sandro
7c641c7a5d
Merge pull request #165351 from babbaj/gpu-screen-recorder 2022-03-23 05:35:55 +01:00
Sandro
85ce10e75a
Merge pull request #164042 from mstarzyk/miller-6 2022-03-23 05:31:31 +01:00
Sandro
90e5b21135
Merge pull request #165159 from alyssais/mailman-web-django 2022-03-23 05:29:00 +01:00
Sandro Jäckel
fab200cb0a
python39Packages.parver: drop version constraint on arpeggio, add SuperSandro200 as maintainer 2022-03-23 05:23:45 +01:00
R. Ryantm
01ed018d6d
python310Packages.arpeggio: 1.10.2 -> 2.0.0, add SuperSandro2000 as maintainer 2022-03-23 05:23:33 +01:00
Martin Weinelt
964b4a6bd2
tree-sitter: update grammars 2022-03-23 05:22:56 +01:00
Martin Weinelt
edbaf11e94
tree-sitter: unquote latest version in update script
Otherwise if a tag was found it would try to fetch `refs/tag/"v1.2.0"`.

```
fetching list of grammars
checking the tree-sitter repo list against the grammars we know
writing files to /etc/nixos/nixpkgs/pkgs/development/tools/parsing/tree-sitter/grammars
Fetching latest release ("v1.2.1") of tree-sitter-agda …
Initialized empty Git repository in /tmp/git-checkout-tmp-RU9DUpjM/tree-sitter-agda/.git/
fatal: couldn't find remote ref refs/tags/"v1.2.1"
From https://github.com/tree-sitter/tree-sitter-agda
 * branch            HEAD       -> FETCH_HEAD
fatal: Not a valid object name
Unrecognized git object type:
Unable to checkout refs/tags/"v1.2.1" from https://github.com/tree-sitter/tree-sitter-agda.
```
2022-03-23 05:18:09 +01:00