change script from py2 to py3
This commit is contained in:
parent
7c2246709d
commit
8306bfc5f4
@ -1,18 +1,12 @@
|
||||
From 541d595fbe63e84ec9855c0945b4291e0d6104b1 Mon Sep 17 00:00:00 2001
|
||||
From ea54bafb9552a561f7dc746f5dec33cca62419f7 Mon Sep 17 00:00:00 2001
|
||||
From: lihongjiang <lihongjiang6@huawei.com>
|
||||
Date: Wed, 5 Feb 2020 11:22:38 +0000
|
||||
Subject: [PATCH] libhugetlbfs: change py2 scripts to py3
|
||||
Date: Tue, 25 Feb 2020 10:51:17 +0800
|
||||
Subject: [PATCH] change script from py2 to py3
|
||||
|
||||
diff --git a/huge_page_setup_helper.py b/huge_page_setup_helper.py
|
||||
index 43c9916..46866e3 100755
|
||||
index 43c9916..a9ba2bf 100755
|
||||
--- a/huge_page_setup_helper.py
|
||||
+++ b/huge_page_setup_helper.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/python
|
||||
+#!/usr/bin/python3
|
||||
|
||||
#
|
||||
# Tool to set up Linux large page support with minimal effort
|
||||
@@ -14,13 +14,13 @@ debug = False
|
||||
|
||||
# must be executed under the root to operate
|
||||
@ -274,10 +268,10 @@ index 43c9916..46866e3 100755
|
||||
- print "Add to %s:" % limitsConf
|
||||
+ print("Add to %s:" % limitsConf)
|
||||
for hugeUser in hugePageUserList:
|
||||
- print "%s soft memlock %d" % (hugeUser, userHugePageReqKB)
|
||||
- print "%s hard memlock %d" % (hugeUser, userHugePageReqKB)
|
||||
+ print("%s soft memlock %d" % (hugeUser, userHugePageReqKB))
|
||||
+ print("%s hard memlock %d" % (hugeUser, userHugePageReqKB))
|
||||
- print "%s soft memlock %d" % (hugeUser, userHugePageReqKB)
|
||||
- print "%s hard memlock %d" % (hugeUser, userHugePageReqKB)
|
||||
+ print("%s soft memlock %d" % (hugeUser, userHugePageReqKB))
|
||||
+ print("%s hard memlock %d" % (hugeUser, userHugePageReqKB))
|
||||
|
||||
|
||||
# dump the final configuration of things now that we're done tweaking
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
Name: libhugetlbfs
|
||||
Version: 2.20
|
||||
Release: 13
|
||||
Release: 14
|
||||
Summary: A library which provides easy access to huge pages of memory
|
||||
License: LGPLv2+
|
||||
URL: https://github.com/libhugetlbfs/libhugetlbfs
|
||||
@ -15,6 +15,7 @@ Patch0003: 0003-fix-behavior-while-shrinking.patch
|
||||
Patch0004: 0004-ld.hugetlbfs-pick-an-emulation-if-m-is-not-present.patch
|
||||
Patch0005: 0005-ld.hugetlbfs-support-512M-hugepages-on-aarch64.patch
|
||||
Patch0006: 0006-libhugetlbfs-fix-tests-with-heapshrink-fail.patch
|
||||
Patch0007: 0007-libhugetlbfs-2.20-change-scripts-to-py3.patch
|
||||
|
||||
Patch9000:libhugetlbfs-2.16-remap_segments_with_MAP_SHARED.patch
|
||||
Patch9001:libhugetlbfs-2.16-remap_segments_with_MAP_SHARED-2.patch
|
||||
@ -89,6 +90,12 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d/hugepages.conf
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Feb 25 2020 lihongjiang<lihongjiang6@huawei.com> - 2.20-14
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
- SUG:restart
|
||||
- DESC:change script from py2 to py3
|
||||
|
||||
* Mon Dec 30 2019 lihongjiang<lihongjiang6@huawei.com> - 2.20-13
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user