From 36709ccbabf1b64014ac77ee8b594c6f05cf692d Mon Sep 17 00:00:00 2001 From: Alexander Miroshnichenko Date: Tue, 1 Oct 2024 16:04:56 +0300 Subject: [PATCH] sys-kernel/booster: update ebuild --- sys-kernel/booster/Manifest | 3 +- ...build => booster-0.11_p20240709-r1.ebuild} | 7 +++++ ...Add-Gentoo-kernel-config-search-path.patch | 31 +++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) rename sys-kernel/booster/{booster-0.11_p20240709.ebuild => booster-0.11_p20240709-r1.ebuild} (90%) create mode 100644 sys-kernel/booster/files/0001-Add-Gentoo-kernel-config-search-path.patch diff --git a/sys-kernel/booster/Manifest b/sys-kernel/booster/Manifest index a5a2ddd..8b89085 100644 --- a/sys-kernel/booster/Manifest +++ b/sys-kernel/booster/Manifest @@ -1,3 +1,4 @@ +AUX 0001-Add-Gentoo-kernel-config-search-path.patch 1014 BLAKE2B c715bba0033ce2c9bc65e6423413a3bd5da7fab63cc3585f497557bde07548d45b4efdd8a90ae0caa110da59e1c9d6a1d79103d1d0c09326bc3ac362e6d3c27b SHA512 e7e0821438e9f146ac4c55f210728c2c858c5b78891884e4d69a74c3fac4c4e2f419ce45d7968cceb9d5407d52dac0020c6d7850fdfea31595826d00531aed83 AUX booster.yaml 477 BLAKE2B 6107c1a393a1ac87223850a96de96edf82ef5db7a13efdda3a50f996500f71f9c8b72d68abeaf05e1ef8d68fb9723917a37089e7cef4eb935d179603c4ec9a21 SHA512 9a7882601238bbf5d8c7bb9f8917c0535c52a83b3fb775049331cb9d11a61f0ec84904db4af2e1fdb9ed3009cbfa1848b402fba0cc0b7e281e43858d5c00acdc AUX installkernel-52-booster.install 886 BLAKE2B 55992d5661ddb4506062f79de128542e524b59ace2173b62bb8b6c9fe418a34829d5a619ac106d9a8a9a223a0293cd635fb10ee8063eebf1f5c7cfe61b6ddc51 SHA512 5876ef6ff2d57beb4c2be47d400fa23aafcdf10afb50f6b1e988404696980abd6d410167897c8e67a4a6e962cf300cc5914fde7a0de3e6487c1db5e277ea60b7 AUX kernel-install-52-booster.install 591 BLAKE2B 82bafd1474f223911858266722f84eecd9792249b583c994d45069cdd007d1b1bdc5bffceb50735e05e92d9d8423d8872112afc51c04a05846faf00088cd83c4 SHA512 e5b6f2a84d204154a602adc505bc1ad40121e28d3ec81c62c090cae7dd8628cef99fbf3091df2022e479e808367c3bb8c58705ce32bad408ce874e5cb94f4e46 @@ -6,4 +7,4 @@ DIST booster-0.11.tar.gz 113332 BLAKE2B 55969cd75fea79df20b3778bbd295b9d69284a04 DIST booster-0.11_p20240709-vendor.tar.xz 1951976 BLAKE2B 9091ebb47a93d266b6542097074a72757f7e6f5520a799dbc2dc97327af54c27472dab6bab1b186fde8ec28373fb2ab350a20321b4657d104a0f51bb100cfb78 SHA512 b73ee71583287ce58019432d8cbcc5e3c5c834b8571982273cac07e21b4ec99b45f1195957850c9b039b314cee508cace9154f97942f7bc9d2ffabc8897b7931 DIST booster-0.11_p20240709.tar.gz 116998 BLAKE2B 0c2a5eb06761a4d1ccaf73028179164936714b8bfb0c4f614b6fd58b7052d567b1a1a7215ce70da8dca9025d0984c4bd2b721e9406a7ef9799d4b222e3cf1cfd SHA512 381ab381e9a44eb3de7ea25aa65969264fdb8c42aa0dcdbf9edd247ca8a0d340288b08b906fd6a4be2d4978a68a0057bda88e726edc87d6d02d46d7c56c7f3ef EBUILD booster-0.11.ebuild 1342 BLAKE2B 1979e497e1f5c19fa1d425feb73d0343d74cc12ecc157d513f988078acc3dec5324bb899079c2a7c30297faca11c93de753669ab57af76b9c74ec43e4beb644d SHA512 fadb5acad095be0c2b756a9d5778a8b400c5a35d94280c9d59691ba489aab933201cba129898aaefa6c632977db4482dfe32abe6be458c2a57297772af66dd58 -EBUILD booster-0.11_p20240709.ebuild 1431 BLAKE2B f7c6edd56d1730888819e45d2ca2ecd2689cfe1b5493f327ee3f221c2349d0ad879b7c99de072ca5cc5a7f483ca2cedf1feac4ce2af5a0be2821a54fd1e0d415 SHA512 f67d3fab1ca8fe6054444b17eaaff70e1210ad4e241e86a76ad679730f6ce6ac3d8bacaf0221f205f0d582d306446a15e3b2fce546d42264fc3de4d3c7152636 +EBUILD booster-0.11_p20240709-r1.ebuild 1578 BLAKE2B fc05458a1ef0a3954383ed131bd7ca02d10576a8cc24554cf0687dc507d3ee4f02293b3e45e4d54673e8ed676f5fc1422c9f7ad75281c2c5732471ec50465f40 SHA512 ba156afe9896759ad7e9cb1539f5a631d192d8a316fdb71f4decbc41afb99371caf57d23c0aa7d2dd7986f87e7e850bf94a744d30207633665bfd7b8794973ab diff --git a/sys-kernel/booster/booster-0.11_p20240709.ebuild b/sys-kernel/booster/booster-0.11_p20240709-r1.ebuild similarity index 90% rename from sys-kernel/booster/booster-0.11_p20240709.ebuild rename to sys-kernel/booster/booster-0.11_p20240709-r1.ebuild index 2605218..c2fc128 100644 --- a/sys-kernel/booster/booster-0.11_p20240709.ebuild +++ b/sys-kernel/booster/booster-0.11_p20240709-r1.ebuild @@ -30,6 +30,13 @@ BDEPEND="" S="${WORKDIR}/${PN}-${EGIT_COMMIT}" +src_prepare() { + local PATCHES=( + "${FILESDIR}/0001-Add-Gentoo-kernel-config-search-path.patch" + ) + default +} + src_compile() { cd ${S}/generator && ego build cd ${S}/init && ego build diff --git a/sys-kernel/booster/files/0001-Add-Gentoo-kernel-config-search-path.patch b/sys-kernel/booster/files/0001-Add-Gentoo-kernel-config-search-path.patch new file mode 100644 index 0000000..a64ef60 --- /dev/null +++ b/sys-kernel/booster/files/0001-Add-Gentoo-kernel-config-search-path.patch @@ -0,0 +1,31 @@ +From dce149dc0ce7b13bc6a27997c0b2fe9b9591c752 Mon Sep 17 00:00:00 2001 +From: Alexander Miroshnichenko +Date: Tue, 1 Oct 2024 15:59:44 +0300 +Subject: [PATCH] Add Gentoo kernel config search path +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + +Signed-off-by: Alexander Miroshnichenko +--- + generator/kmod.go | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/generator/kmod.go b/generator/kmod.go +index d4bf31dbed5e..46960d639cc2 100644 +--- a/generator/kmod.go ++++ b/generator/kmod.go +@@ -734,6 +734,11 @@ func readCompiledInComponents(kernelVersion string) (set, error) { + debug("reading %s", f.Name()) + defer f.Close() + r = f ++ } else if f, err := os.Open("/lib/modules/" + kernelVersion + "/config"); err == nil { ++ // Gentoo have config in src. ++ debug("reading %s", f.Name()) ++ defer f.Close() ++ r = f + } else if f, err := os.Open("/proc/config"); err == nil { + debug("reading %s", f.Name()) + defer f.Close() +-- +2.39.3 +