Skip to content

Commit 9fa9ff6

Browse files
trostendahlerlend
authored andcommitted
Bug#36086236 Enable and use correct toolset for rpm builds on el* platforms
Bug#36054662 With PGO enabled, build fails to produce commercial-debuginfo RPM on EL8 Bug#36072667 EL8 RPM "libmysqlclient.a" exports no symbols strip and dwz from /usr/bin used by rpmbuild might break object files and binaries produced by GCC Toolset on el* platforms. See for example: https://sourceware.org/bugzilla/show_bug.cgi?id=24195 Point to newer strip and make sure corresponding dwz tool is available (set $PATH correctly to let script use it). Post processing in rpmbuild by brp_strip_static_archive runs "strip -g" which breaks static archive on el8 even if newer strip is used, disable this processing completely. Change-Id: I681fd2bc3a7556d09fdc9e77357d779fc8c7d336
1 parent 3270e79 commit 9fa9ff6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packaging/rpm-oel/mysql.spec.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@
9797
%{?el9: %global with_debuginfo 1}
9898
%{!?with_debuginfo: %global without_debuginfo 1}
9999

100+
%{?el8:%global __strip /opt/rh/gcc-toolset-12/root/usr/bin/strip}
101+
%{?el8:%global __brp_strip_static_archive %{nil}}
102+
100103
%{!?product_suffix: %global product_suffix community}
101104
%{!?feature_set: %global feature_set community}
102105
%{!?compilation_comment_release: %global compilation_comment_release MySQL Community - GPL}
@@ -166,6 +169,7 @@ BuildRequires: cmake3 >= 3.6.1
166169
%{?el8:BuildRequires: gcc-toolset-12-annobin-annocheck}
167170
%{?el8:BuildRequires: gcc-toolset-12-annobin-plugin-gcc}
168171
%{?el8:BuildRequires: gcc-toolset-12-binutils}
172+
%{?el8:BuildRequires: gcc-toolset-12-dwz}
169173
%{?el8:BuildRequires: gcc-toolset-12-gcc-c++}
170174
%{?el8:BuildRequires: gcc-toolset-12-gcc}
171175
%{?el9:BuildRequires: gcc-toolset-12-annobin-annocheck}

0 commit comments

Comments
 (0)