[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: fa8517c322435ec3281e2bfe338869e501ed8abf Author: Sam James gentoo org> AuthorDate: Mon Jan 8 12:09:33 2024 + Commit: Sam James gentoo org> CommitDate: Mon Jan 8 12:25:16 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa8517c3 sys-kernel/kpatch: sys-devel/bison -> app-alternatives/yacc All of these will be using app-alternatives/yacc anyway as they're not unsetting YACC or LEX, so make the dep reflect reality. (Included both YACC and LEX out of conservatism.) Signed-off-by: Sam James gentoo.org> sys-kernel/kpatch/kpatch-0.9.7.ebuild | 4 ++-- sys-kernel/kpatch/kpatch-0.9.8.ebuild | 4 ++-- sys-kernel/kpatch/kpatch-.ebuild | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys-kernel/kpatch/kpatch-0.9.7.ebuild b/sys-kernel/kpatch/kpatch-0.9.7.ebuild index d3729ed70f9a..f0549cb1c8fb 100644 --- a/sys-kernel/kpatch/kpatch-0.9.7.ebuild +++ b/sys-kernel/kpatch/kpatch-0.9.7.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 @@ -30,7 +30,7 @@ RDEPEND=" DEPEND=" ${RDEPEND} dev-libs/elfutils - sys-devel/bison + app-alternatives/yacc test? ( || ( dev-util/shellcheck-bin dev-util/shellcheck ) ) " diff --git a/sys-kernel/kpatch/kpatch-0.9.8.ebuild b/sys-kernel/kpatch/kpatch-0.9.8.ebuild index 46481bc8ed5c..307e6bde1c48 100644 --- a/sys-kernel/kpatch/kpatch-0.9.8.ebuild +++ b/sys-kernel/kpatch/kpatch-0.9.8.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 @@ -30,7 +30,7 @@ RDEPEND=" DEPEND=" ${RDEPEND} dev-libs/elfutils - sys-devel/bison + app-alternatives/yacc test? ( || ( dev-util/shellcheck-bin dev-util/shellcheck ) ) " diff --git a/sys-kernel/kpatch/kpatch-.ebuild b/sys-kernel/kpatch/kpatch-.ebuild index 6f0ff7d78c9e..485ce4f3e166 100644 --- a/sys-kernel/kpatch/kpatch-.ebuild +++ b/sys-kernel/kpatch/kpatch-.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 @@ -30,7 +30,7 @@ RDEPEND=" DEPEND=" ${RDEPEND} dev-libs/elfutils - sys-devel/bison + app-alternatives/yacc test? ( || ( dev-util/shellcheck-bin dev-util/shellcheck ) ) "
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 8fd783d53907350c5498f71665caf47c257cb04a Author: Mike Pagano gentoo org> AuthorDate: Fri Jun 30 11:52:49 2023 + Commit: Mike Pagano gentoo org> CommitDate: Fri Jun 30 11:52:49 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fd783d5 sys-kernel/kpatch: Fix indentation Signed-off-by: Mike Pagano gentoo.org> sys-kernel/kpatch/metadata.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-kernel/kpatch/metadata.xml b/sys-kernel/kpatch/metadata.xml index 695f8bb3d346..fc14d1fab7f6 100644 --- a/sys-kernel/kpatch/metadata.xml +++ b/sys-kernel/kpatch/metadata.xml @@ -12,5 +12,5 @@ dynup/kpatch - +
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 02dabd667bbeaebf21e8f0c603902e1836cc9ce2 Author: Mike Pagano gentoo org> AuthorDate: Fri Jun 30 11:52:18 2023 + Commit: Mike Pagano gentoo org> CommitDate: Fri Jun 30 11:52:25 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02dabd66 sys-kernel/kpatch: add github upstream metadata Signed-off-by: Mike Pagano gentoo.org> sys-kernel/kpatch/metadata.xml | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys-kernel/kpatch/metadata.xml b/sys-kernel/kpatch/metadata.xml index 0001cc5a260f..695f8bb3d346 100644 --- a/sys-kernel/kpatch/metadata.xml +++ b/sys-kernel/kpatch/metadata.xml @@ -4,10 +4,13 @@ ali...@gentoo.org - + Enable tools which convert a source diff patch to a patch module. Enable a command-line tool which allows a user to manage a collection of patch modules. Enable a kernel module (.ko file) which provides an interface for the patch modules to register new functions for replacement. Enable contrib kpatch services files. - + + + dynup/kpatch +
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 59355b434807baf49f02cf23b5c49ec90b8b3383 Author: Mike Pagano gentoo org> AuthorDate: Fri Jun 30 11:48:51 2023 + Commit: Mike Pagano gentoo org> CommitDate: Fri Jun 30 11:48:51 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59355b43 sys-kernel/kpatch: Call linux-mod-r1_pkg_setup before postinst Closes: https://bugs.gentoo.org/909384 Signed-off-by: Mike Pagano gentoo.org> sys-kernel/kpatch/kpatch-0.9.8.ebuild | 1 + 1 file changed, 1 insertion(+) diff --git a/sys-kernel/kpatch/kpatch-0.9.8.ebuild b/sys-kernel/kpatch/kpatch-0.9.8.ebuild index 830df5138431..46481bc8ed5c 100644 --- a/sys-kernel/kpatch/kpatch-0.9.8.ebuild +++ b/sys-kernel/kpatch/kpatch-0.9.8.ebuild @@ -63,6 +63,7 @@ pkg_setup() { check_extra_config fi + linux-mod-r1_pkg_setup } src_prepare() {
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 0615eeade5efb8c111f6aa25ce83ac04d4dcde8f Author: Mike Pagano gentoo org> AuthorDate: Thu Jun 29 16:14:09 2023 + Commit: Mike Pagano gentoo org> CommitDate: Thu Jun 29 16:14:09 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0615eead sys-kernel/kpatch: Migrate to linux-mod-r1 Signed-off-by: Mike Pagano gentoo.org> sys-kernel/kpatch/kpatch-.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-kernel/kpatch/kpatch-.ebuild b/sys-kernel/kpatch/kpatch-.ebuild index bf640f01cef4..6f0ff7d78c9e 100644 --- a/sys-kernel/kpatch/kpatch-.ebuild +++ b/sys-kernel/kpatch/kpatch-.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic linux-mod +inherit flag-o-matic linux-mod-r1 if [[ "${PV}" == "" ]]; then inherit git-r3
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 094dc1044179200943368bac692a9b8f03487dfc Author: Sam James gentoo org> AuthorDate: Tue Jun 27 03:14:21 2023 + Commit: Sam James gentoo org> CommitDate: Tue Jun 27 03:25:50 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=094dc104 sys-kernel/kpatch: allow shellcheck as well as shellcheck-bin Signed-off-by: Sam James gentoo.org> sys-kernel/kpatch/kpatch-0.9.7.ebuild | 4 ++-- sys-kernel/kpatch/kpatch-0.9.8.ebuild | 2 +- sys-kernel/kpatch/kpatch-.ebuild | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys-kernel/kpatch/kpatch-0.9.7.ebuild b/sys-kernel/kpatch/kpatch-0.9.7.ebuild index c900d328d08d..d3729ed70f9a 100644 --- a/sys-kernel/kpatch/kpatch-0.9.7.ebuild +++ b/sys-kernel/kpatch/kpatch-0.9.7.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -31,7 +31,7 @@ DEPEND=" ${RDEPEND} dev-libs/elfutils sys-devel/bison - test? ( dev-util/shellcheck-bin ) + test? ( || ( dev-util/shellcheck-bin dev-util/shellcheck ) ) " PATCHES=( diff --git a/sys-kernel/kpatch/kpatch-0.9.8.ebuild b/sys-kernel/kpatch/kpatch-0.9.8.ebuild index a4c2d6a25317..830df5138431 100644 --- a/sys-kernel/kpatch/kpatch-0.9.8.ebuild +++ b/sys-kernel/kpatch/kpatch-0.9.8.ebuild @@ -31,7 +31,7 @@ DEPEND=" ${RDEPEND} dev-libs/elfutils sys-devel/bison - test? ( dev-util/shellcheck-bin ) + test? ( || ( dev-util/shellcheck-bin dev-util/shellcheck ) ) " PATCHES=( diff --git a/sys-kernel/kpatch/kpatch-.ebuild b/sys-kernel/kpatch/kpatch-.ebuild index f75259ae7a68..bf640f01cef4 100644 --- a/sys-kernel/kpatch/kpatch-.ebuild +++ b/sys-kernel/kpatch/kpatch-.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -31,7 +31,7 @@ DEPEND=" ${RDEPEND} dev-libs/elfutils sys-devel/bison - test? ( dev-util/shellcheck-bin ) + test? ( || ( dev-util/shellcheck-bin dev-util/shellcheck ) ) " pkg_setup() {
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 22a253c58f533153e5c0af4bd49d834d0c3e95f1 Author: Alice Ferrazzi gentoo org> AuthorDate: Tue Jun 27 03:08:59 2023 + Commit: Alice Ferrazzi gentoo org> CommitDate: Tue Jun 27 03:08:59 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22a253c5 sys-kernel/kpatch: update to linux-mod-r1 Signed-off-by: Alice Ferrazzi gentoo.org> sys-kernel/kpatch/kpatch-0.9.8.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-kernel/kpatch/kpatch-0.9.8.ebuild b/sys-kernel/kpatch/kpatch-0.9.8.ebuild index a4988affe34f..a4c2d6a25317 100644 --- a/sys-kernel/kpatch/kpatch-0.9.8.ebuild +++ b/sys-kernel/kpatch/kpatch-0.9.8.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic linux-mod +inherit flag-o-matic linux-mod-r1 if [[ "${PV}" == "" ]]; then inherit git-r3
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 8c59e41530c5f2cd6a85a89d22f545d26d9c62a5 Author: Alice Ferrazzi gentoo org> AuthorDate: Tue Jun 27 03:02:55 2023 + Commit: Alice Ferrazzi gentoo org> CommitDate: Tue Jun 27 03:05:36 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c59e415 sys-kernel/kpatch: add 0.9.8 Signed-off-by: Alice Ferrazzi gentoo.org> sys-kernel/kpatch/Manifest| 1 + sys-kernel/kpatch/kpatch-0.9.8.ebuild | 100 ++ 2 files changed, 101 insertions(+) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest index 2e6869005550..f43602278dad 100644 --- a/sys-kernel/kpatch/Manifest +++ b/sys-kernel/kpatch/Manifest @@ -1 +1,2 @@ DIST kpatch-0.9.7.tar.gz 283662 BLAKE2B c57578b2e5db8582cb09b9ba2bf2040cc5a178cd6c8fdb7f14a0819c50fd71eb8576b08264d019678498e98baf2875c3bd38247ebae31a9631f0e6a17ec5941a SHA512 c876d9b1e5f6e6ab858fa6f302e78152beb3e50cedd93f3c61ab6f747e32199b0601ad4a36d426d43d0e9a37d9bf1d6bbfddccc86df4b31d5e3e6edead6cded3 +DIST kpatch-0.9.8.tar.gz 297451 BLAKE2B 7970da061d2dfb66871e6fc3ff058da97dfb6bc224c9cff3fb25df586056389e1632e891cc481b007405f4662466441f78f82032ad0803d5ac7b10f9b5c500b6 SHA512 ab3a771dfcde92a9eee768afcf7fddb6f1ad5ba9e8c7f44d579d258ce9b6ee1722869b1b70c4597ae951b0faf71413efa26a5b135f50308c996b284a9dcee5b7 diff --git a/sys-kernel/kpatch/kpatch-0.9.8.ebuild b/sys-kernel/kpatch/kpatch-0.9.8.ebuild new file mode 100644 index ..a4988affe34f --- /dev/null +++ b/sys-kernel/kpatch/kpatch-0.9.8.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic linux-mod + +if [[ "${PV}" == "" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dynup/${PN}.git; +else + SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Dynamic kernel patching for Linux" +HOMEPAGE="https://github.com/dynup/kpatch; + +LICENSE="GPL-2+" +SLOT="0" +IUSE="contrib +kpatch +kpatch-build kmod test" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-crypt/pesign + sys-libs/zlib + sys-apps/pciutils +" + +DEPEND=" + ${RDEPEND} + dev-libs/elfutils + sys-devel/bison + test? ( dev-util/shellcheck-bin ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.9.4-no-werror.patch +) + +pkg_setup() { + if use kmod; then + if kernel_is gt 3 9 0; then + if ! linux_config_exists; then + eerror "Unable to check the currently running kernel for kpatch support" + eerror "Please be sure a .config file is available in the kernel src dir" + eerror "and ensure the kernel has been built." + else + # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) + CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" + ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" + ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" + ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" + ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" + ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + fi + else + eerror + eerror "kpatch is not available for Linux kernels below 4.0.0" + eerror + die "Upgrade the kernel sources before installing kpatch." + fi + check_extra_config + fi + +} + +src_prepare() { + replace-flags '-O?' '-O1' + default +} + +src_compile() { + use kpatch-build && emake -C kpatch-build + use kpatch && emake -C kpatch + use kmod && set_arch_to_kernel && emake -C kmod + use contrib && emake -C contrib + use test && emake check +} + +src_install() { + if use kpatch-build; then + emake DESTDIR="${D}" PREFIX="/usr" install -C kpatch-build + insinto /usr/share/${PN}/patch + doins kmod/patch/kpatch{.lds.S,-macros.h,-patch.h,-patch-hook.c} + doins kmod/patch/{livepatch-patch-hook.c,Makefile,patch-hook.c} + doins kmod/core/kpatch.h + doman man/kpatch-build.1 + fi + + if use kpatch; then + emake DESTDIR="${D}" PREFIX="/usr" install -C kpatch + doman man/kpatch.1 + fi + + use kmod && set_arch_to_kernel && emake DESTDIR="${D}"
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: a0571f327d0eb2150803a558702bb6e6ac576aa3 Author: Alice Ferrazzi gentoo org> AuthorDate: Wed Oct 19 05:42:23 2022 + Commit: Alice Ferrazzi gentoo org> CommitDate: Wed Oct 19 05:42:23 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0571f32 sys-kernel/kpatch: update EAPI 7 -> 8 Signed-off-by: Alice Ferrazzi gentoo.org> sys-kernel/kpatch/kpatch-.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-kernel/kpatch/kpatch-.ebuild b/sys-kernel/kpatch/kpatch-.ebuild index 02fcece583ad..f75259ae7a68 100644 --- a/sys-kernel/kpatch/kpatch-.ebuild +++ b/sys-kernel/kpatch/kpatch-.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit flag-o-matic linux-mod
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 56e8dd8612432a16fc3e07329359d23404d9fb75 Author: Alice Ferrazzi gentoo org> AuthorDate: Wed Oct 19 05:41:34 2022 + Commit: Alice Ferrazzi gentoo org> CommitDate: Wed Oct 19 05:41:34 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56e8dd86 sys-kernel/kpatch: drop 0.9.6 Signed-off-by: Alice Ferrazzi gentoo.org> sys-kernel/kpatch/Manifest| 1 - sys-kernel/kpatch/kpatch-0.9.6.ebuild | 100 -- 2 files changed, 101 deletions(-) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest index 325519f1b607..2e6869005550 100644 --- a/sys-kernel/kpatch/Manifest +++ b/sys-kernel/kpatch/Manifest @@ -1,2 +1 @@ -DIST kpatch-0.9.6.tar.gz 260687 BLAKE2B 5c535af463f54d7be00fe987716dcb84ed17df69e4ccf5c0a6b4bde32704756c1c217ec43d9f338ce478ff6e0403e5c10f15055c56fbfa786b592b7d67427c6f SHA512 898c5704098c473187f2eab9bccd5fb3cfc31f4211492d658abcd0b7cac6d03f11a27df19a56ad17c20163803084ddf54a27defcf12b4975a8a8eb5dbad73f21 DIST kpatch-0.9.7.tar.gz 283662 BLAKE2B c57578b2e5db8582cb09b9ba2bf2040cc5a178cd6c8fdb7f14a0819c50fd71eb8576b08264d019678498e98baf2875c3bd38247ebae31a9631f0e6a17ec5941a SHA512 c876d9b1e5f6e6ab858fa6f302e78152beb3e50cedd93f3c61ab6f747e32199b0601ad4a36d426d43d0e9a37d9bf1d6bbfddccc86df4b31d5e3e6edead6cded3 diff --git a/sys-kernel/kpatch/kpatch-0.9.6.ebuild b/sys-kernel/kpatch/kpatch-0.9.6.ebuild deleted file mode 100644 index e30e6e2e09cf.. --- a/sys-kernel/kpatch/kpatch-0.9.6.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic linux-mod - -if [[ "${PV}" == "" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/dynup/${PN}.git; -else - SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi - -DESCRIPTION="Dynamic kernel patching for Linux" -HOMEPAGE="https://github.com/dynup/kpatch; - -LICENSE="GPL-2+" -SLOT="0" -IUSE="contrib +kpatch +kpatch-build kmod test" -RESTRICT="!test? ( test )" - -RDEPEND=" - app-crypt/pesign - sys-libs/zlib - sys-apps/pciutils -" - -DEPEND=" - ${RDEPEND} - dev-libs/elfutils - sys-devel/bison - test? ( dev-util/shellcheck-bin ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-0.9.4-no-werror.patch -) - -pkg_setup() { - if use kmod; then - if kernel_is gt 3 9 0; then - if ! linux_config_exists; then - eerror "Unable to check the currently running kernel for kpatch support" - eerror "Please be sure a .config file is available in the kernel src dir" - eerror "and ensure the kernel has been built." - else - # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) - CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" - ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" - ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" - ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" - ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" - ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" - fi - else - eerror - eerror "kpatch is not available for Linux kernels below 4.0.0" - eerror - die "Upgrade the kernel sources before installing kpatch." - fi - check_extra_config - fi - -} - -src_prepare() { - replace-flags '-O?' '-O1' - default -} - -src_compile() { - use kpatch-build && emake -C kpatch-build - use kpatch && emake -C kpatch - use kmod && set_arch_to_kernel && emake -C kmod - use contrib && emake -C contrib - use test && emake check -} - -src_install() { - if use kpatch-build; then - emake DESTDIR="${D}" PREFIX="/usr" install -C kpatch-build - insinto /usr/share/${PN}/patch - doins kmod/patch/kpatch{.lds.S,-macros.h,-patch.h,-patch-hook.c} - doins kmod/patch/{livepatch-patch-hook.c,Makefile,patch-hook.c} - doins kmod/core/kpatch.h - doman man/kpatch-build.1 - fi - - if use kpatch; then - emake DESTDIR="${D}" PREFIX="/usr" install -C kpatch - doman man/kpatch.1 - fi - - use kmod && set_arch_to_kernel && emake DESTDIR="${D}"
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: b9cee68287ef64ec01a45fa5723cbd12ff04d2ac Author: Alice Ferrazzi gentoo org> AuthorDate: Wed Oct 19 05:37:59 2022 + Commit: Alice Ferrazzi gentoo org> CommitDate: Wed Oct 19 05:37:59 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9cee682 sys-kernel/kpatch: drop 0.9.4 Signed-off-by: Alice Ferrazzi gentoo.org> sys-kernel/kpatch/Manifest| 1 - sys-kernel/kpatch/kpatch-0.9.4.ebuild | 100 -- 2 files changed, 101 deletions(-) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest index 921cb76ec222..325519f1b607 100644 --- a/sys-kernel/kpatch/Manifest +++ b/sys-kernel/kpatch/Manifest @@ -1,3 +1,2 @@ -DIST kpatch-0.9.4.tar.gz 257885 BLAKE2B 3c84dd120b0b512e6a55d342b5950ce5d3a81c8c1e956f167bdb25c0c89dde5d4c2bd91fad687ab9eec4d6f965c21ff647f330f1fbcbfe560ca1f3cd37c6ac54 SHA512 647509fb9772b7564c0533ea043a15a66e29d413e045258036e78890c1d9cb072622bf458dda9bd4a87fe0855522c9b6ec3761f9bb4ab7e08157a179abfbaa62 DIST kpatch-0.9.6.tar.gz 260687 BLAKE2B 5c535af463f54d7be00fe987716dcb84ed17df69e4ccf5c0a6b4bde32704756c1c217ec43d9f338ce478ff6e0403e5c10f15055c56fbfa786b592b7d67427c6f SHA512 898c5704098c473187f2eab9bccd5fb3cfc31f4211492d658abcd0b7cac6d03f11a27df19a56ad17c20163803084ddf54a27defcf12b4975a8a8eb5dbad73f21 DIST kpatch-0.9.7.tar.gz 283662 BLAKE2B c57578b2e5db8582cb09b9ba2bf2040cc5a178cd6c8fdb7f14a0819c50fd71eb8576b08264d019678498e98baf2875c3bd38247ebae31a9631f0e6a17ec5941a SHA512 c876d9b1e5f6e6ab858fa6f302e78152beb3e50cedd93f3c61ab6f747e32199b0601ad4a36d426d43d0e9a37d9bf1d6bbfddccc86df4b31d5e3e6edead6cded3 diff --git a/sys-kernel/kpatch/kpatch-0.9.4.ebuild b/sys-kernel/kpatch/kpatch-0.9.4.ebuild deleted file mode 100644 index e30e6e2e09cf.. --- a/sys-kernel/kpatch/kpatch-0.9.4.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic linux-mod - -if [[ "${PV}" == "" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/dynup/${PN}.git; -else - SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi - -DESCRIPTION="Dynamic kernel patching for Linux" -HOMEPAGE="https://github.com/dynup/kpatch; - -LICENSE="GPL-2+" -SLOT="0" -IUSE="contrib +kpatch +kpatch-build kmod test" -RESTRICT="!test? ( test )" - -RDEPEND=" - app-crypt/pesign - sys-libs/zlib - sys-apps/pciutils -" - -DEPEND=" - ${RDEPEND} - dev-libs/elfutils - sys-devel/bison - test? ( dev-util/shellcheck-bin ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-0.9.4-no-werror.patch -) - -pkg_setup() { - if use kmod; then - if kernel_is gt 3 9 0; then - if ! linux_config_exists; then - eerror "Unable to check the currently running kernel for kpatch support" - eerror "Please be sure a .config file is available in the kernel src dir" - eerror "and ensure the kernel has been built." - else - # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) - CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" - ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" - ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" - ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" - ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" - ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" - fi - else - eerror - eerror "kpatch is not available for Linux kernels below 4.0.0" - eerror - die "Upgrade the kernel sources before installing kpatch." - fi - check_extra_config - fi - -} - -src_prepare() { - replace-flags '-O?' '-O1' - default -} - -src_compile() { - use kpatch-build && emake -C kpatch-build - use kpatch && emake -C kpatch - use kmod && set_arch_to_kernel && emake -C kmod - use contrib && emake -C contrib - use test && emake check -} - -src_install() { - if use kpatch-build; then - emake DESTDIR="${D}" PREFIX="/usr" install -C kpatch-build - insinto /usr/share/${PN}/patch - doins kmod/patch/kpatch{.lds.S,-macros.h,-patch.h,-patch-hook.c} - doins
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: c85fee7d87abf5b11e4a52ae2f437556091b2471 Author: Alice Ferrazzi gentoo org> AuthorDate: Wed Oct 19 05:36:40 2022 + Commit: Alice Ferrazzi gentoo org> CommitDate: Wed Oct 19 05:36:40 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c85fee7d sys-kernel/kpatch: add 0.9.7 Signed-off-by: Alice Ferrazzi gentoo.org> sys-kernel/kpatch/Manifest| 1 + sys-kernel/kpatch/kpatch-0.9.7.ebuild | 100 ++ 2 files changed, 101 insertions(+) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest index ba8ec801896f..921cb76ec222 100644 --- a/sys-kernel/kpatch/Manifest +++ b/sys-kernel/kpatch/Manifest @@ -1,2 +1,3 @@ DIST kpatch-0.9.4.tar.gz 257885 BLAKE2B 3c84dd120b0b512e6a55d342b5950ce5d3a81c8c1e956f167bdb25c0c89dde5d4c2bd91fad687ab9eec4d6f965c21ff647f330f1fbcbfe560ca1f3cd37c6ac54 SHA512 647509fb9772b7564c0533ea043a15a66e29d413e045258036e78890c1d9cb072622bf458dda9bd4a87fe0855522c9b6ec3761f9bb4ab7e08157a179abfbaa62 DIST kpatch-0.9.6.tar.gz 260687 BLAKE2B 5c535af463f54d7be00fe987716dcb84ed17df69e4ccf5c0a6b4bde32704756c1c217ec43d9f338ce478ff6e0403e5c10f15055c56fbfa786b592b7d67427c6f SHA512 898c5704098c473187f2eab9bccd5fb3cfc31f4211492d658abcd0b7cac6d03f11a27df19a56ad17c20163803084ddf54a27defcf12b4975a8a8eb5dbad73f21 +DIST kpatch-0.9.7.tar.gz 283662 BLAKE2B c57578b2e5db8582cb09b9ba2bf2040cc5a178cd6c8fdb7f14a0819c50fd71eb8576b08264d019678498e98baf2875c3bd38247ebae31a9631f0e6a17ec5941a SHA512 c876d9b1e5f6e6ab858fa6f302e78152beb3e50cedd93f3c61ab6f747e32199b0601ad4a36d426d43d0e9a37d9bf1d6bbfddccc86df4b31d5e3e6edead6cded3 diff --git a/sys-kernel/kpatch/kpatch-0.9.7.ebuild b/sys-kernel/kpatch/kpatch-0.9.7.ebuild new file mode 100644 index ..c900d328d08d --- /dev/null +++ b/sys-kernel/kpatch/kpatch-0.9.7.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic linux-mod + +if [[ "${PV}" == "" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dynup/${PN}.git; +else + SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Dynamic kernel patching for Linux" +HOMEPAGE="https://github.com/dynup/kpatch; + +LICENSE="GPL-2+" +SLOT="0" +IUSE="contrib +kpatch +kpatch-build kmod test" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-crypt/pesign + sys-libs/zlib + sys-apps/pciutils +" + +DEPEND=" + ${RDEPEND} + dev-libs/elfutils + sys-devel/bison + test? ( dev-util/shellcheck-bin ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.9.4-no-werror.patch +) + +pkg_setup() { + if use kmod; then + if kernel_is gt 3 9 0; then + if ! linux_config_exists; then + eerror "Unable to check the currently running kernel for kpatch support" + eerror "Please be sure a .config file is available in the kernel src dir" + eerror "and ensure the kernel has been built." + else + # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) + CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" + ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" + ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" + ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" + ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" + ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + fi + else + eerror + eerror "kpatch is not available for Linux kernels below 4.0.0" + eerror + die "Upgrade the kernel sources before installing kpatch." + fi + check_extra_config + fi + +} + +src_prepare() { + replace-flags '-O?' '-O1' + default +} + +src_compile() { + use kpatch-build && emake -C kpatch-build + use kpatch && emake -C kpatch + use kmod && set_arch_to_kernel && emake -C kmod + use contrib && emake -C contrib + use test && emake check +} + +src_install() { + if use kpatch-build; then + emake DESTDIR="${D}" PREFIX="/usr" install -C kpatch-build + insinto /usr/share/${PN}/patch + doins kmod/patch/kpatch{.lds.S,-macros.h,-patch.h,-patch-hook.c} + doins
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/files/
commit: 12e801c69c56f15e7d4d73030173d37a465897ff Author: Michael Mair-Keimberger levelnine at> AuthorDate: Thu Jun 16 15:22:37 2022 + Commit: Sam James gentoo org> CommitDate: Thu Jun 16 16:34:53 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12e801c6 sys-kernel/kpatch: remove unused patch Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Michael Mair-Keimberger levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/25924 Signed-off-by: Sam James gentoo.org> .../kpatch-0.7.1-disable-dwarf-compression.patch | 32 -- 1 file changed, 32 deletions(-) diff --git a/sys-kernel/kpatch/files/kpatch-0.7.1-disable-dwarf-compression.patch b/sys-kernel/kpatch/files/kpatch-0.7.1-disable-dwarf-compression.patch deleted file mode 100644 index 85f2862df54a.. --- a/sys-kernel/kpatch/files/kpatch-0.7.1-disable-dwarf-compression.patch +++ /dev/null @@ -1,32 +0,0 @@ -From fe6e3f51bfe17945205445904c1fc602008ac7dd Mon Sep 17 00:00:00 2001 -From: Stefan Strogin -Date: Mon, 29 Jul 2019 13:20:20 +0300 -Subject: [PATCH] create-diff-object: disable DWARF compression explicitly - -On some systems the linker produces compressed debug sections by -default. It is not supported by create-diff-object for now. - -Fixes: #877 - -Upstream-Status: Submitted [https://github.com/dynup/kpatch/pull/1011] -Signed-off-by: Stefan Strogin - kpatch-build/kpatch-build | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build -index 9ef3809..365655c 100755 a/kpatch-build/kpatch-build -+++ b/kpatch-build/kpatch-build -@@ -748,7 +748,7 @@ if [[ "$ARCH" = "ppc64le" ]]; then - ARCH_KCFLAGS="-mcmodel=large -fplugin=$PLUGINDIR/ppc64le-plugin.so" - fi - --export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections $ARCH_KCFLAGS" -+export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections -gz=none $ARCH_KCFLAGS" - - echo "Reading special section data" - find_special_section_data --- -2.22.0 -
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 3f21aa64a681157b77b924b7c0adcf6866c4a2b8 Author: Alice Ferrazzi gentoo org> AuthorDate: Wed Jun 15 17:36:18 2022 + Commit: Alice Ferrazzi gentoo org> CommitDate: Wed Jun 15 17:36:18 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f21aa64 sys-kernel/kpatch: add 0.9.6 Signed-off-by: Alice Ferrazzi gentoo.org> sys-kernel/kpatch/Manifest| 1 + sys-kernel/kpatch/kpatch-0.9.6.ebuild | 100 ++ 2 files changed, 101 insertions(+) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest index d94870be7eb9..7f0a7421083b 100644 --- a/sys-kernel/kpatch/Manifest +++ b/sys-kernel/kpatch/Manifest @@ -1,3 +1,4 @@ DIST kpatch-0.6.3.tar.gz 153100 BLAKE2B e95d1880ffc9ff6038bba98902d0f1e97c9f7f8d0f90eedc281c4bf0570217668cf7b701d038d6f06e9885ebdbb4407cc554d5175cf17eb8fd5051381f75deb3 SHA512 0d266dd837ad651d7f46047cf2c8de527d08274a885a154c53354f4b3c5679d91c766d7d42294ffe71cc548e5ee865c7555f24001882b806f2fb48825f9b0c06 DIST kpatch-0.7.1.tar.gz 181732 BLAKE2B da3ff8a6bbd31c3bdc353a3d2b75c6947b915fb309a6f19c57b31a6cbad1d82b9e1611bc2c412c5d049511e217a01719eb9a017d1fbbe7c7bbf2e5b02a381f40 SHA512 c1b149e9532dc16ee4f7578aadf3eda73b53c889a055229490a7afd1fca8e6df755c98c938353f937b81679fe8d08e065c473a6c31e588b1eb67f2de56bfddea DIST kpatch-0.9.4.tar.gz 257885 BLAKE2B 3c84dd120b0b512e6a55d342b5950ce5d3a81c8c1e956f167bdb25c0c89dde5d4c2bd91fad687ab9eec4d6f965c21ff647f330f1fbcbfe560ca1f3cd37c6ac54 SHA512 647509fb9772b7564c0533ea043a15a66e29d413e045258036e78890c1d9cb072622bf458dda9bd4a87fe0855522c9b6ec3761f9bb4ab7e08157a179abfbaa62 +DIST kpatch-0.9.6.tar.gz 260687 BLAKE2B 5c535af463f54d7be00fe987716dcb84ed17df69e4ccf5c0a6b4bde32704756c1c217ec43d9f338ce478ff6e0403e5c10f15055c56fbfa786b592b7d67427c6f SHA512 898c5704098c473187f2eab9bccd5fb3cfc31f4211492d658abcd0b7cac6d03f11a27df19a56ad17c20163803084ddf54a27defcf12b4975a8a8eb5dbad73f21 diff --git a/sys-kernel/kpatch/kpatch-0.9.6.ebuild b/sys-kernel/kpatch/kpatch-0.9.6.ebuild new file mode 100644 index ..e30e6e2e09cf --- /dev/null +++ b/sys-kernel/kpatch/kpatch-0.9.6.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic linux-mod + +if [[ "${PV}" == "" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dynup/${PN}.git; +else + SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Dynamic kernel patching for Linux" +HOMEPAGE="https://github.com/dynup/kpatch; + +LICENSE="GPL-2+" +SLOT="0" +IUSE="contrib +kpatch +kpatch-build kmod test" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-crypt/pesign + sys-libs/zlib + sys-apps/pciutils +" + +DEPEND=" + ${RDEPEND} + dev-libs/elfutils + sys-devel/bison + test? ( dev-util/shellcheck-bin ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.9.4-no-werror.patch +) + +pkg_setup() { + if use kmod; then + if kernel_is gt 3 9 0; then + if ! linux_config_exists; then + eerror "Unable to check the currently running kernel for kpatch support" + eerror "Please be sure a .config file is available in the kernel src dir" + eerror "and ensure the kernel has been built." + else + # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) + CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" + ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" + ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" + ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" + ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" + ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + fi + else + eerror + eerror "kpatch is not available for Linux kernels below 4.0.0" + eerror + die "Upgrade the kernel sources before installing kpatch." + fi + check_extra_config + fi + +} + +src_prepare() { + replace-flags '-O?' '-O1' + default +} + +src_compile() { + use kpatch-build && emake -C kpatch-build + use kpatch && emake -C kpatch + use kmod && set_arch_to_kernel && emake -C kmod + use contrib && emake -C contrib + use test && emake check +} + +src_install() { +
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 84708de9d9421f516ed308f6e1401a8f5a9eb108 Author: Alice Ferrazzi gentoo org> AuthorDate: Wed Jun 15 17:37:48 2022 + Commit: Alice Ferrazzi gentoo org> CommitDate: Wed Jun 15 17:37:48 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84708de9 sys-kernel/kpatch: drop 0.6.3-r1, 0.7.1-r1 Signed-off-by: Alice Ferrazzi gentoo.org> sys-kernel/kpatch/Manifest | 2 - sys-kernel/kpatch/kpatch-0.6.3-r1.ebuild | 85 --- sys-kernel/kpatch/kpatch-0.7.1-r1.ebuild | 98 3 files changed, 185 deletions(-) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest index 7f0a7421083b..ba8ec801896f 100644 --- a/sys-kernel/kpatch/Manifest +++ b/sys-kernel/kpatch/Manifest @@ -1,4 +1,2 @@ -DIST kpatch-0.6.3.tar.gz 153100 BLAKE2B e95d1880ffc9ff6038bba98902d0f1e97c9f7f8d0f90eedc281c4bf0570217668cf7b701d038d6f06e9885ebdbb4407cc554d5175cf17eb8fd5051381f75deb3 SHA512 0d266dd837ad651d7f46047cf2c8de527d08274a885a154c53354f4b3c5679d91c766d7d42294ffe71cc548e5ee865c7555f24001882b806f2fb48825f9b0c06 -DIST kpatch-0.7.1.tar.gz 181732 BLAKE2B da3ff8a6bbd31c3bdc353a3d2b75c6947b915fb309a6f19c57b31a6cbad1d82b9e1611bc2c412c5d049511e217a01719eb9a017d1fbbe7c7bbf2e5b02a381f40 SHA512 c1b149e9532dc16ee4f7578aadf3eda73b53c889a055229490a7afd1fca8e6df755c98c938353f937b81679fe8d08e065c473a6c31e588b1eb67f2de56bfddea DIST kpatch-0.9.4.tar.gz 257885 BLAKE2B 3c84dd120b0b512e6a55d342b5950ce5d3a81c8c1e956f167bdb25c0c89dde5d4c2bd91fad687ab9eec4d6f965c21ff647f330f1fbcbfe560ca1f3cd37c6ac54 SHA512 647509fb9772b7564c0533ea043a15a66e29d413e045258036e78890c1d9cb072622bf458dda9bd4a87fe0855522c9b6ec3761f9bb4ab7e08157a179abfbaa62 DIST kpatch-0.9.6.tar.gz 260687 BLAKE2B 5c535af463f54d7be00fe987716dcb84ed17df69e4ccf5c0a6b4bde32704756c1c217ec43d9f338ce478ff6e0403e5c10f15055c56fbfa786b592b7d67427c6f SHA512 898c5704098c473187f2eab9bccd5fb3cfc31f4211492d658abcd0b7cac6d03f11a27df19a56ad17c20163803084ddf54a27defcf12b4975a8a8eb5dbad73f21 diff --git a/sys-kernel/kpatch/kpatch-0.6.3-r1.ebuild b/sys-kernel/kpatch/kpatch-0.6.3-r1.ebuild deleted file mode 100644 index 175fecf308b0.. --- a/sys-kernel/kpatch/kpatch-0.6.3-r1.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -inherit flag-o-matic linux-mod - -if [[ "${PV}" == "" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/dynup/${PN}.git; -else - SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi - -DESCRIPTION="Dynamic kernel patching for Linux" -HOMEPAGE="https://github.com/dynup/kpatch; - -LICENSE="GPL-2+" -SLOT="0" -IUSE="+kpatch-build +kpatch kmod doc contrib test" -RESTRICT="!test? ( test )" - -RDEPEND=" - app-crypt/pesign - dev-libs/openssl:0= - sys-libs/zlib - sys-apps/pciutils -" - -DEPEND=" - ${RDEPEND} - dev-libs/elfutils - sys-devel/bison - test? ( dev-util/shellcheck-bin ) -" - -pkg_setup() { - if use kmod; then - if kernel_is gt 3 9 0; then - if ! linux_config_exists; then - eerror "Unable to check the currently running kernel for kpatch support" - eerror "Please be sure a .config file is available in the kernel src dir" - eerror "and ensure the kernel has been built." - else - # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) - CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" - ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" - ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" - ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" - ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" - ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" - fi - else - eerror - eerror "kpatch is not available for Linux kernels below 4.0.0" - eerror - die "Upgrade the kernel sources before installing kpatch." - fi - check_extra_config - fi - -} - -src_prepare() { - replace-flags '-O?' '-O1' - default -} - -src_compile() { - use kpatch-build && emake -C kpatch-build - use kpatch && emake -C kpatch - use kmod && set_arch_to_kernel && emake -C kmod - use doc && emake -C doc -
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/files/, sys-kernel/kpatch/
commit: 7e27203cbdad242722e9bf58362068246a091fab Author: Sam James gentoo org> AuthorDate: Sat Jun 11 05:53:23 2022 + Commit: Sam James gentoo org> CommitDate: Sat Jun 11 05:53:23 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e27203c sys-kernel/kpatch: drop Werror Closes: https://bugs.gentoo.org/776925 Signed-off-by: Sam James gentoo.org> sys-kernel/kpatch/files/kpatch-0.9.4-no-werror.patch | 12 sys-kernel/kpatch/kpatch-0.9.4.ebuild| 4 2 files changed, 16 insertions(+) diff --git a/sys-kernel/kpatch/files/kpatch-0.9.4-no-werror.patch b/sys-kernel/kpatch/files/kpatch-0.9.4-no-werror.patch new file mode 100644 index ..0667fdd91ca1 --- /dev/null +++ b/sys-kernel/kpatch/files/kpatch-0.9.4-no-werror.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/776925 +--- a/kpatch-build/Makefile b/kpatch-build/Makefile +@@ -1,7 +1,7 @@ + include ../Makefile.inc + + CFLAGS += -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare \ +--Wconversion -Wno-sign-conversion -g -Werror ++-Wconversion -Wno-sign-conversion -g + LDLIBS = -lelf + + TARGETS = create-diff-object create-klp-module create-kpatch-module diff --git a/sys-kernel/kpatch/kpatch-0.9.4.ebuild b/sys-kernel/kpatch/kpatch-0.9.4.ebuild index 5cdcff76d491..e30e6e2e09cf 100644 --- a/sys-kernel/kpatch/kpatch-0.9.4.ebuild +++ b/sys-kernel/kpatch/kpatch-0.9.4.ebuild @@ -34,6 +34,10 @@ DEPEND=" test? ( dev-util/shellcheck-bin ) " +PATCHES=( + "${FILESDIR}"/${PN}-0.9.4-no-werror.patch +) + pkg_setup() { if use kmod; then if kernel_is gt 3 9 0; then
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: ab27a3ccd67563d0688be721abb7c0279833fb7c Author: Alice Ferrazzi gentoo org> AuthorDate: Fri Feb 4 17:23:15 2022 + Commit: Alice Ferrazzi gentoo org> CommitDate: Fri Feb 4 17:26:04 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab27a3cc sys-kernel/kpatch: bump to 0.9.4 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alice Ferrazzi gentoo.org> sys-kernel/kpatch/Manifest| 1 + sys-kernel/kpatch/kpatch-0.9.4.ebuild | 96 +++ 2 files changed, 97 insertions(+) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest index 575e72f0cd17..d94870be7eb9 100644 --- a/sys-kernel/kpatch/Manifest +++ b/sys-kernel/kpatch/Manifest @@ -1,2 +1,3 @@ DIST kpatch-0.6.3.tar.gz 153100 BLAKE2B e95d1880ffc9ff6038bba98902d0f1e97c9f7f8d0f90eedc281c4bf0570217668cf7b701d038d6f06e9885ebdbb4407cc554d5175cf17eb8fd5051381f75deb3 SHA512 0d266dd837ad651d7f46047cf2c8de527d08274a885a154c53354f4b3c5679d91c766d7d42294ffe71cc548e5ee865c7555f24001882b806f2fb48825f9b0c06 DIST kpatch-0.7.1.tar.gz 181732 BLAKE2B da3ff8a6bbd31c3bdc353a3d2b75c6947b915fb309a6f19c57b31a6cbad1d82b9e1611bc2c412c5d049511e217a01719eb9a017d1fbbe7c7bbf2e5b02a381f40 SHA512 c1b149e9532dc16ee4f7578aadf3eda73b53c889a055229490a7afd1fca8e6df755c98c938353f937b81679fe8d08e065c473a6c31e588b1eb67f2de56bfddea +DIST kpatch-0.9.4.tar.gz 257885 BLAKE2B 3c84dd120b0b512e6a55d342b5950ce5d3a81c8c1e956f167bdb25c0c89dde5d4c2bd91fad687ab9eec4d6f965c21ff647f330f1fbcbfe560ca1f3cd37c6ac54 SHA512 647509fb9772b7564c0533ea043a15a66e29d413e045258036e78890c1d9cb072622bf458dda9bd4a87fe0855522c9b6ec3761f9bb4ab7e08157a179abfbaa62 diff --git a/sys-kernel/kpatch/kpatch-0.9.4.ebuild b/sys-kernel/kpatch/kpatch-0.9.4.ebuild new file mode 100644 index ..5cdcff76d491 --- /dev/null +++ b/sys-kernel/kpatch/kpatch-0.9.4.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic linux-mod + +if [[ "${PV}" == "" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dynup/${PN}.git; +else + SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Dynamic kernel patching for Linux" +HOMEPAGE="https://github.com/dynup/kpatch; + +LICENSE="GPL-2+" +SLOT="0" +IUSE="contrib +kpatch +kpatch-build kmod test" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-crypt/pesign + sys-libs/zlib + sys-apps/pciutils +" + +DEPEND=" + ${RDEPEND} + dev-libs/elfutils + sys-devel/bison + test? ( dev-util/shellcheck-bin ) +" + +pkg_setup() { + if use kmod; then + if kernel_is gt 3 9 0; then + if ! linux_config_exists; then + eerror "Unable to check the currently running kernel for kpatch support" + eerror "Please be sure a .config file is available in the kernel src dir" + eerror "and ensure the kernel has been built." + else + # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) + CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" + ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" + ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" + ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" + ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" + ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + fi + else + eerror + eerror "kpatch is not available for Linux kernels below 4.0.0" + eerror + die "Upgrade the kernel sources before installing kpatch." + fi + check_extra_config + fi + +} + +src_prepare() { + replace-flags '-O?' '-O1' + default +} + +src_compile() { + use kpatch-build && emake -C kpatch-build + use kpatch && emake -C kpatch + use kmod && set_arch_to_kernel && emake -C kmod + use contrib && emake -C contrib + use test && emake check +} + +src_install() { + if use kpatch-build; then + emake DESTDIR="${D}" PREFIX="/usr" install -C kpatch-build + insinto /usr/share/${PN}/patch + doins kmod/patch/kpatch{.lds.S,-macros.h,-patch.h,-patch-hook.c} + doins kmod/patch/{livepatch-patch-hook.c,Makefile,patch-hook.c} +
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 720a5ada5f2822cd96736849ffda8a8e631e14d8 Author: Mikle Kolyada gentoo org> AuthorDate: Fri Aug 7 10:50:14 2020 + Commit: Mikle Kolyada gentoo org> CommitDate: Sat Aug 8 12:18:13 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=720a5ada sys-kernel/kpatch: migrate to sys-apps/kmod Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Mikle Kolyada gentoo.org> sys-kernel/kpatch/{kpatch-0.6.3.ebuild => kpatch-0.6.3-r1.ebuild} | 2 +- sys-kernel/kpatch/{kpatch-0.7.1.ebuild => kpatch-0.7.1-r1.ebuild} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-kernel/kpatch/kpatch-0.6.3.ebuild b/sys-kernel/kpatch/kpatch-0.6.3-r1.ebuild similarity index 98% rename from sys-kernel/kpatch/kpatch-0.6.3.ebuild rename to sys-kernel/kpatch/kpatch-0.6.3-r1.ebuild index 71d6d95fbaf..175fecf308b 100644 --- a/sys-kernel/kpatch/kpatch-0.6.3.ebuild +++ b/sys-kernel/kpatch/kpatch-0.6.3-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="7" diff --git a/sys-kernel/kpatch/kpatch-0.7.1.ebuild b/sys-kernel/kpatch/kpatch-0.7.1-r1.ebuild similarity index 98% rename from sys-kernel/kpatch/kpatch-0.7.1.ebuild rename to sys-kernel/kpatch/kpatch-0.7.1-r1.ebuild index 38937e73ba0..2a2b069afca 100644 --- a/sys-kernel/kpatch/kpatch-0.7.1.ebuild +++ b/sys-kernel/kpatch/kpatch-0.7.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/, sys-kernel/kpatch/files/
commit: 6bc01acb15af728e31eb158c23e1e03a0ba31c85 Author: Stefan Strogin gentoo org> AuthorDate: Tue Jul 30 01:26:50 2019 + Commit: Stefan Strogin gentoo org> CommitDate: Tue Jul 30 01:31:38 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bc01acb sys-kernel/kpatch: add patch to disable DWARF compression Fixes https://github.com/dynup/kpatch/issues/877 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Stefan Strogin gentoo.org> .../kpatch-0.7.1-disable-dwarf-compression.patch | 32 ++ sys-kernel/kpatch/kpatch-0.7.1.ebuild | 2 ++ 2 files changed, 34 insertions(+) diff --git a/sys-kernel/kpatch/files/kpatch-0.7.1-disable-dwarf-compression.patch b/sys-kernel/kpatch/files/kpatch-0.7.1-disable-dwarf-compression.patch new file mode 100644 index 000..85f2862df54 --- /dev/null +++ b/sys-kernel/kpatch/files/kpatch-0.7.1-disable-dwarf-compression.patch @@ -0,0 +1,32 @@ +From fe6e3f51bfe17945205445904c1fc602008ac7dd Mon Sep 17 00:00:00 2001 +From: Stefan Strogin +Date: Mon, 29 Jul 2019 13:20:20 +0300 +Subject: [PATCH] create-diff-object: disable DWARF compression explicitly + +On some systems the linker produces compressed debug sections by +default. It is not supported by create-diff-object for now. + +Fixes: #877 + +Upstream-Status: Submitted [https://github.com/dynup/kpatch/pull/1011] +Signed-off-by: Stefan Strogin +--- + kpatch-build/kpatch-build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build +index 9ef3809..365655c 100755 +--- a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build +@@ -748,7 +748,7 @@ if [[ "$ARCH" = "ppc64le" ]]; then + ARCH_KCFLAGS="-mcmodel=large -fplugin=$PLUGINDIR/ppc64le-plugin.so" + fi + +-export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections $ARCH_KCFLAGS" ++export KCFLAGS="-I$DATADIR/patch -ffunction-sections -fdata-sections -gz=none $ARCH_KCFLAGS" + + echo "Reading special section data" + find_special_section_data +-- +2.22.0 + diff --git a/sys-kernel/kpatch/kpatch-0.7.1.ebuild b/sys-kernel/kpatch/kpatch-0.7.1.ebuild index dd2b30d0b35..9aa8f4e44e1 100644 --- a/sys-kernel/kpatch/kpatch-0.7.1.ebuild +++ b/sys-kernel/kpatch/kpatch-0.7.1.ebuild @@ -33,6 +33,8 @@ DEPEND=" test? ( dev-util/shellcheck-bin ) " +PATCHES=( "${FILESDIR}"/${P}-disable-dwarf-compression.patch ) + pkg_setup() { if use kmod; then if kernel_is gt 3 9 0; then
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 6ec6e05b6664d8b236da50c2eaec13c4944df993 Author: Stefan Strogin gentoo org> AuthorDate: Mon Jul 29 00:54:39 2019 + Commit: Stefan Strogin gentoo org> CommitDate: Tue Jul 30 01:11:57 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ec6e05b sys-kernel/kpatch: bump version to 0.7.1 - Install files necessary for kpatch-build into /usr/share/${PN}/patch/ - Remove USE=doc as there is only one not very big document in doc/ and nothing to compile. - Install man pages. - Remove redundant dependency on openssl. Closes: https://bugs.gentoo.org/690912 Closes: https://bugs.gentoo.org/690914 Closes: https://github.com/gentoo/gentoo/pull/12566 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Stefan Strogin gentoo.org> sys-kernel/kpatch/Manifest| 1 + sys-kernel/kpatch/kpatch-0.7.1.ebuild | 95 +++ 2 files changed, 96 insertions(+) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest index 64fabeba921..575e72f0cd1 100644 --- a/sys-kernel/kpatch/Manifest +++ b/sys-kernel/kpatch/Manifest @@ -1 +1,2 @@ DIST kpatch-0.6.3.tar.gz 153100 BLAKE2B e95d1880ffc9ff6038bba98902d0f1e97c9f7f8d0f90eedc281c4bf0570217668cf7b701d038d6f06e9885ebdbb4407cc554d5175cf17eb8fd5051381f75deb3 SHA512 0d266dd837ad651d7f46047cf2c8de527d08274a885a154c53354f4b3c5679d91c766d7d42294ffe71cc548e5ee865c7555f24001882b806f2fb48825f9b0c06 +DIST kpatch-0.7.1.tar.gz 181732 BLAKE2B da3ff8a6bbd31c3bdc353a3d2b75c6947b915fb309a6f19c57b31a6cbad1d82b9e1611bc2c412c5d049511e217a01719eb9a017d1fbbe7c7bbf2e5b02a381f40 SHA512 c1b149e9532dc16ee4f7578aadf3eda73b53c889a055229490a7afd1fca8e6df755c98c938353f937b81679fe8d08e065c473a6c31e588b1eb67f2de56bfddea diff --git a/sys-kernel/kpatch/kpatch-0.7.1.ebuild b/sys-kernel/kpatch/kpatch-0.7.1.ebuild new file mode 100644 index 000..dd2b30d0b35 --- /dev/null +++ b/sys-kernel/kpatch/kpatch-0.7.1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic linux-mod + +if [[ "${PV}" == "" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dynup/${PN}.git; +else + SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Dynamic kernel patching for Linux" +HOMEPAGE="https://github.com/dynup/kpatch; + +LICENSE="GPL-2+" +SLOT="0" +IUSE="contrib +kpatch +kpatch-build kmod test" + +RDEPEND=" + app-crypt/pesign + sys-libs/zlib + sys-apps/pciutils +" + +DEPEND=" + ${RDEPEND} + dev-libs/elfutils + sys-devel/bison + test? ( dev-util/shellcheck-bin ) +" + +pkg_setup() { + if use kmod; then + if kernel_is gt 3 9 0; then + if ! linux_config_exists; then + eerror "Unable to check the currently running kernel for kpatch support" + eerror "Please be sure a .config file is available in the kernel src dir" + eerror "and ensure the kernel has been built." + else + # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) + CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" + ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" + ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" + ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" + ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" + ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + fi + else + eerror + eerror "kpatch is not available for Linux kernels below 4.0.0" + eerror + die "Upgrade the kernel sources before installing kpatch." + fi + check_extra_config + fi + +} + +src_prepare() { + replace-flags '-O?' '-O1' + default +} + +src_compile() { + use kpatch-build && emake -C kpatch-build + use kpatch && emake -C kpatch + use kmod && set_arch_to_kernel && emake -C kmod + use contrib && emake -C contrib + use test && emake check +} + +src_install() { + if use kpatch-build; then + emake DESTDIR="${D}" PREFIX="/usr" install -C kpatch-build + insinto /usr/share/${PN}/patch + doins kmod/patch/kpatch{.lds.S,-macros.h,-patch.h,-patch-hook.c} + doins
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: d1ad77934e0f1cea04a344365affb0b644a1251b Author: Stefan Strogin gentoo org> AuthorDate: Mon Jul 29 02:28:03 2019 + Commit: Stefan Strogin gentoo org> CommitDate: Tue Jul 30 01:11:58 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1ad7793 sys-kernel/kpatch: sync live ebuild Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Stefan Strogin gentoo.org> sys-kernel/kpatch/kpatch-.ebuild | 78 ++-- 1 file changed, 48 insertions(+), 30 deletions(-) diff --git a/sys-kernel/kpatch/kpatch-.ebuild b/sys-kernel/kpatch/kpatch-.ebuild index 0d6aa6e706a..dd2b30d0b35 100644 --- a/sys-kernel/kpatch/kpatch-.ebuild +++ b/sys-kernel/kpatch/kpatch-.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="6" +EAPI=7 -inherit linux-info linux-mod flag-o-matic +inherit flag-o-matic linux-mod if [[ "${PV}" == "" ]]; then inherit git-r3 @@ -18,45 +18,46 @@ HOMEPAGE="https://github.com/dynup/kpatch; LICENSE="GPL-2+" SLOT="0" -IUSE="examples +modules test" +IUSE="contrib +kpatch +kpatch-build kmod test" RDEPEND=" app-crypt/pesign - dev-libs/openssl:0= sys-libs/zlib sys-apps/pciutils " DEPEND=" ${RDEPEND} - test? ( dev-util/shellcheck ) dev-libs/elfutils sys-devel/bison + test? ( dev-util/shellcheck-bin ) " -pkg_pretend() { - if kernel_is gt 3 9 0; then - if ! linux_config_exists; then - eerror "Unable to check the currently running kernel for kpatch support" - eerror "Please be sure a .config file is available in the kernel src dir" - eerror "and ensure the kernel has been built." +pkg_setup() { + if use kmod; then + if kernel_is gt 3 9 0; then + if ! linux_config_exists; then + eerror "Unable to check the currently running kernel for kpatch support" + eerror "Please be sure a .config file is available in the kernel src dir" + eerror "and ensure the kernel has been built." + else + # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) + CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" + ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" + ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" + ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" + ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" + ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + fi else - # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) - CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" - ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" - ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" - ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" - ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" - ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + eerror + eerror "kpatch is not available for Linux kernels below 4.0.0" + eerror + die "Upgrade the kernel sources before installing kpatch." fi - else - eerror - eerror "kpatch is not available for Linux kernels below 4.0.0" - eerror - die "Upgrade the kernel sources before installing kpatch." + check_extra_config fi - check_extra_config } src_prepare() { @@ -65,13 +66,30 @@ src_prepare() { } src_compile() { - set_arch_to_kernel - emake all + use kpatch-build && emake -C kpatch-build + use kpatch && emake -C kpatch + use kmod && set_arch_to_kernel && emake -C kmod + use contrib && emake -C contrib + use test && emake check } src_install() { - set_arch_to_kernel - emake DESTDIR="${D}" PREFIX="/usr" install + if use kpatch-build; then + emake
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 105c1a87ced5445831662b1f9992dcee2e92d2ed Author: Alice Ferrazzi gentoo org> AuthorDate: Sun Jun 2 18:46:39 2019 + Commit: Alice Ferrazzi gentoo org> CommitDate: Sun Jun 2 18:47:16 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=105c1a87 sys-kernel/kpatch: remove old Package-Manager: Portage-2.3.67, Repoman-2.3.13 Signed-off-by: Alice Ferrazzi gentoo.org> sys-kernel/kpatch/Manifest | 3 -- sys-kernel/kpatch/kpatch-0.4.0-r1.ebuild | 76 sys-kernel/kpatch/kpatch-0.6.0.ebuild| 76 sys-kernel/kpatch/kpatch-0.6.2.ebuild| 76 4 files changed, 231 deletions(-) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest index 750a99bcfda..64fabeba921 100644 --- a/sys-kernel/kpatch/Manifest +++ b/sys-kernel/kpatch/Manifest @@ -1,4 +1 @@ -DIST kpatch-0.4.0.tar.gz 124433 BLAKE2B 6ea18c4d590426f9db95e16d555307e264d1b7db362d421f72eaaf897703f7883c44cc49bd98b48d8789453962259d0b0e301aca325c94be6c21061d0621a9cf SHA512 0bbb49a06d02e9eb026be458eb904cf50f50461a67f16835a306bb3a4a57ef88b86ecf6bca6dfc91b921ba87b4c8b9d532e2a77e987e7c71583b8cb53520a1d7 -DIST kpatch-0.6.0.tar.gz 153337 BLAKE2B 5c132b885f9f8bc3c7b514997a0b8b77280d0387431dd3eb73f45da4678b281961a03452b0ec590b37fc9568192135528a9a42bd5005530bd8b9175fe652f7b1 SHA512 7ac27639773a851ad6689743100ff973b4e3a30efc386bdf413c8f6167068d93c2d18820d87e1f1e96405fa3545dcb80a72db0011f07218a692f91f1f3c3655a -DIST kpatch-0.6.2.tar.gz 148110 BLAKE2B 9903c9423ee6268a0d87c55336e418a964474a3d7f35dd1ad613be7645a932cd09991652cd4a3af0b08a686f39e7c6c7f4b12d80c20c7ecd663aa703821503f8 SHA512 65098195330a2dbea4f8648c87c41f3a7751ffcb83b4e4c5f0a1146f91a8ae8c305d8f111a69304b31f1f12dd26da788af31a5477899bda098b7391cd0a32eca DIST kpatch-0.6.3.tar.gz 153100 BLAKE2B e95d1880ffc9ff6038bba98902d0f1e97c9f7f8d0f90eedc281c4bf0570217668cf7b701d038d6f06e9885ebdbb4407cc554d5175cf17eb8fd5051381f75deb3 SHA512 0d266dd837ad651d7f46047cf2c8de527d08274a885a154c53354f4b3c5679d91c766d7d42294ffe71cc548e5ee865c7555f24001882b806f2fb48825f9b0c06 diff --git a/sys-kernel/kpatch/kpatch-0.4.0-r1.ebuild b/sys-kernel/kpatch/kpatch-0.4.0-r1.ebuild deleted file mode 100644 index 2dae0d7a524..000 --- a/sys-kernel/kpatch/kpatch-0.4.0-r1.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit linux-info linux-mod flag-o-matic - -if [[ "${PV}" == "" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/dynup/${PN}.git; -else - SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi - -DESCRIPTION="Dynamic kernel patching for Linux" -HOMEPAGE="https://github.com/dynup/kpatch; - -LICENSE="GPL-2+" -SLOT="0" -IUSE="examples +modules test" - -RDEPEND=" - app-crypt/pesign - dev-libs/openssl:0= - sys-libs/zlib - sys-apps/pciutils -" - -DEPEND=" - ${RDEPEND} - dev-libs/elfutils - sys-devel/bison -" - -pkg_pretend() { - if kernel_is gt 3 9 0; then - if ! linux_config_exists; then - eerror "Unable to check the currently running kernel for kpatch support" - eerror "Please be sure a .config file is available in the kernel src dir" - eerror "and ensure the kernel has been built." - else - # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) - CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" - ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" - ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" - ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" - ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" - ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" - fi - else - eerror - eerror "kpatch is not available for Linux kernels below 4.0.0" - eerror - die "Upgrade the kernel sources before installing kpatch." - fi - - check_extra_config -} - -src_prepare() { - replace-flags '-O?' '-O1' - default -} - -src_compile() { - set_arch_to_kernel - emake all -} - -src_install() { - set_arch_to_kernel - emake DESTDIR="${D}" PREFIX="/usr" install - - einstalldocs -} diff --git a/sys-kernel/kpatch/kpatch-0.6.0.ebuild b/sys-kernel/kpatch/kpatch-0.6.0.ebuild deleted file mode 100644 index e9cdeb7b5ac..000 ---
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 2a3a57780d75651c95f1ccab154ae42db1598767 Author: Alice Ferrazzi gentoo org> AuthorDate: Sun Jun 2 18:44:52 2019 + Commit: Alice Ferrazzi gentoo org> CommitDate: Sun Jun 2 18:45:43 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a3a5778 sys-kernel/kpatch: bump 0.6.3 Package-Manager: Portage-2.3.67, Repoman-2.3.13 Signed-off-by: Alice Ferrazzi gentoo.org> sys-kernel/kpatch/Manifest| 1 + sys-kernel/kpatch/kpatch-0.6.3.ebuild | 84 +++ sys-kernel/kpatch/metadata.xml| 6 +++ 3 files changed, 91 insertions(+) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest index c6d912899b9..750a99bcfda 100644 --- a/sys-kernel/kpatch/Manifest +++ b/sys-kernel/kpatch/Manifest @@ -1,3 +1,4 @@ DIST kpatch-0.4.0.tar.gz 124433 BLAKE2B 6ea18c4d590426f9db95e16d555307e264d1b7db362d421f72eaaf897703f7883c44cc49bd98b48d8789453962259d0b0e301aca325c94be6c21061d0621a9cf SHA512 0bbb49a06d02e9eb026be458eb904cf50f50461a67f16835a306bb3a4a57ef88b86ecf6bca6dfc91b921ba87b4c8b9d532e2a77e987e7c71583b8cb53520a1d7 DIST kpatch-0.6.0.tar.gz 153337 BLAKE2B 5c132b885f9f8bc3c7b514997a0b8b77280d0387431dd3eb73f45da4678b281961a03452b0ec590b37fc9568192135528a9a42bd5005530bd8b9175fe652f7b1 SHA512 7ac27639773a851ad6689743100ff973b4e3a30efc386bdf413c8f6167068d93c2d18820d87e1f1e96405fa3545dcb80a72db0011f07218a692f91f1f3c3655a DIST kpatch-0.6.2.tar.gz 148110 BLAKE2B 9903c9423ee6268a0d87c55336e418a964474a3d7f35dd1ad613be7645a932cd09991652cd4a3af0b08a686f39e7c6c7f4b12d80c20c7ecd663aa703821503f8 SHA512 65098195330a2dbea4f8648c87c41f3a7751ffcb83b4e4c5f0a1146f91a8ae8c305d8f111a69304b31f1f12dd26da788af31a5477899bda098b7391cd0a32eca +DIST kpatch-0.6.3.tar.gz 153100 BLAKE2B e95d1880ffc9ff6038bba98902d0f1e97c9f7f8d0f90eedc281c4bf0570217668cf7b701d038d6f06e9885ebdbb4407cc554d5175cf17eb8fd5051381f75deb3 SHA512 0d266dd837ad651d7f46047cf2c8de527d08274a885a154c53354f4b3c5679d91c766d7d42294ffe71cc548e5ee865c7555f24001882b806f2fb48825f9b0c06 diff --git a/sys-kernel/kpatch/kpatch-0.6.3.ebuild b/sys-kernel/kpatch/kpatch-0.6.3.ebuild new file mode 100644 index 000..763ccbeac5d --- /dev/null +++ b/sys-kernel/kpatch/kpatch-0.6.3.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit flag-o-matic linux-mod + +if [[ "${PV}" == "" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dynup/${PN}.git; +else + SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Dynamic kernel patching for Linux" +HOMEPAGE="https://github.com/dynup/kpatch; + +LICENSE="GPL-2+" +SLOT="0" +IUSE="+kpatch-build +kpatch kmod doc contrib test" + +RDEPEND=" + app-crypt/pesign + dev-libs/openssl:0= + sys-libs/zlib + sys-apps/pciutils +" + +DEPEND=" + ${RDEPEND} + dev-libs/elfutils + sys-devel/bison + test? ( dev-util/shellcheck-bin ) +" + +pkg_setup() { + if use kmod; then + if kernel_is gt 3 9 0; then + if ! linux_config_exists; then + eerror "Unable to check the currently running kernel for kpatch support" + eerror "Please be sure a .config file is available in the kernel src dir" + eerror "and ensure the kernel has been built." + else + # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) + CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" + ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" + ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" + ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" + ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" + ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + fi + else + eerror + eerror "kpatch is not available for Linux kernels below 4.0.0" + eerror + die "Upgrade the kernel sources before installing kpatch." + fi + check_extra_config + fi + +} + +src_prepare() { + replace-flags '-O?' '-O1' + default +} + +src_compile() { + use kpatch-build && emake -C kpatch-build + use kpatch && emake -C kpatch + use kmod && set_arch_to_kernel && emake -C kmod + use doc && emake -C doc + use contrib && emake -C contrib +
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 94cba792173e44e4b0dc600f3cd3fde119da4c24 Author: Alice Ferrazzi gentoo org> AuthorDate: Tue Oct 23 00:14:20 2018 + Commit: Alice Ferrazzi gentoo org> CommitDate: Tue Oct 23 00:16:20 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94cba792 sys-kernel/kpatch: bump Signed-off-by: Alice Ferrazzi gentoo.org> Package-Manager: Portage-2.3.38, Repoman-2.3.9 sys-kernel/kpatch/Manifest| 1 + sys-kernel/kpatch/kpatch-0.6.2.ebuild | 76 +++ 2 files changed, 77 insertions(+) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest index 3429f0e7d7b..c6d912899b9 100644 --- a/sys-kernel/kpatch/Manifest +++ b/sys-kernel/kpatch/Manifest @@ -1,2 +1,3 @@ DIST kpatch-0.4.0.tar.gz 124433 BLAKE2B 6ea18c4d590426f9db95e16d555307e264d1b7db362d421f72eaaf897703f7883c44cc49bd98b48d8789453962259d0b0e301aca325c94be6c21061d0621a9cf SHA512 0bbb49a06d02e9eb026be458eb904cf50f50461a67f16835a306bb3a4a57ef88b86ecf6bca6dfc91b921ba87b4c8b9d532e2a77e987e7c71583b8cb53520a1d7 DIST kpatch-0.6.0.tar.gz 153337 BLAKE2B 5c132b885f9f8bc3c7b514997a0b8b77280d0387431dd3eb73f45da4678b281961a03452b0ec590b37fc9568192135528a9a42bd5005530bd8b9175fe652f7b1 SHA512 7ac27639773a851ad6689743100ff973b4e3a30efc386bdf413c8f6167068d93c2d18820d87e1f1e96405fa3545dcb80a72db0011f07218a692f91f1f3c3655a +DIST kpatch-0.6.2.tar.gz 148110 BLAKE2B 9903c9423ee6268a0d87c55336e418a964474a3d7f35dd1ad613be7645a932cd09991652cd4a3af0b08a686f39e7c6c7f4b12d80c20c7ecd663aa703821503f8 SHA512 65098195330a2dbea4f8648c87c41f3a7751ffcb83b4e4c5f0a1146f91a8ae8c305d8f111a69304b31f1f12dd26da788af31a5477899bda098b7391cd0a32eca diff --git a/sys-kernel/kpatch/kpatch-0.6.2.ebuild b/sys-kernel/kpatch/kpatch-0.6.2.ebuild new file mode 100644 index 000..e9cdeb7b5ac --- /dev/null +++ b/sys-kernel/kpatch/kpatch-0.6.2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit linux-info linux-mod flag-o-matic + +if [[ "${PV}" == "" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dynup/${PN}.git; +else + SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Dynamic kernel patching for Linux" +HOMEPAGE="https://github.com/dynup/kpatch; + +LICENSE="GPL-2+" +SLOT="0" +IUSE="examples +modules test" + +RDEPEND=" + app-crypt/pesign + dev-libs/openssl:0= + sys-libs/zlib + sys-apps/pciutils +" + +DEPEND=" + ${RDEPEND} + dev-libs/elfutils + sys-devel/bison +" + +pkg_pretend() { + if kernel_is gt 3 9 0; then + if ! linux_config_exists; then + eerror "Unable to check the currently running kernel for kpatch support" + eerror "Please be sure a .config file is available in the kernel src dir" + eerror "and ensure the kernel has been built." + else + # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) + CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" + ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" + ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" + ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" + ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" + ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + fi + else + eerror + eerror "kpatch is not available for Linux kernels below 4.0.0" + eerror + die "Upgrade the kernel sources before installing kpatch." + fi + + check_extra_config +} + +src_prepare() { + replace-flags '-O?' '-O1' + default +} + +src_compile() { + set_arch_to_kernel + emake all +} + +src_install() { + set_arch_to_kernel + emake DESTDIR="${D}" PREFIX="/usr" install + + einstalldocs +}
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 29002b49e7b8b147ac0bc4be20dafa47336a9710 Author: Alice Ferrazzi gentoo org> AuthorDate: Tue May 22 13:38:12 2018 + Commit: Alice Ferrazzi gentoo org> CommitDate: Tue May 22 14:38:03 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29002b49 sys-kernel/kpatch: bump to 0.6.0 Package-Manager: Portage-2.3.38, Repoman-2.3.9 sys-kernel/kpatch/Manifest| 1 + sys-kernel/kpatch/kpatch-0.6.0.ebuild | 76 +++ 2 files changed, 77 insertions(+) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest index 67162898cf3..3429f0e7d7b 100644 --- a/sys-kernel/kpatch/Manifest +++ b/sys-kernel/kpatch/Manifest @@ -1 +1,2 @@ DIST kpatch-0.4.0.tar.gz 124433 BLAKE2B 6ea18c4d590426f9db95e16d555307e264d1b7db362d421f72eaaf897703f7883c44cc49bd98b48d8789453962259d0b0e301aca325c94be6c21061d0621a9cf SHA512 0bbb49a06d02e9eb026be458eb904cf50f50461a67f16835a306bb3a4a57ef88b86ecf6bca6dfc91b921ba87b4c8b9d532e2a77e987e7c71583b8cb53520a1d7 +DIST kpatch-0.6.0.tar.gz 153337 BLAKE2B 5c132b885f9f8bc3c7b514997a0b8b77280d0387431dd3eb73f45da4678b281961a03452b0ec590b37fc9568192135528a9a42bd5005530bd8b9175fe652f7b1 SHA512 7ac27639773a851ad6689743100ff973b4e3a30efc386bdf413c8f6167068d93c2d18820d87e1f1e96405fa3545dcb80a72db0011f07218a692f91f1f3c3655a diff --git a/sys-kernel/kpatch/kpatch-0.6.0.ebuild b/sys-kernel/kpatch/kpatch-0.6.0.ebuild new file mode 100644 index 000..e9cdeb7b5ac --- /dev/null +++ b/sys-kernel/kpatch/kpatch-0.6.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit linux-info linux-mod flag-o-matic + +if [[ "${PV}" == "" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dynup/${PN}.git; +else + SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Dynamic kernel patching for Linux" +HOMEPAGE="https://github.com/dynup/kpatch; + +LICENSE="GPL-2+" +SLOT="0" +IUSE="examples +modules test" + +RDEPEND=" + app-crypt/pesign + dev-libs/openssl:0= + sys-libs/zlib + sys-apps/pciutils +" + +DEPEND=" + ${RDEPEND} + dev-libs/elfutils + sys-devel/bison +" + +pkg_pretend() { + if kernel_is gt 3 9 0; then + if ! linux_config_exists; then + eerror "Unable to check the currently running kernel for kpatch support" + eerror "Please be sure a .config file is available in the kernel src dir" + eerror "and ensure the kernel has been built." + else + # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) + CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" + ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" + ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" + ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" + ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" + ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + fi + else + eerror + eerror "kpatch is not available for Linux kernels below 4.0.0" + eerror + die "Upgrade the kernel sources before installing kpatch." + fi + + check_extra_config +} + +src_prepare() { + replace-flags '-O?' '-O1' + default +} + +src_compile() { + set_arch_to_kernel + emake all +} + +src_install() { + set_arch_to_kernel + emake DESTDIR="${D}" PREFIX="/usr" install + + einstalldocs +}
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 4fdae0b0e6ed6bd89f770ebbcd68d8717972e34c Author: Alice Ferrazzi gentoo org> AuthorDate: Fri Sep 8 17:25:37 2017 + Commit: Göktürk Yüksek gentoo org> CommitDate: Tue Oct 24 00:08:03 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fdae0b0 sys-kernel/kpatch: add live ebuild Package-Manager: Portage-2.3.6, Repoman-2.3.1 sys-kernel/kpatch/kpatch-.ebuild | 77 1 file changed, 77 insertions(+) diff --git a/sys-kernel/kpatch/kpatch-.ebuild b/sys-kernel/kpatch/kpatch-.ebuild new file mode 100644 index 000..0d6aa6e706a --- /dev/null +++ b/sys-kernel/kpatch/kpatch-.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit linux-info linux-mod flag-o-matic + +if [[ "${PV}" == "" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dynup/${PN}.git; +else + SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Dynamic kernel patching for Linux" +HOMEPAGE="https://github.com/dynup/kpatch; + +LICENSE="GPL-2+" +SLOT="0" +IUSE="examples +modules test" + +RDEPEND=" + app-crypt/pesign + dev-libs/openssl:0= + sys-libs/zlib + sys-apps/pciutils +" + +DEPEND=" + ${RDEPEND} + test? ( dev-util/shellcheck ) + dev-libs/elfutils + sys-devel/bison +" + +pkg_pretend() { + if kernel_is gt 3 9 0; then + if ! linux_config_exists; then + eerror "Unable to check the currently running kernel for kpatch support" + eerror "Please be sure a .config file is available in the kernel src dir" + eerror "and ensure the kernel has been built." + else + # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) + CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" + ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" + ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" + ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" + ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" + ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + fi + else + eerror + eerror "kpatch is not available for Linux kernels below 4.0.0" + eerror + die "Upgrade the kernel sources before installing kpatch." + fi + + check_extra_config +} + +src_prepare() { + replace-flags '-O?' '-O1' + default +} + +src_compile() { + set_arch_to_kernel + emake all +} + +src_install() { + set_arch_to_kernel + emake DESTDIR="${D}" PREFIX="/usr" install + + einstalldocs +}
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 2d52f6ab3ffaa564cc6d0f3da6225a39049e8633 Author: Michał Górny gentoo org> AuthorDate: Thu Aug 3 16:21:15 2017 + Commit: Michał Górny gentoo org> CommitDate: Thu Aug 3 20:06:03 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d52f6ab sys-kernel/kpatch: Remove old sys-kernel/kpatch/kpatch-0.4.0.ebuild | 69 --- 1 file changed, 69 deletions(-) diff --git a/sys-kernel/kpatch/kpatch-0.4.0.ebuild b/sys-kernel/kpatch/kpatch-0.4.0.ebuild deleted file mode 100644 index a43c52353b3..000 --- a/sys-kernel/kpatch/kpatch-0.4.0.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit linux-info linux-mod flag-o-matic - -if [[ ${PV} == * ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/dynup/${PN}.git; -else - SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi - -DESCRIPTION="Dynamic kernel patching for Linux" -HOMEPAGE="https://github.com/dynup/kpatch; - -LICENSE="GPL-2+" -SLOT="0" -IUSE="examples +modules test" - -RDEPEND=" - app-crypt/pesign - dev-libs/openssl:0= - sys-libs/zlib - sys-apps/pciutils - sys-libs/ncurses:0 - sys-apps/yum" -DEPEND=" - ${RDEPEND} - dev-libs/elfutils - sys-devel/bison" - -pkg_pretend() { - if kernel_is gt 3 9 0; then - if ! linux_config_exists; then - eerror "Unable to check the currently running kernel for kpatch support" - eerror "Please be sure a .config file is available in the kernel src dir" - eerror "and ensure the kernel has been built." - else - # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) - CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" - ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" - ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" - ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" - ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" - ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" - fi - else - eerror - eerror "kpatch is not available for Linux kernels below 4.0.0" - eerror - die "Upgrade the kernel sources before installing kpatch." - fi - - check_extra_config -} - -src_prepare() { - replace-flags '-O?' '-O1' - default -} - -src_install() { - unset ARCH - emake DESTDIR="${D}" all install - einstalldocs -}
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 43f6425a84ed8cd3e796e1e6a8411427f82e1fd1 Author: Alice Ferrazzi gentoo org> AuthorDate: Thu Jun 15 06:26:31 2017 + Commit: Alice Ferrazzi gentoo org> CommitDate: Thu Jun 15 06:27:03 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43f6425a sys-kernel/kpatch: added revision 1 removed ncurses and yum dependency Added einstalldocs Force binary installation in /usr/bin/ Divide task in compile and install Use set_arch_to_kernel insted of unset ARCH Package-Manager: Portage-2.3.5, Repoman-2.3.1 sys-kernel/kpatch/kpatch-0.4.0-r1.ebuild | 76 1 file changed, 76 insertions(+) diff --git a/sys-kernel/kpatch/kpatch-0.4.0-r1.ebuild b/sys-kernel/kpatch/kpatch-0.4.0-r1.ebuild new file mode 100644 index 000..2dae0d7a524 --- /dev/null +++ b/sys-kernel/kpatch/kpatch-0.4.0-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit linux-info linux-mod flag-o-matic + +if [[ "${PV}" == "" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dynup/${PN}.git; +else + SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Dynamic kernel patching for Linux" +HOMEPAGE="https://github.com/dynup/kpatch; + +LICENSE="GPL-2+" +SLOT="0" +IUSE="examples +modules test" + +RDEPEND=" + app-crypt/pesign + dev-libs/openssl:0= + sys-libs/zlib + sys-apps/pciutils +" + +DEPEND=" + ${RDEPEND} + dev-libs/elfutils + sys-devel/bison +" + +pkg_pretend() { + if kernel_is gt 3 9 0; then + if ! linux_config_exists; then + eerror "Unable to check the currently running kernel for kpatch support" + eerror "Please be sure a .config file is available in the kernel src dir" + eerror "and ensure the kernel has been built." + else + # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) + CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" + ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" + ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" + ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" + ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" + ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + fi + else + eerror + eerror "kpatch is not available for Linux kernels below 4.0.0" + eerror + die "Upgrade the kernel sources before installing kpatch." + fi + + check_extra_config +} + +src_prepare() { + replace-flags '-O?' '-O1' + default +} + +src_compile() { + set_arch_to_kernel + emake all +} + +src_install() { + set_arch_to_kernel + emake DESTDIR="${D}" PREFIX="/usr" install + + einstalldocs +}
[gentoo-commits] repo/gentoo:master commit in: sys-kernel/kpatch/
commit: 37f7d400908f52fe6b8582e5767a033f9fe834c9 Author: Alice Ferrazzi gentoo org> AuthorDate: Sun Jun 4 00:51:08 2017 + Commit: David Seifert gentoo org> CommitDate: Tue Jun 6 17:52:02 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37f7d400 sys-kernel/kpatch: init Closes: https://github.com/gentoo/gentoo/pull/4844 sys-kernel/kpatch/Manifest| 1 + sys-kernel/kpatch/kpatch-0.4.0.ebuild | 69 +++ sys-kernel/kpatch/metadata.xml| 8 3 files changed, 78 insertions(+) diff --git a/sys-kernel/kpatch/Manifest b/sys-kernel/kpatch/Manifest new file mode 100644 index 000..b1ad18d32cc --- /dev/null +++ b/sys-kernel/kpatch/Manifest @@ -0,0 +1 @@ +DIST kpatch-0.4.0.tar.gz 124433 SHA256 852b8bea7b4ed8712793d7a8e5692536fc68468063dffb873bd55801f78e994a SHA512 0bbb49a06d02e9eb026be458eb904cf50f50461a67f16835a306bb3a4a57ef88b86ecf6bca6dfc91b921ba87b4c8b9d532e2a77e987e7c71583b8cb53520a1d7 WHIRLPOOL adf5e76183153e02a70659f5d47cbc70ed65c3ed9f004f83764029a8caff12faa62b6f41eff71011024653f025b836b340f79dc084ba374fc21293af10a75e6b diff --git a/sys-kernel/kpatch/kpatch-0.4.0.ebuild b/sys-kernel/kpatch/kpatch-0.4.0.ebuild new file mode 100644 index 000..a43c52353b3 --- /dev/null +++ b/sys-kernel/kpatch/kpatch-0.4.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info linux-mod flag-o-matic + +if [[ ${PV} == * ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dynup/${PN}.git; +else + SRC_URI="https://github.com/dynup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Dynamic kernel patching for Linux" +HOMEPAGE="https://github.com/dynup/kpatch; + +LICENSE="GPL-2+" +SLOT="0" +IUSE="examples +modules test" + +RDEPEND=" + app-crypt/pesign + dev-libs/openssl:0= + sys-libs/zlib + sys-apps/pciutils + sys-libs/ncurses:0 + sys-apps/yum" +DEPEND=" + ${RDEPEND} + dev-libs/elfutils + sys-devel/bison" + +pkg_pretend() { + if kernel_is gt 3 9 0; then + if ! linux_config_exists; then + eerror "Unable to check the currently running kernel for kpatch support" + eerror "Please be sure a .config file is available in the kernel src dir" + eerror "and ensure the kernel has been built." + else + # Fail to build if these kernel options are not enabled (see kpatch/kmod/core/Makefile) + CONFIG_CHECK="FUNCTION_TRACER HAVE_FENTRY MODULES SYSFS KALLSYMS_ALL" + ERROR_FUNCTION_TRACER="CONFIG_FUNCTION_TRACER must be enabled in the kernel's config file" + ERROR_HAVE_FENTRY="CONFIG_HAVE_FENTRY must be enabled in the kernel's config file" + ERROR_MODULES="CONFIG_MODULES must be enabled in the kernel's config file" + ERROR_SYSFS="CONFIG_SYSFS must be enabled in the kernel's config file" + ERROR_KALLSYMS_ALL="CONFIG_KALLSYMS_ALL must be enabled in the kernel's config file" + fi + else + eerror + eerror "kpatch is not available for Linux kernels below 4.0.0" + eerror + die "Upgrade the kernel sources before installing kpatch." + fi + + check_extra_config +} + +src_prepare() { + replace-flags '-O?' '-O1' + default +} + +src_install() { + unset ARCH + emake DESTDIR="${D}" all install + einstalldocs +} diff --git a/sys-kernel/kpatch/metadata.xml b/sys-kernel/kpatch/metadata.xml new file mode 100644 index 000..b393adbecca --- /dev/null +++ b/sys-kernel/kpatch/metadata.xml @@ -0,0 +1,8 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + ali...@gentoo.org + + Dynamic kernel patching for the Linux kernel +