Commit graph

316081 commits

Author SHA1 Message Date
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
Andreas Rammhold
a485b498e6
refind: 0.13.1 -> 0.13.2 2021-09-12 23:44:18 +02:00
Andreas Rammhold
1bfa488b1c
libbpf: 0.1.1 -> 0.4.0 2021-09-12 23:44:14 +02:00
Sandro
8d63fae087
Merge pull request #137560 from erictapen/libexif-0.6.23 2021-09-12 22:54:24 +02:00
Sandro
668ea57f90
Merge pull request #136990 from erictapen/imagemagick-7.1.0.6 2021-09-12 22:23:16 +02:00
Kerstin Humm
139cfd80d0
libexif: 0.6.22 -> 0.6.23 2021-09-12 21:40:55 +02:00
Jonathan Ringer
6e953a26b6 python3Packages.poetry*: use native namespaces 2021-09-12 12:23:52 -07:00
github-actions[bot]
fef6f602e6
Merge staging-next into staging 2021-09-12 18:01:50 +00:00
github-actions[bot]
a13bf1828b
Merge master into staging-next 2021-09-12 18:01:21 +00:00
Matthieu Coudron
ed77db85ff
Merge pull request #136429 from teto/vim-remove-rtpPath
Vim remove share/runtime/NAME prefix from the installed folder
2021-09-12 19:58:17 +02:00
Matthieu Coudron
354b186402 vimUtils.vimGenDocHook: dont copy the folder (again)
The files are installed via build-vim-plugin. Doing that again is a waste of resources, worse it can create errors
2021-09-12 19:19:13 +02:00
Matthieu Coudron
1c4904092b neovim.tests: test vim-plug too 2021-09-12 19:03:09 +02:00
Robert Scott
b1eea16b71
Merge pull request #137518 from risicle/ris-ghostscript-test-corpus-render
ghostscript: add passthru.tests.test-corpus-render
2021-09-12 17:36:35 +01:00
Maximilian Bosch
8b13843f4e
Merge pull request #135751 from zhaofengli/promtail-allow-positions-file
nixos/promtail: Allow write access to positions file if not in CacheDirectory
2021-09-12 18:17:25 +02:00
Robert Scott
0517de2ceb
Merge pull request #137540 from SuperSandro2000/setuptools-rust
python39Packages.setuptools-rust: adopt
2021-09-12 17:10:52 +01:00
Matthieu Coudron
ab9c7819fe
Merge pull request #136615 from teto/lua-flat
Various lua changes/cleanup
2021-09-12 18:08:53 +02:00
Sandro Jäckel
ff8e690f97
python39Packages.setuptools-rust: adopt 2021-09-12 17:34:29 +02:00
Sandro
3ca823aa9a
Merge pull request #137538 from SuperSandro2000/gitstatus
gitstatus: 1.5.2 -> 1.5.3
2021-09-12 17:31:27 +02:00
Sandro
1cd236279f
Merge pull request #136883 from r-ryantm/auto-update/python3.8-numcodecs
python38Packages.numcodecs: 0.9.0 -> 0.9.1
2021-09-12 17:30:50 +02:00
Sandro
2bcde293a6
Merge pull request #136843 from r-ryantm/auto-update/python3.8-flexmock 2021-09-12 17:30:28 +02:00
Sandro
8fd6cc7787
Merge pull request #135513 from r-ryantm/auto-update/kapp 2021-09-12 17:30:09 +02:00
Sandro
fab673c322
Merge pull request #135517 from r-ryantm/auto-update/kubedb-cli 2021-09-12 17:29:48 +02:00
Sandro
df28fb7f00
Merge pull request #135641 from zhaofengli/vim-loves-dafny 2021-09-12 17:25:17 +02:00
Sandro
76b2353e40
Merge pull request #136310 from r-ryantm/auto-update/python3.8-azure-mgmt-keyvault 2021-09-12 17:17:28 +02:00
Sandro
59d5347f9d
Merge pull request #136312 from r-ryantm/auto-update/python3.8-azure-mgmt-netapp
python38Packages.azure-mgmt-netapp: 4.0.0 -> 5.0.0
2021-09-12 17:17:06 +02:00
Sandro
1cc70d0cd2
Merge pull request #136391 from r-ryantm/auto-update/python3.8-django-mailman3 2021-09-12 17:15:54 +02:00
Sandro
35a19d0b2f
Merge pull request #136648 from r-ryantm/auto-update/python3.8-azure-mgmt-rdbms 2021-09-12 17:11:44 +02:00
Sandro
66677196ef
Merge pull request #136681 from r-ryantm/auto-update/python3.8-wordfreq 2021-09-12 17:10:26 +02:00
Sandro
a3bf844c47
Merge pull request #135005 from r-ryantm/auto-update/consul-template 2021-09-12 17:07:35 +02:00
Sandro
8dd363b43c
Merge pull request #135292 from r-ryantm/auto-update/shipyard
shipyard: 0.3.2 -> 0.3.27
2021-09-12 17:07:14 +02:00
Daniël de Kok
6af98ae669
Merge pull request #137539 from danieldk/remove-maintainership
treewide: remove danieldk as maintainer from a set of packages
2021-09-12 17:06:53 +02:00
Sandro
eac4359f59
Merge pull request #136828 from r-ryantm/auto-update/bazarr
bazarr: 0.9.7 -> 0.9.8
2021-09-12 17:06:11 +02:00
Sandro
7a04aa9f1a
Merge pull request #136827 from r-ryantm/auto-update/azure-storage-azcopy
azure-storage-azcopy: 10.11.0 -> 10.12.1
2021-09-12 17:05:58 +02:00
Sandro
97dcc4cf7c
Merge pull request #137487 from r-ryantm/auto-update/mm-common
mm-common: 1.0.2 -> 1.0.3
2021-09-12 17:05:28 +02:00
Sandro
3658907baa
Merge pull request #136840 from r-ryantm/auto-update/civetweb
civetweb: 1.14 -> 1.15
2021-09-12 17:04:54 +02:00
Sandro
193315af6a
Merge pull request #136850 from r-ryantm/auto-update/docker-buildx 2021-09-12 17:04:37 +02:00
Sandro
9442d8780e
Merge pull request #136847 from r-ryantm/auto-update/discordchatexporter-cli 2021-09-12 17:04:16 +02:00
Sandro
c6806fd147
Merge pull request #136842 from r-ryantm/auto-update/cloudflared
cloudflared: 2021.8.6 -> 2021.8.7
2021-09-12 17:03:01 +02:00
Sandro
382c5da2a3
Merge pull request #137536 from SuperSandro2000/gmailctl
gmailctl: 0.8.0 -> 0.9.0
2021-09-12 17:00:11 +02:00
Sandro
7a639461f5
Merge pull request #136890 from r-ryantm/auto-update/kubeconform
kubeconform: 0.4.8 -> 0.4.10
2021-09-12 16:59:52 +02:00
Sandro
087c09d12e
Merge pull request #135176 from r-ryantm/auto-update/tanka 2021-09-12 16:58:50 +02:00
R. RyanTM
ba1b9152c3
python38Packages.numcodecs: 0.9.0 -> 0.9.1 2021-09-12 16:58:29 +02:00
Sandro
e4145c946a
Merge pull request #136945 from r-ryantm/auto-update/python3.8-Markups
python38Packages.Markups: 3.1.1 -> 3.1.2
2021-09-12 16:57:53 +02:00
Sandro
3e56151b6a
Merge pull request #136586 from andrevmatos/kde/gears 2021-09-12 16:55:39 +02:00
Sandro
ff744966ea
Merge pull request #136341 from andrevmatos/upgrade/kde 2021-09-12 16:54:43 +02:00
Sandro
9d7576700d
Merge pull request #136957 from r-ryantm/auto-update/python3.8-azure-mgmt-servicefabric 2021-09-12 16:51:08 +02:00
Sandro
4de60bbe07
Merge pull request #136951 from r-ryantm/auto-update/python3.8-asyncssh 2021-09-12 16:50:58 +02:00
Sandro
551b851fa8
Merge pull request #136952 from r-ryantm/auto-update/python3.8-azure-mgmt-resource
python38Packages.azure-mgmt-resource: 19.0.0 -> 20.0.0
2021-09-12 16:50:41 +02:00
Sandro
6905925fb3
Merge pull request #136956 from r-ryantm/auto-update/python3.8-azure-mgmt-relay
python38Packages.azure-mgmt-relay: 1.0.0 -> 1.1.0
2021-09-12 16:48:44 +02:00
Sandro
0d4fbdfdea
Merge pull request #137468 from IvanMalison/bump_quill
quill: 0.2.4 -> 0.2.5
2021-09-12 16:42:23 +02:00