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

Remove max_versioned_symbol, fix version policy check #43

merged 4 commits into from Jun 4, 2016


Copy link

ehashman commented Jun 4, 2016

Hopefully fixes #41 (and definitely #42).

ehashman added 4 commits Jun 4, 2016
Lists of versions were generated from the .gnu.version_d sections of the
lib_whitelist .so's available in the manylinux docker image.
@ehashman ehashman force-pushed the ehashman:issue-41 branch from 7143074 to 5ffc3c6 Jun 4, 2016
@ehashman ehashman changed the title Remove max_versioned_symbol, fix symbol policy check Remove max_versioned_symbol, fix version policy check Jun 4, 2016

This comment has been minimized.

Copy link

njsmith commented Jun 4, 2016

Noting for the record, the main change here is that instead of trying to parse the version strings to convert them into sortable numbers -- which is sorta unfortunate since they're really arbitrary tokens -- this changes the policy to just have a list of which version string tokens are allowed. This makes things simpler and more correct.

@njsmith njsmith merged commit 952b9f5 into pypa:master Jun 4, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed

This comment has been minimized.

Copy link
Member Author

ehashman commented Jun 4, 2016

For the record, sketchy way I used to generate the list of versions on the manylinux docker:

(in manylinux docker with libs from lib_whitelist)# for lib in "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""; do readelf -V `ldconfig -p | grep $lib | sed 's|.*=> ||'` >> /versions.txt; done

$ docker cp silly_hamilton:/versions.txt symbols.txt
$ vim symbols.txt
<removed any non-.gnu.version_d sections>
$ grep 'Name:' symbols.txt > symbols2.txt  # gets only lines with version names
$ grep -v 'Name: .*\.so' symbols2.txt | awk '{ print $11 }' | sort -u  # removes version names corresponding to .so's
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.