[Bug 1907881] [NEW] cpuset package missing dependency in focal

Launchpad Bug Tracker 1907881 at bugs.launchpad.net
Fri Dec 31 09:32:47 UTC 2021


You have been subscribed to a public bug by Hans Joachim Desserud (hjd):

Stable Release Update:

[impact]
cset fails to run without python3-future installed.

This is a minor fix which already is present in newer Ubuntu releases.

As mentioned in the comments below, the SRU is needed only in Focal,
though I don't have permission to target the series.

[test plan]
sudo apt install cpuset
cset --help
#Should run without error message.

[Where problems could occur]

Minimal regression potential. As this is only adding an extra dependency it is otherwise equivalent of a no-change rebuild.
The binary packages have no other reverse dependencies.

Original report:

This package for focal seems to miss a dependency.
Namely python3-futures.

Reproducing the bug
--------------------------------

Reproducable Docker file:
Built with "docker build . -t csettest"

--------
FROM ubuntu:focal

RUN apt update && apt install -y cpuset

ENTRYPOINT ["cset", "--help"]
-------

Running the docker file:

-------
$ docker run --rm -it csettest

Traceback (most recent call last):
  File "/usr/bin/cset", line 44, in <module>
      from cpuset.main import main
        File "/usr/lib/python3/dist-packages/cpuset/main.py", line 7, in <module>
            from future import standard_library
            ModuleNotFoundError: No module named 'future'
-------
--------------------------------

Possible fix with python3-future
--------------------------------

Docker file:
-------
FROM ubuntu:focal

RUN apt update && apt install -y cpuset python3-future

ENTRYPOINT ["cset", "--help"]
-------

Running the Docker file
-------
$ docker run --rm -it csettest

Usage: cset [global options] <command> [command options]

Global options:
  -l/--log <fname>       output debugging log in fname
    -m/--machine           print machine readable output
      -x/--tohex <CPUSPEC>   convert a CPUSPEC to hex

      Generic commands:
        help        print the detailed command usage
          version     display version information
            copyright   display copyright information

            Super commands (high-level and multi-function):
              shield      supercommand to set up and manage basic shielding

              Regular commands:
                proc        create and manage processes within cpusets
                  set         create, modify and destroy cpusets
-------
--------------------------------

** Affects: cpuset (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Affects: cpuset (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: focal packaging
-- 
cpuset package missing dependency in focal
https://bugs.launchpad.net/bugs/1907881
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list