-
Notifications
You must be signed in to change notification settings - Fork 278
Update manylinux detection to be robust to incompatible ABIs #221
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update manylinux detection to be robust to incompatible ABIs
`armv7l` machine overlaps multiple ABI (`armhf`, `armel`). The same goes for `i686` when running on `x86_64` kernel (`i686`, `x32`). This commit checks that ABI is compatible with the ones defined in PEP 513/571/599
- Loading branch information
commit dbb34d0f23338cb66a3f203a0fdfa97b65cb64df
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -x | ||
| set -e | ||
|
|
||
| if [ $# -eq 0 ]; then | ||
| docker run --rm -v $(pwd):/home/hello-world arm32v5/debian /home/hello-world/build-hello-world.sh incontainer 52 | ||
| docker run --rm -v $(pwd):/home/hello-world arm32v7/debian /home/hello-world/build-hello-world.sh incontainer 52 | ||
| docker run --rm -v $(pwd):/home/hello-world i386/debian /home/hello-world/build-hello-world.sh incontainer 52 | ||
| docker run --rm -v $(pwd):/home/hello-world s390x/debian /home/hello-world/build-hello-world.sh incontainer 64 | ||
| docker run --rm -v $(pwd):/home/hello-world debian /home/hello-world/build-hello-world.sh incontainer 64 | ||
| docker run --rm -v $(pwd):/home/hello-world debian /home/hello-world/build-hello-world.sh x32 52 | ||
| cp -f hello-world-x86_64-i386 hello-world-invalid-magic | ||
| printf "\x00" | dd of=hello-world-invalid-magic bs=1 seek=0x00 count=1 conv=notrunc | ||
| cp -f hello-world-x86_64-i386 hello-world-invalid-class | ||
| printf "\x00" | dd of=hello-world-invalid-class bs=1 seek=0x04 count=1 conv=notrunc | ||
| cp -f hello-world-x86_64-i386 hello-world-invalid-data | ||
| printf "\x00" | dd of=hello-world-invalid-data bs=1 seek=0x05 count=1 conv=notrunc | ||
| head -c 40 hello-world-x86_64-i386 > hello-world-too-short | ||
| exit 0 | ||
| fi | ||
|
|
||
| export DEBIAN_FRONTEND=noninteractive | ||
| cd /home/hello-world/ | ||
| apt-get update | ||
| apt-get install -y --no-install-recommends gcc libc6-dev | ||
| if [ "$1" == "incontainer" ]; then | ||
| ARCH=$(dpkg --print-architecture) | ||
| CFLAGS="" | ||
| else | ||
| ARCH=$1 | ||
| dpkg --add-architecture ${ARCH} | ||
| apt-get install -y --no-install-recommends gcc-multilib libc6-dev-${ARCH} | ||
| CFLAGS="-mx32" | ||
| fi | ||
| NAME=hello-world-$(uname -m)-${ARCH} | ||
| gcc -Os -s ${CFLAGS} -o ${NAME}-full hello-world.c | ||
| head -c $2 ${NAME}-full > ${NAME} | ||
| rm -f ${NAME}-full |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #include <stdio.h> | ||
|
|
||
| int main(int argc, char* argv[]) | ||
| { | ||
| printf("Hello world"); | ||
| return 0; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.