From 66520d3148e31806a52cf7df5b8d91d5cd431670 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 17 Jan 2023 07:14:19 +0000 Subject: gentoo auto-resync : 17:01:2023 - 07:14:19 --- sys-process/numad/Manifest | 3 +- ...mad-0.5-fix-build-for-no-NR-migrate-pages.patch | 38 ++++++++++++++ sys-process/numad/numad-0.5_p20180531-r1.ebuild | 59 ++++++++++++++++++++++ sys-process/numad/numad-0.5_p20180531.ebuild | 56 -------------------- 4 files changed, 99 insertions(+), 57 deletions(-) create mode 100644 sys-process/numad/files/numad-0.5-fix-build-for-no-NR-migrate-pages.patch create mode 100644 sys-process/numad/numad-0.5_p20180531-r1.ebuild delete mode 100644 sys-process/numad/numad-0.5_p20180531.ebuild (limited to 'sys-process/numad') diff --git a/sys-process/numad/Manifest b/sys-process/numad/Manifest index 976231fe4325..c9995d325770 100644 --- a/sys-process/numad/Manifest +++ b/sys-process/numad/Manifest @@ -1,4 +1,5 @@ AUX 0001-Fix-man-page-directory-creation.patch 722 BLAKE2B c98194d7b9a3679d800dcbd5346bc8b8c141b9021d75f574c876b1f9a8972dfe5a6247cc891c0795a2bd1687db70377e96b3e8bef663e20fedbfc1e324102bfb SHA512 e43609c3e6af1f01c886e707cd126126b9bbc8da98b8313e67d98909889f2c81d640db9bc999ca056611dc7792c8a0d3e9ecf9949b4c0a58d33e9bbe74b127ae +AUX numad-0.5-fix-build-for-no-NR-migrate-pages.patch 1260 BLAKE2B ad1f44a208fb117ad29bffe20bca8013eb9ff07199fa6100dff792172390cc9f4dce6462d40f5e896c500bb0c0539729cbd64995e5e9d2f559152f59a2b0c60f SHA512 4a3bfe31e436edb2e1de60f8564652718f3fa3da273bac4120dc19b2de606cac7b35b9e5c225fd1094b5be13a17ca55522df7b73caf7385069acd0fcec321830 AUX numad-0.5-fix-sparse-node-ids.patch 1941 BLAKE2B 874d49dfbe14bab9f5c58e492dcbed85b333b6859b763acbb84b27d76afbea722f701279f242ee6618c31148b1268ff3709efc86d7524076b2e1c845b1d36108 SHA512 a13df0b02ff2eb4c346e6c484deff58e8bdb563f3b075a2b308f4bed6e1d00ffad4d5cc3905920a8eceb5d7372c9b72506bf6a5c43715f792c04ff8c693a37a8 AUX numad-0.5-ldlibs.patch 912 BLAKE2B 0e086913e819d91469bfae5a6d9e5553c91fcd2971e33e3a1066c277319671fb3157393f5ef8f6771c8d8df719d1b728c310f6de51f41112b7a954e4d149f9d9 SHA512 7bd6e90617382080aaa217fa82c1b792d4b33b2dfc51ec43f3539e2b98eec1aa7fa8312e11fef97974d3ecd3f888a997a3c2b21ee980fc8ec4e74dd4bcdb6cbc AUX numad-0.5-wformat-security.patch 661 BLAKE2B 213400a08547a4c7391bed4e2f373e44f1bbdea2398d7f5037bebf3748d4ab63a5b116ca2a8b97f519891cd33186055adefbef72c86fc34576835caf23f7919a SHA512 20bb8d8dddfcc27dc0b7174aacbdac910136482369dfe2a4c99e47ca810c0604cd23faffd3c2fdab33b79f5fa40987a0b78877672345c0278fbd8a8fb3a56879 @@ -9,6 +10,6 @@ DIST numad-0.5-334278f.tar.bz2 21007 BLAKE2B f226e90e0ad664b0cccd82c060b21cc8b7c DIST numad-0.5_p20180531.tar.gz 29797 BLAKE2B 455feba97685b0f0c6dd8ce10227d397b14d51d6fc128805648dd94b627ae61c4889ea4cc17667b9a1953c5122d39972172e05d3e782a313ecedbe7f85bfce41 SHA512 36b0387369b7d23b28ad8b4bd8b27089c304efb8357ad9f6693ff3098c56a3a88e39b30f70d35688e6090f4917250fd40d1aaac084a91310450412a05b8d6746 EBUILD numad-0.5-r3.ebuild 1135 BLAKE2B 84339d76f976cbe544f05194adebecad561c7a85886f9367d4487140b15e19ce5f1307bb8ab7a6d744f5784fb93a66bd01bdbab0b5d5fdbb348bad43920dbd94 SHA512 4d7827a7c3c051748d527a7e03576f243719ecdf3cd291ca5b1343bdb36c74a5dcd7524a986cf4cff1213277ebb2f1e19132429d9ece41d581d18f3f1b01197c EBUILD numad-0.5-r4.ebuild 1176 BLAKE2B 945aed6353b8fcb0b4c0e146295c8ae7fca184159accce1ee421c71b3870c58af3bea59dafa99172ac2dd6ad3e44e75af1200dcde6a492f911ae428e82723f68 SHA512 e865c8dde6b328540b7f2d4ae10ae7897abf5193b57faea37a3afeac188b9f7c360d495ae1fba21f1435316b7312c2bc0871841dfc7c48903cf48a235f7cd42d -EBUILD numad-0.5_p20180531.ebuild 1396 BLAKE2B c34a5244ab2476ca029497807b5df089d772119f2540fbc9cb47c1c6f3a546cae5629fbc3f63ae268fce036344643bd14089434c81c14997764efcdc452ae7f0 SHA512 35a53fdd23b2a75784cb0e132004419bbffbbd94428a0ef6ca9c04093790ff0d5810662b40dd42253e47946897d5560fcdcd8461b96251250ca866f19a4d7914 +EBUILD numad-0.5_p20180531-r1.ebuild 1526 BLAKE2B 9383ff72e18922a6e5b738706442f4a781611f0b0eb5e48c271682a86ab085bb30eece7361387eb4d19aebaa7dcc230599db323659c5954ad3e852ffc6d3fc23 SHA512 3068feb1646537a397ab42811a633223b40e59ae073658b2038ceaf2a1025e11a19fbf8f56ccf63f0a2851789e738a292b7a5c35932a2dff299b310cd89a6b4d EBUILD numad-9999.ebuild 1290 BLAKE2B c5a669b3c7f990ecc53c901c41a748c6e77cabd4b284a08fa7692dac20cc608383b8cbec7a7174fe36c79b8ed35d407ed436634ea1be5896aeeafaeeba869a74 SHA512 0b44f8a664bdb5af054e9ff5712884a6905cd4e6b1bc58869e134c551248920e0924fbd5281cbbacd2dd64c22854583daa1e2e6b2b366181786b43d5a3ec1d90 MISC metadata.xml 254 BLAKE2B f3a9f843cf94243d1129711770df727fcdc8808bca829ef784819cab6f5410dfa463cfed85182f8228c7de796a674dd602653ad3ef817a62c0c3e7198b23befe SHA512 b9fcd3084a7e197f6138e1ce8b0eff99c4c203c37a7d5c40de207040ba1501ef0e5b2f4e00216a567037bcd6d3394fdec6ff587484c9ba2fca9d04f431733b7c 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 000000000000..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-r1.ebuild b/sys-process/numad/numad-0.5_p20180531-r1.ebuild new file mode 100644 index 000000000000..229cae6f6556 --- /dev/null +++ b/sys-process/numad/numad-0.5_p20180531-r1.ebuild @@ -0,0 +1,59 @@ +# 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} == 9999 ]]; 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.gentoo.org/~gyakovlev/distfiles/${P}.tar.gz" + KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86" +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=( + # 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() { + 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 OPT_CFLAGS="${CFLAGS}" +} + +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 + + systemd_dounit numad.service +} diff --git a/sys-process/numad/numad-0.5_p20180531.ebuild b/sys-process/numad/numad-0.5_p20180531.ebuild deleted file mode 100644 index a778299f0ae4..000000000000 --- a/sys-process/numad/numad-0.5_p20180531.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# 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} == 9999 ]]; 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.gentoo.org/~gyakovlev/distfiles/${P}.tar.gz" - KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86" -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=( - # https://pagure.io/numad/pull-request/3 - "${FILESDIR}/${PN}-0.5-fix-sparse-node-ids.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() { - emake OPT_CFLAGS="${CFLAGS}" -} - -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 - - systemd_dounit numad.service -} -- cgit v1.2.3