From b72260fcbc37ecd10f458466ae81d9a1666bd7ec Mon Sep 17 00:00:00 2001 From: zhaoshuang Date: Tue, 14 Sep 2021 18:41:38 +0800 Subject: [PATCH] add check subprocess --- curl.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/curl.spec b/curl.spec index 8d0781d..3affe09 100644 --- a/curl.spec +++ b/curl.spec @@ -6,7 +6,7 @@ Name: curl Version: 7.77.0 -Release: 2 +Release: 3 Summary: Curl is used in command lines or scripts to transfer data License: MIT URL: https://curl.haxx.se/ @@ -54,7 +54,7 @@ Summary: Header files for libcurl Requires: libcurl = %{version}-%{release} Provides: curl-devel = %{version}-%{release} Obsoletes: curl-devel < %{version}-%{release} - + %description -n libcurl-devel Header files for libcurl. @@ -112,6 +112,19 @@ sed -e 's/^runpath_var=.*/runpath_var=/' \ %make_build V=1 -C build-full +%check +# we have to override LD_LIBRARY_PATH because we eliminated rpath +LD_LIBRARY_PATH="$RPM_BUILD_ROOT%{_libdir}:$LD_LIBRARY_PATH" +export LD_LIBRARY_PATH +# compile upstream test-cases +cd build-full/tests +%make_build V=1 +# relax crypto policy for the test-suite to make it pass again (#1611712) +export OPENSSL_SYSTEM_CIPHERS_OVERRIDE=XXX +export OPENSSL_CONF= +# run the upstream test-suite +srcdir=../../tests perl -I../../tests ../../tests/runtests.pl -a -p -v '!flaky' + %install rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.{la,so} @@ -167,6 +180,9 @@ rm -rf ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la %{_mandir}/man3/* %changelog +* Tue Sep 14 2021 wangce - 7.77.0-3 +- DESC:add check subprocess + * Fri Aug 13 2021 gaihuiying - 7.77.0-2 - Type:CVE - CVE:CVE-2021-22925 CVE-2021-22926 -- Gitee