| 4 Jul 2026 |
hexa | I hope not | 12:20:17 |
hexa | diff --git a/pkgs/tools/misc/file/default.nix b/pkgs/tools/misc/file/default.nix
index da9968755584..ed03fc9f892b 100644
--- a/pkgs/tools/misc/file/default.nix
+++ b/pkgs/tools/misc/file/default.nix
@@ -26,6 +26,12 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-7RRlaIOyOjZLQFfAVZXZMlLam8Rz0wEGUZUZ0NoUEoM=";
};
+ postPatch = ''
+ substituteInPlace src/landlock.c --replace-fail \
+ "LANDLOCK_ACCESS_FS_READ_FILE | LANDLOCK_ACCESS_FS_READ_DIR" \
+ "LANDLOCK_ACCESS_FS_READ_FILE | LANDLOCK_ACCESS_FS_READ_DIR | LANDLOCK_ACCESS_FS_EXECUTE"
+ '';
+
outputs = [
"out"
"dev"
| 12:20:25 |
hexa | fwiw | 12:20:26 |
tom | gnutar takes like 5m40 for me ^^ CPU is a i7-13700K | 12:20:49 |
hexa |
⏵ gnutar-1.35 on 1cd ⏱ 8m4s (∅ 11m22s)
| 12:21:09 |
hexa | upstream only has a mailing list 🥲 | 12:22:02 |
K900 | Of course they do | 12:22:37 |
tom | they also have https://bugs.astron.com/ | 12:23:19 |
tom | whatever that is | 12:23:26 |
hexa | ohhh mantis | 12:23:29 |
hexa | I like | 12:23:34 |
hexa | looks very different than I remember it | 12:25:49 |
hexa | from 15-20 years ago 🫣 | 12:25:56 |
tom | that's a long a time ago :) never heard of it before | 12:31:10 |
| * K900 crumbles into dust | 12:34:23 |
hexa | https://bugs.astron.com/view.php?id=785 | 12:35:46 |
hexa | now if only the bug tracker was public | 12:36:00 |
tom | thank you! | 12:36:20 |
hexa | thanks for testing this with me :D | 12:36:58 |
Vladimír Čunát | How bad a bug is this? | 12:41:59 |
Vladimír Čunát | Only --uncompress is broken? | 12:43:30 |
Vladimír Čunát | And not all sub-cases of that, apparently. | 12:45:13 |
hexa | breaks python3.pkgs.patool | 12:47:25 |
tom | i think so, it least the only code paths to posix_spawn_* calls are in uncompressbuf | 12:47:32 |
hexa | and yeah, it need to spawn a helper | 12:47:39 |
hexa | which doesn't happen for gzip or zstd | 12:47:47 |
tom | that's also how i stumbled on it, haven't seen it anywhere else yet | 12:47:58 |
hexa | INFO patool: Different MIME types detected for /build/source/tests/data/t.tar.bz2: application/x-bzip2 by file(1), application/x-tar by extension. Preferring application/x-bzip2.
INFO patool: Different MIME types detected for /build/source/tests/data/t.tar.bz2.foo: application/x-bzip2 by file(1), None by extension. Preferring application/x-bzip2.
INFO patool: Different MIME types detected for /build/source/tests/data/t.tar.lzma: application/x-lzma by file(1), application/x-tar by extension. Preferring application/x-lzma.
INFO patool: Different MIME types detected for /build/source/tests/data/t.tar.xz: application/x-xz by file(1), application/x-tar by extension. Preferring application/x-xz.
INFO patool: Different MIME types detected for /build/source/tests/data/t.tar.lz: application/x-lzip by file(1), application/x-tar by extension. Preferring application/x-lzip.
INFO patool: Different MIME types detected for /build/source/tests/data/t.tar.xz.foo: application/x-xz by file(1), None by extension. Preferring application/x-xz.
| 12:48:32 |
hexa | and more uncommon formats, like xz | 12:49:15 |
hexa | I mean, who uses that? /hj | 12:49:24 |