!22 同步sp2的修改

From: @wieder
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
This commit is contained in:
openeuler-ci-bot 2021-11-16 07:06:41 +00:00 committed by Gitee
commit 4dfcb12d40
2 changed files with 53 additions and 4 deletions

View File

@ -0,0 +1,23 @@
From 09972e4b31efed122c8747c2840bea4fa6615c6c Mon Sep 17 00:00:00 2001
From: wuxu<wuxu.wu@hotmail.com>
Date: Sun, 9 Aug 2020 15:54:55 +0000
Subject: [PATCH] libhugetlbfs: fix max segment cannot adopt the x86
Signed-off-by: wuxu <wuxu.wu@hotmail.com>
diff --git a/elflink.c b/elflink.c
index 2e71522..0f3c228 100644
--- a/elflink.c
+++ b/elflink.c
@@ -158,7 +158,7 @@ static void unmapped_abort(const char *fmt, ...)
/* The directory to use for sharing readonly segments */
static char share_readonly_path[PATH_MAX+1];
-#define MAX_HTLB_SEGS 3
+#define MAX_HTLB_SEGS 4
#define MAX_SEGS 10
struct seg_info {
--
1.8.3.1

View File

@ -2,7 +2,7 @@
Name: libhugetlbfs
Version: 2.22
Release: 1
Release: 8
Summary: A library which provides easy access to huge pages of memory
License: LGPLv2+
URL: https://github.com/libhugetlbfs/libhugetlbfs
@ -10,10 +10,12 @@ Source0: https://github.com/libhugetlbfs/libhugetlbfs/releases/download/%{versi
Patch0000: 0000-build_flags.patch
Patch9000:libhugetlbfs-2.16-remap_segments_with_MAP_SHARED.patch
Patch9001:libhugetlbfs-2.16-remap_segments_with_MAP_SHARED-2.patch
Patch9002:libhugetlbfs-make-cflags.patch
Patch9000: libhugetlbfs-2.16-remap_segments_with_MAP_SHARED.patch
Patch9001: libhugetlbfs-2.16-remap_segments_with_MAP_SHARED-2.patch
Patch9002: libhugetlbfs-make-cflags.patch
Patch9003: libhugetlbfs-fix-max-segment-cannot-adopt-the-x86.patch
Recommends: %{name}-help = %{version}-%{release}
BuildRequires: gcc glibc-devel glibc-static
%description
@ -84,6 +86,30 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d/hugepages.conf
%changelog
* Mon Feb 8 2021 xinghe <xinghe1@huawei.com> - 2.22-8
- rebuild package
* Mon Feb 8 2021 xinghe <xinghe1@huawei.com> - 2.22-7
- rebuild package
* Mon Feb 8 2021 xinghe <xinghe1@huawei.com> - 2.22-6
- rebuild package
* Mon Feb 8 2021 xinghe <xinghe1@huawei.com> - 2.22-5
- rebuild package
* Mon Feb 8 2021 xinghe <xinghe1@huawei.com> - 2.22-4
- rebuild package
* Tue Dec 15 2020 wuxu<wuxu.wu@hotmail.com> - 2.22-3
- Type:enhancement
- ID:NA
- SUG:restart
- DESC: fix max segment cannot adopt the x86
* Wed Nov 11 2020 xinghe <xinghe1@huawei.com> - 2.22-2
- add help for Recommends
* Fri Apr 24 2020 lihongjiang<lihongjiang6@huawei.com> - 2.22-1
- Type:enhancement
- ID:NA