* Switch to -fstack-protector-strong

OBS-URL: https://build.opensuse.org/package/show/shells/zsh?expand=0&rev=193
This commit is contained in:
Ismail Dönmez 2018-09-05 08:59:19 +00:00 committed by Git OBS Bridge
parent 3776553d5b
commit 8131d6610b
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@ Tue Sep 4 15:51:31 UTC 2018 - Ismail Dönmez <idonmez@suse.com>
- Update to version 5.6
* Fixes CVE-2018-0502 and CVE-2018-13259
* Switch to -fstack-protector-strong
* See included NEWS file for complete changes.
-------------------------------------------------------------------

View File

@ -100,6 +100,10 @@ This package contains the Zsh manual in HTML format.
# Remove executable bit
chmod 0644 Etc/changelog2html.pl
# Fix for missing help
# http://www.zsh.org/mla/workers/2018/msg01180.html
rm Doc/help.txt
# Fix bindir path in some files
perl -p -i -e 's|%{_prefix}/local/bin|%{_bindir}|' \
Doc/intro.ms Misc/globtests.ksh Misc/globtests \
@ -111,7 +115,7 @@ perl -p -i -e 's|%{_prefix}/local/bin|%{_bindir}|' \
%configure \
%if 0%{?suse_version}
--with-term-lib="ncursesw" \
--enable-cflags="%{optflags} -fPIE -fstack-protector %(ncursesw6-config --cflags)" \
--enable-cflags="%{optflags} -fPIE -fstack-protector-strong %(ncursesw6-config --cflags)" \
--enable-ldflags="%(ncursesw6-config --libs) -pie -Wl,-z,relro" \
%endif
--enable-fndir=%{_datadir}/%{name}/${version}/functions \