Skip to content

Commit 8b0ca56

Browse files
committed
[CentOS 8] Dont patch any files and start building ninja
1 parent 55a6039 commit 8b0ca56

File tree

5 files changed

+5
-59
lines changed

5 files changed

+5
-59
lines changed

platforms/Linux/centos/8/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ RUN yum-builddep -y /root/rpmbuild/SPECS/swift-lang.spec
2222
# Get the sources for Swift as defined in the spec file
2323
RUN spectool -g -R /root/rpmbuild/SPECS/swift-lang.spec
2424

25-
# Add the patches
26-
ADD patches/*.patch /root/rpmbuild/SOURCES/
27-
2825
# Add the driver script
2926
ADD build_rpm.sh /root/build_rpm.sh
3027
RUN chmod +x /root/build_rpm.sh

platforms/Linux/centos/8/patches/build-presets.patch

Lines changed: 0 additions & 23 deletions
This file was deleted.

platforms/Linux/centos/8/patches/hwasan_symbolize.patch

Lines changed: 0 additions & 10 deletions
This file was deleted.

platforms/Linux/centos/8/patches/swift-api-checker.patch

Lines changed: 0 additions & 9 deletions
This file was deleted.

platforms/Linux/centos/8/swift-lang.spec

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
%global yams_version 4.0.2
66
%global sap_version 0.4.3
77
%global swift_crypto_version 1.1.5
8+
%global ninja_version 1.10.2
89

910
Name: swift-lang
1011
Version: 5.5
@@ -32,10 +33,7 @@ Source15: https://github.com/unicode-org/icu/archive/release-%{icu_version
3233
Source16: https://github.com/apple/swift-syntax/archive/swift-%{swifttag}.zip#/swift-syntax.tar.gz
3334
Source17: https://github.com/jpsim/Yams/archive/%{yams_version}.zip
3435
Source18: https://github.com/apple/swift-crypto/archive/refs/tags/%{swift_crypto_version}.tar.gz
35-
36-
Patch0: patches/build-presets.patch
37-
Patch1: patches/swift-api-checker.patch
38-
Patch2: patches/hwasan_symbolize.patch
36+
Source19: https://github.com/ninja-build/ninja/archive/refs/tags/v%{ninja_version}.tar.gz
3937

4038
BuildRequires: autoconf
4139
BuildRequires: clang
@@ -53,7 +51,6 @@ BuildRequires: libuuid-devel
5351
BuildRequires: libxml2-devel
5452
BuildRequires: make
5553
BuildRequires: ncurses-devel
56-
BuildRequires: ninja-build
5754
BuildRequires: pcre-devel
5855
BuildRequires: python2
5956
BuildRequires: python2-devel
@@ -96,7 +93,7 @@ importantly, Swift is designed to make writing and maintaining
9693
correct programs easier for the developer.
9794

9895
%prep
99-
%setup -q -c -n %{swiftbuild} -a 0 -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 -a 8 -a 9 -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18
96+
%setup -q -c -n %{swiftbuild} -a 0 -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 -a 8 -a 9 -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18 -a 19
10097
# The Swift build script requires directories to be named
10198
# in a specific way so renaming the source directories is
10299
# necessary
@@ -124,14 +121,8 @@ mv icu-release-%{icu_version} icu
124121
# Yams
125122
mv Yams-%{yams_version} yams
126123

127-
# Adjust presets
128-
%patch0 -p0
129-
130-
# Adjust python version swift-api-checker
131-
%patch1 -p1
132-
133-
# Adjust python version hwasan_symbolize
134-
%patch2 -p1
124+
# Ninja
125+
mv ninja-%{ninja_version} ninja
135126

136127
# Fix python to python3
137128
ln -s /usr/bin/python3 /usr/bin/python

0 commit comments

Comments
 (0)