Skip to content

Commit 15eb9c9

Browse files
committed
sync GCC 10 changes to master branch
1 parent 2589ef6 commit 15eb9c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+926
-481
lines changed

archive/graphviz.spec

+5-10
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@ do
2323
done
2424

2525
%build
26-
case %cmsplatf in
27-
slc*|fc*|cc*)
26+
%ifnos darwin
2827
ADDITIONAL_OPTIONS="--with-freetype2=no --disable-shared --enable-static --disable-ltdl"
29-
;;
30-
osx*)
28+
%else
3129
ADDITIONAL_OPTIONS="--with-freetype2=no"
32-
;;
33-
esac
30+
%endif
3431
./configure \
3532
--disable-silent-rules \
3633
--with-expatlibdir=$EXPAT_ROOT/lib \
@@ -76,10 +73,8 @@ make install
7673
rm -rf %{i}/lib/pkgconfig
7774

7875
# To match configure options above
79-
case %{cmsplatf} in
80-
slc*|fc*|cc*)
76+
%ifnos darwin
8177
ln -s dot_static %{i}/bin/dot
82-
;;
83-
esac
78+
%endif
8479
# Drop static libraries.
8580
rm -rf %{i}/lib/*.{l,}a

autotools.spec

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
1-
### RPM external autotools 1.4
1+
### RPM external autotools 1.5
22
## INITENV SET M4 %{i}/bin/m4
33
# We keep all of them together to simplify the "requires" statements.
4-
%define autoconf_version 2.69
5-
%define automake_version 1.16.1
4+
%define autoconf_version 2.71
5+
%define automake_version 1.16.3
66
%define automake_maj %(echo %{automake_version} | cut -f1,2 -d.)
77
%define libtool_version 2.4.6
88
%define m4_version 1.4.18
9-
%define gettext_version 0.20.1
9+
%define gettext_version 0.21
1010
%define pkgconfig_version 0.29.2
1111
Source0: http://ftp.gnu.org/gnu/autoconf/autoconf-%{autoconf_version}.tar.gz
1212
Source1: http://ftp.gnu.org/gnu/automake/automake-%{automake_version}.tar.gz
1313
Source2: http://ftp.gnu.org/gnu/libtool/libtool-%{libtool_version}.tar.gz
1414
Source3: http://ftp.gnu.org/gnu/m4/m4-%{m4_version}.tar.bz2
1515
Source4: http://ftp.gnu.org/gnu/gettext/gettext-%{gettext_version}.tar.gz
1616
Source5: http://pkgconfig.freedesktop.org/releases/pkg-config-%{pkgconfig_version}.tar.gz
17+
Patch0: m4-centos8
1718

1819
%prep
1920
%setup -D -T -b 0 -n autoconf-%{autoconf_version}
2021
%setup -D -T -b 1 -n automake-%{automake_version}
2122
%setup -D -T -b 2 -n libtool-%{libtool_version}
2223
%setup -D -T -b 3 -n m4-%{m4_version}
24+
%patch0 -p1
2325
%setup -D -T -b 4 -n gettext-%{gettext_version}
2426
%setup -D -T -b 5 -n pkg-config-%{pkgconfig_version}
2527

bazel-3.7.0-patches.patch

+12
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,15 @@ index 0ea30a9..8df189f 100755
1111
named = true,
1212
positional = false,
1313
doc = "Whether the action should use the built in shell environment or not."),
14+
diff --git a/tools/cpp/unix_cc_configure.bzl b/tools/cpp/unix_cc_configure.bzl
15+
index d48485b..40ca051 100755
16+
--- a/tools/cpp/unix_cc_configure.bzl
17+
+++ b/tools/cpp/unix_cc_configure.bzl
18+
@@ -193,6 +193,7 @@ def _find_gold_linker_path(repository_ctx, cc):
19+
Returns:
20+
String to put as value to -fuse-ld= flag, or None if gold couldn't be found.
21+
"""
22+
+ return None
23+
result = repository_ctx.execute([
24+
cc,
25+
str(repository_ctx.path("tools/cpp/empty.cc")),

bazel-3.7.2-gcc11.patch

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/third_party/ijar/mapped_file_unix.cc b/third_party/ijar/mapped_file_unix.cc
2+
index 6e3a908..030e9ca 100755
3+
--- a/third_party/ijar/mapped_file_unix.cc
4+
+++ b/third_party/ijar/mapped_file_unix.cc
5+
@@ -19,6 +19,7 @@
6+
#include <sys/mman.h>
7+
8+
#include <algorithm>
9+
+#include <limits>
10+
11+
#include "third_party/ijar/mapped_file.h"
12+
13+
diff --git a/third_party/ijar/zlib_client.h b/third_party/ijar/zlib_client.h
14+
index ed66163..c4b051e 100755
15+
--- a/third_party/ijar/zlib_client.h
16+
+++ b/third_party/ijar/zlib_client.h
17+
@@ -16,6 +16,7 @@
18+
#define THIRD_PARTY_IJAR_ZLIB_CLIENT_H_
19+
20+
#include <limits.h>
21+
+#include <limits>
22+
23+
#include "third_party/ijar/common.h"
24+

bazel.spec

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ BuildRequires: java-env python3
1717
# configuration issue
1818
# https://github.com/bazelbuild/bazel/issues/9392
1919
Patch0: bazel-3.7.0-patches
20+
Patch1: bazel-3.7.2-gcc11
2021

2122
%prep
2223

@@ -25,6 +26,7 @@ Patch0: bazel-3.7.0-patches
2526
%setup -q -n bazel-%{realversion}
2627

2728
%patch0 -p1
29+
%patch1 -p1
2830

2931
%build
3032

bison.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### RPM external bison 3.5
1+
### RPM external bison 3.7.6
22
## INITENV SET BISON_PKGDATADIR %{i}/share/bison
33

44
Source: http://ftp.gnu.org/gnu/%{n}/%{n}-%{realversion}.tar.gz

bootstrap-driver.spec

+18-32
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
### RPM external bootstrap-driver 32.0
1+
### RPM external bootstrap-driver 40.0
22
## NOCOMPILER
3-
Source: cmsos
43
Requires: rpm
5-
BuildRequires: cms-common
4+
BuildRequires: cms-common fakesystem
65

76
#danger! cms-common version is now hardwired below (and in bootstrap.file)
87

98
%prep
109
%build
1110
%install
12-
cp %{_sourcedir}/cmsos %{i}/
1311
packageList=""
1412
echo requiredtools `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'`
1513
for tool in `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'`
@@ -28,17 +26,11 @@ do
2826
done
2927

3028
additionalProvides=""
31-
defaultSeeds="glibc glibc-32bit coreutils bash tcsh zsh pdksh perl tcl tk perl-Tk readline openssl ncurses XFree86-libs
32-
e2fsprogs krb5-libs freetype fontconfig XFree86-Mesa-libGLU XFree86-Mesa-libGL xorg-x11-deprecated-libs
33-
xorg-x11-libs xorg-x11-Mesa-libGLU xorg-x11-Mesa-libGL compat-libstdc++-33 fglrx_6_8_0 libidn"
3429
##############################
3530
# Packages to seed for runtime
3631
##############################
37-
platformSeeds="bash bzip2-libs glibc nspr nss nss-util perl popt zlib glibc-devel openssl openssl-devel openssl-libs krb5-libs
38-
libcom_err tcsh perl-Carp perl-Data-Dumper perl-Exporter perl-File-Path perl-File-Temp perl-Getopt-Long perl-PathTools perl-Text-ParseWords
39-
perl-Thread-Queue perl-constant perl-Digest-MD5 perl-Socket libX11 libXext libXft libXpm libglvnd-glx libglvnd-opengl mesa-libGLU"
40-
# Needed by oracle
41-
platformSeeds+=" libaio"
32+
platformSeeds="bash tcsh perl bzip2-libs glibc nspr nss nss-util popt zlib glibc-devel openssl openssl-devel openssl-libs krb5-libs
33+
libcom_err libX11 libXext libXft libXpm libglvnd-glx libglvnd-opengl mesa-libGLU"
4234
# Needed by python runtime
4335
platformSeeds+=" readline ncurses-libs tcl tk"
4436
# Seed packages which provides these
@@ -47,39 +39,33 @@ packagesWithProvides="/usr/bin/python3 /usr/bin/perl /usr/bin/env /usr/bin/uname
4739
##############################
4840
#Packages to seed for build
4941
##############################
50-
platformBuildSeeds="git patch make zip unzip bzip2 java-1.8.0-openjdk-devel libcom_err-devel which libXpm-devel libXft-devel mesa-libGLU-devel rsync"
42+
platformBuildSeeds="git patch perl make zip unzip bzip2 java-1.8.0-openjdk-devel libcom_err-devel which libXpm-devel libXft-devel mesa-libGLU-devel rsync"
43+
#Needed by autotools,go and lcov
44+
platformBuildSeeds+=" perl-Carp perl-Data-Dumper perl-Digest-MD5 perl-Exporter perl-File-Path perl-File-Temp perl-Getopt-Long perl-PathTools perl-Text-ParseWords perl-constant"
5145
#needed by python build
5246
platformBuildSeeds+=" readline-devel ncurses-devel tcl-devel tk-devel"
5347
packagesWithBuildProvides=""
5448

49+
%ifnarch aarch64
50+
# Needed by oracle
51+
platformSeeds+=" libaio"
52+
%endif
53+
5554
case %cmsplatf in
56-
cc* )
57-
platformSeeds+=" libxcrypt"
55+
cc*|cs* )
56+
platformSeeds+=" libxcrypt perl-libs perl-IO"
5857
;;
5958
slc*)
60-
platformSeeds+=" perl-Switch"
59+
platformBuildSeeds+=" perl-Switch"
6160
;;
6261
esac
6362

64-
# Seeds for unsupported platforms. These will not make bootstrap die, if not found.
65-
# OpenSuse
66-
unsupportedSeeds="xorg-x11-Mesa compat-readline4 compat-curl2 freetype2 xorg-x11-libX11"
67-
# Ubuntu
68-
unsupportedSeeds="$unsupportedSeeds libcomerr2 libidn11 libxi6 libxpm4 libxinerama1 libncurses5 libsm6 libice6 libc6 libxcursor1 libxmu6
69-
libgl1-mesa-glx libxft2 perl-base xserver-xorg xserver-xorg-core libfreetype6 libfontconfig1 libgl1-mesa libxrandr2 libglu1-mesa libxext6 libx11-6 libxrender1"
70-
# Fedora
71-
unsupportedSeeds="$unsupportedSeeds libX11 libXmu libSM libICE libXcursor
72-
libXext libXrandr libXft mesa-libGLU mesa-libGL e2fsprogs-libs libXi libXinerama
73-
libXft libXrender libXpm ncurses-libs libc6-i686 compat-readline5"
74-
# PU-IAS
75-
unsupportedSeeds="$unsupportedSeeds libcom_err"
76-
77-
defaultPkgs="cms+cms-common+1.0"
63+
defaultPkgs="cms+cms-common+1.0 cms+fakesystem+1.0"
7864

7965
mkdir -p %{i}/etc/profile.d
8066
(echo "rpm_version=$RPM_VERSION"; \
81-
echo "platformSeeds=\"$defaultSeeds\""; \
82-
echo "unsupportedSeeds=\"$unsupportedSeeds\""; \
67+
echo "platformSeeds=\"\""; \
68+
echo "unsupportedSeeds=\"\""; \
8369
echo "%{cmsos}_platformSeeds=\"$platformSeeds\""; \
8470
echo "%{cmsos}_platformBuildSeeds=\"$platformBuildSeeds\""; \
8571
echo "%{cmsos}_packagesWithProvides=\"$packagesWithProvides\""; \

cmsos.file

100644100755
+7-16
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ cmsos()
2929
else
3030
os="slc"
3131
if egrep -q "CentOS" /etc/redhat-release 2>/dev/null; then
32-
if [ ${slc_version} -gt 7 ] ; then os="cc" ; fi
32+
if [ ${slc_version} -gt 7 ] ; then
33+
if egrep -q " Stream " /etc/redhat-release 2>/dev/null; then
34+
os="cs"
35+
else
36+
os="cc"
37+
fi
38+
fi
3339
fi
3440
echo ${os}${slc_version}_${cpuarch}
3541
fi
@@ -71,19 +77,4 @@ cmsos()
7177
fi
7278
}
7379

74-
defaultCompiler()
75-
{
76-
case `cmsos` in
77-
slc4* ) echo gcc345 ;;
78-
slc5* ) echo gcc432 ;;
79-
slc6* ) echo gcc630 ;;
80-
slc7* ) echo gcc820 ;;
81-
cc* ) echo gcc8 ;;
82-
osx104* ) echo gcc400 ;;
83-
osx105* ) echo gcc401 ;;
84-
osx106* ) echo gcc421 ;;
85-
* ) echo gcc345 ;;
86-
esac
87-
}
88-
8980
cmsos

cmssw-tool-conf.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Requires: libungif
5555
Requires: libxml2
5656
Requires: lwtnn
5757
Requires: meschach
58-
Requires: pcre
58+
Requires: pcre2
5959
Requires: photos
6060
Requires: photospp
6161
Requires: pyquen

cmsswdata-github.file

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
%define source0 git+https://github.com/cms-data/%{data_repo}.git?obj=master/%{realversion}&no-cmssdt-cache=1&export=%{export_dir}&output=/%{n}-%{realversion}.tgz
1717
%endif
1818

19-
Source: %{source0}
19+
Source0: %{source0}
2020

2121
%prep
2222
%{?PrePrep:%PrePrep}

coral.spec

+1-14
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,6 @@ Patch0: coral-2_3_20-macosx
77
Patch1: coral-2_3_21-gcc8
88
Requires: coral-tool-conf
99

10-
%if %(case %{cmsplatf} in (*_aarch64_*) echo 1 ;; (*) echo 0 ;; esac) == 1
11-
%define cmsplatf_aarch64 1
12-
%endif
13-
14-
%if %(case %{cmsplatf} in (*_ppc64le_*) echo 1 ;; (*) echo 0 ;; esac) == 1
15-
%define cmsplatf_ppc64le 1
16-
%endif
17-
18-
%if %(case %{cmsplatf} in (*_ppc64_*) echo 1 ;; (*) echo 0 ;; esac) == 1
19-
%define cmsplatf_ppc64 1
20-
%endif
21-
22-
2310
%define cvssrc %{n}
2411

2512
# Build with debug symbols, and package them in a separate rpm:
@@ -33,7 +20,7 @@ Requires: coral-tool-conf
3320

3421
# Drop Oracle interface on ARM machines and POWER machines.
3522
# Oracle does not provide Instant Client for ARMv8 or POWER8.
36-
%if 0%{?cmsplatf_aarch64}%{?cmsplatf_ppc64le}%{?cmsplatf_ppc64}
23+
%ifnarch x86_64
3724
%define patchsrc2 rm -rf ./src/OracleAccess
3825
%endif
3926
%define patchsrc4 %patch1 -p1

cuda.spec

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
### RPM external cuda 11.4.2
22
## INITENV +PATH LD_LIBRARY_PATH %i/lib64
33

4+
%define runpath_opts -m compute-sanitizer -m drivers -m nvvm
45
%define driversversion 470.57.02
56

67
%ifarch x86_64

dpm-1.7.4.7-ld.patch

-20
This file was deleted.

dpm-1.7.4.7-macosx.patch

-33
This file was deleted.

dpm-1.8.0-shlib-macosx.patch

-15
This file was deleted.

0 commit comments

Comments
 (0)