From 8b878760b7415f2bd49490906e3689c94ccd563f Mon Sep 17 00:00:00 2001 From: yueyuankun Date: Thu, 20 Mar 2025 14:08:16 +0800 Subject: [PATCH] sw_64: move library files to /usr/lib64, consistent with libdir macros --- ...4-package-library-files-to-usr-lib64.patch | 26 +++++++++++++++++++ libhugetlbfs.spec | 6 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 libhugetlbfs-sw_64-package-library-files-to-usr-lib64.patch diff --git a/libhugetlbfs-sw_64-package-library-files-to-usr-lib64.patch b/libhugetlbfs-sw_64-package-library-files-to-usr-lib64.patch new file mode 100644 index 0000000..e3ea386 --- /dev/null +++ b/libhugetlbfs-sw_64-package-library-files-to-usr-lib64.patch @@ -0,0 +1,26 @@ +From 107e7cab6824ed78f6cb62c9b44d6ab466a26eba Mon Sep 17 00:00:00 2001 +From: yueyuankun +Date: Wed, 19 Mar 2025 20:05:58 +0800 +Subject: [PATCH] sw_64: package library files to /usr/lib64, consistent with + libdir macros + +--- + Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 7c0ca79..f63ef04 100644 +--- a/Makefile ++++ b/Makefile +@@ -66,7 +66,7 @@ else + ifneq (,$(findstring sw_64,$(ARCH))) + CC64 = $(CC) + ELF64 = sw_64elf +-TMPLIB64 = lib ++TMPLIB64 = lib64 + CUSTOM_LDSCRIPTS = no + else + ifneq (,$(findstring aarch64,$(ARCH))) +-- +2.43.0 + diff --git a/libhugetlbfs.spec b/libhugetlbfs.spec index 4fbf5c8..13cbb6f 100644 --- a/libhugetlbfs.spec +++ b/libhugetlbfs.spec @@ -2,7 +2,7 @@ Name: libhugetlbfs Version: 2.23 -Release: 6 +Release: 7 Summary: A library which provides easy access to huge pages of memory License: LGPLv2+ URL: https://github.com/libhugetlbfs/libhugetlbfs @@ -13,6 +13,7 @@ Patch1: Disable-hugepage-backed-malloc-if-__morecore-is-not-.patch Patch2: libhugetlbfs-2.23-sw.patch Patch3: add-loongarch-support.patch Patch4: Add-support-for-loongarch64-architecture-in-ld.hugetlbfs.patch +Patch5: libhugetlbfs-sw_64-package-library-files-to-usr-lib64.patch Patch9001:libhugetlbfs-make-cflags.patch Patch9002:libhugetlbfs-fix-max-segment-cannot-adopt-the-x86.patch @@ -87,6 +88,9 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d/hugepages.conf %changelog +* Wed Mar 19 2025 yueyuankun - 2.23-7 +- sw_64: move library files to /usr/lib64, consistent with libdir macros + * Tue Oct 29 2024 wangqiang - 2.23-6 - Add support for loongarch64 architecture in ld.hugetlbfs -- Gitee