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

Show ELF provides and requires in logs #296

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

tiran
Copy link
Collaborator

@tiran tiran commented Aug 6, 2024

Fromager uses elfdeps to analyse the content of a wheel file and logs the library dependencies and provides.

Example output for lxml-5.2.2-cp311-cp311-linux_x86_64.whl

INFO: lxml: Requires libraries: libc.so.6, libexslt.so.0, libxml2.so.2, libxslt.so.1
DEBUG: lxml: Requires libc.so.6(GLIBC_2.3.4, GLIBC_2.4, GLIBC_2.2.5, GLIBC_2.14)
DEBUG: lxml: Requires libexslt.so.0()
DEBUG: lxml: Requires libxml2.so.2(LIBXML2_2.6.17, LIBXML2_2.5.2, LIBXML2_2.4.30, LIBXML2_2.9.0, LIBXML2_2.5.9, LIBXML2_2.6.0, LIBXML2_2.7.4, LIBXML2_2.6.15, LIBXML2_2.6.20, LIBXML2_2.6.5, LIBXML2_2.6.18, LIBXML2_2.6.10, LIBXML2_2.7.0, LIBXML2_2.6.24, LIBXML2_2.6.2, LIBXML2_2.6.16, LIBXML2_2.6.21, LIBXML2_2.6.32, LIBXML2_2.5.7, LIBXML2_2.6.1, LIBXML2_2.6.14, LIBXML2_2.6.23, LIBXML2_2.5.8)
DEBUG: lxml: Requires libxslt.so.1(LIBXML2_1.1.2, LIBXML2_1.0.22, LIBXML2_1.0.11, LIBXML2_1.0.24, LIBXML2_1.1.26, LIBXML2_1.1.9, LIBXML2_1.0.18)
DEBUG: lxml: Requires rtld(GNU_HASH)

Fromager uses `elfdeps` to analyse the content of a wheel file and
logs the library dependencies and provides.

Example output for `lxml-5.2.2-cp311-cp311-linux_x86_64.whl`

```
INFO: lxml: Requires libraries: libc.so.6, libexslt.so.0, libxml2.so.2, libxslt.so.1
DEBUG: lxml: Requires libc.so.6(GLIBC_2.3.4, GLIBC_2.4, GLIBC_2.2.5, GLIBC_2.14)
DEBUG: lxml: Requires libexslt.so.0()
DEBUG: lxml: Requires libxml2.so.2(LIBXML2_2.6.17, LIBXML2_2.5.2, LIBXML2_2.4.30, LIBXML2_2.9.0, LIBXML2_2.5.9, LIBXML2_2.6.0, LIBXML2_2.7.4, LIBXML2_2.6.15, LIBXML2_2.6.20, LIBXML2_2.6.5, LIBXML2_2.6.18, LIBXML2_2.6.10, LIBXML2_2.7.0, LIBXML2_2.6.24, LIBXML2_2.6.2, LIBXML2_2.6.16, LIBXML2_2.6.21, LIBXML2_2.6.32, LIBXML2_2.5.7, LIBXML2_2.6.1, LIBXML2_2.6.14, LIBXML2_2.6.23, LIBXML2_2.5.8)
DEBUG: lxml: Requires libxslt.so.1(LIBXML2_1.1.2, LIBXML2_1.0.22, LIBXML2_1.0.11, LIBXML2_1.0.24, LIBXML2_1.1.26, LIBXML2_1.1.9, LIBXML2_1.0.18)
DEBUG: lxml: Requires rtld(GNU_HASH)
```

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Copy link
Member

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

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

This looks great. I like the output format and detail.

I see you asked @shubhbapna for a review, too, so I'll leave it open to give him a chance to comment.

@mergify mergify bot merged commit 5cb0a1b into python-wheel-build:main Aug 6, 2024
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants