CI: auto-discover pkg-config and library paths for local installs#1571
Open
DawidWesierski4 wants to merge 1 commit into
Open
CI: auto-discover pkg-config and library paths for local installs#1571DawidWesierski4 wants to merge 1 commit into
DawidWesierski4 wants to merge 1 commit into
Conversation
Add _export_local_paths() helper that dynamically discovers .pc files and shared libraries under a local install prefix, then exports PKG_CONFIG_PATH and LD_LIBRARY_PATH so downstream builds (FFmpeg, GStreamer) can find DPDK/MTL headers and libs without hardcoding directory layouts. - Bootstrap block at script start picks up paths from cached installs - Per-build exports after DPDK, MTL, FFmpeg ensure cascading visibility - Pre-GStreamer exports guarantee mtl.pc is discoverable via pkg-config - DPDK build uses MTL_INSTALL_PREFIX for local-install support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When building with
MTL_INSTALL_PREFIX(local-install mode), downstream builds like GStreamer cannot findmtl.pcor DPDK headers becausePKG_CONFIG_PATHandLD_LIBRARY_PATHare either hardcoded to a specificlibdirlayout or not propagated between build steps.Solution
Add
_export_local_paths()helper tosetup_environment.shthat dynamically discovers.pcfiles and shared libraries under a given prefix and exports the correct paths.Key changes:
mtl.pcand DPDK pkgconfig are discoverable before the GStreamer meson build${local_base}/dpdkwhenMTL_INSTALL_PREFIXis setThis eliminates the need to hardcode
lib/x86_64-linux-gnuvslib64paths and makes the build robust across different system layouts.