Skip to content

Conversation

@tpowell-progress
Copy link
Contributor

@tpowell-progress tpowell-progress commented Jan 21, 2025

Description

Chef 18 in habitat plan is unable to load ffi-libarchive with ffi version 1.17.1. Putting an upper bound on ffi at 1.17.0 prevents this breakage, but it has to be added to ohai as well due to post-bundle-install.rb manually installed gems bundled in ohai. FFI issue #1139 has been opened upstream.

Broken build example

Symptoms:

ffi-libarchive could not be loaded, libarchive is probably not installed on system, archive_file will not be available

# NameError:
#   uninitialized constant Archive::EXTRACT_OWNER
#
#               owner: Archive::EXTRACT_OWNER,
#                             ^^^^^^^^^^^^^^^
#   ./lib/chef/resource/archive_file.rb:146:in 'extract_option_map'

 

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

Signed-off-by: Thomas Powell <thomas.powell@progress.com>
@tpowell-progress tpowell-progress requested review from a team as code owners January 21, 2025 18:07
@sonarqube-for-infrastructure-prod

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@sonarqubecloud
Copy link

@tpowell-progress
Copy link
Contributor Author

@tpowell-progress File bug upstream to ffi for the ffi_c issue

@tpowell-progress tpowell-progress merged commit 1e9f585 into 18-stable Jan 22, 2025
33 checks passed
@tpowell-progress tpowell-progress deleted the tp/try-ffi-fix-for-plans branch January 22, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants