-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
The ibm-aiu-monitor package needs some fixes to adhere to best practices for RPMs.
Running scriptlet: ibm-aiu-monitor-1.0.0-1.x86_64 24/28 Looking in links: /tmp/tmpzqs64fp5 Requirement already satisfied: setuptools in /usr/lib/python3.9/site-packages (53.0.0) Processing /tmp/tmpzqs64fp5/pip-21.3.1-py3-none-any.whl Installing collected packages: pip WARNING: The scripts pip, pip3 and pip3.9 are installed in '/usr/local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed pip-21.3.1 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Found pip3 at /usr/local/bin/pip3. Proceeding with aiu-monitor dependency installation... Installing psutil... Collecting psutil Downloading psutil-7.1.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (291 kB) Installing collected packages: psutil Successfully installed psutil-7.1.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Installing : ibm-aiu-monitor-1.0.0-1.x86_64 24/28 Running scriptlet: ibm-aiu-monitor-1.0.0-1.x86_64 24/28 Error: Directory '/opt/ibm/spyre/bin' does not exist. warning: %post(ibm-aiu-monitor-1.0.0-1.x86_64) scriptlet failed, exit status 1Error in POSTIN scriptlet in rpm package ibm-aiu-monitor
RPMs should in general not call utilities like pip, instead it should have a dependency on python3.12-psutil. Additionally, the RPM should have a dependency on the directory /opt/ibm/spyre/bin
- blocks
-
AIPCC-5670 spyre: ibm-aiu-monitor package needs fixes to pre and post install scripts
-
- Closed
-
- clones
-
AIPCC-5670 spyre: ibm-aiu-monitor package needs fixes to pre and post install scripts
-
- Closed
-