Skip to content

fwupd fails to build since systemd 246 upgrade #96663

@andersk

Description

@andersk

Describe the bug
fwupd is failing to build. After it installs fwupd.service to the correct path, it tries to install fwupd.shutdown to an incorrect path in systemd’s prefix rather than its own.

I bisected this to commit 2865490 “systemd: 245.7 -> 246” (#94354).

Installing /build/fwupd-1.4.5/build/data/fwupd.service to /nix/store/r464h503syq81w6vsmkp7yz4yzxhcv8w-fwupd-1.4.5/lib/systemd/system
Installing /build/fwupd-1.4.5/build/data/fwupd.shutdown to /nix/store/5k9cqf17a0hn2x2yj9fdrszd3syy86f3-systemd-246/lib/systemd/system-shutdown
Installation failed due to insufficient permissions.
Attempting to use polkit to gain elevated privileges...
pkexec must be setuid root
FAILED: meson-install 
/nix/store/cg1lyk9naby9pl4srl3igi5cca6qjzqc-meson-0.55.1/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.
builder for '/nix/store/d3bl0l7354gzbxdqhw8nja1kdml5alga-fwupd-1.4.5.drv' failed with exit code 1

To Reproduce
nix build -f . fwupd

Notify maintainers
@flokli

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.4.57, NixOS, 20.09pre239318.c59ea8b8a0e (Nightingale)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.7
  • channels(anders): ""
  • channels(root): "nixos-20.09pre239318.c59ea8b8a0e"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: [fwupd, systemd]
# a list of nixos modules affected by the problem
module: []

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions