Skip to content

pythonPackages.python-prctl fails to build #106871

@kira-bruneau

Description

@kira-bruneau

Describe the bug
Recently, python-prctl started failing to build due to a test failure in test_speculation_ctrl.

To Reproduce
Steps to reproduce the behavior:

  1. nix-build '<nixpkgs>' -A python38Packages.python-prctl
======================================================================
ERROR: test_speculation_ctrl (test_prctl.PrctlTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/python-prctl-1.8.1/test_prctl.py", line 335, in test_speculation_ctrl
    prctl.set_speculation_ctrl(prctl.SPEC_STORE_BYPASS, prctl.SPEC_ENABLE)
  File "/build/python-prctl-1.8.1/build/lib.linux-x86_64-3.8/prctl.py", line 19, in call_prctl
    return _prctl.prctl(option, arg, arg2)
PermissionError: [Errno 1] Operation not permitted

----------------------------------------------------------------------

Expected behavior
Should build succesfully

Notify maintainers
@catern

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.9.12, NixOS, 21.03pre257780.e9158eca70a (Okapi)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.9
  • channels(root): "nixos-21.03pre257780.e9158eca70a, nur"
  • channels(kira): "home-manager"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: python27Packages.python-prctl, python37Packages.python-prctl, python38Packages.python-prctl
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: pythonPython is a high-level, general-purpose programming language.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions