[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: cac23e6c503929de46a4f25aa76d58fa36338054 Author: Filip Kobierski pm me> AuthorDate: Tue Jul 30 11:28:50 2024 + Commit: Joonas Niilola gentoo org> CommitDate: Mon Aug 5 07:05:17 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cac23e6c sys-process/numad: remove empty IUSE Signed-off-by: Filip Kobierski pm.me> Signed-off-by: Joonas Niilola gentoo.org> sys-process/numad/numad-0.5-r3.ebuild | 1 - 1 file changed, 1 deletion(-) diff --git a/sys-process/numad/numad-0.5-r3.ebuild b/sys-process/numad/numad-0.5-r3.ebuild index 8e01a495621a..a35bab6db9be 100644 --- a/sys-process/numad/numad-0.5-r3.ebuild +++ b/sys-process/numad/numad-0.5-r3.ebuild @@ -20,7 +20,6 @@ HOMEPAGE="http://fedoraproject.org/wiki/Features/numad"; LICENSE="LGPL-2.1" SLOT="0" -IUSE="" CONFIG_CHECK="~NUMA ~CPUSETS"
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: c36d9108b925d8f2b21c7e676e495906198c658f Author: Arthur Zamarin gentoo org> AuthorDate: Mon Apr 29 08:05:19 2024 + Commit: Arthur Zamarin gentoo org> CommitDate: Mon Apr 29 08:05:19 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c36d9108 sys-process/numad: Stabilize 0.5_p20180531-r2 arm64, #930907 Signed-off-by: Arthur Zamarin gentoo.org> sys-process/numad/numad-0.5_p20180531-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-process/numad/numad-0.5_p20180531-r2.ebuild b/sys-process/numad/numad-0.5_p20180531-r2.ebuild index 9bfe787875b9..6d7d10b73515 100644 --- a/sys-process/numad/numad-0.5_p20180531-r2.ebuild +++ b/sys-process/numad/numad-0.5_p20180531-r2.ebuild @@ -14,7 +14,7 @@ else # git archive --format=tar.gz --prefix="${P}/" -o ${P}.tar.gz ${EGIT_COMMIT} EGIT_COMMIT="d696d6c413c5b47b4bbae79e29ea132e52095af3" SRC_URI="https://dev.gentoo.org/~gyakovlev/distfiles/${P}.tar.gz"; - KEYWORDS="~amd64 -arm ~arm64 ppc64 ~s390 ~x86" + KEYWORDS="~amd64 -arm arm64 ppc64 ~s390 ~x86" fi DESCRIPTION="The NUMA daemon that manages application locality"
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: 7595647fde4d295e9961c7aab07878baff058c14 Author: Jakov Smolić gentoo org> AuthorDate: Mon Apr 29 07:50:40 2024 + Commit: Jakov Smolić gentoo org> CommitDate: Mon Apr 29 07:50:40 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7595647f sys-process/numad: Stabilize 0.5_p20180531-r2 ppc64, #930907 Signed-off-by: Jakov Smolić gentoo.org> sys-process/numad/numad-0.5_p20180531-r2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-process/numad/numad-0.5_p20180531-r2.ebuild b/sys-process/numad/numad-0.5_p20180531-r2.ebuild index ce503112f43e..9bfe787875b9 100644 --- a/sys-process/numad/numad-0.5_p20180531-r2.ebuild +++ b/sys-process/numad/numad-0.5_p20180531-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -14,7 +14,7 @@ else # git archive --format=tar.gz --prefix="${P}/" -o ${P}.tar.gz ${EGIT_COMMIT} EGIT_COMMIT="d696d6c413c5b47b4bbae79e29ea132e52095af3" SRC_URI="https://dev.gentoo.org/~gyakovlev/distfiles/${P}.tar.gz"; - KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86" + KEYWORDS="~amd64 -arm ~arm64 ppc64 ~s390 ~x86" fi DESCRIPTION="The NUMA daemon that manages application locality"
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: b71c81270ceba3084278ec249080f6afada0e575 Author: Arthur Zamarin gentoo org> AuthorDate: Wed Jan 3 18:51:16 2024 + Commit: Arthur Zamarin gentoo org> CommitDate: Wed Jan 3 18:51:16 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b71c8127 sys-process/numad: Stabilize 0.5-r3 ppc64, #921204 Signed-off-by: Arthur Zamarin gentoo.org> sys-process/numad/numad-0.5-r3.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-process/numad/numad-0.5-r3.ebuild b/sys-process/numad/numad-0.5-r3.ebuild index 73daa2a98079..8e01a495621a 100644 --- a/sys-process/numad/numad-0.5-r3.ebuild +++ b/sys-process/numad/numad-0.5-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -11,7 +11,7 @@ if [[ ${PV} == "" ]]; then else EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693" SRC_URI="mirror://gentoo/numad-${PV}-${EGIT_COMMIT:0:7}.tar.bz2" - KEYWORDS="amd64 -arm arm64 ~ppc64 ~s390 x86" + KEYWORDS="amd64 -arm arm64 ppc64 ~s390 x86" S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" fi
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/files/, sys-process/numad/
commit: ddd56d6a0ab0ceee1de2ef95c3d88e1d3e780c49 Author: Georgy Yakovlev gentoo org> AuthorDate: Sun Sep 24 20:14:31 2023 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sun Sep 24 20:42:05 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddd56d6a sys-process/numad: fix buffer overflow, remove workaround. Closes: https://bugs.gentoo.org/890985 Signed-off-by: Georgy Yakovlev gentoo.org> .../files/0001-numad_log-fix-buffer-overflow.patch | 25 ++ ...531-r1.ebuild => numad-0.5_p20180531-r2.ebuild} | 10 - 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/sys-process/numad/files/0001-numad_log-fix-buffer-overflow.patch b/sys-process/numad/files/0001-numad_log-fix-buffer-overflow.patch new file mode 100644 index ..c67d58192169 --- /dev/null +++ b/sys-process/numad/files/0001-numad_log-fix-buffer-overflow.patch @@ -0,0 +1,25 @@ +From a9e6f292f4ce9443ee95c77c60dd8da68d0db7e9 Mon Sep 17 00:00:00 2001 +From: Lukas Nykryn +Date: Wed, 6 Sep 2023 12:27:47 +0200 +Subject: [PATCH] numad_log: fix buffer overflow + +--- + numad.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/numad.c b/numad.c +index 4c85486..2923842 100644 +--- a/numad.c b/numad.c +@@ -153,7 +153,7 @@ void numad_log(int level, const char *fmt, ...) { + *p++ = ' '; + va_list ap; + va_start(ap, fmt); +-vsnprintf(p, BUF_SIZE, fmt, ap); ++vsnprintf(p, BUF_SIZE - strlen(buf) , fmt, ap); + va_end(ap); + fprintf(log_fs, "%s", buf); + fflush(log_fs); +-- +2.39.2 + diff --git a/sys-process/numad/numad-0.5_p20180531-r1.ebuild b/sys-process/numad/numad-0.5_p20180531-r2.ebuild similarity index 86% rename from sys-process/numad/numad-0.5_p20180531-r1.ebuild rename to sys-process/numad/numad-0.5_p20180531-r2.ebuild index 229cae6f6556..ce503112f43e 100644 --- a/sys-process/numad/numad-0.5_p20180531-r1.ebuild +++ b/sys-process/numad/numad-0.5_p20180531-r2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic linux-info systemd toolchain-funcs +inherit linux-info systemd toolchain-funcs if [[ ${PV} == ]]; then EGIT_REPO_URI="https://pagure.io/numad.git"; @@ -31,15 +31,13 @@ PATCHES=( # from debian/ubuntu: https://sources.debian.org/patches/numad "${FILESDIR}/${PN}-0.5-fix-build-for-no-NR-migrate-pages.patch" + + # from fedora: https://src.fedoraproject.org/rpms/numad/c/b9fdb5b1b09611ba164c04cd994e5e9ddf7fb8f4 + "${FILESDIR}/0001-numad_log-fix-buffer-overflow.patch" ) src_configure() { tc-export AR CC RANLIB - - # FIXME: https://bugs.gentoo.org/890985 - # temp workaround - filter-flags -D_FORTIFY_SOURCE=3 - append-cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 } src_compile() {
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: 320c47191591b06adf09871212d4c06256cbb745 Author: Sam James gentoo org> AuthorDate: Sun Mar 5 00:24:58 2023 + Commit: Sam James gentoo org> CommitDate: Sun Mar 5 00:25:02 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=320c4719 sys-process/numad: destabilize 0.5_p20180531-r1 It has some open bugs which I missed. Bug: https://bugs.gentoo.org/899316 Bug: https://bugs.gentoo.org/891009 Signed-off-by: Sam James gentoo.org> sys-process/numad/numad-0.5_p20180531-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-process/numad/numad-0.5_p20180531-r1.ebuild b/sys-process/numad/numad-0.5_p20180531-r1.ebuild index b8e2850057dd..229cae6f6556 100644 --- a/sys-process/numad/numad-0.5_p20180531-r1.ebuild +++ b/sys-process/numad/numad-0.5_p20180531-r1.ebuild @@ -14,7 +14,7 @@ else # git archive --format=tar.gz --prefix="${P}/" -o ${P}.tar.gz ${EGIT_COMMIT} EGIT_COMMIT="d696d6c413c5b47b4bbae79e29ea132e52095af3" SRC_URI="https://dev.gentoo.org/~gyakovlev/distfiles/${P}.tar.gz"; - KEYWORDS="amd64 -arm arm64 ~ppc64 ~s390 x86" + KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86" fi DESCRIPTION="The NUMA daemon that manages application locality"
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: fab474aa88b1a738fa24950089fca58377443db9 Author: Arthur Zamarin gentoo org> AuthorDate: Sat Mar 4 11:09:19 2023 + Commit: Arthur Zamarin gentoo org> CommitDate: Sat Mar 4 11:09:19 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fab474aa sys-process/numad: Stabilize 0.5_p20180531-r1 amd64, #899316 Signed-off-by: Arthur Zamarin gentoo.org> sys-process/numad/numad-0.5_p20180531-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-process/numad/numad-0.5_p20180531-r1.ebuild b/sys-process/numad/numad-0.5_p20180531-r1.ebuild index 87bc6f0fdacb..b8e2850057dd 100644 --- a/sys-process/numad/numad-0.5_p20180531-r1.ebuild +++ b/sys-process/numad/numad-0.5_p20180531-r1.ebuild @@ -14,7 +14,7 @@ else # git archive --format=tar.gz --prefix="${P}/" -o ${P}.tar.gz ${EGIT_COMMIT} EGIT_COMMIT="d696d6c413c5b47b4bbae79e29ea132e52095af3" SRC_URI="https://dev.gentoo.org/~gyakovlev/distfiles/${P}.tar.gz"; - KEYWORDS="~amd64 -arm arm64 ~ppc64 ~s390 x86" + KEYWORDS="amd64 -arm arm64 ~ppc64 ~s390 x86" fi DESCRIPTION="The NUMA daemon that manages application locality"
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: c6dddeb23cbd54cfe43d8a06ea22f24661d306af Author: Arthur Zamarin gentoo org> AuthorDate: Sat Mar 4 06:16:40 2023 + Commit: Arthur Zamarin gentoo org> CommitDate: Sat Mar 4 06:16:40 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6dddeb2 sys-process/numad: Stabilize 0.5_p20180531-r1 x86, #899316 Signed-off-by: Arthur Zamarin gentoo.org> sys-process/numad/numad-0.5_p20180531-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-process/numad/numad-0.5_p20180531-r1.ebuild b/sys-process/numad/numad-0.5_p20180531-r1.ebuild index 9185a3bdd6cd..87bc6f0fdacb 100644 --- a/sys-process/numad/numad-0.5_p20180531-r1.ebuild +++ b/sys-process/numad/numad-0.5_p20180531-r1.ebuild @@ -14,7 +14,7 @@ else # git archive --format=tar.gz --prefix="${P}/" -o ${P}.tar.gz ${EGIT_COMMIT} EGIT_COMMIT="d696d6c413c5b47b4bbae79e29ea132e52095af3" SRC_URI="https://dev.gentoo.org/~gyakovlev/distfiles/${P}.tar.gz"; - KEYWORDS="~amd64 -arm arm64 ~ppc64 ~s390 ~x86" + KEYWORDS="~amd64 -arm arm64 ~ppc64 ~s390 x86" fi DESCRIPTION="The NUMA daemon that manages application locality"
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: d96bfc12978b79ad55ca4295a99f55cfe7b00c8a Author: Arthur Zamarin gentoo org> AuthorDate: Sat Mar 4 06:00:39 2023 + Commit: Arthur Zamarin gentoo org> CommitDate: Sat Mar 4 06:00:39 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d96bfc12 sys-process/numad: Stabilize 0.5_p20180531-r1 arm64, #899316 Signed-off-by: Arthur Zamarin gentoo.org> sys-process/numad/numad-0.5_p20180531-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-process/numad/numad-0.5_p20180531-r1.ebuild b/sys-process/numad/numad-0.5_p20180531-r1.ebuild index 229cae6f6556..9185a3bdd6cd 100644 --- a/sys-process/numad/numad-0.5_p20180531-r1.ebuild +++ b/sys-process/numad/numad-0.5_p20180531-r1.ebuild @@ -14,7 +14,7 @@ else # git archive --format=tar.gz --prefix="${P}/" -o ${P}.tar.gz ${EGIT_COMMIT} EGIT_COMMIT="d696d6c413c5b47b4bbae79e29ea132e52095af3" SRC_URI="https://dev.gentoo.org/~gyakovlev/distfiles/${P}.tar.gz"; - KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86" + KEYWORDS="~amd64 -arm arm64 ~ppc64 ~s390 ~x86" fi DESCRIPTION="The NUMA daemon that manages application locality"
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/, sys-process/numad/files/
commit: 23a296b7fb82ae5b8278187d8e3143f073587285 Author: Georgy Yakovlev gentoo org> AuthorDate: Mon Jan 16 07:08:56 2023 + Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Jan 17 03:48:37 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23a296b7 sys-process/numad: revbump 0.5_p20180531, add more patches Signed-off-by: Georgy Yakovlev gentoo.org> ...mad-0.5-fix-build-for-no-NR-migrate-pages.patch | 38 ++ ...180531.ebuild => numad-0.5_p20180531-r1.ebuild} | 3 ++ 2 files changed, 41 insertions(+) diff --git a/sys-process/numad/files/numad-0.5-fix-build-for-no-NR-migrate-pages.patch b/sys-process/numad/files/numad-0.5-fix-build-for-no-NR-migrate-pages.patch new file mode 100644 index ..9f6c5b9caa0b --- /dev/null +++ b/sys-process/numad/files/numad-0.5-fix-build-for-no-NR-migrate-pages.patch @@ -0,0 +1,38 @@ +From c24212bd2dfcfc7074500f07f87790062d9b8acb Mon Sep 17 00:00:00 2001 +From: Kamal Mostafa +Date: Tue, 1 Sep 2015 08:43:22 -0700 +Subject: fix build for platforms with no __NR_migrate_pages syscall +Reviewed-by: Jeremías Casteglione +Reviewed-by: Colin King + +--- + numad.c | 6 ++ + 1 file changed, 6 insertions(+) + +diff --git a/numad.c b/numad.c +index 4c85486..09c5c29 100644 +--- a/numad.c b/numad.c +@@ -1022,6 +1022,8 @@ int bind_process_and_migrate_memory(process_data_p p) { + free(namelist[namelist_ix]); + } + free(namelist); ++ ++#if defined(__NR_migrate_pages) + // Now move the memory to the target nodes + static unsigned long *dest_mask; + static unsigned long *from_mask; +@@ -1083,6 +1085,10 @@ int bind_process_and_migrate_memory(process_data_p p) { + p->process_MBs[max_from_node_id] = 0; + prev_from_node_id = max_from_node_id; + } ++#else // __NR_migrate_pages is not defined ++numad_log(LOG_DEBUG, "Cannot move memory for PID %d: migrate_pages() system call not supported.\n", p->pid); ++#endif ++ + // Check pid still active + snprintf(fname, FNAME_SIZE, "/proc/%d", p->pid); + if (access(fname, F_OK) < 0) { +-- +1.9.1 + diff --git a/sys-process/numad/numad-0.5_p20180531.ebuild b/sys-process/numad/numad-0.5_p20180531-r1.ebuild similarity index 91% rename from sys-process/numad/numad-0.5_p20180531.ebuild rename to sys-process/numad/numad-0.5_p20180531-r1.ebuild index a778299f0ae4..229cae6f6556 100644 --- a/sys-process/numad/numad-0.5_p20180531.ebuild +++ b/sys-process/numad/numad-0.5_p20180531-r1.ebuild @@ -28,6 +28,9 @@ CONFIG_CHECK="~NUMA ~CPUSETS" PATCHES=( # https://pagure.io/numad/pull-request/3 "${FILESDIR}/${PN}-0.5-fix-sparse-node-ids.patch" + + # from debian/ubuntu: https://sources.debian.org/patches/numad + "${FILESDIR}/${PN}-0.5-fix-build-for-no-NR-migrate-pages.patch" ) src_configure() {
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: f78b951d85206d86bf78320efb2433d22cf70aa0 Author: Georgy Yakovlev gentoo org> AuthorDate: Sun Jan 15 22:49:25 2023 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sun Jan 15 22:50:57 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f78b951d sys-process/numad: sync live ebuild Signed-off-by: Georgy Yakovlev gentoo.org> sys-process/numad/numad-.ebuild | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/sys-process/numad/numad-.ebuild b/sys-process/numad/numad-.ebuild index 07607707eb3c..fffe3f4192c1 100644 --- a/sys-process/numad/numad-.ebuild +++ b/sys-process/numad/numad-.ebuild @@ -1,18 +1,20 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit linux-info systemd toolchain-funcs +inherit flag-o-matic linux-info systemd toolchain-funcs if [[ ${PV} == ]]; then EGIT_REPO_URI="https://pagure.io/numad.git"; inherit git-r3 else - EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693" - SRC_URI="mirror://gentoo/numad-${PV}-${EGIT_COMMIT:0:7}.tar.bz2" + # sync with fedora (as numad upstream) and add couple of commis. + # at time of writing f37 uses 20150602 + # git archive --format=tar.gz --prefix="${P}/" -o ${P}.tar.gz ${EGIT_COMMIT} + EGIT_COMMIT="d696d6c413c5b47b4bbae79e29ea132e52095af3" + SRC_URI="https://dev.gentoo.org/~gyakovlev/distfiles/${P}.tar.gz"; KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86" - S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" fi DESCRIPTION="The NUMA daemon that manages application locality" @@ -23,13 +25,17 @@ SLOT="0" CONFIG_CHECK="~NUMA ~CPUSETS" -src_prepare() { - default - tc-export CC +src_configure() { + tc-export AR CC RANLIB + + # FIXME: https://bugs.gentoo.org/890985 + # temp workaround + filter-flags -D_FORTIFY_SOURCE=3 + append-cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 } src_compile() { - emake CFLAGS="${CFLAGS} -std=gnu99" + emake OPT_CFLAGS="${CFLAGS}" } src_install() { @@ -41,7 +47,5 @@ src_install() { insinto /etc/logrotate.d newins "${FILESDIR}"/numad.logrotated numad - insinto /etc - doins numad.conf systemd_dounit numad.service }
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/files/, sys-process/numad/
commit: 3fb47a688395b40a6cdb5927dce68be79555d62c Author: Georgy Yakovlev gentoo org> AuthorDate: Sun Jan 15 22:42:19 2023 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sun Jan 15 22:50:05 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fb47a68 sys-process/numad: add 0.5_p20180531 add a non-ancient version of numad. We take current stable from Fedora and add just couple of commits on top, nothing major. current gentoo versions do not even support cgroupv2 and crash on startup. remove conf file. systemd unit no longer reads it, systemd users can use 'systemctl edit numad.service' to override args as needed. openrc file uses conf.d and never used conf file. add ppc64le patch where node ids can be sparse. add temporary F_S=3 workaround until #890985 is solved. Bug: https://bugs.gentoo.org/890985 Signed-off-by: Georgy Yakovlev gentoo.org> sys-process/numad/Manifest | 1 + .../files/numad-0.5-fix-sparse-node-ids.patch | 53 sys-process/numad/numad-0.5_p20180531.ebuild | 56 ++ 3 files changed, 110 insertions(+) diff --git a/sys-process/numad/Manifest b/sys-process/numad/Manifest index 9ca70d36ccab..937bd58cf6f8 100644 --- a/sys-process/numad/Manifest +++ b/sys-process/numad/Manifest @@ -1 +1,2 @@ DIST numad-0.5-334278f.tar.bz2 21007 BLAKE2B f226e90e0ad664b0cccd82c060b21cc8b7c4b086220f6eee1cd6e421b32f0efe2be11e66ce749142315f8207e19e635a718a41e5a8dd3ecfda02a96dfbd62798 SHA512 1b4a577f0713bae1386f2064fcb2dcbfb9453e23e7617f40cfff4e56d02a8c26a48c8d03f1ac7aa36e4ba168824572377f84bc669d1dabdc1820c2cdc4c57911 +DIST numad-0.5_p20180531.tar.gz 29797 BLAKE2B 455feba97685b0f0c6dd8ce10227d397b14d51d6fc128805648dd94b627ae61c4889ea4cc17667b9a1953c5122d39972172e05d3e782a313ecedbe7f85bfce41 SHA512 36b0387369b7d23b28ad8b4bd8b27089c304efb8357ad9f6693ff3098c56a3a88e39b30f70d35688e6090f4917250fd40d1aaac084a91310450412a05b8d6746 diff --git a/sys-process/numad/files/numad-0.5-fix-sparse-node-ids.patch b/sys-process/numad/files/numad-0.5-fix-sparse-node-ids.patch new file mode 100644 index ..d7d438457826 --- /dev/null +++ b/sys-process/numad/files/numad-0.5-fix-sparse-node-ids.patch @@ -0,0 +1,53 @@ +From ab79ec5b6389507b4970d68862abb95d0b2b94c9 Mon Sep 17 00:00:00 2001 +From: Christian Ehrhardt +Date: Jun 17 2019 10:37:48 + +Subject: fix sparse node ids + + +CPU-ids can be sparse due to disabling a subset of CPUs. +On ppc64le this even will make the node_ids sparse, this is actually pretty +common on ppc64 when SMT is disabled. + +Numad has the assumption of cpu/node-ids always being linear and due to that +accesses the 'node' array out of bounds. That triggers crashes like the +following: + + Thread 1 "numad" received signal SIGSEGV, Segmentation fault. + #0 0x0fb6cd2779f4 in bind_process_and_migrate_memory (p=0xfb6fc1e0f70) +at numad.c:998 + #1 0x0fb6cd27d148 in manage_loads () at numad.c:2225 + #2 0x0fb6cd2734dc in main (argc=, argv=) +at numad.c:2654 + +Instead of directly indexing with node_id we need to detect which array +element has the matching node_id and use that. + +Signed-off-by: Christian Ehrhardt + +--- + +diff --git a/numad.c b/numad.c +index a6a7a5d..524bf61 100644 +--- a/numad.c b/numad.c +@@ -995,7 +995,18 @@ int bind_process_and_migrate_memory(process_data_p p) { + int node_id = 0; + while (nodes) { + if (ID_IS_IN_LIST(node_id, p->node_list_p)) { +-OR_LISTS(cpu_bind_list_p, cpu_bind_list_p, node[node_id].cpu_list_p); ++int id = -1; ++for (int node_ix = 0; (node_ix < num_nodes); node_ix++) { ++if (node[node_ix].node_id == node_id) { ++id = node_ix; ++break; ++} ++} ++if (id == -1) { ++numad_log(LOG_CRIT, "Node %d is requested, but unknown\n", node_id); ++exit(EXIT_FAILURE); ++} ++OR_LISTS(cpu_bind_list_p, cpu_bind_list_p, node[id].cpu_list_p); + nodes -= 1; + } + node_id += 1; + diff --git a/sys-process/numad/numad-0.5_p20180531.ebuild b/sys-process/numad/numad-0.5_p20180531.ebuild new file mode 100644 index ..a778299f0ae4 --- /dev/null +++ b/sys-process/numad/numad-0.5_p20180531.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic linux-info systemd toolchain-funcs + +if [[ ${PV} == ]]; then + EGIT_REPO_URI="https://pagure.io/numad.git"; + inherit git-r3 +else + # sync with fedora (as numad upstream) and add couple of commis. + # at time of writing f37 uses 20150602 + # git archive --format=tar.gz --prefix="${P}/" -o ${P}.tar.gz ${EGIT_COMMIT} + EGIT_COMMIT="d696d6c413c5b47b4bbae79e29ea132e52095af3" + SRC_URI="https://dev.gent
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: a0566ed8ffe3b11d30f8f03614a952b18de138f8 Author: Sam James gentoo org> AuthorDate: Fri Sep 30 23:23:29 2022 + Commit: Sam James gentoo org> CommitDate: Fri Sep 30 23:24:28 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0566ed8 sys-process/numad: fix StaticSrcUri Signed-off-by: Sam James gentoo.org> sys-process/numad/numad-0.5-r3.ebuild | 4 ++-- sys-process/numad/numad-0.5-r4.ebuild | 2 +- sys-process/numad/numad-.ebuild | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys-process/numad/numad-0.5-r3.ebuild b/sys-process/numad/numad-0.5-r3.ebuild index e90c00f370ed..73daa2a98079 100644 --- a/sys-process/numad/numad-0.5-r3.ebuild +++ b/sys-process/numad/numad-0.5-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -10,7 +10,7 @@ if [[ ${PV} == "" ]]; then inherit git-r3 else EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693" - SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2" + SRC_URI="mirror://gentoo/numad-${PV}-${EGIT_COMMIT:0:7}.tar.bz2" KEYWORDS="amd64 -arm arm64 ~ppc64 ~s390 x86" S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" fi diff --git a/sys-process/numad/numad-0.5-r4.ebuild b/sys-process/numad/numad-0.5-r4.ebuild index 33f98562b754..3c2d952864ec 100644 --- a/sys-process/numad/numad-0.5-r4.ebuild +++ b/sys-process/numad/numad-0.5-r4.ebuild @@ -10,7 +10,7 @@ if [[ ${PV} == ]]; then inherit git-r3 else EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693" - SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2" + SRC_URI="mirror://gentoo/numad-${PV}-${EGIT_COMMIT:0:7}.tar.bz2" KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86" S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" fi diff --git a/sys-process/numad/numad-.ebuild b/sys-process/numad/numad-.ebuild index 61b74b22ad42..07607707eb3c 100644 --- a/sys-process/numad/numad-.ebuild +++ b/sys-process/numad/numad-.ebuild @@ -10,7 +10,7 @@ if [[ ${PV} == ]]; then inherit git-r3 else EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693" - SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2" + SRC_URI="mirror://gentoo/numad-${PV}-${EGIT_COMMIT:0:7}.tar.bz2" KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86" S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" fi
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: 3c01b9085f678e46fdd499aee1a0b0a4b0e4369a Author: Sam James gentoo org> AuthorDate: Mon Jun 20 03:21:08 2022 + Commit: Sam James gentoo org> CommitDate: Mon Jun 20 05:03:50 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c01b908 sys-process/numad: sync live Signed-off-by: Sam James gentoo.org> sys-process/numad/numad-.ebuild | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/sys-process/numad/numad-.ebuild b/sys-process/numad/numad-.ebuild index ddf19989ed7c..61b74b22ad42 100644 --- a/sys-process/numad/numad-.ebuild +++ b/sys-process/numad/numad-.ebuild @@ -1,15 +1,15 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit linux-info systemd toolchain-funcs -if [[ ${PV} == "" ]]; then +if [[ ${PV} == ]]; then EGIT_REPO_URI="https://pagure.io/numad.git"; inherit git-r3 else - EGIT_COMMIT="" + EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693" SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2" KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86" S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" @@ -20,7 +20,6 @@ HOMEPAGE="http://fedoraproject.org/wiki/Features/numad"; LICENSE="LGPL-2.1" SLOT="0" -IUSE="" CONFIG_CHECK="~NUMA ~CPUSETS" @@ -34,13 +33,13 @@ src_compile() { } src_install() { - emake prefix="${ED}/usr" install + emake prefix="${ED}"/usr install - newinitd "${FILESDIR}/numad.initd" numad - newconfd "${FILESDIR}/numad.confd" numad + newinitd "${FILESDIR}"/numad.initd numad + newconfd "${FILESDIR}"/numad.confd numad insinto /etc/logrotate.d - newins "${FILESDIR}/numad.logrotated" numad + newins "${FILESDIR}"/numad.logrotated numad insinto /etc doins numad.conf
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/files/, sys-process/numad/
commit: 4e3b9beabb52e2163a358da546e33b4634617fdd Author: Sam James gentoo org> AuthorDate: Mon Jun 20 03:20:37 2022 + Commit: Sam James gentoo org> CommitDate: Mon Jun 20 05:03:49 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e3b9bea sys-process/numad: fix -Wformat-security Closes: https://bugs.gentoo.org/520308 Signed-off-by: Sam James gentoo.org> .../numad/files/numad-0.5-wformat-security.patch | 19 sys-process/numad/numad-0.5-r4.ebuild | 53 ++ 2 files changed, 72 insertions(+) diff --git a/sys-process/numad/files/numad-0.5-wformat-security.patch b/sys-process/numad/files/numad-0.5-wformat-security.patch new file mode 100644 index ..5c0aa2c41f18 --- /dev/null +++ b/sys-process/numad/files/numad-0.5-wformat-security.patch @@ -0,0 +1,19 @@ +https://src.fedoraproject.org/rpms/numad/raw/f21/f/0001-Fix-build-with-Werror-format-security.patch +https://bugs.gentoo.org/520308 + +From 6ab732334bc765d4b5883ddde0e9891b4813d136 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ville=20Skytt=C3=A4?= +Date: Mon, 20 Jan 2014 22:25:58 +0200 +Subject: [PATCH 1/2] Fix build with -Werror=format-security + +--- a/numad.c b/numad.c +@@ -154,7 +154,7 @@ void numad_log(int level, const char *fmt, ...) { + } + char buf[BUF_SIZE]; + time_t ts = time(NULL); +-sprintf(buf, ctime(&ts)); ++sprintf(buf, "%s", ctime(&ts)); + char *p = &buf[strlen(buf) - 1]; + *p++ = ':'; + *p++ = ' '; diff --git a/sys-process/numad/numad-0.5-r4.ebuild b/sys-process/numad/numad-0.5-r4.ebuild new file mode 100644 index ..33f98562b754 --- /dev/null +++ b/sys-process/numad/numad-0.5-r4.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info systemd toolchain-funcs + +if [[ ${PV} == ]]; then + EGIT_REPO_URI="https://pagure.io/numad.git"; + inherit git-r3 +else + EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693" + SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2" + KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86" + S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" +fi + +DESCRIPTION="The NUMA daemon that manages application locality" +HOMEPAGE="http://fedoraproject.org/wiki/Features/numad"; + +LICENSE="LGPL-2.1" +SLOT="0" + +CONFIG_CHECK="~NUMA ~CPUSETS" + +PATCHES=( + "${FILESDIR}/0001-Fix-man-page-directory-creation.patch" + "${FILESDIR}/${PN}-0.5-ldlibs.patch" + "${FILESDIR}/${PN}-0.5-wformat-security.patch" +) + +src_prepare() { + default + tc-export CC +} + +src_compile() { + emake CFLAGS="${CFLAGS} -std=gnu99" +} + +src_install() { + emake prefix="${ED}"/usr install + + newinitd "${FILESDIR}"/numad.initd numad + newconfd "${FILESDIR}"/numad.confd numad + + insinto /etc/logrotate.d + newins "${FILESDIR}"/numad.logrotated numad + + insinto /etc + doins numad.conf + systemd_dounit numad.service +}
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: 63ca3b61577a7ba98b6313fdfc19e9515579dbda Author: Mikle Kolyada gentoo org> AuthorDate: Sat Mar 21 19:05:37 2020 + Commit: Mikle Kolyada gentoo org> CommitDate: Sat Mar 21 19:06:08 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63ca3b61 sys-process/numad: Drop old Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Mikle Kolyada gentoo.org> sys-process/numad/numad-0.5-r1.ebuild | 40 --- sys-process/numad/numad-0.5-r2.ebuild | 39 -- sys-process/numad/numad-0.5.ebuild| 34 - 3 files changed, 113 deletions(-) diff --git a/sys-process/numad/numad-0.5-r1.ebuild b/sys-process/numad/numad-0.5-r1.ebuild deleted file mode 100644 index 6b1dd22c7ef..000 --- a/sys-process/numad/numad-0.5-r1.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit linux-info toolchain-funcs eutils - -if [[ ${PV} == ** ]]; then - EGIT_REPO_URI="https://pagure.io/numad.git"; - inherit git-r3 -else - HASH="334278ff3d774d105939743436d7378a189e8693" - SRC_URI="mirror://gentoo/numad-0.5-${HASH:0:7}.tar.bz2" - KEYWORDS="amd64 -arm -s390 x86" - S="${WORKDIR}/${PN}-${HASH:0:7}" -fi - -DESCRIPTION="The NUMA daemon that manages application locality" -HOMEPAGE="http://fedoraproject.org/wiki/Features/numad"; - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="" - -CONFIG_CHECK="~NUMA ~CPUSETS" - -src_prepare() { - EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${FILESDIR}" \ - epatch - - tc-export CC -} - -src_compile() { - emake CFLAGS="${CFLAGS} -std=gnu99" -} - -src_install() { - emake prefix="${ED}/usr" install -} diff --git a/sys-process/numad/numad-0.5-r2.ebuild b/sys-process/numad/numad-0.5-r2.ebuild deleted file mode 100644 index 8f4a1088b8a..000 --- a/sys-process/numad/numad-0.5-r2.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit linux-info toolchain-funcs eutils - -if [[ ${PV} == "" ]]; then - EGIT_REPO_URI="https://pagure.io/numad.git"; - inherit git-r3 -else - HASH="334278ff3d774d105939743436d7378a189e8693" - SRC_URI="mirror://gentoo/numad-0.5-${HASH:0:7}.tar.bz2" - KEYWORDS="~amd64 -arm ~arm64 -s390 ~x86" - S="${WORKDIR}/${PN}-${HASH:0:7}" -fi - -DESCRIPTION="The NUMA daemon that manages application locality" -HOMEPAGE="http://fedoraproject.org/wiki/Features/numad"; - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="" - -CONFIG_CHECK="~NUMA ~CPUSETS" - -src_prepare() { - epatch "${FILESDIR}"/0001-Fix-man-page-directory-creation.patch - epatch "${FILESDIR}"/${PN}-0.5-ldlibs.patch #505760 - tc-export CC -} - -src_compile() { - emake CFLAGS="${CFLAGS} -std=gnu99" -} - -src_install() { - emake prefix="${ED}/usr" install -} diff --git a/sys-process/numad/numad-0.5.ebuild b/sys-process/numad/numad-0.5.ebuild deleted file mode 100644 index 926c416a8be..000 --- a/sys-process/numad/numad-0.5.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 - -inherit linux-info - -if [[ ${PV} == ** ]]; then - EGIT_REPO_URI="https://pagure.io/numad.git"; - inherit git-r3 -else - HASH="334278ff3d774d105939743436d7378a189e8693" - SRC_URI="mirror://gentoo/numad-0.5-${HASH:0:7}.tar.bz2" - KEYWORDS="amd64 -arm -s390 x86" - S="${WORKDIR}/${PN}-${HASH:0:7}" -fi - -DESCRIPTION="The NUMA daemon that manages application locality" -HOMEPAGE="http://fedoraproject.org/wiki/Features/numad"; - -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="" - -CONFIG_CHECK="~NUMA ~CPUSETS" - -src_prepare() { - EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${FILESDIR}" \ - epatch -} - -src_install() { - emake prefix="${ED}/usr" install -}
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: a5352c67c6e729207dcfca0d4e2f94a9ff41ab4a Author: Georgy Yakovlev gentoo org> AuthorDate: Sat Dec 28 20:58:07 2019 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sat Dec 28 21:32:41 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5352c67 sys-process/numad: keyword 0.5-r3 on ~ppc64 Bug: https://bugs.gentoo.org/679888 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Georgy Yakovlev gentoo.org> sys-process/numad/numad-0.5-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-process/numad/numad-0.5-r3.ebuild b/sys-process/numad/numad-0.5-r3.ebuild index 955ba6b455e..799fce8dec8 100644 --- a/sys-process/numad/numad-0.5-r3.ebuild +++ b/sys-process/numad/numad-0.5-r3.ebuild @@ -11,7 +11,7 @@ if [[ ${PV} == "" ]]; then else EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693" SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2" - KEYWORDS="amd64 -arm ~arm64 -s390 x86" + KEYWORDS="amd64 -arm ~arm64 ~ppc64 -s390 x86" S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" fi
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: 14058d66d68eda4e6054b86e24e81599c6c3f56d Author: Georgy Yakovlev gentoo org> AuthorDate: Sat Dec 28 20:58:47 2019 + Commit: Georgy Yakovlev gentoo org> CommitDate: Sat Dec 28 21:32:42 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14058d66 sys-process/numad: sync live ebuild keywords Bug: https://bugs.gentoo.org/679888 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Georgy Yakovlev gentoo.org> sys-process/numad/numad-.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-process/numad/numad-.ebuild b/sys-process/numad/numad-.ebuild index 9b2cc2d66a7..11e23c79943 100644 --- a/sys-process/numad/numad-.ebuild +++ b/sys-process/numad/numad-.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -11,7 +11,7 @@ if [[ ${PV} == "" ]]; then else EGIT_COMMIT="" SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2" - KEYWORDS="~amd64 -arm ~arm64 -s390 ~x86" + KEYWORDS="~amd64 -arm ~arm64 ~ppc64 -s390 ~x86" S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" fi
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/files/
commit: 57e799528c0c382b1c1926da5dcfc2c1e290f938 Author: Mike Gilbert gentoo org> AuthorDate: Thu Sep 19 15:37:33 2019 + Commit: Mike Gilbert gentoo org> CommitDate: Thu Sep 19 15:37:33 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e79952 sys-process/numad: chmod -x files/numad.initd Closes: https://bugs.gentoo.org/694880 Signed-off-by: Mike Gilbert gentoo.org> sys-process/numad/files/numad.initd | 0 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/sys-process/numad/files/numad.initd b/sys-process/numad/files/numad.initd old mode 100755 new mode 100644
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: 0602f91bb8a58129bc51f11f3b3d24ccc41dac65 Author: Agostino Sarubbo gentoo org> AuthorDate: Fri Jun 21 11:07:02 2019 + Commit: Agostino Sarubbo gentoo org> CommitDate: Fri Jun 21 11:07:02 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0602f91b sys-process/numad: x86 stable wrt bug #687254 Signed-off-by: Agostino Sarubbo gentoo.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11 RepoMan-Options: --include-arches="x86" sys-process/numad/numad-0.5-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-process/numad/numad-0.5-r3.ebuild b/sys-process/numad/numad-0.5-r3.ebuild index c399de77cbd..955ba6b455e 100644 --- a/sys-process/numad/numad-0.5-r3.ebuild +++ b/sys-process/numad/numad-0.5-r3.ebuild @@ -11,7 +11,7 @@ if [[ ${PV} == "" ]]; then else EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693" SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2" - KEYWORDS="amd64 -arm ~arm64 -s390 ~x86" + KEYWORDS="amd64 -arm ~arm64 -s390 x86" S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" fi
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: 160d94dfcf8ae28649d65874995cd8e205a6dffe Author: Agostino Sarubbo gentoo org> AuthorDate: Fri Jun 21 08:02:18 2019 + Commit: Agostino Sarubbo gentoo org> CommitDate: Fri Jun 21 08:02:18 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=160d94df sys-process/numad: amd64 stable wrt bug #687254 Signed-off-by: Agostino Sarubbo gentoo.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11 RepoMan-Options: --include-arches="amd64" sys-process/numad/numad-0.5-r3.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-process/numad/numad-0.5-r3.ebuild b/sys-process/numad/numad-0.5-r3.ebuild index 9c3e8ee12be..c399de77cbd 100644 --- a/sys-process/numad/numad-0.5-r3.ebuild +++ b/sys-process/numad/numad-0.5-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -11,7 +11,7 @@ if [[ ${PV} == "" ]]; then else EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693" SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2" - KEYWORDS="~amd64 -arm ~arm64 -s390 ~x86" + KEYWORDS="amd64 -arm ~arm64 -s390 ~x86" S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" fi
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: b502abf5429ff3fe2972634f77136dd6d2d4201e Author: Georgy Yakovlev gentoo org> AuthorDate: Sun Dec 2 06:56:16 2018 + Commit: Georgy Yakovlev gentoo org> CommitDate: Thu Dec 20 01:12:32 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b502abf5 sys-process/numad: revbump 0.5, install service files This commit adds openrc service file, installs upstream provided systemd unit and also installs logrotate conf. Closes: https://github.com/gentoo/gentoo/pull/10536 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Georgy Yakovlev gentoo.org> sys-process/numad/numad-0.5-r3.ebuild | 53 +++ 1 file changed, 53 insertions(+) diff --git a/sys-process/numad/numad-0.5-r3.ebuild b/sys-process/numad/numad-0.5-r3.ebuild new file mode 100644 index 000..9c3e8ee12be --- /dev/null +++ b/sys-process/numad/numad-0.5-r3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-info systemd toolchain-funcs + +if [[ ${PV} == "" ]]; then + EGIT_REPO_URI="https://pagure.io/numad.git"; + inherit git-r3 +else + EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693" + SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2" + KEYWORDS="~amd64 -arm ~arm64 -s390 ~x86" + S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" +fi + +DESCRIPTION="The NUMA daemon that manages application locality" +HOMEPAGE="http://fedoraproject.org/wiki/Features/numad"; + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="" + +CONFIG_CHECK="~NUMA ~CPUSETS" + +PATCHES=( + "${FILESDIR}/0001-Fix-man-page-directory-creation.patch" + "${FILESDIR}/${PN}-0.5-ldlibs.patch" +) + +src_prepare() { + default + tc-export CC +} + +src_compile() { + emake CFLAGS="${CFLAGS} -std=gnu99" +} + +src_install() { + emake prefix="${ED}/usr" install + + newinitd "${FILESDIR}/numad.initd" numad + newconfd "${FILESDIR}/numad.confd" numad + + insinto /etc/logrotate.d + newins "${FILESDIR}/numad.logrotated" numad + + insinto /etc + doins numad.conf + systemd_dounit numad.service +}
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/files/, sys-process/numad/
commit: fe28d1908e27e8bc4f7e01d673c4bfc7149f855b Author: Georgy Yakovlev gentoo org> AuthorDate: Sun Dec 2 06:46:43 2018 + Commit: Georgy Yakovlev gentoo org> CommitDate: Thu Dec 20 01:12:32 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe28d190 sys-process/numad: add service files Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Georgy Yakovlev gentoo.org> sys-process/numad/files/numad.confd | 6 ++ sys-process/numad/files/numad.initd | 14 ++ sys-process/numad/files/numad.logrotated | 5 + sys-process/numad/numad-.ebuild | 22 +- 4 files changed, 42 insertions(+), 5 deletions(-) diff --git a/sys-process/numad/files/numad.confd b/sys-process/numad/files/numad.confd new file mode 100644 index 000..8767c1102c5 --- /dev/null +++ b/sys-process/numad/files/numad.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/numad: config file for /etc/init.d/numad +# +# Options to pass to the numad daemon. +# See the numad(8) man page for more info. + +#NUMAD_OPTS="-v" diff --git a/sys-process/numad/files/numad.initd b/sys-process/numad/files/numad.initd new file mode 100755 index 000..afeee892124 --- /dev/null +++ b/sys-process/numad/files/numad.initd @@ -0,0 +1,14 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="NUMA daemon that manages application locality" + +depend() { + need localmount + use logger +} + +command="/usr/bin/numad" +command_args="${NUMAD_OPTS}" +pidfile="/run/${RC_SVCNAME}.pid" diff --git a/sys-process/numad/files/numad.logrotated b/sys-process/numad/files/numad.logrotated new file mode 100644 index 000..bf17dc3335c --- /dev/null +++ b/sys-process/numad/files/numad.logrotated @@ -0,0 +1,5 @@ +/var/log/numad.log { + copytruncate + missingok + notifempty +} diff --git a/sys-process/numad/numad-.ebuild b/sys-process/numad/numad-.ebuild index d292669c500..9b2cc2d66a7 100644 --- a/sys-process/numad/numad-.ebuild +++ b/sys-process/numad/numad-.ebuild @@ -1,16 +1,18 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit linux-info toolchain-funcs +inherit linux-info systemd toolchain-funcs if [[ ${PV} == "" ]]; then EGIT_REPO_URI="https://pagure.io/numad.git"; inherit git-r3 else - SRC_URI="" - KEYWORDS="~amd64 ~x86 -arm -s390" + EGIT_COMMIT="" + SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2" + KEYWORDS="~amd64 -arm ~arm64 -s390 ~x86" + S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}" fi DESCRIPTION="The NUMA daemon that manages application locality" @@ -33,4 +35,14 @@ src_compile() { src_install() { emake prefix="${ED}/usr" install + + newinitd "${FILESDIR}/numad.initd" numad + newconfd "${FILESDIR}/numad.confd" numad + + insinto /etc/logrotate.d + newins "${FILESDIR}/numad.logrotated" numad + + insinto /etc + doins numad.conf + systemd_dounit numad.service }
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: 9b3919c1b9828559c3fc394fa5cb89ee8c251ca8 Author: Marty E. Plummer startmail com> AuthorDate: Fri Apr 27 11:08:14 2018 + Commit: Mike Gilbert gentoo org> CommitDate: Fri May 18 15:59:13 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b3919c1 sys-process/numad: EAPI=6, drop eutils Package-Manager: Portage-2.3.31, Repoman-2.3.9 sys-process/numad/numad-.ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys-process/numad/numad-.ebuild b/sys-process/numad/numad-.ebuild index 9b9fa1dc751..d292669c500 100644 --- a/sys-process/numad/numad-.ebuild +++ b/sys-process/numad/numad-.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=6 -inherit linux-info toolchain-funcs eutils +inherit linux-info toolchain-funcs if [[ ${PV} == "" ]]; then EGIT_REPO_URI="https://pagure.io/numad.git"; @@ -23,6 +23,7 @@ IUSE="" CONFIG_CHECK="~NUMA ~CPUSETS" src_prepare() { + default tc-export CC }
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: 92fcc2d2d6ac4294bb9576bbd18b57707a96e73d Author: Marty E. Plummer startmail com> AuthorDate: Fri Apr 27 10:38:41 2018 + Commit: Mike Gilbert gentoo org> CommitDate: Fri May 18 15:59:13 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92fcc2d2 sys-process/numad: git-2->git-r3 Upstream git repo moved to pagure.io; the release files are being pulled from our distfile mirrors anyways. Package-Manager: Portage-2.3.31, Repoman-2.3.9 sys-process/numad/numad-0.5-r1.ebuild | 16 ++-- sys-process/numad/numad-0.5-r2.ebuild | 12 sys-process/numad/numad-0.5.ebuild| 21 +++-- sys-process/numad/numad-.ebuild | 11 +++ 4 files changed, 20 insertions(+), 40 deletions(-) diff --git a/sys-process/numad/numad-0.5-r1.ebuild b/sys-process/numad/numad-0.5-r1.ebuild index e7498840822..6b1dd22c7ef 100644 --- a/sys-process/numad/numad-0.5-r1.ebuild +++ b/sys-process/numad/numad-0.5-r1.ebuild @@ -5,14 +5,14 @@ EAPI=5 inherit linux-info toolchain-funcs eutils -if [[ ${PV} = ** ]]; then - inherit git-2 - EGIT_REPO_URI="git://git.fedorahosted.org/numad.git" - KEYWORDS="~amd64 -arm -s390 x86" +if [[ ${PV} == ** ]]; then + EGIT_REPO_URI="https://pagure.io/numad.git"; + inherit git-r3 else - SRC_URI="http://git.fedorahosted.org/git/?p=numad.git;a=snapshot;h=334278ff3d774d105939743436d7378a189e8693;sf=tbz2 -> numad-0.5-334278f.tar.bz2" + HASH="334278ff3d774d105939743436d7378a189e8693" + SRC_URI="mirror://gentoo/numad-0.5-${HASH:0:7}.tar.bz2" KEYWORDS="amd64 -arm -s390 x86" - S="${WORKDIR}/${PN}-334278f" + S="${WORKDIR}/${PN}-${HASH:0:7}" fi DESCRIPTION="The NUMA daemon that manages application locality" @@ -31,10 +31,6 @@ src_prepare() { tc-export CC } -src_configure() { - : -} - src_compile() { emake CFLAGS="${CFLAGS} -std=gnu99" } diff --git a/sys-process/numad/numad-0.5-r2.ebuild b/sys-process/numad/numad-0.5-r2.ebuild index c3cec523349..8f4a1088b8a 100644 --- a/sys-process/numad/numad-0.5-r2.ebuild +++ b/sys-process/numad/numad-0.5-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -6,11 +6,11 @@ EAPI=5 inherit linux-info toolchain-funcs eutils if [[ ${PV} == "" ]]; then - EGIT_REPO_URI="git://git.fedorahosted.org/numad.git" - inherit git-2 + EGIT_REPO_URI="https://pagure.io/numad.git"; + inherit git-r3 else HASH="334278ff3d774d105939743436d7378a189e8693" - SRC_URI="http://git.fedorahosted.org/git/?p=numad.git;a=snapshot;h=${HASH};sf=tbz2 -> numad-0.5-${HASH:0:7}.tar.bz2" + SRC_URI="mirror://gentoo/numad-0.5-${HASH:0:7}.tar.bz2" KEYWORDS="~amd64 -arm ~arm64 -s390 ~x86" S="${WORKDIR}/${PN}-${HASH:0:7}" fi @@ -30,10 +30,6 @@ src_prepare() { tc-export CC } -src_configure() { - : -} - src_compile() { emake CFLAGS="${CFLAGS} -std=gnu99" } diff --git a/sys-process/numad/numad-0.5.ebuild b/sys-process/numad/numad-0.5.ebuild index e243f289db5..926c416a8be 100644 --- a/sys-process/numad/numad-0.5.ebuild +++ b/sys-process/numad/numad-0.5.ebuild @@ -1,18 +1,18 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=4 inherit linux-info -if [[ ${PV} = ** ]]; then - inherit git-2 - EGIT_REPO_URI="git://git.fedorahosted.org/numad.git" - KEYWORDS="-arm -s390" +if [[ ${PV} == ** ]]; then + EGIT_REPO_URI="https://pagure.io/numad.git"; + inherit git-r3 else - SRC_URI="http://git.fedorahosted.org/git/?p=numad.git;a=snapshot;h=334278ff3d774d105939743436d7378a189e8693;sf=tbz2 -> numad-0.5-334278f.tar.bz2" + HASH="334278ff3d774d105939743436d7378a189e8693" + SRC_URI="mirror://gentoo/numad-0.5-${HASH:0:7}.tar.bz2" KEYWORDS="amd64 -arm -s390 x86" - S="${WORKDIR}/${PN}-334278f" + S="${WORKDIR}/${PN}-${HASH:0:7}" fi DESCRIPTION="The NUMA daemon that manages application locality" @@ -22,9 +22,6 @@ LICENSE="LGPL-2.1" SLOT="0" IUSE="" -DEPEND="" -RDEPEND="${DEPEND}" - CONFIG_CHECK="~NUMA ~CPUSETS" src_prepare() { @@ -32,10 +29,6 @@ src_prepare() { epatch } -src_configure() { - : -} - src_install() { emake prefix="${ED}/usr" install } diff --git a/sys-process/numad/numad-.ebuild b/sys-process/numad/numad-.ebuild index c44a0fea5cb..9b9fa1dc751 100644 --- a/sys-process/numad/numad-.ebuild +++ b/sys-process/numad/numad-.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -6,8 +6,8 @@ EAPI=5 inherit linux-info toolchain
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: a10e74e6de6b0480ca5f7ef4430f3180bbef9d5f Author: Michael Weber gentoo org> AuthorDate: Wed Jan 17 22:58:57 2018 + Commit: Michael Weber gentoo org> CommitDate: Wed Jan 17 22:58:57 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a10e74e6 sys-process/numad: fix missing epatch Package-Manager: Portage-2.3.19, Repoman-2.3.6 sys-process/numad/numad-0.5-r1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-process/numad/numad-0.5-r1.ebuild b/sys-process/numad/numad-0.5-r1.ebuild index 32ad4fbefe3..e7498840822 100644 --- a/sys-process/numad/numad-0.5-r1.ebuild +++ b/sys-process/numad/numad-0.5-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 -inherit linux-info toolchain-funcs +inherit linux-info toolchain-funcs eutils if [[ ${PV} = ** ]]; then inherit git-2
[gentoo-commits] repo/gentoo:master commit in: sys-process/numad/
commit: 5de2b9eda177ae8465867a861233c07435eba476 Author: Alexis Ballier gentoo org> AuthorDate: Fri Jul 7 12:17:58 2017 + Commit: Alexis Ballier gentoo org> CommitDate: Fri Jul 7 12:17:58 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5de2b9ed sys-process/numad: keyword ~arm64 Package-Manager: Portage-2.3.6, Repoman-2.3.2 sys-process/numad/numad-0.5-r2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-process/numad/numad-0.5-r2.ebuild b/sys-process/numad/numad-0.5-r2.ebuild index c69eb0958cd..c3cec523349 100644 --- a/sys-process/numad/numad-0.5-r2.ebuild +++ b/sys-process/numad/numad-0.5-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -11,7 +11,7 @@ if [[ ${PV} == "" ]]; then else HASH="334278ff3d774d105939743436d7378a189e8693" SRC_URI="http://git.fedorahosted.org/git/?p=numad.git;a=snapshot;h=${HASH};sf=tbz2 -> numad-0.5-${HASH:0:7}.tar.bz2" - KEYWORDS="~amd64 -arm -s390 ~x86" + KEYWORDS="~amd64 -arm ~arm64 -s390 ~x86" S="${WORKDIR}/${PN}-${HASH:0:7}" fi