File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,7 @@ RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.n
21
21
ADD swiftlang.spec /tmp/swiftlang.spec
22
22
RUN touch /tmp/metadata.inc # fake metadata is okay for this optimization
23
23
RUN cd /tmp && yum-builddep -y swiftlang.spec
24
+
25
+ # fix python six
26
+ RUN mkdir -p /usr/local/lib/python3.7/site-packages/
27
+ RUN easy_install-3.7 six
Original file line number Diff line number Diff line change @@ -32,9 +32,6 @@ cp patches/*.patch $HOME/rpmbuild/SOURCES/
32
32
pushd $HOME /rpmbuild/SPECS
33
33
# install all the dependencies needed to build Swift from the spec file itself
34
34
yum-builddep -y ./swiftlang.spec
35
- # fix python six
36
- mkdir -p /usr/local/lib/python3.7/site-packages/
37
- easy_install-3.7 six
38
35
# get the sources for Swift as defined in the spec file
39
36
spectool -g -R ./swiftlang.spec
40
37
# Now we proceed to build Swift. If this is successful, we
Original file line number Diff line number Diff line change @@ -21,3 +21,8 @@ RUN yum install -y epel-release centos-release-scl
21
21
ADD swiftlang.spec /tmp/swiftlang.spec
22
22
RUN touch /tmp/metadata.inc # fake metadata is okay for this optimization
23
23
RUN cd /tmp && yum-builddep -y swiftlang.spec
24
+
25
+ # Workaround to support clang-3.5 or a later version
26
+ RUN echo -e ". /opt/rh/sclo-git25/enable\n . /opt/rh/llvm-toolset-7/enable\n . /opt/rh/devtoolset-8/enable\n " >> $HOME/.bashrc
27
+ RUN source $HOME/.bashrc
28
+ RUN sed -i -e 's/\* __block/\* __libc_block/g' /usr/include/unistd.h
Original file line number Diff line number Diff line change @@ -32,10 +32,6 @@ cp patches/*.patch $HOME/rpmbuild/SOURCES/
32
32
pushd $HOME /rpmbuild/SPECS
33
33
# install all the dependencies needed to build Swift from the spec file itself
34
34
yum-builddep -y ./swiftlang.spec
35
- # Workaround to support clang-3.5 or a later version
36
- echo -e " . /opt/rh/sclo-git25/enable\n. /opt/rh/llvm-toolset-7/enable\n. /opt/rh/devtoolset-8/enable\n" >> $HOME /.bashrc
37
- source $HOME /.bashrc
38
- sed -i -e ' s/\*__block/\*__libc_block/g' /usr/include/unistd.h
39
35
# get the sources for Swift as defined in the spec file
40
36
spectool -g -R ./swiftlang.spec
41
37
# Now we proceed to build Swift. If this is successful, we
You can’t perform that action at this time.
0 commit comments