Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/galera/files/
Date: Thu, 12 May 2022 22:48:33
Message-Id: 1652395682.bc1f18f8e905115fb9a1dfba7bd7915de9677d96.sam@gentoo
1 commit: bc1f18f8e905115fb9a1dfba7bd7915de9677d96
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 12 22:47:58 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu May 12 22:48:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc1f18f8
7
8 sys-cluster/galera: restore galera-4.1-strip-extra-cflags.patch
9
10 Needed by galera-25.3.28-r2 still.
11
12 Fixes: 390112c10222dcd5bdb5724c225ee99d11ffd7b0
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 .../files/galera-4.1-strip-extra-cflags.patch | 78 ++++++++++++++++++++++
16 1 file changed, 78 insertions(+)
17
18 diff --git a/sys-cluster/galera/files/galera-4.1-strip-extra-cflags.patch b/sys-cluster/galera/files/galera-4.1-strip-extra-cflags.patch
19 new file mode 100644
20 index 000000000000..dfa1642c7d7e
21 --- /dev/null
22 +++ b/sys-cluster/galera/files/galera-4.1-strip-extra-cflags.patch
23 @@ -0,0 +1,78 @@
24 +diff -aurN a/galerautils/src/SConscript b/galerautils/src/SConscript
25 +--- a/galerautils/src/SConscript 2019-02-25 10:37:25.000000000 -0500
26 ++++ b/galerautils/src/SConscript 2019-03-07 09:51:27.163226469 -0500
27 +@@ -1,4 +1,4 @@
28 +-Import('env', 'x86', 'sysname', 'machine')
29 ++Import('env', 'sysname', 'machine')
30 +
31 + libgalerautils_env = env.Clone()
32 +
33 +@@ -39,22 +39,6 @@
34 + crc32c_sources = [ '#/www.evanjones.ca/crc32c.c' ]
35 + crc32c_objs = crc32c_env.SharedObject(crc32c_sources)
36 +
37 +-if x86:
38 +- if machine != 'ppc64' and machine != 'ppc64le':
39 +- crc32c_env.Append(CFLAGS = ' -msse4.2')
40 +- if sysname == 'sunos':
41 +- # Ideally we want to simply strip SSE4.2 flag from the resulting
42 +- # crc32.pic.o
43 +- # (see http://ffmpeg.org/pipermail/ffmpeg-user/2013-March/013977.html)
44 +- # but that requires some serious scons-fu, so we just don't
45 +- # compile hardware support in if host CPU does not have it.
46 +- from subprocess import check_call
47 +- try:
48 +- check_call("isainfo -v | grep sse4.2 >/dev/null 2>&1", shell=True);
49 +- except:
50 +- libgalerautils_env.Append(CPPFLAGS = ' -DCRC32C_NO_HARDWARE')
51 +- crc32c_env.Append(CPPFLAGS = ' -DCRC32C_NO_HARDWARE')
52 +-
53 + libgalerautils_env.StaticLibrary('galerautils',
54 + libgalerautils_objs + crc32c_objs)
55 +
56 +diff -aurN a/SConstruct b/SConstruct
57 +--- a/SConstruct 2019-03-07 09:44:38.588841625 -0500
58 ++++ b/SConstruct 2019-03-07 09:50:06.305952407 -0500
59 +@@ -67,7 +67,7 @@
60 + build_target = 'all'
61 +
62 + # Optimization level
63 +-opt_flags = ' -g -O3 -DNDEBUG'
64 ++opt_flags = ' -DNDEBUG'
65 +
66 + # Architecture (defaults to build host type)
67 + compile_arch = ''
68 +@@ -120,33 +120,6 @@
69 + if gcov:
70 + opt_flags = opt_flags + ' --coverage -g'
71 +
72 +-if sysname == 'sunos':
73 +- compile_arch = ' -mtune=native'
74 +-elif x86:
75 +- if bits == 32:
76 +- if machine == 'x86_64':
77 +- compile_arch = ' -mx32'
78 +- else:
79 +- compile_arch = ' -m32 -march=i686'
80 +- if sysname == 'linux':
81 +- link_arch = ' -Wl,-melf_i386'
82 +- else:
83 +- if machine == 'ppc64':
84 +- compile_arch = ' -mtune=native'
85 +- link_arch = ' -Wl,-melf64ppc'
86 +- elif machine == 'ppc64le':
87 +- compile_arch = ' -mtune=native'
88 +- link_arch = ' -Wl,-melf64lppc'
89 +- else:
90 +- compile_arch = ' -m64'
91 +- if sysname == 'linux':
92 +- link_arch = ' -Wl,-melf_x86_64'
93 +- link_arch = compile_arch + link_arch
94 +-elif machine == 's390x':
95 +- compile_arch = ' -mzarch'
96 +- if bits == 32:
97 +- compile_arch += ' -m32'
98 +-
99 + boost = int(ARGUMENTS.get('boost', 1))
100 + boost_pool = int(ARGUMENTS.get('boost_pool', 0))
101 + system_asio= int(ARGUMENTS.get('system_asio', 1))