Commit Graph

16360 Commits

Author SHA1 Message Date
Alyssa Ross
e2bb7997c4
Merge remote-tracking branch 'nixpkgs/master' into staging-next
Conflicts:
	nixos/doc/manual/release-notes/rl-2111.section.md
2021-09-19 17:08:00 +00:00
figsoda
8212bd0ed1
Merge pull request #138466 from samuelgrf/mainProgram-multiple-II
Add meta.mainProgram to multiple packages
2021-09-19 11:59:16 -04:00
Michael Raskin
401cd35e1d
Merge pull request #138514 from onny/firejail
firejail: Remove symlink check patch
2021-09-19 14:57:17 +00:00
Ryan Burns
d43df749ac netbsd.compat: fix build on darwin
The makefile requires GNU objcopy
2021-09-19 21:58:33 +09:00
Jörg Thalheim
015b98df50
Merge pull request #138465 from r-burns/bcc
[staging-next] linuxPackages.bcc: fix build
2021-09-19 12:42:58 +01:00
Jörg Thalheim
d1fda939b3
Merge pull request #138427 from hmenke/zfs
zfsUnstable: correct sha256
2021-09-19 11:51:31 +01:00
Jonas Heinrich
defe183dad firejail: Remove symlink check patch 2021-09-19 11:55:30 +02:00
Ryan Burns
88b8df5c21 linuxPackages.bcc: fix build
Use Debian downstream patch to fix compilation against linuxHeaders < 5.14.

Our linux headers exposed by glibc are still at 5.12. We should be able
to remove this patch once our linuxHeaders are bumped to 5.14+.
2021-09-18 16:26:16 -07:00
Samuel Gräfenstein
9d5298933a
zfs: add meta.mainProgram
Fix the following error when running `nix run .#zfs`:
error: unable to execute '/nix/store/ns6rifm17r0lp17w8gb4qr5db4cwbkj9-zfs-user-2.1.1/bin/zfs-user': No such file or directory
2021-09-19 00:11:17 +02:00
Henri Menke
a0bbb9e766
zfsUnstable: correct sha256 2021-09-18 16:28:08 +02:00
R. RyanTM
663b56eff0 procdump: 1.1.1 -> 1.2 2021-09-18 12:31:17 +00:00
github-actions[bot]
a21275cdae
Merge master into staging-next 2021-09-17 18:01:14 +00:00
ajs124
36e21638f5 linux/hardened/patches/5.4: 5.4.146-hardened1 -> 5.4.147-hardened1 2021-09-17 09:02:31 -04:00
ajs124
9f34448a98 linux/hardened/patches/5.14: 5.14.4-hardened1 -> 5.14.5-hardened1 2021-09-17 09:02:31 -04:00
ajs124
7c04d2e390 linux/hardened/patches/5.13: 5.13.17-hardened1 -> 5.13.18-hardened1 2021-09-17 09:02:31 -04:00
ajs124
031afe4faa linux/hardened/patches/5.10: 5.10.65-hardened1 -> 5.10.66-hardened1 2021-09-17 09:02:31 -04:00
Luke Granger-Brown
65b8408ce8 Merge remote-tracking branch 'upstream/staging' into staging-next 2021-09-17 12:18:44 +00:00
sternenseemann
29f8f30b37 zfsStable, zfsUnstable: fix eval 2021-09-17 10:05:42 +00:00
github-actions[bot]
2ad7b248e6
Merge staging-next into staging 2021-09-17 00:02:15 +00:00
Bernardo Meurer
f65f925f20
Merge pull request #138168 from NixOS/zfs-2.1.1
linuxPackages.zfs: 2.1.0 -> 2.1.1
2021-09-16 23:32:21 +00:00
Sandro
694d075b72
Merge pull request #136965 from Mic92/zen-kernel 2021-09-16 20:44:20 +02:00
Bernardo Meurer
af69a71395
linuxPackages.zfs: 2.1.0 -> 2.1.1 2021-09-16 11:22:57 -07:00
github-actions[bot]
9905c2647a
Merge staging-next into staging 2021-09-16 18:01:40 +00:00
Maximilian Bosch
a3a462734a
Merge pull request #138149 from TredwellGit/linux
Kernels 2021-09-16
2021-09-16 18:13:59 +02:00
Bernardo Meurer
b173e70e4d
Merge pull request #138067 from Kranzes/update-xanmod
linux_xanmod: 5.14.3 -> 5.14.4
2021-09-16 15:43:00 +00:00
TredwellGit
00c500e9fc linux/hardened/patches/5.4: 5.4.144-hardened1 -> 5.4.146-hardened1 2021-09-16 14:06:36 +00:00
TredwellGit
60b7113164 linux/hardened/patches/5.14: 5.14.2-hardened1 -> 5.14.4-hardened1 2021-09-16 14:06:35 +00:00
TredwellGit
a8de1dcd2b linux/hardened/patches/5.13: 5.13.15-hardened1 -> 5.13.17-hardened1 2021-09-16 14:06:34 +00:00
TredwellGit
48e902a2ef linux/hardened/patches/5.10: 5.10.63-hardened1 -> 5.10.65-hardened1 2021-09-16 14:06:33 +00:00
TredwellGit
100f0569b5 linux: 5.4.145 -> 5.4.147 2021-09-16 14:05:57 +00:00
TredwellGit
4a05e7297c linux: 5.14.3 -> 5.14.5 2021-09-16 14:05:51 +00:00
TredwellGit
4954336e2b linux: 5.13.16 -> 5.13.18 2021-09-16 14:05:45 +00:00
TredwellGit
6c829ce083 linux: 5.10.64 -> 5.10.66 2021-09-16 14:05:32 +00:00
github-actions[bot]
85bd312fb6
Merge staging-next into staging 2021-09-16 12:02:04 +00:00
Bobby Rong
0b28945e2f
Merge pull request #135995 from r-ryantm/auto-update/sdparm
sdparm: 1.11 -> 1.12
2021-09-16 16:52:53 +08:00
Ilan Joselevich
fcbc01cd2c linux_xanmod: 5.14.3 -> 5.14.4 2021-09-16 01:21:56 +03:00
Jörg Thalheim
b47f3bd50c linux_zen: 5.14.1-zen1 -> 5.14.3-zen1 2021-09-15 09:28:27 +02:00
github-actions[bot]
df9a7e8f43
Merge staging-next into staging 2021-09-14 12:01:39 +00:00
github-actions[bot]
6f038e8b11
Merge master into staging-next 2021-09-14 12:01:03 +00:00
github-actions[bot]
697f3593aa
Merge staging-next into staging 2021-09-14 06:02:01 +00:00
github-actions[bot]
38520726fc
Merge master into staging-next 2021-09-14 06:01:28 +00:00
Emily
35a1ca8a0a darwin.trash: fix on aarch64-darwin
None of these clang options should be necessary with the nixpkgs stdenv
infrastructure, and the -arch was breaking Apple Silicon builds.
2021-09-14 03:31:31 +01:00
R. RyanTM
48d6922748 system76-firmware: 1.0.28 -> 1.0.29 2021-09-13 23:38:52 +00:00
Florian Klink
8019c95b55
Merge pull request #131618 from andir/systemdv249
systemd v249
2021-09-13 09:39:49 +02:00
github-actions[bot]
12eb8fbbba
Merge staging-next into staging 2021-09-13 06:02:09 +00:00
github-actions[bot]
d6f028d12d
Merge master into staging-next 2021-09-13 06:01:28 +00:00
Ryan Mulligan
43c65852d6
Merge pull request #135996 from r-ryantm/auto-update/smemstat
smemstat: 0.02.08 -> 0.02.10
2021-09-12 18:40:07 -07:00
github-actions[bot]
dfd1161f35
Merge staging-next into staging 2021-09-13 00:02:22 +00:00
github-actions[bot]
ac962ee61a
Merge master into staging-next 2021-09-13 00:01:41 +00:00
Andreas Rammhold
64556974b6
systemd: 247.6 -> 249.4
This updates systemd to version v249.4 from version v247.6.

Besides the many new features that can be found in the upstream
repository they also introduced a bunch of cleanup which ended up
requiring a few more patches on our side.

a) 0022-core-Handle-lookup-paths-being-symlinks.patch:
  The way symlinked units were handled was changed in such that the last
  name of a unit file within one of the unit directories
  (/run/systemd/system, /etc/systemd/system, ...) is used as the name
  for the unit. Unfortunately that code didn't take into account that
  the unit directories themselves could already be symlinks and thus
  caused all our units to be recognized slightly different.

  There is an upstream PR for this new patch:
    https://github.com/systemd/systemd/pull/20479

b) The way the APIVFS is setup has been changed in such a way that we
   now always have /run. This required a few changes to the
   confinement tests which did assert that they didn't exist. Instead of
   adding another patch we can just adopt the upstream behavior. An
   empty /run doesn't seem harmful.

   As part of this work I refactored the confinement test just a little
   bit to allow better debugging of test failures. Previously it would
   just fail at some point and it wasn't obvious which of the many
   commands failed or what the unexpected string was. This should now be
   more obvious.

c) Again related to the confinement tests the way a file was tested for
   being accessible was optimized. Previously systemd would in some
   situations open a file twice during that check. This was reduced to
   one operation but required the procfs to be mounted in a units
   namespace.

   An upstream bug was filed and fixed. We are now carrying the
   essential patch to fix that issue until it is backported to a new
   release (likely only version 250). The good part about this story is
   that upstream systemd now has a test case that looks very similar to
   one of our confinement tests. Hopefully that will lead to less
   friction in the long run.

   https://github.com/systemd/systemd/issues/20514
   https://github.com/systemd/systemd/pull/20515

d) Previously we could grep for dlopen( somewhat reliably but now
   upstream started using a wrapper around dlopen that is most of the
   time used with linebreaks. This makes using grep not ergonomic
   anymore.

   With this bump we are grepping for anything that looks like a
   dynamic library name (in contrast to a dlopen(3) call) and replace
   those instead. That seems more robust. Time will tell if this holds.

   I tried using coccinelle to patch all those call sites using its
   tooling but unfornately it does stumble upon the _cleanup_
   annotations that are very common in the systemd code.

e) We now have some machinery for libbpf support in our systemd build.
   That being said it doesn't actually work as generating some skeletons
   doesn't work just yet. It fails with the below error message and is
   disabled by default (in both minimal and the regular build).

   > FAILED: src/core/bpf/socket_bind/socket-bind.skel.h
   > /build/source/tools/build-bpf-skel.py --clang_exec /nix/store/x1bi2mkapk1m0zq2g02nr018qyjkdn7a-clang-wrapper-12.0.1/bin/clang --llvm_strip_exec /nix/store/zm0kqan9qc77x219yihmmisi9g3sg8ns-llvm-12.0.1/bin/llvm-strip --bpftool_exec /nix/store/l6dg8jlbh8qnqa58mshh3d8r6999dk0p-bpftools-5.13.11/bin/bpftool --arch x86_64 ../src/core/bpf/socket_bind/socket-bind.bpf.c src/core/bpf/socket_bind/socket-bind.skel.h
   > libbpf: elf: socket_bind_bpf is not a valid eBPF object file
   > Error: failed to open BPF object file: BPF object format invalid
   > Traceback (most recent call last):
   >   File "/build/source/tools/build-bpf-skel.py", line 128, in <module>
   >     bpf_build(args)
   >   File "/build/source/tools/build-bpf-skel.py", line 92, in bpf_build
   >     gen_bpf_skeleton(bpftool_exec=args.bpftool_exec,
   >   File "/build/source/tools/build-bpf-skel.py", line 63, in gen_bpf_skeleton
   >     skel = subprocess.check_output(bpftool_args, universal_newlines=True)
   >   File "/nix/store/81lwy2hfqj4c1943b1x8a0qsivjhdhw9-python3-3.9.6/lib/python3.9/subprocess.py", line 424, in check_output
   >     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
   >   File "/nix/store/81lwy2hfqj4c1943b1x8a0qsivjhdhw9-python3-3.9.6/lib/python3.9/subprocess.py", line 528, in run
   >     raise CalledProcessError(retcode, process.args,
   > subprocess.CalledProcessError: Command '['/nix/store/l6dg8jlbh8qnqa58mshh3d8r6999dk0p-bpftools-5.13.11/bin/bpftool', 'g', 's', '../src/core/bpf/socket_bind/socket-bind.bpf.o']' returned non-zero exit status 255.
   > [102/1457] Compiling C object src/journal/libjournal-core.a.p/journald-server.c.oapture output)put)ut)
   > ninja: build stopped: subcommand failed.

  f) We do now have support for TPM2 based disk encryption in our
     systemd build. The actual bits and pieces to make use of that are
     missing but there are various ongoing efforts in that direction.
     There is also the story about systemd in our initrd to enable this
     being used for root volumes. None of this will yet work out of the
     box but we can start improving on that front.

  g) FIDO2 support was added systemd and consequently we can now use
     that. Just with TPM2 there hasn't been any integration work with
     NixOS and instead this just adds that capability to work on that.

Co-Authored-By: Jörg Thalheim <joerg@thalheim.io>
2021-09-12 23:45:49 +02:00