fix problem of scons build of print

This commit is contained in:
li-miaomiao_zhr 2023-05-04 15:41:11 +08:00
parent 1d93d57a93
commit 8d266c25f5
2 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1,37 @@
From 6ce448ad559446c2a6fa98ba642adbbe314207a1 Mon Sep 17 00:00:00 2001
From: li-miaomiao_zhr <mmlidc@isoftstone.com>
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

View File

@ -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 <mmlidc@isoftstone.com> - 1.3.9-18
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix problem of scons build of print
* Mon Apr 24 2023 sjxur <sjxur@isoftstone.com> - 1.3.9-17
- Type:bugfix
- ID:NA