summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorMatthias Treydte <mt@waldheinz.de>2022-05-13 12:09:25 +0200
committerMatthias Treydte <mt@waldheinz.de>2022-05-28 13:18:21 +0200
commita30de3b849bb29b4d2206e1a652707fba8ea18a4 (patch)
tree2e143a126d38615a8925e3839f0d2b2299293a1e /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent2e01fc66bc57790490ed261c9e4f71c64cf91e58 (diff)
nixos/systemd-boot: fix systemd-boot-builder dowgrade to fail
Since, 4ddc78818e4d69605f49f5f8faa22fb4601b0a0c systemd-boot-builder is broken in two ways: * if no systemd-boot is currently installed *and* the NIXOS_INSTALL_BOOTLOADER env variable is not set, it will try to run "bootctl update", which will fail * if the currently installed systemd-boot version is newer than the version we're about to install, it will also try to run "bootctl update", which will fail This patch changes the behaviour, * for the first case to still fail, but not even bother to try running "bootctl update" and instead erroring out with an exception * for the second case to leave the newer version in place, restoring the pre - 4ddc78818e4d69605f49f5f8faa22fb4601b0a0c behaviour To do the proper version check a new "should_update" helper function was introduced, mimicing the compare_product C function from bootctl. If the following systemd issue gets resolved, we would have a nice way to get rid of this function: > https://github.com/systemd/systemd/issues/23450 This change allows to again switch to a different NixOS configuration which contains an older systemd-boot. Co-authored-by: Martin Weinelt <mweinelt@users.noreply.github.com>
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions