Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set PKG_CONFIG_PATH to ensure gpgme builds with local libassuan #190

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ext/gpgme/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@
recipe.activate
end

pkg_config_paths = [
File.join(libgpg_error_recipe.lib_path, 'pkgconfig'),
File.join(libassuan_recipe.lib_path, 'pkgconfig'),
]

# Ensure that the locally-built libraries take precedence. gpgme runs
# `gpgrt-config libassuan` and could pull in the system libassuan
# if PKG_CONFIG_PATH is not set properly.
ENV["PKG_CONFIG_PATH"] = [*pkg_config_paths, ENV["PKG_CONFIG_PATH"]].compact.join(File::PATH_SEPARATOR)

gpgme_recipe = MiniPortile.new('gpgme', '1.21.0').tap do |recipe|
recipe.target = File.join(ROOT, "ports")
recipe.files = [{
Expand Down
Loading