Skip to content

wrapQtAppsHook fails to wrap PIEs #68404

@bjornfor

Description

@bjornfor

Describe the bug
Unfortunately, as I just discovered, some executables are built as PIEs (e.g. keepassxc) and these won't be wrapped after this change: 88146a0. PIEs are technically isELFDyn, not isELFExec. Without wrapping, the programs won't start.

Ref. #65399.

To Reproduce

$ nix-build -A keepassxc && ./result/bin/keepassxc
[...]
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
[...]
Aborted (core dumped)

Expected behavior
PIEs would be wrapped too, and keepassxc would not abort startup.

Metadata

  • system: "x86_64-linux"
  • host os: Linux 4.19.71, NixOS, 19.09.git.1a1a7ed (Loris)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3
  • channels(root): "nixos-19.03.173426.541d9cce8af"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken0.kind: regressionSomething that worked before working no longer6.topic: qt/kdeObject-oriented framework for GUI creation
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions