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

elf: extract defined symbol versions #3408

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

jhenstridge
Copy link
Contributor

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run ./runtests.sh static?
  • Have you successfully run ./runtests.sh tests/unit?

I think it would be useful for Snapcraft to warn if a snap was missing libraries, or including duplicate libraries provided by the base snap or a content interface snap.

The current ElfFile class contains most of this information, in the form of the list of needed libraries together with the required symbol versions. What is missing is a list of symbol versions defined by the library. This PR adds that information to the class.

@codecov-io
Copy link

Codecov Report

Merging #3408 (2c6ec69) into master (c074de7) will decrease coverage by 0.01%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3408      +/-   ##
==========================================
- Coverage   90.77%   90.75%   -0.02%     
==========================================
  Files         256      256              
  Lines       18186    18194       +8     
==========================================
+ Hits        16508    16512       +4     
- Misses       1678     1682       +4     
Impacted Files Coverage Δ
snapcraft/internal/elf.py 86.33% <50.00%> (-0.87%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c074de7...2c6ec69. Read the comment docs.

Copy link
Contributor

@cjp256 cjp256 left a comment

Choose a reason for hiding this comment

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

LGTM

@sergiusens sergiusens merged commit 935a801 into canonical:master Jan 11, 2021
abitrolly pushed a commit to abitrolly/snapcraft that referenced this pull request Mar 31, 2021
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.

4 participants