!8 [sync] Update the version for 22.03-LTS-Next
From: @young1c Reviewed-by: @liqingqing_1229 Signed-off-by: @liqingqing_1229
This commit is contained in:
commit
74b8753cb9
@ -1,67 +0,0 @@
|
|||||||
From: Lu Weitao <luweitaobe@163.com>
|
|
||||||
Date: Thu, 12 Aug 2021 15:20:40 +0800
|
|
||||||
Subject: [PATCH 5/5] fix-multi-define
|
|
||||||
|
|
||||||
[Why]
|
|
||||||
met multiple definition as bellow:
|
|
||||||
[ 117s] /usr/bin/ld: test/alloc_benchmark_tbb-load_tbbmalloc_symbols.o:/home/abuild/rpmbuild/BUILD/memkind-1.7.0/test/tbbmalloc.h:28: multiple definition of `scalable_mallo
|
|
||||||
c'; test/alloc_benchmark_tbb-alloc_benchmark.o:/home/abuild/rpmbuild/BUILD/memkind-1.7.0/test/tbbmalloc.h:28: first defined here
|
|
||||||
[ 117s] /usr/bin/ld: test/alloc_benchmark_tbb-load_tbbmalloc_symbols.o:/home/abuild/rpmbuild/BUILD/memkind-1.7.0/test/tbbmalloc.h:29: multiple definition of `scalable_reall
|
|
||||||
oc'; test/alloc_benchmark_tbb-alloc_benchmark.o:/home/abuild/rpmbuild/BUILD/memkind-1.7.0/test/tbbmalloc.h:29: first defined here
|
|
||||||
[ 117s] /usr/bin/ld: test/alloc_benchmark_tbb-load_tbbmalloc_symbols.o:/home/abuild/rpmbuild/BUILD/memkind-1.7.0/test/tbbmalloc.h:30: multiple definition of `scalable_callo
|
|
||||||
c'; test/alloc_benchmark_tbb-alloc_benchmark.o:/home/abuild/rpmbuild/BUILD/memkind-1.7.0/test/tbbmalloc.h:30: first defined here
|
|
||||||
[ 117s] /usr/bin/ld: test/alloc_benchmark_tbb-load_tbbmalloc_symbols.o:/home/abuild/rpmbuild/BUILD/memkind-1.7.0/test/tbbmalloc.h:31: multiple definition of `scalable_free'
|
|
||||||
; test/alloc_benchmark_tbb-alloc_benchmark.o:/home/abuild/rpmbuild/BUILD/memkind-1.7.0/test/tbbmalloc.h:31: first defined here
|
|
||||||
|
|
||||||
Signed-off-by: Lu Weitao <luweitaobe@163.com>
|
|
||||||
---
|
|
||||||
memkind-1.7.0/test/alloc_benchmark.c | 2 ++
|
|
||||||
memkind-1.7.0/test/load_tbbmalloc_symbols.c | 3 +++
|
|
||||||
memkind-1.7.0/test/tbbmalloc.h | 8 ++++----
|
|
||||||
3 files changed, 9 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/test/alloc_benchmark.c b/test/alloc_benchmark.c
|
|
||||||
--- a/test/alloc_benchmark.c
|
|
||||||
+++ b/test/alloc_benchmark.c
|
|
||||||
@@ -47,6 +47,8 @@
|
|
||||||
|
|
||||||
double ctimer(void);
|
|
||||||
void usage(char * name);
|
|
||||||
+void* (*scalable_malloc)(size_t);
|
|
||||||
+void (*scalable_free)(void*);
|
|
||||||
|
|
||||||
int main(int argc, char * argv[])
|
|
||||||
{
|
|
||||||
diff --git a/test/load_tbbmalloc_symbols.c b/test/load_tbbmalloc_symbols.c
|
|
||||||
--- a/test/load_tbbmalloc_symbols.c
|
|
||||||
+++ b/test/load_tbbmalloc_symbols.c
|
|
||||||
@@ -24,6 +24,9 @@
|
|
||||||
|
|
||||||
#include "tbbmalloc.h"
|
|
||||||
|
|
||||||
+void* (*scalable_realloc)(void*, size_t);
|
|
||||||
+void* (*scalable_calloc)(size_t, size_t);
|
|
||||||
+
|
|
||||||
int load_tbbmalloc_symbols()
|
|
||||||
{
|
|
||||||
const char so_name[]="libtbbmalloc.so.2";
|
|
||||||
diff --git a/test/tbbmalloc.h b/test/tbbmalloc.h
|
|
||||||
--- a/test/tbbmalloc.h
|
|
||||||
+++ b/test/tbbmalloc.h
|
|
||||||
@@ -25,9 +25,9 @@
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <dlfcn.h>
|
|
||||||
|
|
||||||
-void* (*scalable_malloc)(size_t);
|
|
||||||
-void* (*scalable_realloc)(void*, size_t);
|
|
||||||
-void* (*scalable_calloc)(size_t, size_t);
|
|
||||||
-void (*scalable_free)(void*);
|
|
||||||
+extern void* (*scalable_malloc)(size_t);
|
|
||||||
+extern void* (*scalable_realloc)(void*, size_t);
|
|
||||||
+extern void* (*scalable_calloc)(size_t, size_t);
|
|
||||||
+extern void (*scalable_free)(void*);
|
|
||||||
|
|
||||||
int load_tbbmalloc_symbols();
|
|
||||||
--
|
|
||||||
2.23.0
|
|
||||||
|
|
||||||
BIN
memkind-1.13.0.tar.gz
Normal file
BIN
memkind-1.13.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
32
memkind.spec
32
memkind.spec
@ -1,18 +1,17 @@
|
|||||||
Name: memkind
|
Name: memkind
|
||||||
Summary: Extensible Heap Manager for User
|
Summary: Extensible Heap Manager for User
|
||||||
Version: 1.7.0
|
Version: 1.13.0
|
||||||
Release: 5
|
Release: 1
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://memkind.github.io/memkind
|
URL: http://memkind.github.io/memkind
|
||||||
Source0: https://github.com/memkind/memkind/archive/v1.7.0/%{name}-%{version}.tar.gz
|
Source0: https://github.com/memkind/memkind/archive/v1.13.0/%{name}-%{version}.tar.gz
|
||||||
Patch0001: 0001-fix-multi-define.patch
|
|
||||||
|
|
||||||
BuildRequires: automake libtool numactl-devel systemd gcc gcc-c++
|
BuildRequires: automake libtool numactl-devel systemd gcc gcc-c++
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The kinds of memory are defined by operating system memory policies that have been applied
|
The kinds of memory are defined by operating system memory policies that have been applied
|
||||||
to virtual address ranges.Memory characteristics supported by memkind without user extension
|
to virtual address ranges. Memory characteristics supported by memkind without user extension
|
||||||
include control of NUMA and page size features.
|
include control of NUMA and page size features.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
@ -32,15 +31,15 @@ Help documents for memkind.
|
|||||||
%autosetup -a 0 -n %{name}-%{version} -p1
|
%autosetup -a 0 -n %{name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd %{_builddir}/memkind-1.7.0
|
pushd %{_builddir}/memkind-1.13.0
|
||||||
echo 1.7.0 > %{_builddir}/memkind-1.7.0/VERSION
|
echo 1.13.0 > %{_builddir}/memkind-1.13.0/VERSION
|
||||||
./build.sh --prefix=%{_prefix} --includedir=%{_includedir} --libdir=%{_libdir} \
|
./build.sh --prefix=%{_prefix} --includedir=%{_includedir} --libdir=%{_libdir} \
|
||||||
--bindir=%{_bindir} --docdir=%{_docdir}/memkind --mandir=%{_mandir} \
|
--bindir=%{_bindir} --docdir=%{_docdir}/memkind --mandir=%{_mandir} \
|
||||||
--sbindir=%{_sbindir}
|
--sbindir=%{_sbindir}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd %{_builddir}/memkind-1.7.0
|
pushd %{_builddir}/memkind-1.13.0
|
||||||
%make_install
|
%make_install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -52,29 +51,38 @@ popd
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%{_libdir}/libmemkind.so.*
|
%{_libdir}/libmemkind.so.*
|
||||||
|
%{_libdir}/libmemtier.so.*
|
||||||
%{_libdir}/libautohbw.so.*
|
%{_libdir}/libautohbw.so.*
|
||||||
%{_bindir}/memkind-hbw-nodes
|
%{_bindir}/memkind-hbw-nodes
|
||||||
|
%{_bindir}/memkind-auto-dax-kmem-nodes
|
||||||
%dir %{_docdir}/memkind
|
%dir %{_docdir}/memkind
|
||||||
%doc %{_docdir}/memkind/COPYING
|
%doc %{_docdir}/memkind/COPYING
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%dir %{_includedir}/memkind
|
%{_includedir}/fixed_allocator.h
|
||||||
%dir %{_includedir}/memkind/internal/
|
|
||||||
%{_includedir}/memkind/internal/*.h
|
|
||||||
%{_includedir}/memkind*.h
|
%{_includedir}/memkind*.h
|
||||||
%{_includedir}/hbwmalloc.h
|
%{_includedir}/hbwmalloc.h
|
||||||
%{_includedir}/hbw_allocator.h
|
%{_includedir}/hbw_allocator.h
|
||||||
|
%{_includedir}/pmem_allocator.h
|
||||||
%{_libdir}/libmemkind.so
|
%{_libdir}/libmemkind.so
|
||||||
|
%{_libdir}/libmemtier.so
|
||||||
%{_libdir}/libautohbw.so
|
%{_libdir}/libautohbw.so
|
||||||
%exclude %{_libdir}/libmemkind.{l,}a
|
%exclude %{_libdir}/libmemkind.{l,}a
|
||||||
|
%exclude %{_libdir}/libmemtier.{l,}a
|
||||||
%exclude %{_libdir}/libautohbw.{l,}a
|
%exclude %{_libdir}/libautohbw.{l,}a
|
||||||
|
%exclude %{_libdir}/pkgconfig/memkind.pc
|
||||||
%exclude %{_docdir}/memkind/VERSION
|
%exclude %{_docdir}/memkind/VERSION
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc %{_docdir}/memkind/README
|
%doc %{_docdir}/memkind/README
|
||||||
|
%{_mandir}/man1/*
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
%{_mandir}/man7/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 6 2022 Hesham Almatary <hesham.almatary@huawei.com> - 1.13.0-1
|
||||||
|
- Upgrade to version 1.13.0 and allow building for aarch64
|
||||||
|
|
||||||
* Mon Aug 2 2021 luweitao <luweitaobe@163.com> - 2.7.1-12
|
* Mon Aug 2 2021 luweitao <luweitaobe@163.com> - 2.7.1-12
|
||||||
- fix compile failure by GCC-10
|
- fix compile failure by GCC-10
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user