-
Notifications
You must be signed in to change notification settings - Fork 343
uutils/0.1.0 package update #54259
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
base: main
Are you sure you want to change the base?
uutils/0.1.0 package update #54259
Conversation
octo-sts
bot
commented
May 24, 2025
Signed-off-by: wolfi-bot <[email protected]>
📦 Build Failed: Missing Dependency
Build Details
Root Cause Analysis 🔍The build process requires libclang for bindgen to generate Rust bindings to C libraries. The libclang shared library is missing in the build environment. Bindgen uses libclang to parse C/C++ headers and generate Rust FFI bindings. The error occurred while trying to build the fts-sys crate, which depends on bindgen to generate Rust bindings to the C FTS library. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Suggested ChangesFile: package:name:uutils/melange.yaml
Replacement:
Click to expand fix analysisAnalysisThe build failure is occurring because the Rust crate Looking at the Melange YAML file, we can see that the build environment includes packages like Since Wolfi OS uses the Alpine package manager (apk), we need to add the package that provides libclang to the environment section of the Melange YAML file. In Alpine-based systems, the package that provides libclang is typically Click to expand fix explanationExplanationThe build failure is occurring because the Rust build process is trying to use bindgen, which requires libclang to generate Rust bindings to C libraries. The error message specifically states that it couldn't find any valid shared libraries matching Adding When the build runs again with this change, the bindgen tool should be able to find the libclang shared library and successfully generate the Rust bindings for the fts-sys crate. This will allow the build process to complete successfully. The error is specifically occurring during the build of the fts-sys crate, which is likely a transitive dependency of the uutils coreutils package. The fts-sys crate provides Rust bindings to the C FTS (File Tree System) library, which is used for traversing file hierarchies. It needs bindgen to generate these bindings, and bindgen needs libclang. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
Signed-off-by: Dentrax <[email protected]>