diff --git a/0002-fix-problem-of-scons-build-of-print.patch b/0002-fix-problem-of-scons-build-of-print.patch new file mode 100644 index 0000000..5f5bf8e --- /dev/null +++ b/0002-fix-problem-of-scons-build-of-print.patch @@ -0,0 +1,37 @@ +From 6ce448ad559446c2a6fa98ba642adbbe314207a1 Mon Sep 17 00:00:00 2001 +From: li-miaomiao_zhr +Date: Thu, 4 May 2023 15:33:36 +0800 +Subject: [PATCH] fix problem of scons build of print + +--- + build/check.py | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/build/check.py b/build/check.py +index 2dacb4c..9dea409 100755 +--- a/build/check.py ++++ b/build/check.py +@@ -52,16 +52,16 @@ if __name__ == '__main__': + + # Find test responses and run them one by one + for case in glob.glob(testdir + "/testcases/*.response"): +- print "== Testing %s ==" % (case) ++ print ("== Testing %s ==" % (case)) + try: + subprocess.check_call([SERF_RESPONSE_EXE, case]) + except subprocess.CalledProcessError: +- print "ERROR: test case %s failed" % (case) ++ print ("ERROR: test case %s failed" % (case)) + sys.exit(1) + +- print "== Running the unit tests ==" ++ print ("== Running the unit tests ==") + try: + subprocess.check_call(TEST_ALL_EXE) + except subprocess.CalledProcessError: +- print "ERROR: test(s) failed in test_all" ++ print ("ERROR: test(s) failed in test_all") + sys.exit(1) +-- +2.27.0 + diff --git a/libserf.spec b/libserf.spec index d8f6958..0cd96d9 100644 --- a/libserf.spec +++ b/libserf.spec @@ -3,7 +3,7 @@ Name: libserf Version: 1.3.9 -Release: 17 +Release: 18 Summary: High-Performance Asynchronous HTTP Client Library License: ASL 2.0 URL: https://serf.apache.org/ @@ -15,6 +15,7 @@ Patch0: %{name}-norpath.patch Patch1: %{name}-python3.patch Patch2: backport-%{name}-1.3.9-errgetfunc.patch Patch3: 0001-fix-CC-compiler-error.patch +Patch4: 0002-fix-problem-of-scons-build-of-print.patch %description The serf library is a C-based HTTP client library built upon the Apache Portable Runtime (APR) library. It multiplexes connections, running the @@ -70,6 +71,12 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %doc README CHANGES design-guide.txt %changelog +* Thu May 4 2023 li-miaomiao_zhr - 1.3.9-18 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix problem of scons build of print + * Mon Apr 24 2023 sjxur - 1.3.9-17 - Type:bugfix - ID:NA