diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /dev-util/rt-tests | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'dev-util/rt-tests')
-rw-r--r-- | dev-util/rt-tests/Manifest | 8 | ||||
-rw-r--r-- | dev-util/rt-tests/files/rt-tests-1.6-man-compression.patch | 61 | ||||
-rw-r--r-- | dev-util/rt-tests/files/rt-tests-1.8-musl.patch | 380 | ||||
-rw-r--r-- | dev-util/rt-tests/metadata.xml | 3 | ||||
-rw-r--r-- | dev-util/rt-tests/rt-tests-1.8.ebuild (renamed from dev-util/rt-tests/rt-tests-1.6.ebuild) | 18 |
5 files changed, 393 insertions, 77 deletions
diff --git a/dev-util/rt-tests/Manifest b/dev-util/rt-tests/Manifest index 79e0e66753ad..9e44595f9bea 100644 --- a/dev-util/rt-tests/Manifest +++ b/dev-util/rt-tests/Manifest @@ -1,4 +1,4 @@ -AUX rt-tests-1.6-man-compression.patch 3486 BLAKE2B 1b24591958525563ffb1ae600c00360a834628783e304c4dd342a6fa694d610555f265ffe1b6c1023480e28d76804a9a8c002e923596b860f24aa64dee0cbe74 SHA512 5cab8485836530f30de5ebaffa57eca3eed5aad530775cfcde7fd24ed082c4323970ab84bf6b897f7d9145f82610131465a07d9332926e54a3b1c2cd553a0981 -DIST rt-tests-1.6.tar.xz 104864 BLAKE2B 36ada7cbe6deefae2eef80fa167892d41a9c56a6f54a23c8ace5ab97a32e23a88a488bc95f92456a7eea48c49567c4755adc43b3aa68e20c885ca1c354825a7d SHA512 1cbb9b1bc7f6ac335be269e5937209598bfb8c0a29750484e7bba8b87b416c04cd38c8d6d48dc5ed1978c1797dee4cecff0218124bd6d7f23b43a13dc7a75a29 -EBUILD rt-tests-1.6.ebuild 806 BLAKE2B 7512dc72ea09f5961bfe744b544bb75872275b6b44ebbdc0196cfcf4c704999710cf8307217ca1b43cb03e29d83c55779101179b37134831acf7b0c69c10431e SHA512 674006a37f4802f62e31cd5b84cc9430ac8a9a5c67a00e7d02746eea7d8eb62e126610f75f6a115c92d2c93964ae0869a8b29f990f29568e91857fdfbf11ffa1 -MISC metadata.xml 794 BLAKE2B 5b5173ad796e3486eee11fc1f8901e0782db20a077b03dfd5d3b254edd739713a1dc21209b57d71368ba8777a2e852d79a5b750bf1c3c6eabcad4bfb20b782eb SHA512 e9fe88a5a21243e9462733006a881fb2a9b07bc9536259562ef620b579c6cc78b98fe8da3454d62c6913bdbf4fd6bc1d6d9192d3ce7e05bc30a1610fb617a3e6 +AUX rt-tests-1.8-musl.patch 10834 BLAKE2B 54bc0e20a9bc7c251985b8e21c94b0e6261345d02a23dc510ee6a303843ea88aa13750680adb3954d63561246dfb26e6427adf2bc2012f9161357d0fae207b83 SHA512 196b0d1d19aeab83710edddcaec7064d4e4770cd514f8b8a61b23980932b793d044cfb4d69c91e61c4ee912eb24cd3a87ee8da05612c1ee02e2a5885f32bb9e5 +DIST rt-tests-1.8.tar.xz 105820 BLAKE2B 478ac14732393f718e6be818b82b24b1e53d2f293140012bc17fd1c9242bd885b4d70dca3c7f3187e9ba22334e5f83d9ad1993ab9f70079e1765b918deab4411 SHA512 41c0b18e84d1f76de22a4ab239d43ac678b8c8419b508c96204bef346734122b9a42df51fcea97b1e0675bd25ed1e262730236ec0cb189732d5810122e96aa39 +EBUILD rt-tests-1.8.ebuild 840 BLAKE2B 5d5e2ade599917bc4dd91fcaea95947704ccfafa21c704460f8ea927055f71d5b2b65bde93aa37c0eb8217b51fffc67e94e1da0cd9e0acca3295d8bf3331e04c SHA512 c68ca6095d2421222179df72c0993e48b36d18e198902aada15c545df283f81685f555de30994d004916469acb0e7caa2981748e251e21ab624e7a9810641180 +MISC metadata.xml 718 BLAKE2B e09ef2dd4bd98df6e36e684105242e579fd86dfa28fd02f6b04ea78f91dc2089485a54497edb0a9a1b3c36fe5033eb1e98b626735b82d2a765150812f724bb93 SHA512 8b7eb83545e11f2f5786f0e5fbc47ce15fbb9a364ad9fcf51a7c47e8a05e70d3d0c48c2f69b5f6abd4b839514bc2575a66a43202204340137ec3d8a9f41564e1 diff --git a/dev-util/rt-tests/files/rt-tests-1.6-man-compression.patch b/dev-util/rt-tests/files/rt-tests-1.6-man-compression.patch deleted file mode 100644 index e44a9525060d..000000000000 --- a/dev-util/rt-tests/files/rt-tests-1.6-man-compression.patch +++ /dev/null @@ -1,61 +0,0 @@ -From 30e9529a140fb2a5ef96e510743e201c62ded022 Mon Sep 17 00:00:00 2001 -From: Kurt Kanzenbach <kurt@kmk-computers.de> -Date: Wed, 22 Jan 2020 18:42:25 +0100 -Subject: [PATCH] make: Don't compress man pages by default - -Most package systems do the compression on their own. - -Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de> ---- - Makefile | 28 ++++++++++++++-------------- - 1 file changed, 14 insertions(+), 14 deletions(-) - -diff --git a/Makefile b/Makefile -index 552b3fe885cc..244d26eed7cc 100644 ---- a/Makefile -+++ b/Makefile -@@ -180,19 +180,19 @@ install: all install_hwlatdetect - cp $(TARGETS) "$(DESTDIR)$(bindir)" - install src/queuelat/get_cpuinfo_mhz.sh "$(DESTDIR)$(bindir)" - install src/queuelat/determine_maximum_mpps.sh "${DESTDIR}${bindir}" -- gzip -c src/cyclictest/cyclictest.8 >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz" -- gzip -c src/pi_tests/pi_stress.8 >"$(DESTDIR)$(mandir)/man8/pi_stress.8.gz" -- gzip -c src/ptsematest/ptsematest.8 >"$(DESTDIR)$(mandir)/man8/ptsematest.8.gz" -- gzip -c src/rt-migrate-test/rt-migrate-test.8 >"$(DESTDIR)$(mandir)/man8/rt-migrate-test.8.gz" -- gzip -c src/sigwaittest/sigwaittest.8 >"$(DESTDIR)$(mandir)/man8/sigwaittest.8.gz" -- gzip -c src/svsematest/svsematest.8 >"$(DESTDIR)$(mandir)/man8/svsematest.8.gz" -- gzip -c src/pmqtest/pmqtest.8 >"$(DESTDIR)$(mandir)/man8/pmqtest.8.gz" -- gzip -c src/hackbench/hackbench.8 >"$(DESTDIR)$(mandir)/man8/hackbench.8.gz" -- gzip -c src/signaltest/signaltest.8 >"$(DESTDIR)$(mandir)/man8/signaltest.8.gz" -- gzip -c src/pi_tests/pip_stress.8 >"$(DESTDIR)$(mandir)/man8/pip_stress.8.gz" -- gzip -c src/queuelat/queuelat.8 >"$(DESTDIR)$(mandir)/man8/queuelat.8.gz" -- gzip -c src/sched_deadline/deadline_test.8 >"$(DESTDIR)$(mandir)/man8/deadline_test.8.gz" -- gzip -c src/ssdd/ssdd.8 >"$(DESTDIR)$(mandir)/man8/ssdd.8.gz" -+ install -D -m 644 src/cyclictest/cyclictest.8 "$(DESTDIR)$(mandir)/man8/cyclictest.8" -+ install -D -m 644 src/pi_tests/pi_stress.8 "$(DESTDIR)$(mandir)/man8/pi_stress.8" -+ install -D -m 644 src/ptsematest/ptsematest.8 "$(DESTDIR)$(mandir)/man8/ptsematest.8" -+ install -D -m 644 src/rt-migrate-test/rt-migrate-test.8 "$(DESTDIR)$(mandir)/man8/rt-migrate-test.8" -+ install -D -m 644 src/sigwaittest/sigwaittest.8 "$(DESTDIR)$(mandir)/man8/sigwaittest.8" -+ install -D -m 644 src/svsematest/svsematest.8 "$(DESTDIR)$(mandir)/man8/svsematest.8" -+ install -D -m 644 src/pmqtest/pmqtest.8 "$(DESTDIR)$(mandir)/man8/pmqtest.8" -+ install -D -m 644 src/hackbench/hackbench.8 "$(DESTDIR)$(mandir)/man8/hackbench.8" -+ install -D -m 644 src/signaltest/signaltest.8 "$(DESTDIR)$(mandir)/man8/signaltest.8" -+ install -D -m 644 src/pi_tests/pip_stress.8 "$(DESTDIR)$(mandir)/man8/pip_stress.8" -+ install -D -m 644 src/queuelat/queuelat.8 "$(DESTDIR)$(mandir)/man8/queuelat.8" -+ install -D -m 644 src/sched_deadline/deadline_test.8 "$(DESTDIR)$(mandir)/man8/deadline_test.8" -+ install -D -m 644 src/ssdd/ssdd.8 "$(DESTDIR)$(mandir)/man8/ssdd.8" - - .PHONY: install_hwlatdetect - install_hwlatdetect: hwlatdetect -@@ -201,7 +201,7 @@ install_hwlatdetect: hwlatdetect - install -D -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py ; \ - rm -f "$(DESTDIR)$(bindir)/hwlatdetect" ; \ - ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" ; \ -- gzip -c src/hwlatdetect/hwlatdetect.8 >"$(DESTDIR)$(mandir)/man8/hwlatdetect.8.gz" ; \ -+ install -D -m 644 src/hwlatdetect/hwlatdetect.8 "$(DESTDIR)$(mandir)/man8/hwlatdetect.8" ; \ - fi - - .PHONY: tarball --- -2.24.1 - diff --git a/dev-util/rt-tests/files/rt-tests-1.8-musl.patch b/dev-util/rt-tests/files/rt-tests-1.8-musl.patch new file mode 100644 index 000000000000..48a7a297afc1 --- /dev/null +++ b/dev-util/rt-tests/files/rt-tests-1.8-musl.patch @@ -0,0 +1,380 @@ +From 4daa685588ee3848fc98fd9c6328b76f136ee876 Mon Sep 17 00:00:00 2001 +From: Kurt Kanzenbach <kurt@kmk-computers.de> +Date: Wed, 1 Apr 2020 20:15:24 +0200 +Subject: [PATCH] all: Fix musl build + +There are a few problems: + + * pi stress: pthread_attr_setaffinity_np() is not supported + * cyclictest: SIGEV_THREAD_ID is not supported + * hackbench: Fix include + * all: Fix sched_* calls + +With these changes applied, the rt-tests seem to run fine. + +Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de> +--- + Makefile | 5 -- + src/backfire/sendme.c | 1 + + src/cyclictest/cyclictest.c | 68 ++++----------------------- + src/hackbench/hackbench.c | 4 +- + src/include/musl.h | 28 +++++++++++ + src/lib/rt-utils.c | 1 + + src/pi_tests/classic_pi.c | 2 + + src/pi_tests/tst-mutexpi10.c | 2 + + src/pmqtest/pmqtest.c | 1 + + src/ptsematest/ptsematest.c | 1 + + src/rt-migrate-test/rt-migrate-test.c | 1 + + src/sched_deadline/cyclicdeadline.c | 2 + + 12 files changed, 50 insertions(+), 66 deletions(-) + create mode 100644 src/include/musl.h + +diff --git a/Makefile b/Makefile +index 05fc5eda71fa..9340f28f2c32 100644 +--- a/Makefile ++++ b/Makefile +@@ -7,7 +7,6 @@ OBJDIR = bld + sources = cyclictest.c \ + hackbench.c \ + pip_stress.c \ +- pi_stress.c \ + pmqtest.c \ + ptsematest.c \ + rt-migrate-test.c \ +@@ -35,7 +34,6 @@ LDFLAGS ?= + PYLIB ?= $(shell python3 -c 'import distutils.sysconfig; print (distutils.sysconfig.get_python_lib())') + + MANPAGES = src/cyclictest/cyclictest.8 \ +- src/pi_tests/pi_stress.8 \ + src/ptsematest/ptsematest.8 \ + src/rt-migrate-test/rt-migrate-test.8 \ + src/sigwaittest/sigwaittest.8 \ +@@ -125,9 +123,6 @@ deadline_test: $(OBJDIR)/deadline_test.o $(OBJDIR)/librttest.a + signaltest: $(OBJDIR)/signaltest.o $(OBJDIR)/librttest.a + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(RTTESTLIB) + +-pi_stress: $(OBJDIR)/pi_stress.o $(OBJDIR)/librttest.a +- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(RTTESTLIB) +- + hwlatdetect: src/hwlatdetect/hwlatdetect.py + chmod +x src/hwlatdetect/hwlatdetect.py + ln -s src/hwlatdetect/hwlatdetect.py hwlatdetect +diff --git a/src/backfire/sendme.c b/src/backfire/sendme.c +index c1854d9660cb..ecec5c201bef 100644 +--- a/src/backfire/sendme.c ++++ b/src/backfire/sendme.c +@@ -31,6 +31,7 @@ + #include <errno.h> + #include "rt-utils.h" + #include "rt-get_cpu.h" ++#include "musl.h" + + #include <utmpx.h> + #include <sys/types.h> +diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c +index c5f1fd46567a..8204e57cbbac 100644 +--- a/src/cyclictest/cyclictest.c ++++ b/src/cyclictest/cyclictest.c +@@ -36,6 +36,7 @@ + #include "rt_numa.h" + + #include "rt-utils.h" ++#include "musl.h" + + #include <bionic.h> + +@@ -628,12 +629,8 @@ static void *timerthread(void *param) + { + struct thread_param *par = param; + struct sched_param schedp; +- struct sigevent sigev; + sigset_t sigset; +- timer_t timer; + struct timespec now, next, interval, stop; +- struct itimerval itimer; +- struct itimerspec tspec; + struct thread_stat *stat = par->stats; + int stopped = 0; + cpu_set_t mask; +@@ -664,14 +661,6 @@ static void *timerthread(void *param) + sigaddset(&sigset, par->signal); + sigprocmask(SIG_BLOCK, &sigset, NULL); + +- if (par->mode == MODE_CYCLIC) { +- sigev.sigev_notify = SIGEV_THREAD_ID | SIGEV_SIGNAL; +- sigev.sigev_signo = par->signal; +- sigev.sigev_notify_thread_id = stat->tid; +- timer_create(par->clock, &sigev, &timer); +- tspec.it_interval = interval; +- } +- + memset(&schedp, 0, sizeof(schedp)); + schedp.sched_priority = par->prio; + if (setscheduler(0, par->policy, &schedp)) +@@ -726,20 +715,6 @@ static void *timerthread(void *param) + stop = now; + stop.tv_sec += duration; + } +- if (par->mode == MODE_CYCLIC) { +- if (par->timermode == TIMER_ABSTIME) +- tspec.it_value = next; +- else +- tspec.it_value = interval; +- timer_settime(timer, par->timermode, &tspec, NULL); +- } +- +- if (par->mode == MODE_SYS_ITIMER) { +- itimer.it_interval.tv_sec = interval.tv_sec; +- itimer.it_interval.tv_usec = interval.tv_nsec / 1000; +- itimer.it_value = itimer.it_interval; +- setitimer(ITIMER_REAL, &itimer, NULL); +- } + + stat->threadstarted++; + +@@ -747,16 +722,10 @@ static void *timerthread(void *param) + + uint64_t diff; + unsigned long diff_smi = 0; +- int sigs, ret; ++ int ret; + + /* Wait for next period */ + switch (par->mode) { +- case MODE_CYCLIC: +- case MODE_SYS_ITIMER: +- if (sigwait(&sigset, &sigs) < 0) +- goto out; +- break; +- + case MODE_CLOCK_NANOSLEEP: + if (par->timermode == TIMER_ABSTIME) { + ret = clock_nanosleep(par->clock, TIMER_ABSTIME, +@@ -878,11 +847,6 @@ static void *timerthread(void *param) + + next.tv_sec += interval.tv_sec; + next.tv_nsec += interval.tv_nsec; +- if (par->mode == MODE_CYCLIC) { +- int overrun_count = timer_getoverrun(timer); +- next.tv_sec += overrun_count * interval.tv_sec; +- next.tv_nsec += overrun_count * interval.tv_nsec; +- } + tsnorm(&next); + + while (tsgreater(&now, &next)) { +@@ -907,17 +871,6 @@ out: + pthread_mutex_unlock(&refresh_on_max_lock); + } + +- if (par->mode == MODE_CYCLIC) +- timer_delete(timer); +- +- if (par->mode == MODE_SYS_ITIMER) { +- itimer.it_value.tv_sec = 0; +- itimer.it_value.tv_usec = 0; +- itimer.it_interval.tv_sec = 0; +- itimer.it_interval.tv_usec = 0; +- setitimer(ITIMER_REAL, &itimer, NULL); +- } +- + /* close msr file */ + if (smi) + close(par->msr_fd); +@@ -1417,7 +1370,8 @@ static void process_options (int argc, char *argv[], int max_cpus) + case OPT_VERBOSE: verbose = 1; break; + case 'x': + case OPT_POSIX_TIMERS: +- use_nanosleep = MODE_CYCLIC; break; ++ fatal("--posix_timers is not available on your libc\n"); ++ break; + case '?': + case OPT_HELP: + display_help(0); break; +@@ -1450,13 +1404,6 @@ static void process_options (int argc, char *argv[], int max_cpus) + } + } + +- if ((use_system == MODE_SYS_OFFSET) && (use_nanosleep == MODE_CYCLIC)) { +- warn("The system option requires clock_nanosleep\n"); +- warn("and is not compatible with posix_timers\n"); +- warn("Using clock_nanosleep\n"); +- use_nanosleep = MODE_CLOCK_NANOSLEEP; +- } +- + /* if smp wasn't requested, test for numa automatically */ + if (!smp) { + #ifdef NUMA +@@ -2157,7 +2104,6 @@ int main(int argc, char **argv) + + } + +- + mode = use_nanosleep + use_system; + + sigemptyset(&sigset); +@@ -2207,16 +2153,18 @@ int main(int argc, char **argv) + void *stack; + void *currstk; + size_t stksize; ++ int err; + + /* find the memory node associated with the cpu i */ + node = rt_numa_numa_node_of_cpu(cpu); + + /* get the stack size set for for this thread */ +- if (pthread_attr_getstack(&attr, &currstk, &stksize)) ++ err = pthread_attr_getstack(&attr, &currstk, &stksize); ++ if (err != EINVAL) + fatal("failed to get stack size for thread %d\n", i); + + /* if the stack size is zero, set a default */ +- if (stksize == 0) ++ if (err == EINVAL || stksize == 0) + stksize = PTHREAD_STACK_MIN * 2; + + /* allocate memory for a stack on appropriate node */ +diff --git a/src/hackbench/hackbench.c b/src/hackbench/hackbench.c +index 5a883d341f2e..9f1e4db736a7 100644 +--- a/src/hackbench/hackbench.c ++++ b/src/hackbench/hackbench.c +@@ -24,13 +24,15 @@ + #include <sys/socket.h> + #include <sys/wait.h> + #include <sys/time.h> +-#include <sys/poll.h> ++#include <poll.h> + #include <limits.h> + #include <getopt.h> + #include <signal.h> + #include <setjmp.h> + #include <sched.h> + ++#include "musl.h" ++ + static unsigned int datasize = 100; + static unsigned int loops = 100; + static unsigned int num_groups = 10; +diff --git a/src/include/musl.h b/src/include/musl.h +new file mode 100644 +index 000000000000..ea5075e768c8 +--- /dev/null ++++ b/src/include/musl.h +@@ -0,0 +1,28 @@ ++/* ++ * Copyright (C) 2020 Kurt Kanzenbach <kurt@kmk-computers.de> ++ * Time-stamp: <2020-04-04 10:54:01 kurt> ++ */ ++ ++#ifndef _MUSL_H_ ++#define _MUSL_H_ ++ ++#include <unistd.h> ++#include <sys/syscall.h> ++ ++/* ++ * Musl someshow defines sched_* to ENOSYS which is not correct ... ++ * See commit 1e21e78bf7a5 ("add support for thread scheduling (POSIX TPS option)") ++ * ++ * Workaround: define them to syscall(...) ++ */ ++ ++#define sched_getparam(pid, param) \ ++ syscall(SYS_sched_getparam, pid, param) ++#define sched_setparam(pid, param) \ ++ syscall(SYS_sched_setparam, pid, param) ++#define sched_getscheduler(pid) \ ++ syscall(SYS_sched_getscheduler, pid) ++#define sched_setscheduler(pid, policy, param) \ ++ syscall(SYS_sched_setscheduler, pid, policy, param) ++ ++#endif /* _MUSL_H_ */ +diff --git a/src/lib/rt-utils.c b/src/lib/rt-utils.c +index 1998a327d036..f7adda9c5987 100644 +--- a/src/lib/rt-utils.c ++++ b/src/lib/rt-utils.c +@@ -23,6 +23,7 @@ + #include "rt-utils.h" + #include "rt-sched.h" + #include "error.h" ++#include "musl.h" + + static char debugfileprefix[MAX_PATH]; + +diff --git a/src/pi_tests/classic_pi.c b/src/pi_tests/classic_pi.c +index 64af8890276f..bb088d3973b2 100644 +--- a/src/pi_tests/classic_pi.c ++++ b/src/pi_tests/classic_pi.c +@@ -34,6 +34,8 @@ + #include <signal.h> + #include <getopt.h> + ++#include "musl.h" ++ + /* test timeout */ + #define TIMEOUT 2 + +diff --git a/src/pi_tests/tst-mutexpi10.c b/src/pi_tests/tst-mutexpi10.c +index 97a345edd26e..1028d344edff 100644 +--- a/src/pi_tests/tst-mutexpi10.c ++++ b/src/pi_tests/tst-mutexpi10.c +@@ -35,6 +35,8 @@ + #include <string.h> + #include <signal.h> + ++#include "musl.h" ++ + /* test timeout */ + #define TIMEOUT 2 + +diff --git a/src/pmqtest/pmqtest.c b/src/pmqtest/pmqtest.c +index 3ce29252b9a2..1a57841cb7e8 100644 +--- a/src/pmqtest/pmqtest.c ++++ b/src/pmqtest/pmqtest.c +@@ -24,6 +24,7 @@ + #include "rt-utils.h" + #include "rt-get_cpu.h" + #include "error.h" ++#include "musl.h" + + #include <pthread.h> + +diff --git a/src/ptsematest/ptsematest.c b/src/ptsematest/ptsematest.c +index 485c991ec173..c000e083615f 100644 +--- a/src/ptsematest/ptsematest.c ++++ b/src/ptsematest/ptsematest.c +@@ -22,6 +22,7 @@ + #include "rt-utils.h" + #include "rt-get_cpu.h" + #include "error.h" ++#include "musl.h" + + #include <pthread.h> + +diff --git a/src/rt-migrate-test/rt-migrate-test.c b/src/rt-migrate-test/rt-migrate-test.c +index 4863238edeb4..9f1aba159dc7 100644 +--- a/src/rt-migrate-test/rt-migrate-test.c ++++ b/src/rt-migrate-test/rt-migrate-test.c +@@ -25,6 +25,7 @@ + #include <sched.h> + #include <pthread.h> + #include "rt-utils.h" ++#include "musl.h" + + int nr_tasks; + int lfd; +diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c +index a08e28e73c42..675a0ea1a162 100644 +--- a/src/sched_deadline/cyclicdeadline.c ++++ b/src/sched_deadline/cyclicdeadline.c +@@ -32,6 +32,8 @@ + #include <rt-utils.h> + #include <rt-sched.h> + ++#include "musl.h" ++ + #define _STR(x) #x + #define STR(x) _STR(x) + #ifndef MAXPATH +-- +2.24.1 + diff --git a/dev-util/rt-tests/metadata.xml b/dev-util/rt-tests/metadata.xml index 23b5a048fe99..991f708b4de2 100644 --- a/dev-util/rt-tests/metadata.xml +++ b/dev-util/rt-tests/metadata.xml @@ -15,7 +15,4 @@ functioning of priority-inheritance mutexes. Additionally it contains hackbench, a program to generate work for the scheduler. </longdescription> - <use> - <flag name="numa">Make test programs NUMA aware</flag> - </use> </pkgmetadata> diff --git a/dev-util/rt-tests/rt-tests-1.6.ebuild b/dev-util/rt-tests/rt-tests-1.8.ebuild index debc1623e79f..c6392a91f932 100644 --- a/dev-util/rt-tests/rt-tests-1.6.ebuild +++ b/dev-util/rt-tests/rt-tests-1.8.ebuild @@ -3,32 +3,32 @@ EAPI=7 -PYTHON_COMPAT=(python3_{6,7,8}) +PYTHON_COMPAT=( python3_{6..8} ) inherit python-single-r1 DESCRIPTION="A collection of latency testing tools for the linux(-rt) kernel" HOMEPAGE="https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/about/" -SRC_URI="https://kernel.org/pub/linux/utils/rt-tests/${P}.tar.xz" +SRC_URI=" + https://kernel.org/pub/linux/utils/rt-tests/${P}.tar.xz + https://kernel.org/pub/linux/utils/rt-tests/older/${P}.tar.xz" LICENSE="GPL-2 GPL-2+ LGPL-2.1+" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="numa" REQUIRED_USE="${PYTHON_REQUIRED_USE}" DEPEND="${PYTHON_DEPS} - numa? ( sys-process/numactl )" + sys-process/numactl" RDEPEND="${DEPEND}" -PATCHES=( "${FILESDIR}/${P}-man-compression.patch" ) - -src_compile() { - emake $(usex numa 'NUMA=1' 'NUMA=0') all +src_prepare() { + default + use elibc_musl && eapply "${FILESDIR}/${P}-musl.patch" } src_install() { - emake prefix=/usr DESTDIR="${D}" install + emake prefix=/usr DESTDIR="${D}" MAN_COMPRESSION=none install python_fix_shebang "${ED}" python_optimize } |