change script from py2 to py3

This commit is contained in:
lihongjiang 2020-02-25 10:19:33 +08:00
parent 7c2246709d
commit 8306bfc5f4
2 changed files with 47 additions and 46 deletions

View File

@ -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> From: lihongjiang <lihongjiang6@huawei.com>
Date: Wed, 5 Feb 2020 11:22:38 +0000 Date: Tue, 25 Feb 2020 10:51:17 +0800
Subject: [PATCH] libhugetlbfs: change py2 scripts to py3 Subject: [PATCH] change script from py2 to py3
diff --git a/huge_page_setup_helper.py b/huge_page_setup_helper.py 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 --- a/huge_page_setup_helper.py
+++ b/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 @@ -14,13 +14,13 @@ debug = False
# must be executed under the root to operate # must be executed under the root to operate

View File

@ -2,7 +2,7 @@
Name: libhugetlbfs Name: libhugetlbfs
Version: 2.20 Version: 2.20
Release: 13 Release: 14
Summary: A library which provides easy access to huge pages of memory Summary: A library which provides easy access to huge pages of memory
License: LGPLv2+ License: LGPLv2+
URL: https://github.com/libhugetlbfs/libhugetlbfs 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 Patch0004: 0004-ld.hugetlbfs-pick-an-emulation-if-m-is-not-present.patch
Patch0005: 0005-ld.hugetlbfs-support-512M-hugepages-on-aarch64.patch Patch0005: 0005-ld.hugetlbfs-support-512M-hugepages-on-aarch64.patch
Patch0006: 0006-libhugetlbfs-fix-tests-with-heapshrink-fail.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 Patch9000:libhugetlbfs-2.16-remap_segments_with_MAP_SHARED.patch
Patch9001:libhugetlbfs-2.16-remap_segments_with_MAP_SHARED-2.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 %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 * Mon Dec 30 2019 lihongjiang<lihongjiang6@huawei.com> - 2.20-13
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA