Skip to content

chore: remove libloading patch#3973

Merged
Bravo555 merged 2 commits intothin-edge:mainfrom
Bravo555:chore/remove-libloading-patch
Feb 17, 2026
Merged

chore: remove libloading patch#3973
Bravo555 merged 2 commits intothin-edge:mainfrom
Bravo555:chore/remove-libloading-patch

Conversation

@Bravo555
Copy link
Member

@Bravo555 Bravo555 commented Feb 10, 2026

Proposed changes

Remove libloading patch, which was used to make the crate build with our mk/cargo.sh, which changed some compilation settings to allow some other crates to be built for some targets. The build settings are changed to provide the library path to rust-lld linker, making the patch no longer necessary.

More details: nagisa/rust_libloading#195 (comment)

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
  • Documentation Update (if none of the other choices apply)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue


Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA (in all commits with git commit -s. You can activate automatic signing by running just prepare-dev once)
  • I ran just format as mentioned in CODING_GUIDELINES
  • I used just check as mentioned in CODING_GUIDELINES
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@Bravo555 Bravo555 temporarily deployed to Test Pull Request February 10, 2026 09:45 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Bravo555 Bravo555 force-pushed the chore/remove-libloading-patch branch from 027c9ae to 879192e Compare February 11, 2026 10:35
@Bravo555 Bravo555 temporarily deployed to Test Pull Request February 11, 2026 10:35 — with GitHub Actions Inactive
@Bravo555 Bravo555 temporarily deployed to Test Pull Request February 11, 2026 12:17 — with GitHub Actions Inactive
@Bravo555 Bravo555 force-pushed the chore/remove-libloading-patch branch from 66737e5 to 5dbf74f Compare February 11, 2026 13:00
@Bravo555 Bravo555 temporarily deployed to Test Pull Request February 11, 2026 13:00 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
836 0 3 836 100 2h44m8.74286s

@Bravo555 Bravo555 force-pushed the chore/remove-libloading-patch branch from 5dbf74f to 324b0c7 Compare February 12, 2026 09:58
@Bravo555 Bravo555 temporarily deployed to Test Pull Request February 12, 2026 09:58 — with GitHub Actions Inactive
@Bravo555 Bravo555 marked this pull request as ready for review February 12, 2026 10:05
@reubenmiller reubenmiller added refactoring Developer value skip-release-notes Don't include the ticket in the auto generated release notes labels Feb 13, 2026
@Bravo555 Bravo555 added this pull request to the merge queue Feb 13, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 13, 2026
@Bravo555 Bravo555 force-pushed the chore/remove-libloading-patch branch from 324b0c7 to 9addc63 Compare February 13, 2026 13:31
@Bravo555 Bravo555 temporarily deployed to Test Pull Request February 13, 2026 13:31 — with GitHub Actions Inactive
Signed-off-by: Marcel Guzik <marcel.guzik@cumulocity.com>
Provide --sysroot argument to rust-lld linker when compiling with musl,
such that crates that wish to link with libraries like libdl (which are
empty stubs but provided by musl) are able to do so.

This change is made to make crates that link to libraries other than
just libc, like libdl, build without issues. These libraries are
provided by musl libc, so we should be able to link with them properly.

Additional details in a [github comment][1].

[1]: nagisa/rust_libloading#195 (comment)

How the linker gets invoked can be observed by setting
RUSTFLAGS="-Clink-arg=-v -Wlinker-messages"

Signed-off-by: Marcel Guzik <marcel.guzik@cumulocity.com>
@Bravo555 Bravo555 force-pushed the chore/remove-libloading-patch branch from 9addc63 to 695e60b Compare February 16, 2026 09:53
@Bravo555 Bravo555 temporarily deployed to Test Pull Request February 16, 2026 09:53 — with GitHub Actions Inactive
@Bravo555 Bravo555 added this pull request to the merge queue Feb 17, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 17, 2026
@Bravo555 Bravo555 added this pull request to the merge queue Feb 17, 2026
Merged via the queue into thin-edge:main with commit 241138c Feb 17, 2026
68 of 70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Developer value skip-release-notes Don't include the ticket in the auto generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants