Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Adam Borowski
cebd659403 No support for glibc ≥2.34, obsoleted by memkind ≥1.12 2021-09-09 15:57:10 +02:00
Adam Borowski
63cdd1fc57 Drop a test for dummying a function that's removed from glibc 2.34 2021-09-06 04:56:21 +02:00
Fedora Release Engineering
3674749cff - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 20:36:14 +00:00
Tom Stellard
48f747f4f3 Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
2021-02-19 13:52:00 +01:00
6 changed files with 1 additions and 337 deletions

2
.gitignore vendored
View file

@ -1,2 +0,0 @@
/1.8-rc1.tar.gz
/1.8.tar.gz

View file

@ -1,88 +0,0 @@
From fa48bba673b274cc08a77599123a8add77fbb8b8 Mon Sep 17 00:00:00 2001
From: Adam Borowski <kilobyte@angband.pl>
Date: Sun, 16 Aug 2020 01:54:49 +0200
Subject: [PATCH] Fix scope tests wrt binutils 2.35
The output of nm has changed to include ABI tags.
---
src/test/scope/out0.log.match | 32 ++++++++++++++++----------------
src/test/scope/out5.log.match | 30 +++++++++++++++---------------
2 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/src/test/scope/out0.log.match b/src/test/scope/out0.log.match
index 0bab485d2..a567a41f0 100644
--- a/src/test/scope/out0.log.match
+++ b/src/test/scope/out0.log.match
@@ -1,17 +1,17 @@
$(*)
-vmem_aligned_alloc
-vmem_calloc
-vmem_check
-vmem_check_version
-vmem_create
-vmem_create_in_region
-vmem_delete
-vmem_errormsg
-vmem_free
-vmem_malloc
-vmem_malloc_usable_size
-vmem_realloc
-vmem_set_funcs
-vmem_stats_print
-vmem_strdup
-vmem_wcsdup
+vmem_aligned_alloc$(nW)
+vmem_calloc$(nW)
+vmem_check$(nW)
+vmem_check_version$(nW)
+vmem_create$(nW)
+vmem_create_in_region$(nW)
+vmem_delete$(nW)
+vmem_errormsg$(nW)
+vmem_free$(nW)
+vmem_malloc$(nW)
+vmem_malloc_usable_size$(nW)
+vmem_realloc$(nW)
+vmem_set_funcs$(nW)
+vmem_stats_print$(nW)
+vmem_strdup$(nW)
+vmem_wcsdup$(nW)
diff --git a/src/test/scope/out5.log.match b/src/test/scope/out5.log.match
index c1f11d08d..6c13be86b 100644
--- a/src/test/scope/out5.log.match
+++ b/src/test/scope/out5.log.match
@@ -1,16 +1,16 @@
$(*)
-$(OPT)_malloc_postfork
-$(OPT)_malloc_prefork
-$(OPT)_malloc_thread_cleanup
-aligned_alloc
-calloc
-cfree
-free
-malloc
-malloc_usable_size
-memalign
-posix_memalign
-$(OPT)pthread_create
-pvalloc
-realloc
-valloc
+$(OPT)_malloc_postfork$(nW)
+$(OPT)_malloc_prefork$(nW)
+$(OPT)_malloc_thread_cleanup$(nW)
+aligned_alloc$(nW)
+calloc$(nW)
+cfree$(nW)
+free$(nW)
+malloc$(nW)
+malloc_usable_size$(nW)
+memalign$(nW)
+posix_memalign$(nW)
+$(OPT)pthread_create$(nW)
+pvalloc$(nW)
+realloc$(nW)
+valloc$(nW)
--
2.28.0

View file

@ -1,3 +0,0 @@
# vmem
The vmem package

1
dead.package Normal file
View file

@ -0,0 +1 @@
No support for glibc ≥2.34, obsoleted by memkind ≥1.12

View file

@ -1 +0,0 @@
SHA512 (1.8.tar.gz) = 21d30418b27da62a7ffb5a868fb4b5c5615e90ace06444bf40273f18f704c26dc92a2705bf828883e601f4dba07a2b1c732f9211cb2bc4ecdbfe1624ee6aca6f

243
vmem.spec
View file

@ -1,243 +0,0 @@
# rpmbuild options:
# --define _testconfig <path to custom testconfig.sh>
%define upstreamversion 1.8
Name: vmem
Version: %{upstreamversion}
Release: 5%{?dist}
Summary: Volatile Memory Development Kit
License: BSD
URL: http://pmem.io/vmem
Source0: https://github.com/pmem/vmem/archive/%{upstreamversion}.tar.gz
Patch0: 0001-Fix-scope-tests-wrt-binutils-2.35.patch
BuildRequires: gcc
BuildRequires: make
BuildRequires: glibc-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: man
BuildRequires: pkgconfig
# for tests
BuildRequires: gdb
BuildRequires: bc
BuildRequires: libunwind-devel
# Debug variants of the libraries should be filtered out of the provides.
%global __provides_exclude_from ^%{_libdir}/vmem_debug/.*\\.so.*$
# By design, no 32-bit architectures are supported. As for 64-bit archs,
# there's generally no reason porting couldn't be done, but someone would
# need to do the work. Outside of x86_64, aarch64 works -- but no one did
# any serious testing.
#
# Bugs reported for the PMDK project that VMEM originally comes from:
# https://bugzilla.redhat.com/show_bug.cgi?id=1340634
# https://bugzilla.redhat.com/show_bug.cgi?id=1340635
# https://bugzilla.redhat.com/show_bug.cgi?id=1340636
# https://bugzilla.redhat.com/show_bug.cgi?id=1340637
ExclusiveArch: x86_64
%description
vmem and vmmalloc are libraries for using persistent memory as volatile
heap for malloc-like allocations.
%package -n libvmem
Summary: Volatile Memory allocation library
%description -n libvmem
The libvmem library turns a pool of persistent memory into a volatile
memory pool, similar to the system heap but kept separate and with
its own malloc-style API.
%files -n libvmem
%{_libdir}/libvmem.so.*
%license LICENSE
%doc ChangeLog README.md
%package -n libvmem-devel
Summary: Development files for the Volatile Memory allocation library
Requires: libvmem = %{version}-%{release}
%description -n libvmem-devel
The libvmem library turns a pool of persistent memory into a volatile
memory pool, similar to the system heap but kept separate and with
its own malloc-style API.
This sub-package contains libraries and header files for developing
applications that want to make use of libvmem.
%files -n libvmem-devel
%{_libdir}/libvmem.so
%{_libdir}/pkgconfig/libvmem.pc
%{_includedir}/libvmem.h
%{_mandir}/man7/libvmem.7.gz
%{_mandir}/man3/vmem_*.3.gz
%license LICENSE
%doc ChangeLog README.md
%package -n libvmem-debug
Summary: Debug variant of the Volatile Memory allocation library
Requires: libvmem = %{version}-%{release}
%description -n libvmem-debug
The libvmem library turns a pool of persistent memory into a volatile
memory pool, similar to the system heap but kept separate and with
its own malloc-style API.
This sub-package contains debug variant of the library, providing
run-time assertions and trace points. The typical way to access the
debug version is to set the environment variable LD_LIBRARY_PATH to
/usr/lib64/vmem_debug.
%files -n libvmem-debug
%dir %{_libdir}/vmem_debug
%{_libdir}/vmem_debug/libvmem.so
%{_libdir}/vmem_debug/libvmem.so.*
%license LICENSE
%doc ChangeLog README.md
%package -n libvmmalloc
Summary: Dynamic to Persistent Memory allocation translation library
%description -n libvmmalloc
The libvmmalloc library transparently converts all the dynamic memory
allocations into persistent memory allocations. This allows the use
of persistent memory as volatile memory without modifying the target
application.
The typical usage of libvmmalloc is to load it via the LD_PRELOAD
environment variable.
%files -n libvmmalloc
%{_libdir}/libvmmalloc.so.*
%license LICENSE
%doc ChangeLog README.md
%package -n libvmmalloc-devel
Summary: Development files for the Dynamic-to-Persistent allocation library
Requires: libvmmalloc = %{version}-%{release}
%description -n libvmmalloc-devel
The libvmmalloc library transparently converts all the dynamic memory
allocations into persistent memory allocations. This allows the use
of persistent memory as volatile memory without modifying the target
application.
This sub-package contains libraries and header files for developing
applications that want to specifically make use of libvmmalloc.
%files -n libvmmalloc-devel
%{_libdir}/libvmmalloc.so
%{_libdir}/pkgconfig/libvmmalloc.pc
%{_includedir}/libvmmalloc.h
%{_mandir}/man7/libvmmalloc.7.gz
%license LICENSE
%doc ChangeLog README.md
%package -n libvmmalloc-debug
Summary: Debug variant of the Dynamic-to-Persistent allocation library
Requires: libvmmalloc = %{version}-%{release}
%description -n libvmmalloc-debug
The libvmmalloc library transparently converts all the dynamic memory
allocations into persistent memory allocations. This allows the use
of persistent memory as volatile memory without modifying the target
application.
This sub-package contains debug variant of the library, providing
run-time assertions and trace points. The typical way to access the
debug version is to set the environment variable LD_LIBRARY_PATH to
/usr/lib64/vmem_debug.
%files -n libvmmalloc-debug
%dir %{_libdir}/vmem_debug
%{_libdir}/vmem_debug/libvmmalloc.so
%{_libdir}/vmem_debug/libvmmalloc.so.*
%license LICENSE
%doc ChangeLog README.md
%prep
%setup -q -n vmem-%{upstreamversion}
%patch0 -p1
%build
# This package has undefined symbols showing up in debug sections which is
# a known upstream bug with LTO. It should be fixed relatively soon, but
# until then, disable LTO
%define _lto_cflags %{nil}
# For debug build default flags may be overriden to disable compiler
# optimizations.
CFLAGS="%{optflags}" \
LDFLAGS="%{?__global_ldflags}" \
make %{?_smp_mflags} NORPATH=1
# Override LIB_AR with empty string to skip installation of static libraries
%install
make install DESTDIR=%{buildroot} \
LIB_AR= \
prefix=%{_prefix} \
libdir=%{_libdir} \
includedir=%{_includedir} \
mandir=%{_mandir} \
bindir=%{_bindir} \
sysconfdir=%{_sysconfdir} \
docdir=%{_docdir}
%check
%if 0%{?_skip_check} == 1
echo "Check skipped"
%else
%if %{defined _testconfig}
cp %{_testconfig} src/test/testconfig.sh
%else
echo "TEST_DIR=/tmp" > src/test/testconfig.sh
echo 'TEST_BUILD="debug nondebug"' >> src/test/testconfig.sh
%endif
make check
%endif
%ldconfig_scriptlets -n libvmem
%ldconfig_scriptlets -n libvmmalloc
%if 0%{?__debug_package} == 0
%debug_package
%endif
%changelog
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sun Aug 16 2020 Adam Borowski <kilobyte@angband.pl> - 1.8-5
- Fix FTBFS with new binutils.
* Sat Aug 08 2020 Jeff Law <law@redhat.com> - 1.8-4
- Disable LTO
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-3
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Feb 11 2020 Adam Borowski <kilobyte@angband.pl> - 1.8-1
- Upstream release 1.8
- Re-add libunwind-devel to BReqs.
* Fri Jan 24 2020 Adam Borowski <kilobyte@angband.pl> - 1.8~rc1-1
- Initial RPM release