diff --git a/openwsman-2.6.8-update-ssleay-conf.patch b/openwsman-2.6.8-update-ssleay-conf.patch new file mode 100644 index 0000000..15c5c74 --- /dev/null +++ b/openwsman-2.6.8-update-ssleay-conf.patch @@ -0,0 +1,15 @@ +diff -up openwsman-2.6.8/etc/ssleay.cnf.orig openwsman-2.6.8/etc/ssleay.cnf +--- openwsman-2.6.8/etc/ssleay.cnf.orig 2018-10-12 12:06:26.000000000 +0200 ++++ openwsman-2.6.8/etc/ssleay.cnf 2020-09-22 14:27:56.216306882 +0200 +@@ -2,10 +2,8 @@ + # SSLeay example configuration file. + # + +-RANDFILE = /dev/random +- + [ req ] +-default_bits = 1024 ++default_bits = 2048 + default_keyfile = privkey.pem + distinguished_name = req_distinguished_name + diff --git a/openwsman.spec b/openwsman.spec index 7b19ae0..8c33e99 100644 --- a/openwsman.spec +++ b/openwsman.spec @@ -3,7 +3,7 @@ Name: openwsman Version: 2.6.8 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Open source Implementation of WS-Management License: BSD @@ -22,6 +22,7 @@ Patch4: openwsman-2.6.5-http-status-line.patch Patch5: openwsman-2.6.5-libcurl-error-codes-update.patch Patch6: openwsman-2.6.8-CVE-2019-3816.patch Patch7: openwsman-2.6.8-CVE-2019-3833.patch +Patch8: openwsman-2.6.8-update-ssleay-conf.patch BuildRequires: swig BuildRequires: libcurl-devel libxml2-devel pam-devel sblim-sfcc-devel BuildRequires: python3 python3-devel ruby ruby-devel rubygems-devel perl-interpreter @@ -132,13 +133,9 @@ You can use it to send shell commands to a remote Windows hosts. %patch5 -p1 -b .libcurl-error-codes-update %patch6 -p1 -b .CVE-2019-3816 %patch7 -p1 -b .CVE-2019-3833 +%patch8 -p1 -b .update-ssleay-conf %build -# We override CFLAGS/LDFLAGS below and force PIE executables, which is generally -# fine, except that it ultimately tries to mix PIC and PIE which is a no-no -# and triggers errors with LTO -# Disable LTO -%define _lto_cflags %{nil} # Removing executable permissions on .c and .h files to fix rpmlint warnings. chmod -x src/cpp/WsmanClient.h @@ -146,8 +143,8 @@ rm -rf build mkdir build export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DFEDORA -DNO_SSL_CALLBACK" -export CFLAGS="-D_GNU_SOURCE -fPIE -DPIE" -export LDFLAGS="$LDFLAGS -Wl,-z,now -pie" +export CFLAGS="$RPM_OPT_FLAGS -fPIC -pie -Wl,-z,relro -Wl,-z,now" +export CXXFLAGS="$RPM_OPT_FLAGS -fPIC -pie -Wl,-z,relro -Wl,-z,now" cd build cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -178,7 +175,7 @@ cd build # Do not install the ruby extension, we are proviging the rubygem- instead. echo -n > bindings/ruby/cmake_install.cmake -make DESTDIR=%{buildroot} install +%make_install cd .. rm -f %{buildroot}/%{_libdir}/*.la rm -f %{buildroot}/%{_libdir}/openwsman/plugins/*.la @@ -290,6 +287,12 @@ rm -f /var/log/wsmand.log %{_bindir}/winrs %changelog +* Tue Sep 22 2020 Vitezslav Crhonek - 2.6.8-17 +- Use make macros, patch by Tom Stellard + (https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro) +- Update flags, enable LTO +- Remove RANDFILE and increase default bits in ssleay.conf + * Tue Jul 28 2020 Fedora Release Engineering - 2.6.8-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild