From c91eed6e2b3fe68a28972e4b8e6b56aa36f58bf1c3171e6f25c2a94cea0124be Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 14 Jan 2020 07:27:21 +0000 Subject: [PATCH 1/2] Accepting request 763347 from home:StefanBruens:branches:Base:System - Update to version 2.0.13: * Release numactl 2.0.13 * Skip `test/move_pages` if we don't have at least two nodes available * Add license files: GPLv2 + LGPLv2.1 * Handle cpu-less node for bind_range test * Convert numastat.c to standard numactl coding style * Disable clang travis targets for now * numastat.8: clarify that information relates to resident pages * Fix all declarations to be C prototypes * numatopology: Add check for cpu-less nodes * Update INSTALL.md * numastat: when reading no-exist pid, return EXIT_FAILURE * numastat: Add KReclaimable to list of known fields in meminfo * numastat: Better diagnostic when find unknown string in meminfo * Enable building on s390x * Correct sysconf constants * Removed unnecessary exit from memhog.c Solves issue #50 * Synchronized usage function with man page * Added memhog.8 to Makefile.am * memhog: add man page * Allow linking with lld by deduplicating symbols * numademo: free the node_to_use on the way out * numademo: free test nodemask * libnuma: cleanup node cpu mask in destructor * numactl: add va_end to usage function * travis: add build matrix * remove kernel version check * add missing linux version header * make MPOL_ macros match linux kernel * add missing policy * Fix: Add ShmemHugePages and ShmemPmdMapped to system_meminfo[] * Fix: move_pages test for non-contiguous nodes * Correct calculation of nr_nodes and re-enable move_pages test * Fix: regress test numastat function and few test fixes * Fix: distance test to include all existing nodes * numademo: fix wrong node input * Fix: node_list with memory-less nodes - Drop autoconf/libtool BuildRequires and autoreconf invocation, bundled configure is up-to-date. - Drop obsolete revert_date_in_numastat.patch, gcc sets __DATE__ based on SOURCE_DATE_EPOCH now. - Correct License for devel subpackage, same as for the library (LGPL-2.1-or-later). OBS-URL: https://build.opensuse.org/request/show/763347 OBS-URL: https://build.opensuse.org/package/show/Base:System/numactl?expand=0&rev=79 --- _service | 4 +-- _servicedata | 2 +- numactl-2.0.13.tar.gz | 3 +++ numactl.changes | 47 +++++++++++++++++++++++++++++++++++ numactl.spec | 28 ++++++--------------- revert_date_in_numastat.patch | 24 ------------------ 6 files changed, 61 insertions(+), 47 deletions(-) create mode 100644 numactl-2.0.13.tar.gz delete mode 100644 revert_date_in_numastat.patch diff --git a/_service b/_service index 3ff2df4..0f70f62 100644 --- a/_service +++ b/_service @@ -4,9 +4,9 @@ https://github.com/numactl/numactl numactl - 2.0.12 + 2.0.13 enable - 841253d1313b01a968c380cae4f498f20c46e5aa + v2.0.13 numactl*.tar diff --git a/_servicedata b/_servicedata index e965020..287446f 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ https://github.com/numactl/numactl - 841253d1313b01a968c380cae4f498f20c46e5aa \ No newline at end of file + 5d9f16722e3df49dc618a9f361bd482559695db7 \ No newline at end of file diff --git a/numactl-2.0.13.tar.gz b/numactl-2.0.13.tar.gz new file mode 100644 index 0000000..ff7a801 --- /dev/null +++ b/numactl-2.0.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:991e254b867eb5951a44d2ae0bf1996a8ef0209e026911ef6c3ef4caf6f58c9a +size 438096 diff --git a/numactl.changes b/numactl.changes index 24067fd..9c6d390 100644 --- a/numactl.changes +++ b/numactl.changes @@ -1,3 +1,50 @@ +------------------------------------------------------------------- +Sat Jan 11 17:09:25 UTC 2020 - stefan.bruens@rwth-aachen.de + +- Update to version 2.0.13: + * Release numactl 2.0.13 + * Skip `test/move_pages` if we don't have at least two nodes available + * Add license files: GPLv2 + LGPLv2.1 + * Handle cpu-less node for bind_range test + * Convert numastat.c to standard numactl coding style + * Disable clang travis targets for now + * numastat.8: clarify that information relates to resident pages + * Fix all declarations to be C prototypes + * numatopology: Add check for cpu-less nodes + * Update INSTALL.md + * numastat: when reading no-exist pid, return EXIT_FAILURE + * numastat: Add KReclaimable to list of known fields in meminfo + * numastat: Better diagnostic when find unknown string in meminfo + * Enable building on s390x + * Correct sysconf constants + * Removed unnecessary exit from memhog.c Solves issue #50 + * Synchronized usage function with man page + * Added memhog.8 to Makefile.am + * memhog: add man page + * Allow linking with lld by deduplicating symbols + * numademo: free the node_to_use on the way out + * numademo: free test nodemask + * libnuma: cleanup node cpu mask in destructor + * numactl: add va_end to usage function + * travis: add build matrix + * remove kernel version check + * add missing linux version header + * make MPOL_ macros match linux kernel + * add missing policy + * Fix: Add ShmemHugePages and ShmemPmdMapped to system_meminfo[] + * Fix: move_pages test for non-contiguous nodes + * Correct calculation of nr_nodes and re-enable move_pages test + * Fix: regress test numastat function and few test fixes + * Fix: distance test to include all existing nodes + * numademo: fix wrong node input + * Fix: node_list with memory-less nodes +- Drop autoconf/libtool BuildRequires and autoreconf invocation, + bundled configure is up-to-date. +- Drop obsolete revert_date_in_numastat.patch, gcc sets __DATE__ + based on SOURCE_DATE_EPOCH now. +- Correct License for devel subpackage, same as for the library + (LGPL-2.1-or-later). + ------------------------------------------------------------------- Tue Sep 10 13:40:46 CEST 2019 - kukuk@suse.de diff --git a/numactl.spec b/numactl.spec index 5f12e42..1f40184 100644 --- a/numactl.spec +++ b/numactl.spec @@ -1,7 +1,7 @@ # # spec file for package numactl # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,26 +17,17 @@ Name: numactl -Version: 2.0.12 +Version: 2.0.13 Release: 0 Summary: NUMA Policy Control License: GPL-2.0-only Group: System/Management -Url: https://github.com/numactl/numactl/releases -Source0: %{name}-%{version}.tar.gz +URL: https://github.com/numactl/numactl/releases +Source0: https://github.com/numactl/numactl/releases/download/v%{version}/%{name}-%{version}.tar.gz Source2: baselibs.conf # PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines -Patch0: revert_date_in_numastat.patch -# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines Patch1: 0001-Fixed-segfault-when-no-node-could-be-found-in-sysfs-.patch Patch2: numactl-clearcache-pie.patch -%if 0%{?suse_version} > 1110 -BuildRequires: autoconf >= 2.64 -BuildRequires: automake -BuildRequires: libtool -%endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build -ExcludeArch: %arm %description Control NUMA policy for individual processes. Offer libnuma for @@ -53,7 +44,7 @@ individual NUMA policy in applications. %package -n libnuma-devel Summary: NUMA Policy Control -License: GPL-2.0-only +License: LGPL-2.1-or-later Group: Development/Languages/C and C++ Requires: libnuma1 = %{version} @@ -63,23 +54,19 @@ individual NUMA policy in applications. %prep %setup -q -%patch0 -p1 %patch1 -p1 %patch2 -p1 %build %define _lto_cflags %{nil} -%if 0%{?suse_version} > 1110 -autoreconf -fiv -%endif %configure \ --disable-static -make %{?_smp_mflags} CFLAGS="%{optflags}" +make %{?_smp_mflags} CFLAGS="%{optflags}" V=1 %install %make_install rm %{buildroot}%{_mandir}/man2/move_pages.2* -rm -f %{buildroot}/%{_libdir}/lib*a +rm -f %{buildroot}/%{_libdir}/lib*.la %post -n libnuma1 -p /sbin/ldconfig @@ -87,6 +74,7 @@ rm -f %{buildroot}/%{_libdir}/lib*a %files %defattr(-,root,root) +%license LICENSE.GPL2 LICENSE.LGPL2.1 %{_bindir}/* %{_mandir}/man8/* diff --git a/revert_date_in_numastat.patch b/revert_date_in_numastat.patch deleted file mode 100644 index 4a5a8f3..0000000 --- a/revert_date_in_numastat.patch +++ /dev/null @@ -1,24 +0,0 @@ -numactl: Revert __DATE__ in numastat - -or this will trigger unnecessary, constant rebuilds in build -service environments. - -Signed-off-by: Thomas Renninger - ---- - numastat.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: numactl-2.0.12/numastat.c -=================================================================== ---- numactl-2.0.12.orig/numastat.c -+++ numactl-2.0.12/numastat.c -@@ -675,7 +675,7 @@ double huge_page_size_in_bytes = 0; - - void display_version_and_exit() { - char *version_string = "20130723"; -- printf("%s version: %s: %s\n", prog_name, version_string, __DATE__); -+ printf("%s version: %s\n", prog_name, version_string); - exit(EXIT_SUCCESS); - } - From 09821b8621b8f15b5ce0db850f4454522f8ee11a35a5e983f556018a7337334d Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 14 Jan 2020 07:44:08 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/Base:System/numactl?expand=0&rev=80 --- numactl-2.0.12.tar.gz | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 numactl-2.0.12.tar.gz diff --git a/numactl-2.0.12.tar.gz b/numactl-2.0.12.tar.gz deleted file mode 100644 index 57886a3..0000000 --- a/numactl-2.0.12.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:44c88648910f9c310fc3d8c717f43fff83ff194a3812daf72cc524ca30de5a38 -size 94384