File tree 6 files changed +10
-7
lines changed
6 files changed +10
-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 @@ -35,7 +35,6 @@ Patch0: patches/swift-api-checker.patch
35
35
Patch1: patches/hwasan_symbolize.patch
36
36
37
37
BuildRequires: clang
38
- BuildRequires: cmake
39
38
BuildRequires: curl-devel
40
39
BuildRequires: gcc-c++
41
40
BuildRequires: git
@@ -45,6 +44,7 @@ BuildRequires: libedit-devel
45
44
BuildRequires: libicu-devel
46
45
BuildRequires: libuuid-devel
47
46
BuildRequires: libxml2-devel
47
+ BuildRequires: make
48
48
BuildRequires: ncurses-devel
49
49
BuildRequires: pexpect
50
50
BuildRequires: pkgconfig
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
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ Patch0: patches/swift-api-checker.patch
35
35
Patch1: patches/hwasan_symbolize.patch
36
36
37
37
BuildRequires: autoconf
38
- BuildRequires: cmake
39
38
BuildRequires: devtoolset-8
40
39
BuildRequires: glibc-static
41
40
BuildRequires: libatomic
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ Patch1: patches/hwasan_symbolize.patch
36
36
37
37
BuildRequires: autoconf
38
38
BuildRequires: clang
39
- BuildRequires: cmake
40
39
BuildRequires: diffutils
41
40
BuildRequires: git
42
41
BuildRequires: glibc-static
You can’t perform that action at this time.
0 commit comments