razercfg ships python modules in `dist-packages/dist-packages/` directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
razercfg (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Noble |
Fix Committed
|
Medium
|
Mauricio Faria de Oliveira |
Bug Description
[Impact]
* In Noble, razercfg's python modules are installed
incorrectly in the `dist-packages/
directory (it should be only one `dist-packages/`).
* This prevents usage of pyrazer python modules.
[Test Plan]
* Check `dpkg -L razercfg | grep dist-packages/
for a single `dist-packages` directory.
* Check `python3 -c import pyrazer` does not fail.
[Regression Potential]
* Changing the install path of python modules might
cause regressions in loading the modules, but this
is already a problem now, so not likely to regress.
[Other Info]
* Upstream fix commit:
https:/
* Already fixed in Oracular:
$ rmadison -a source razercfg | grep oracular
razercfg | 0.43-3 | oracular/universe | source
razercfg_
-------
...
drwxr-xr-x root/root 0 2024-07-14 14:15 ./usr/lib/
drwxr-xr-x root/root 0 2024-07-14 14:15 ./usr/lib/
-rw-r--r-- root/root 231 2024-07-14 14:15 ./usr/lib/
-rw-r--r-- root/root 25543 2024-07-14 14:15 ./usr/lib/
-rw-r--r-- root/root 24869 2024-07-14 14:15 ./usr/lib/
Changed in razercfg (Ubuntu): | |
status: | New → Fix Released |
Changed in razercfg (Ubuntu Noble): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Mauricio Faria de Oliveira (mfo) |
Broken -proposed:
# apt install -t noble-proposed razercfg
# dpkg -s razercfg | grep Version:
Version: 0.42+ds-4ubuntu0.1
# dpkg -L razercfg | grep dist-packages/ pyrazer python3/ dist-packages/ dist-packages/ pyrazer python3/ dist-packages/ dist-packages/ pyrazer/ __init_ _.py python3/ dist-packages/ dist-packages/ pyrazer/ main.py python3/ dist-packages/ dist-packages/ pyrazer/ ui.py
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
# python3 -q -c 'import pyrazer' rror: No module named 'pyrazer'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundE
Test package:
# apt install ./razercfg_ 0.42+ds- 4ubuntu0. 2_amd64. deb
# dpkg -s razercfg | grep Version:
Version: 0.42+ds-4ubuntu0.2
# dpkg -L razercfg | grep dist-packages/ pyrazer python3/ dist-packages/ pyrazer python3/ dist-packages/ pyrazer/ __init_ _.py python3/ dist-packages/ pyrazer/ main.py python3/ dist-packages/ pyrazer/ ui.py
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
# python3 -q -c 'import pyrazer'
#