Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/numactl/files/, sys-process/numactl/
Date: Fri, 09 Feb 2018 15:05:46
Message-Id: 1518188736.b18f5068f06686bf7e7830ac18194321ca344817.polynomial-c@gentoo
1 commit: b18f5068f06686bf7e7830ac18194321ca344817
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 9 14:44:39 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 9 15:05:36 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b18f5068
7
8 sys-process/numactl: Removed old.
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 sys-process/numactl/Manifest | 2 -
13 .../numactl/files/numactl-2.0.8-static_libs.patch | 86 ----------------------
14 .../files/numactl-2.0.9-testsuite_fix.patch | 12 ---
15 .../files/numactl-2.0.9-testsuite_path.patch | 14 ----
16 sys-process/numactl/numactl-2.0.10-r2.ebuild | 49 ------------
17 sys-process/numactl/numactl-2.0.9.ebuild | 55 --------------
18 6 files changed, 218 deletions(-)
19
20 diff --git a/sys-process/numactl/Manifest b/sys-process/numactl/Manifest
21 index 6f7b035257d..bd509289f83 100644
22 --- a/sys-process/numactl/Manifest
23 +++ b/sys-process/numactl/Manifest
24 @@ -1,3 +1 @@
25 -DIST numactl-2.0.10.tar.gz 98999 BLAKE2B 292dad14cfe9ae2c3fbf8d7b27a2ff6d0f86de1f57ff8dd291cbabd93f385048543fd4a17b4c60ecc10f66d3bc2cbfe86c7c4fa48ab5c3081692091b05ffea9c SHA512 3a82b28bbc724a2340950ac33396055da852ee06e5b1d3414cd83dd6f9e26fbb648faae35ce4009c76d6a180f3067a8f3fb18e3ffaa6b6db68adfc0877e94975
26 DIST numactl-2.0.11.tar.gz 408175 BLAKE2B 0767d555d5254e780ef50bd66215e84208e88fb37422fd86443e53ee52faef4242ff21e6028bdb92c4e1fa7815cdb23e87cd084763539dc1d560097f43bd563f SHA512 1969d7ee0ff3de0d6f1fa42ec089a17cdb3f92cb35d453b8f8b2eec49724c43787ecbd213357013a8f2500a260b0df9844d515815ca3a0376314a0eed050a0d4
27 -DIST numactl-2.0.9.tar.gz 341455 BLAKE2B 6b56a3c326829e4f148f5b081e219339a3c2a207098209d48be2e27f44893bb2d2365a51c85c1d9ce2a2442003095098a8e1547ff517e80d0019c726224a879f SHA512 483cbb1607da0f3bf0923202ea565100ea430b19502bdbd322f043f75dc945cc0f47878c0ed28badab23561c37da0b04aa12d07656bb4666c4f8d02a0d256407
28
29 diff --git a/sys-process/numactl/files/numactl-2.0.8-static_libs.patch b/sys-process/numactl/files/numactl-2.0.8-static_libs.patch
30 deleted file mode 100644
31 index efb84ff6240..00000000000
32 --- a/sys-process/numactl/files/numactl-2.0.8-static_libs.patch
33 +++ /dev/null
34 @@ -1,86 +0,0 @@
35 -Build static libs without -fPIC and only if BUILD_STATIC=yes
36 -
37 -https://bugs.gentoo.org/379849
38 -
39 -Patch written by Kacper Kowalik <xarthisius@g.o>
40 ---- a/Makefile
41 -+++ b/Makefile
42 -@@ -7,6 +7,8 @@
43 - # for compatibility with old releases
44 - CFLAGS += ${OPT_CFLAGS}
45 - override CFLAGS += -I.
46 -+# build static libraries by default
47 -+BUILD_STATIC ?= yes
48 -
49 - # find out if compiler supports __thread
50 - THREAD_SUPPORT := $(shell if $(CC) $(CFLAGS) threadtest.c -o threadtest \
51 -@@ -24,6 +26,7 @@
52 -
53 - CLEANFILES := numactl.o libnuma.o numactl numademo numademo.o distance.o \
54 - memhog libnuma.so libnuma.so.1 numamon numamon.o syscall.o bitops.o \
55 -+ distance.pic.o libnuma.pic.o syscall.pic.o \
56 - memhog.o util.o stream_main.o stream_lib.o shm.o stream clearcache.o \
57 - test/pagesize test/tshared test/mynode.o test/tshared.o mt.o empty.o empty.c \
58 - test/mynode test/ftok test/prefered test/randmap \
59 -@@ -40,11 +43,16 @@
60 - libdir := ${prefix}/$(shell ./getlibdir)
61 - docdir := ${prefix}/share/doc
62 -
63 -+NUMA_LIBS = libnuma.so
64 -+ifeq ($(BUILD_STATIC),yes)
65 -+NUMA_LIBS+= libnuma.a
66 -+endif
67 -+
68 - all: numactl migratepages migspeed libnuma.so numademo numamon memhog \
69 - test/tshared stream test/mynode test/pagesize test/ftok test/prefered \
70 - test/randmap test/nodemap test/distance test/tbitmap test/move_pages \
71 - test/mbind_mig_pages test/migrate_pages test/realloc_test libnuma.a \
72 -- test/node-parse numastat
73 -+ test/node-parse numastat ${NUMA_LIBS}
74 -
75 - numactl: numactl.o util.o shm.o bitops.o libnuma.so
76 -
77 -@@ -81,13 +89,14 @@
78 -
79 - libnuma.so.1: versions.ldscript
80 -
81 --libnuma.so.1: libnuma.o syscall.o distance.o affinity.o sysfs.o rtnetlink.o
82 -+libnuma.so.1: libnuma.pic.o syscall.pic.o distance.pic.o affinity.pic.o sysfs.pic.o rtnetlink.pic.o
83 - ${CC} ${LDFLAGS} -shared -Wl,-soname=libnuma.so.1 -Wl,--version-script,versions.ldscript -Wl,-init,numa_init -Wl,-fini,numa_fini -o libnuma.so.1 $(filter-out versions.ldscript,$^)
84 -
85 - libnuma.so: libnuma.so.1
86 - ln -sf libnuma.so.1 libnuma.so
87 -
88 --libnuma.o : CFLAGS += -fPIC
89 -+%.pic.o: %.c
90 -+ ${CC} -fPIC ${CPPFLAGS} ${CFLAGS} -c $< -o $@
91 -
92 - AR ?= ar
93 - RANLIB ?= ranlib
94 -@@ -95,16 +104,6 @@
95 - $(AR) rc $@ $^
96 - $(RANLIB) $@
97 -
98 --distance.o : CFLAGS += -fPIC
99 --
100 --syscall.o : CFLAGS += -fPIC
101 --
102 --affinity.o : CFLAGS += -fPIC
103 --
104 --sysfs.o : CFLAGS += -fPIC
105 --
106 --rtnetlink.o : CFLAGS += -fPIC
107 --
108 - test/tshared: test/tshared.o libnuma.so
109 -
110 - test/mynode: test/mynode.o libnuma.so
111 -@@ -143,7 +148,9 @@
112 - mkdir -p ${libdir}
113 - install -m 0755 libnuma.so.1 ${libdir}
114 - cd ${libdir} ; ln -sf libnuma.so.1 libnuma.so
115 -+ifeq ($(BUILD_STATIC),yes)
116 - install -m 0644 libnuma.a ${libdir}
117 -+endif
118 - mkdir -p ${prefix}/include
119 - install -m 0644 numa.h numaif.h numacompat1.h ${prefix}/include
120 - install -m 0755 numastat ${prefix}/bin
121
122 diff --git a/sys-process/numactl/files/numactl-2.0.9-testsuite_fix.patch b/sys-process/numactl/files/numactl-2.0.9-testsuite_fix.patch
123 deleted file mode 100644
124 index 27a97fdf250..00000000000
125 --- a/sys-process/numactl/files/numactl-2.0.9-testsuite_fix.patch
126 +++ /dev/null
127 @@ -1,12 +0,0 @@
128 -Tests fail with /bin/dash
129 -
130 -Singned-off-by: Lars Wendler <polynomial-c@g.o>
131 -
132 ---- numactl-2.0.9/test/printcpu
133 -+++ numactl-2.0.9/test/printcpu
134 -@@ -1,4 +1,4 @@
135 --#!/bin/sh
136 -+#!/bin/bash
137 - #print cpu it is running on
138 - declare -a arr
139 - arr=( $(< /proc/self/stat) )
140
141 diff --git a/sys-process/numactl/files/numactl-2.0.9-testsuite_path.patch b/sys-process/numactl/files/numactl-2.0.9-testsuite_path.patch
142 deleted file mode 100644
143 index 018fc6dbcd1..00000000000
144 --- a/sys-process/numactl/files/numactl-2.0.9-testsuite_path.patch
145 +++ /dev/null
146 @@ -1,14 +0,0 @@
147 -diff -Naur numactl-2.0.10-orig/test/bind_range numactl-2.0.10/test/bind_range
148 ---- numactl-2.0.10-orig/test/bind_range 2015-05-03 22:23:31.095600314 -0400
149 -+++ numactl-2.0.10/test/bind_range 2015-05-03 22:25:29.107592557 -0400
150 -@@ -93,8 +93,8 @@
151 -
152 - HIGHESTCPU=$(grep 'processor' /proc/cpuinfo | tail -n1 | cut -f2 -d':')
153 - HIGHESTCPU=$(echo $HIGHESTCPU | cut -f2 -d' ')
154 --HIGHESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus' | tail -n1 | cut -f2 -d' ')
155 --LOWESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus' | head -n1 | cut -f2 -d' ')
156 -+HIGHESTNODE=$(../numactl -H | grep -e 'node [0-9]* cpus' | tail -n1 | cut -f2 -d' ')
157 -+LOWESTNODE=$(../numactl -H | grep -e 'node [0-9]* cpus' | head -n1 | cut -f2 -d' ')
158 -
159 - get_mask
160 -
161
162 diff --git a/sys-process/numactl/numactl-2.0.10-r2.ebuild b/sys-process/numactl/numactl-2.0.10-r2.ebuild
163 deleted file mode 100644
164 index 9fb85bfcce3..00000000000
165 --- a/sys-process/numactl/numactl-2.0.10-r2.ebuild
166 +++ /dev/null
167 @@ -1,49 +0,0 @@
168 -# Copyright 1999-2015 Gentoo Foundation
169 -# Distributed under the terms of the GNU General Public License v2
170 -
171 -EAPI=5
172 -
173 -inherit autotools eutils toolchain-funcs multilib-minimal
174 -
175 -DESCRIPTION="Utilities and libraries for NUMA systems"
176 -HOMEPAGE="http://oss.sgi.com/projects/libnuma/"
177 -SRC_URI="ftp://oss.sgi.com/www/projects/libnuma/download/${P}.tar.gz"
178 -
179 -LICENSE="GPL-2"
180 -SLOT="0"
181 -# ARM lacks the __NR_migrate_pages syscall.
182 -KEYWORDS="~amd64 -arm ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux"
183 -IUSE=""
184 -
185 -ECONF_SOURCE=${S}
186 -
187 -src_prepare() {
188 - epatch "${FILESDIR}"/${PN}-2.0.8-cpuid-pic.patch #456238
189 - epatch "${FILESDIR}"/${PN}-2.0.10-numademo-cflags.patch #540856
190 - eautoreconf
191 -}
192 -
193 -src_test() {
194 - if [ -d /sys/devices/system/node ]; then
195 - einfo "The only generically safe test is regress2."
196 - einfo "The other test cases require 2 NUMA nodes."
197 - emake regress2
198 - else
199 - ewarn "You do not have baseline NUMA support in your kernel, skipping tests."
200 - fi
201 -}
202 -
203 -multilib_src_compile() {
204 - multilib_is_native_abi && default || emake libnuma.la
205 -}
206 -
207 -multilib_src_install() {
208 - emake DESTDIR="${D}" install$(multilib_is_native_abi || echo "-libLTLIBRARIES install-includeHEADERS")
209 -}
210 -
211 -multilib_src_install_all() {
212 - DOCS=( README TODO CHANGES DESIGN )
213 - einstalldocs
214 - # delete man pages provided by the man-pages package #238805
215 - rm -r "${ED}"/usr/share/man/man[25] || die
216 -}
217
218 diff --git a/sys-process/numactl/numactl-2.0.9.ebuild b/sys-process/numactl/numactl-2.0.9.ebuild
219 deleted file mode 100644
220 index 15331a31a4d..00000000000
221 --- a/sys-process/numactl/numactl-2.0.9.ebuild
222 +++ /dev/null
223 @@ -1,55 +0,0 @@
224 -# Copyright 1999-2015 Gentoo Foundation
225 -# Distributed under the terms of the GNU General Public License v2
226 -
227 -EAPI="4"
228 -
229 -inherit eutils toolchain-funcs multilib
230 -
231 -DESCRIPTION="Utilities and libraries for NUMA systems"
232 -HOMEPAGE="http://oss.sgi.com/projects/libnuma/"
233 -SRC_URI="ftp://oss.sgi.com/www/projects/libnuma/download/${P}.tar.gz"
234 -
235 -LICENSE="GPL-2"
236 -SLOT="0"
237 -# ARM lacks the __NR_migrate_pages syscall.
238 -KEYWORDS="amd64 -arm ia64 ppc ppc64 x86 ~amd64-linux"
239 -IUSE="static-libs"
240 -
241 -src_prepare() {
242 - echo "printf $(get_libdir)" > getlibdir
243 - epatch "${FILESDIR}"/${PN}-2.0.8-static_libs.patch
244 - epatch "${FILESDIR}"/${PN}-2.0.8-cpuid-pic.patch #456238
245 - epatch "${FILESDIR}"/${PN}-2.0.9-testsuite_fix.patch
246 - epatch "${FILESDIR}"/${P}-testsuite_path.patch
247 - rm numastat || die #466108
248 -}
249 -
250 -src_compile() {
251 - emake \
252 - AR="$(tc-getAR)" \
253 - CC="$(tc-getCC)" \
254 - RANLIB="$(tc-getRANLIB)" \
255 - CFLAGS="${CFLAGS}" \
256 - BENCH_CFLAGS="" \
257 - THREAD_SUPPORT=$(tc-has-tls && echo yes || echo no) \
258 - BUILD_STATIC=$(usex static-libs)
259 -}
260 -
261 -src_test() {
262 - if [ -d /sys/devices/system/node ]; then
263 - einfo "The only generically safe test is regress2."
264 - einfo "The other test cases require 2 NUMA nodes."
265 - cd test
266 - ./regress2 || die
267 - else
268 - ewarn "You do not have baseline NUMA support in your kernel, skipping tests."
269 - fi
270 -}
271 -
272 -src_install() {
273 - emake install prefix="${ED}/usr" BUILD_STATIC=$(usex static-libs)
274 - # delete man pages provided by the man-pages package #238805
275 - rm -rf "${ED}"/usr/share/man/man[25]
276 - doman *.8 # makefile doesnt get them all
277 - dodoc README TODO CHANGES DESIGN
278 -}