Skip to content

Add compatibility for LIEF=0.14#5228

Merged
mbargull merged 5 commits intoconda:mainfrom
mbargull:lief-0.14-compat
Mar 11, 2024
Merged

Add compatibility for LIEF=0.14#5228
mbargull merged 5 commits intoconda:mainfrom
mbargull:lief-0.14-compat

Conversation

@mbargull
Copy link
Copy Markdown
Member

@mbargull mbargull commented Mar 11, 2024

Description

Add compatibility for LIEF=0.14
Fixes gh-5227.

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Mar 11, 2024
Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
@mbargull
Copy link
Copy Markdown
Member Author

@conda/builds-tools, I've just added the corresponding issue to the 24.3.x milestone real quick so we have conda-build ready for whenever we make py-lief>=0.14 packages widely available.

@jezdez
Copy link
Copy Markdown
Member

jezdez commented Mar 11, 2024

@mbargull @beeankha and I are about to cut the release branch for 24.3.x to kickoff the release process, do you plan to work on the compatibility today? Since in case not, this is something we'll have to do in a minor release.

@mbargull
Copy link
Copy Markdown
Member Author

@beeankha and I are about to cut the release branch for 24.3.x to kickoff the release process

Haha, I just sent her a message asking if you have concrete plans 🤣 .

do you plan to work on the compatibility today?

Yes, the code changes are likely ready already.
I'm just waiting for the CI to go through (current failures on Windows are unrelated CI setup flukes), will then revert cb5df71 and then this should be ready to go in.

This reverts commit cb5df71.

Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
@mbargull mbargull marked this pull request as ready for review March 11, 2024 17:11
@mbargull mbargull requested a review from a team as a code owner March 11, 2024 17:11
Copy link
Copy Markdown
Contributor

@kenodegard kenodegard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mbargull mbargull merged commit 4bc2fd8 into conda:main Mar 11, 2024
@beeankha beeankha mentioned this pull request Mar 12, 2024
32 tasks
mbargull added a commit to mbargull/conda-build that referenced this pull request May 21, 2024
introduced in condagh-5228 which replaced binary.name with str(file).
The former returns the path to the binary whereas the latter returns the
contents of the parsed binary, naturally causing high memory usage.
That semantic change was unintended (misread upstream changes).
Since binary's path is no longer part of the object, pass it separately.

Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
kenodegard pushed a commit that referenced this pull request May 22, 2024
* Fix excessive memory use in inspect_linkages_lief
introduced in gh-5228 which replaced binary.name with str(file).
The former returns the path to the binary whereas the latter returns the
contents of the parsed binary, naturally causing high memory usage.
That semantic change was unintended (misread upstream changes).
Since binary's path is no longer part of the object, pass it separately.

* Use consistent var name in inspect_linkages_lief to avoid variable shadowing.

* Remove redundant get_uniqueness_key call

---------

Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Mar 12, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed [bot] added once the contributor has signed the CLA locked [bot] locked due to inactivity

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

conda-build not yet compatible with LIEF 0.14 API changes

4 participants