!15 add compile option _FORTIFY_SOURCE
From: @renxichen Reviewed-by: @overweight Signed-off-by: @overweight
This commit is contained in:
commit
ee0d61cdf6
@ -1,6 +1,6 @@
|
|||||||
Name: python-systemd
|
Name: python-systemd
|
||||||
Version: 234
|
Version: 234
|
||||||
Release: 14
|
Release: 15
|
||||||
Summary: Python module for native access to the systemd facilities.
|
Summary: Python module for native access to the systemd facilities.
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://github.com/systemd/%{name}
|
URL: https://github.com/systemd/%{name}
|
||||||
@ -38,6 +38,7 @@ Systemed functionality for Python3 Packages.
|
|||||||
sed -i 's/py\.test/pytest/' Makefile
|
sed -i 's/py\.test/pytest/' Makefile
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -O2"
|
||||||
%make_build PYTHON=%{__python3} CFLAGS="$RPM_OPT_FLAGS"
|
%make_build PYTHON=%{__python3} CFLAGS="$RPM_OPT_FLAGS"
|
||||||
%make_build PYTHON=%{__python3} SPHINX_BUILD=sphinx-build-3 sphinx-html
|
%make_build PYTHON=%{__python3} SPHINX_BUILD=sphinx-build-3 sphinx-html
|
||||||
|
|
||||||
@ -63,6 +64,9 @@ make check PYTHON=%{__python3}
|
|||||||
%exclude %{_pkgdocdir}/html
|
%exclude %{_pkgdocdir}/html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 20 2022 renhongxun <renhongxun@h-partners.com> - 234-15
|
||||||
|
- add compile option _FORTIFY_SOURCE
|
||||||
|
|
||||||
* Sat Feb 26 2022 shixuantong <shixuantong@h-partners.com> - 234-14
|
* Sat Feb 26 2022 shixuantong <shixuantong@h-partners.com> - 234-14
|
||||||
- fix SystemError:PY_SSIZE_T_CLEAN macro must be defined for '#' formats
|
- fix SystemError:PY_SSIZE_T_CLEAN macro must be defined for '#' formats
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user