patchman icon indicating copy to clipboard operation
patchman copied to clipboard

patchman-client gives error on Oracle Linux 8 with modules

Open wellhardh opened this issue 1 year ago • 0 comments

I get the following error when running patchman-client (3.0.8-1) on Oracle Linux 8:

Checking for modularity...
Finding enabled yum modules...
sed: -e expression #1, char 15: unterminated `s' command
# yum module list --enabled
Last metadata expiration check: 2:29:18 ago on Wed 08 May 2024 09:27:19 AM CEST.
Oracle Linux 8 Application Stream (x86_64)
Name               Stream     Profiles Summary                                                                                                                                          
container-tools    ol8 [d][e] common [ Most recent (rolling) versions of podman, buildah, skopeo, runc, conmon, runc, conmon, CRIU, Udica, etc as well as dependencies such as container
                              d]       -selinux built and tested together, and updated as frequently as every 12 weeks.
python36           3.6 [d][e] build, c Python programming language, version 3.6                                                                                                         
                              ommon [d 
                              ]        
satellite-5-client 1.0 [d][e] common [ ULN client packages                                                                                                                              
                              d], gui  

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

It looks like the error happens in the get_enabled_modules() function. I have attached the output from yum module info python36 that looks to be the problem.

module_info_python36.txt

The output contains information for several versions of the module and my guess is that the code does not handle that. It is however possible to list info for a particular version using:

# yum module info python36:3.6:8000020190410133122:17efdbc7:x86_64
Last metadata expiration check: 2:46:08 ago on Wed 08 May 2024 09:27:19 AM CEST.
Name             : python36
Stream           : 3.6 [d][e][a]
Version          : 8000020190410133122
Context          : 17efdbc7
Architecture     : x86_64
Profiles         : build, common [d]
Default profiles : common
Repo             : ol8_appstream
Summary          : Python programming language, version 3.6
Description      : This module gives users access to the internal Python 3.6 in OL8, as
                 : well as provides some additional Python packages the users might need.
                 : In addition to these you can install any python3-* package available
                 : in OL and use it with Python from this module.
Requires         : platform:[el8]
Artifacts        : python-nose-docs-0:1.3.7-30.module+el8.0.0+5333+22a49f57.noarch
                 : python-pymongo-doc-0:3.6.1-9.module+el8.0.0+5333+22a49f57.noarch
                 : python-sqlalchemy-doc-0:1.3.2-1.module+el8.0.0+5333+22a49f57.noarch
                 : python-virtualenv-doc-0:15.1.0-18.module+el8.0.0+5333+22a49f57.noarch
                 : python3-PyMySQL-0:0.8.0-10.module+el8.0.0+5333+22a49f57.noarch
                 : python3-bson-0:3.6.1-9.module+el8.0.0+5333+22a49f57.x86_64
                 : python3-docs-0:3.6.7-2.module+el8.0.0+5333+22a49f57.noarch
                 : python3-docutils-0:0.14-12.module+el8.0.0+5333+22a49f57.noarch
                 : python3-nose-0:1.3.7-30.module+el8.0.0+5333+22a49f57.noarch
                 : python3-pygments-0:2.2.0-20.module+el8.0.0+5333+22a49f57.noarch
                 : python3-pymongo-0:3.6.1-9.module+el8.0.0+5333+22a49f57.x86_64
                 : python3-pymongo-gridfs-0:3.6.1-9.module+el8.0.0+5333+22a49f57.x86_64
                 : python3-scipy-0:1.0.0-19.module+el8.0.0+5333+22a49f57.x86_64
                 : python3-sqlalchemy-0:1.3.2-1.module+el8.0.0+5333+22a49f57.x86_64
                 : python3-virtualenv-0:15.1.0-18.module+el8.0.0+5333+22a49f57.noarch
                 : python3-wheel-1:0.30.0-15.module+el8.0.0+5333+22a49f57.noarch
                 : python36-0:3.6.8-2.module+el8.0.0+5333+22a49f57.x86_64
                 : python36-debug-0:3.6.8-2.module+el8.0.0+5333+22a49f57.x86_64
                 : python36-devel-0:3.6.8-2.module+el8.0.0+5333+22a49f57.x86_64
                 : python36-rpm-macros-0:3.6.8-2.module+el8.0.0+5333+22a49f57.noarch

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled, [a]ctive

wellhardh avatar May 08 '24 10:05 wellhardh