Fix application of -fstack-protector-strong flag.

This commit is contained in:
Tomas Mraz 2018-09-03 19:39:15 +02:00
parent eab4e82cc5
commit 3e7261274d

View File

@ -51,8 +51,8 @@ conjunction with imapd to create a TLS secure IMAP server.
%patch1 -p1 -b .systemd-service %patch1 -p1 -b .systemd-service
%patch3 -p1 -b .system-ciphers %patch3 -p1 -b .system-ciphers
# Fix the configure script output for FIPS mode # Fix the configure script output for FIPS mode and stack protector flag
sed -i '/yes).*result: no/,+1{s/result: no/result: yes/;s/as_echo "no"/as_echo "yes"/}' configure sed -i '/yes).*result: no/,+1{s/result: no/result: yes/;s/as_echo "no"/as_echo "yes"/};s/-fstack-protector/-fstack-protector-strong/' configure
# Fix a testcase with system-ciphers support # Fix a testcase with system-ciphers support
sed -i '/client = yes/a \\ ciphers = PSK' tests/recipes/014_PSK_secrets sed -i '/client = yes/a \\ ciphers = PSK' tests/recipes/014_PSK_secrets