-
Notifications
You must be signed in to change notification settings - Fork 43
Fix python3 six and make issue on Amazon Linux 2 #48
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
Conversation
Started a build with this PR - https://ci.swift.org/job/swift-5.5-rpm-package-amazon-linux-2/5/console |
@@ -32,6 +32,9 @@ cp patches/*.patch $HOME/rpmbuild/SOURCES/ | |||
pushd $HOME/rpmbuild/SPECS | |||
# install all the dependencies needed to build Swift from the spec file itself | |||
yum-builddep -y ./swiftlang.spec | |||
# fix python six | |||
mkdir -p /usr/local/lib/python3.7/site-packages/ | |||
easy_install-3.7 six |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these workarounds should be done in the Docker file not the build_rpm.sh file. I did't notice that in one of the earlier PRs (centos 7?) so that needs to be moved as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
additionally if we are now building cmake from source, should we remove it from the "BuildRequires" list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dockerfile would not have the package installed at this point, we can move it to swiftlang.spec file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should drop CMake from BuildRequires. I will create a new PR for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dockerfile does install the deps: https://github.com/apple/swift-installer-scripts/blob/main/platforms/Linux/amazonlinux/2/Dockerfile#L23
so it could and should be moved there
@tomerd @shahmishal I have done some testing on the amazon linux rpm - swiftlang-5.5.0-1.amzn2.x86_64.rpm and there are some issues with dependencies(requires) that are preventing the package installing. I also uploaded the package to a test repository which revealed some strange errors in the package
These errors are also present in the It seems to indicate a problem in the spec files setup. |
Sorry, but I'm missing what the errors are. |
The
The
|
I'm confused; the spec file doesn't explicitly mention any of those files under "provides". |
It looks like the |
Currently for Swift Project, we are using bugs.swift.org. In the future, we are planning on switching over to GitHub Issues.
Thanks for testing the package! If you already know the fix can you put up a PR to resolve the issue? |
I would love to switch to GH issues if possible |
thanks for testing this @futurejones, do you know what the issue may be in the spec setup? |
I think that gcc should be a I think that we are including more runtimes than necessary (e.g. hwasan), and simultaneously under including files (e.g. the profile runtime). |
I'd be happy to see this list paired down if possible. less is better in this case. this list comes from our existing docker setup and iirc the @compnerd in any case, I think this PR can move forward? |
Just to verify, cmake is being dropped because we build it and use it? If so, doing the rest subsequently SGTM. |
Correct, we are building CMake to make sure we have the latest version required for Swift build system. |
Is this a new change in main? I've modified my spec file to build ninja so that BuildDependency is gone, but I don't see a recipe in the |
This was added ~2 years back by @compnerd - swiftlang/swift#26301 |
It would be a good to review all of the requirements in Dockerfiles and RPM spec file. Created an issue - https://bugs.swift.org/browse/SR-15418 to track the work. |
Uh oh!
There was an error while loading. Please reload this page.