[Bug 1907881] Re: cpuset package missing dependency in focal
Hans Joachim Desserud
1907881 at bugs.launchpad.net
Fri Dec 31 09:29:05 UTC 2021
Attached patch adds python3-future as a dependency also for 20.04.
** Description changed:
+ 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.
+
+ [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'
+ 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
+ -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
+ 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
+ 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
+ Regular commands:
+ proc create and manage processes within cpusets
+ set create, modify and destroy cpusets
-------
--------------------------------
** Patch added: "dependency.debdiff"
https://bugs.launchpad.net/ubuntu/+source/cpuset/+bug/1907881/+attachment/5550469/+files/dependency.debdiff
** Description changed:
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
-------
--------------------------------
** Tags added: patch
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1907881
Title:
cpuset package missing dependency in focal
Status in cpuset package in Ubuntu:
Confirmed
Status in cpuset package in Debian:
Unknown
Bug description:
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
-------
--------------------------------
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cpuset/+bug/1907881/+subscriptions
More information about the Ubuntu-sponsors
mailing list