4
4
# SPDX-License-Identifier: MPL-2.0
5
5
#
6
6
name : gcc
7
- version : 14.2.0
8
- release : 7
7
+ version : 14.2.0+git.5cb69a5e
8
+ release : 8
9
9
summary : GNU C++ standard library and compiler
10
10
license : GPL-3.0-or-later
11
11
homepage : https://gcc.gnu.org/
12
12
description : |
13
13
GNU C++ standard library and compiler
14
14
upstreams :
15
- - https://ftp.gnu.org/gnu/gcc/gcc-14.2.0/gcc-14.2.0.tar.xz :
16
- hash : a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
17
- unpackdir : " gcc"
15
+ # - https://ftp.gnu.org/gnu/gcc/gcc-14.2.0/gcc-14.2.0.tar.xz:
16
+ # hash: a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
17
+ # unpackdir: "gcc"
18
+ - git|https://gcc.gnu.org/git/gcc.git :
19
+ ref : 5cb69a5e4f136dd92c2182d6744aff2c12291a4f
18
20
- https://libisl.sourceforge.io/isl-0.24.tar.xz :
19
21
hash : 043105cc544f416b48736fff8caf077fb0663a717d06b1113f16e391ac99ebad
20
22
stripdirs : 1
21
- unpackdir : " gcc/isl"
23
+ unpackdir : " gcc.git /isl"
22
24
builddeps :
23
25
- binary(bison)
24
26
- binary(flex)
25
27
- binary(m4)
26
28
- binary(makeinfo)
29
+ - binary(msgfmt)
27
30
- binary(python3)
28
31
- gcc-32bit
29
32
- gcc-32bit-devel
@@ -39,15 +42,17 @@ toolchain : gnu
39
42
tuning :
40
43
- fortify : false
41
44
- harden : false
45
+ - lto : false
42
46
- nosemantic
43
47
# - optimize: speed
44
48
- symbolic
45
49
setup : |
46
50
%patch %(pkgdir)/perf/increase-vectorize-cost-model-to-cheap.patch
47
51
%patch %(pkgdir)/perf/use-highest-optimize-value.patch
48
- %patch %(pkgdir)/serpent/0001-Use-modern-linker-locations-for-Serpent-OS.patch
49
- %patch %(pkgdir)/serpent/0001-Install-libraries-into-lib-rather-than-lib64.patch
50
- %patch %(pkgdir)/serpent/disable-rpath.patch
52
+ %patch %(pkgdir)/aeryn/0001-Use-modern-linker-locations-for-Serpent-OS.patch
53
+ %patch %(pkgdir)/aeryn/0001-Install-libraries-into-lib-rather-than-lib64.patch
54
+ %patch %(pkgdir)/aeryn/0001-Downstream-Don-t-run-fixincludes-during-install.patch
55
+ %patch %(pkgdir)/aeryn/disable-rpath.patch
51
56
52
57
mkdir build && cd build
53
58
../configure \
@@ -73,7 +78,7 @@ setup : |
73
78
--enable-threads=yes \
74
79
--with-arch=%(march) \
75
80
--with-arch_32=%(march) \
76
- --with-bugurl='https://github.com/serpent-os /recipes/issues' \
81
+ --with-bugurl='https://github.com/AerynOS /recipes/issues' \
77
82
--with-build-config=bootstrap-O1 \
78
83
--with-gcc-major-version-only \
79
84
--with-isl \
@@ -102,9 +107,20 @@ install : |
102
107
rm -rv %(installroot)%(datadir)/info
103
108
rm -v %(installroot)/usr/lib*/*.la
104
109
110
+ # Temporary, make x86_64-aeryn-linux a target alias of x86_64-serpent-linux
111
+ # The next step after this (after all toolchain packages are similarly updated)
112
+ # is to rebuild with the new triple and create compat aliases the other way
113
+ pushd %(installroot)/%(bindir)
114
+ for i in c++ g++ gcc gcc-${major_version} gcc-ar gcc-nm gcc-ranlib gfortran ; do
115
+ ln -sv x86_64-serpent-linux-${i} x86_64-aeryn-linux-${i}
116
+ done
117
+ popd
118
+ ln -srv %(installroot)/usr/include/c++/14/x86_64-serpent-linux %(installroot)/usr/include/c++/14/x86_64-aeryn-linux
119
+ ln -srv %(installroot)/usr/lib/gcc/x86_64-serpent-linux %(installroot)/usr/lib/gcc/x86_64-aeryn-linux
120
+
105
121
# TODO: Remove once we can remove gcc-devel and gcc-32bit-devel from the index
106
- mkdir %(installroot)/usr/share/tmp /
107
- touch %(installroot)/usr/share/tmp/ gcc{,-32bit}-devel
122
+ mkdir -p %(installroot)/usr/share/doc/replace /
123
+ touch %(installroot)/usr/share/doc/replace/ gcc{,-32bit}-devel %(installroot)/usr/share/doc/replace/g++-32bit
108
124
packages :
109
125
- " libgcc " :
110
126
paths :
@@ -130,15 +146,6 @@ packages :
130
146
- " libgomp-32bit " :
131
147
paths :
132
148
- /usr/lib32/libgomp*.so*
133
- - " libstdc++ " :
134
- paths :
135
- - /usr/lib/lib*++*.so*
136
- - /usr/share/gcc-*/python/libstdcxx/*
137
- - /usr/share/gdb/auto-load/usr/lib
138
- - " libstdc++-32bit " :
139
- paths :
140
- - /usr/lib32/lib*++*.so*
141
- - /usr/share/gdb/auto-load/usr/lib32
142
149
- " libgfortran " :
143
150
paths :
144
151
- /usr/lib/*fortran*.so*
@@ -175,30 +182,54 @@ packages :
175
182
- libquadmath-32bit
176
183
- libgomp-32bit
177
184
- libgfortran-32bit
185
+ - " libstdc++ " :
186
+ paths :
187
+ - /usr/lib/lib*++*.so*
188
+ - /usr/share/gcc-*/python/libstdcxx/*
189
+ - /usr/share/gdb/auto-load/usr/lib
190
+ - /usr/share/locale/*/LC_MESSAGES/libstdc++.mo
191
+ - " libstdc++-devel " :
192
+ paths :
193
+ - /usr/lib/lib*++*.a
194
+ - /usr/lib/lib*++*.so
195
+ - /usr/include/c++
196
+ rundeps :
197
+ - libstdc++
198
+ - glibc-devel
199
+ - " libstdc++-32bit " :
200
+ paths :
201
+ - /usr/lib32/lib*++*.so*
202
+ - /usr/share/gdb/auto-load/usr/lib32
203
+ rundeps :
204
+ - libstdc++
205
+ - " libstdc++-32bit-devel " :
206
+ paths :
207
+ - /usr/lib32/lib*++*.a
208
+ - /usr/lib32/lib*++*.so
209
+ - /usr/include/c++/*-serpent-linux/32/*
210
+ rundeps :
211
+ - libstdc++-32bit
212
+ - libstdc++-devel
213
+ - glibc-32bit-devel
178
214
- " g++ " :
179
215
paths :
180
216
- /usr/bin/*c++
181
217
- /usr/bin/*g++
182
218
- /usr/bin/cpp
183
219
- /usr/lib/gcc/*-serpent-linux/*/cc1plus
184
220
- /usr/lib/gcc/*-serpent-linux/*/g++-mapper-server
185
- - /usr/lib/lib*++*.a
186
- - /usr/lib/lib*++*.so
187
- - /usr/include/c++
188
221
- /usr/share/locale/*/LC_MESSAGES/cpplib.mo
189
222
- /usr/share/man/*/cpp*
190
223
- /usr/share/man/*/g++*
191
224
rundeps :
192
225
- binary(gcc)
193
- - libstdc++
226
+ - libstdc++-devel
194
227
- " g++-32bit " :
195
228
paths :
196
- - /usr/lib32/lib*++*.a
197
- - /usr/lib32/lib*++*.so
198
- - /usr/include/c++/*-serpent-linux/32/*
229
+ - /usr/share/doc/replace/g++-32bit
199
230
rundeps :
200
231
- g++
201
- - libstdc++-32bit
232
+ - libstdc++-32bit-devel
202
233
- " gfortran " :
203
234
paths :
204
235
- /usr/bin/*fortran*
@@ -224,11 +255,11 @@ packages :
224
255
# TODO: Delete once moss can handle package removals
225
256
- " gcc-devel " :
226
257
paths :
227
- - /usr/share/tmp /gcc-devel
258
+ - /usr/share/doc/replace /gcc-devel
228
259
rundeps :
229
260
- binary(gcc)
230
261
- " gcc-32bit-devel " :
231
262
paths :
232
- - /usr/share/tmp /gcc-32bit-devel
263
+ - /usr/share/doc/replace /gcc-32bit-devel
233
264
rundeps :
234
265
- gcc-32bit
0 commit comments