irods / irods_rule_engine_plugin_audit_amqp

BSD 3-Clause "New" or "Revised" License
2 stars 13 forks source link

Build hook fails to build plugin #139

Closed alanking closed 2 months ago

alanking commented 2 months ago

I tried to build the plugin using the development environment using local externals package files (not sure if related to the issue) with this line:

docker run -it --rm \
    -v /home/alanking/hdd/dev/irods_rule_engine_plugin_audit_amqp:/irods_plugin_source:ro \
    -v /home/alanking/hdd/builds/irods_plugins/irods_rule_engine_plugin_audit_amqp/4-3-stable/almalinux-8:/irods_plugin_build \
    -v /home/alanking/hdd/builds/irods_plugin_packages/irods_rule_engine_plugin_audit_amqp/4-3-stable/almalinux-8:/irods_plugin_packages \
    -v /home/alanking/hdd/builds/irods_packages/4-3-stable:/irods_packages:ro \
    -v /home/alanking/hdd/builds/externals/4-3-stable/almalinux-8:/externals:ro \
    irods-plugin-builder-43s:almalinux-8 --build_directory /irods_plugin_build \
        --output_root_directory /irods_plugin_packages \
        --externals_packages_directory /externals \
        irods_rule_engine_plugin_audit_amqp

But it fails with the following error:

Traceback (most recent call last):                                                                                                                                                                                                                                              
  File "/irods_plugin_source/irods_consortium_continuous_integration_build_hook.py", line 96, in <module>                                                                                                                                                                       
    options.externals_packages_directory)                                                                                                                                                                                                                                       
  File "/irods_plugin_source/irods_consortium_continuous_integration_build_hook.py", line 76, in main                                                                                                                                                                           
    install_building_dependencies(externals_directory)                                                                                                                                                                                                                          
  File "/irods_plugin_source/irods_consortium_continuous_integration_build_hook.py", line 44, in install_building_dependencies
    irods_python_ci_utilities.install_os_packages_from_files(externals)                                                                 
  File "/usr/local/lib/python3.6/site-packages/irods_python_ci_utilities/irods_python_ci_utilities.py", line 139, in install_os_packages_from_files
    dispatch_map[get_distribution()](files)                                                                                             
  File "/usr/local/lib/python3.6/site-packages/irods_python_ci_utilities/irods_python_ci_utilities.py", line 115, in install_os_packages_from_files_dnf
    subprocess_get_output(args, check_rc=True)                                                                                          
  File "/usr/local/lib/python3.6/site-packages/irods_python_ci_utilities/irods_python_ci_utilities.py", line 70, in subprocess_get_output
    '''.format(args, kwargs, p.returncode, out, err))                                                                                                                                                                                                                           
RuntimeError: subprocess_get_output() failed                                                                                                                                                                                                                                    
args: (['sudo', 'dnf', 'localinstall', '-y', '--nogpgcheck', '/externals/Almalinux_8/irods-externals-avro-libcxx1.11.0-3-1.0-0.el8.x86_64.rpm', '/externals/Almalinux_8/irods-externals-boost-libcxx1.81.0-1-1.0-0.el8.x86_64.rpm', '/externals/Almalinux_8/irods-externals-clan
g-runtime13.0.0-0-1.0-1.x86_64.rpm', '/externals/Almalinux_8/irods-externals-catch22.13.8-0-1.0-1.x86_64.rpm', '/externals/Almalinux_8/irods-externals-clang13.0.1-0-1.0-0.el8.x86_64.rpm', '/externals/Almalinux_8/irods-externals-cmake3.21.4-0-1.0-4.el8.x86_64.rpm', '/exter
nals/Almalinux_8/irods-externals-cppzmq4.8.1-1-1.0-4.el8.x86_64.rpm', '/externals/Almalinux_8/irods-externals-fmt-libcxx8.1.1-1-1.0-0.el8.x86_64.rpm', '/externals/Almalinux_8/irods-externals-json3.10.4-0-1.0-3.el8.x86_64.rpm', '/externals/Almalinux_8/irods-externals-libar
chive3.5.2-0-1.0-4.el8.x86_64.rpm', '/externals/Almalinux_8/irods-externals-nanodbc-libcxx2.13.0-2-1.0-0.el8.x86_64.rpm', '/externals/Almalinux_8/irods-externals-qpid-proton-libcxx0.36.0-2-1.0-0.el8.x86_64.rpm', '/externals/Almalinux_8/irods-externals-spdlog-libcxx1.9.2-2
-1.0-0.el8.x86_64.rpm', '/externals/Almalinux_8/irods-externals-zeromq4-1-libcxx4.1.8-1-1.0-0.el8.x86_64.rpm'],)                        
kwargs: {'stdout': -1, 'stderr': -1}
returncode: 1
stdout: Last metadata expiration check: 0:01:30 ago on Mon Apr 29 20:31:44 2024.
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

stderr: Error: 
 Problem 1: conflicting requests
  - nothing provides irods-externals-clang-runtime13.0.1-0 needed by irods-externals-avro-libcxx1.11.0-3-1.0-0.el8.x86_64 from @commandline
 Problem 2: conflicting requests
  - nothing provides irods-externals-clang-runtime13.0.1-0 needed by irods-externals-boost-libcxx1.81.0-1-1.0-0.el8.x86_64 from @commandline
 Problem 3: conflicting requests
  - nothing provides irods-externals-clang-runtime13.0.1-0 needed by irods-externals-fmt-libcxx8.1.1-1-1.0-0.el8.x86_64 from @commandline
 Problem 4: conflicting requests
  - nothing provides irods-externals-clang-runtime13.0.1-0 needed by irods-externals-nanodbc-libcxx2.13.0-2-1.0-0.el8.x86_64 from @commandline
 Problem 5: conflicting requests
  - nothing provides irods-externals-clang-runtime13.0.1-0 needed by irods-externals-qpid-proton-libcxx0.36.0-2-1.0-0.el8.x86_64 from @commandline
 Problem 6: conflicting requests
  - nothing provides irods-externals-clang-runtime13.0.1-0 needed by irods-externals-spdlog-libcxx1.9.2-2-1.0-0.el8.x86_64 from @commandline
 Problem 7: conflicting requests
  - nothing provides irods-externals-clang-runtime13.0.1-0 needed by irods-externals-zeromq4-1-libcxx4.1.8-1-1.0-0.el8.x86_64 from @commandline

This appears to be resolved by updating the build hook like this:

index f2108c4..dbdad73 100644
--- a/irods_consortium_continuous_integration_build_hook.py
+++ b/irods_consortium_continuous_integration_build_hook.py
@@ -18,7 +18,7 @@ def install_building_dependencies(externals_directory):
     externals_list = [
         'irods-externals-avro-libcxx1.11.0-3',
         'irods-externals-boost-libcxx1.81.0-1',
-        'irods-externals-clang-runtime13.0.0-0',
+        'irods-externals-clang-runtime13.0.1-0',
         'irods-externals-catch22.13.8-0',
         'irods-externals-clang13.0.1-0',
         'irods-externals-cmake3.21.4-0',