From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/genkernel/files/, sys-kernel/genkernel/
Date: Mon, 17 Aug 2020 23:26:02 +0000 (UTC) [thread overview]
Message-ID: <1597706755.c024aafd9e3d27ec79bcc96dc17f2a152c2bc333.whissi@gentoo> (raw)
commit: c024aafd9e3d27ec79bcc96dc17f2a152c2bc333
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 17 23:25:11 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Aug 17 23:25:55 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c024aafd
sys-kernel/genkernel: fix --integrated-initramfs option
Closes: https://bugs.gentoo.org/737598
Package-Manager: Portage-3.0.2, Repoman-2.3.23
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
.../genkernel-4.1.0-fix-integrated-initramfs.patch | 28 ++++++++++++++++++++++
...rnel-4.1.0.ebuild => genkernel-4.1.0-r1.ebuild} | 2 ++
2 files changed, 30 insertions(+)
diff --git a/sys-kernel/genkernel/files/genkernel-4.1.0-fix-integrated-initramfs.patch b/sys-kernel/genkernel/files/genkernel-4.1.0-fix-integrated-initramfs.patch
new file mode 100644
index 00000000000..afe3e99dbc5
--- /dev/null
+++ b/sys-kernel/genkernel/files/genkernel-4.1.0-fix-integrated-initramfs.patch
@@ -0,0 +1,28 @@
+--- a/gen_determineargs.sh
++++ b/gen_determineargs.sh
+@@ -1170,6 +1170,14 @@ determine_real_args() {
+ fi
+ fi
+
++ if isTrue "${INTEGRATED_INITRAMFS}"
++ then
++ if ! isTrue "${BUILD_KERNEL}" || ! isTrue "${BUILD_RAMDISK}"
++ then
++ gen_die "Invalid action specified: --integrated-initramfs option requires action \"all\", i.e. building of kernel and initramfs at the same time!"
++ fi
++ fi
++
+ if ! isTrue "${CMD_INSTALL}"
+ then
+ if [ -n "${KERNEL_MODULES_PREFIX}" ]
+--- a/gen_funcs.sh
++++ b/gen_funcs.sh
+@@ -2033,7 +2033,7 @@ kconfig_set_opt() {
+ else
+ print_info 3 "$(get_indent ${indentlevel}) - Setting option '${optname}' to '${optval}' in '${kconfig}'..."
+ sed -i "${kconfig}" \
+- -e "s/^#\? \?${optname}[ =].*/${optname}=${optval}/g" \
++ -e "s|^#\? \?${optname}[ =].*|${optname}=${optval}|g" \
+ || gen_die "Failed to set '${optname}=${optval}' in '${kconfig}'"
+
+ [ ! -f "${KCONFIG_MODIFIED_MARKER}" ] && touch "${KCONFIG_MODIFIED_MARKER}"
diff --git a/sys-kernel/genkernel/genkernel-4.1.0.ebuild b/sys-kernel/genkernel/genkernel-4.1.0-r1.ebuild
similarity index 99%
rename from sys-kernel/genkernel/genkernel-4.1.0.ebuild
rename to sys-kernel/genkernel/genkernel-4.1.0-r1.ebuild
index f4f851fba1a..0b57d466b50 100644
--- a/sys-kernel/genkernel/genkernel-4.1.0.ebuild
+++ b/sys-kernel/genkernel/genkernel-4.1.0-r1.ebuild
@@ -118,6 +118,8 @@ if [[ ${PV} == 9999* ]]; then
DEPEND="${DEPEND} app-text/asciidoc"
fi
+PATCHES=( "${FILESDIR}"/${P}-fix-integrated-initramfs.patch )
+
src_unpack() {
if [[ ${PV} == 9999* ]]; then
git-r3_src_unpack
next reply other threads:[~2020-08-17 23:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-17 23:26 Thomas Deutschmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-30 17:05 [gentoo-commits] repo/gentoo:master commit in: sys-kernel/genkernel/files/, sys-kernel/genkernel/ Ben Kohler
2024-04-30 17:20 Ben Kohler
2023-07-26 3:33 Sam James
2022-07-24 23:19 Sam James
2021-12-10 1:00 Thomas Deutschmann
2021-11-16 17:38 Thomas Deutschmann
2021-09-30 22:28 Thomas Deutschmann
2021-09-29 20:44 Thomas Deutschmann
2020-09-02 19:59 Thomas Deutschmann
2020-08-19 1:18 Thomas Deutschmann
2020-04-11 23:25 Thomas Deutschmann
2019-12-06 15:36 Thomas Deutschmann
2018-05-08 0:45 Thomas Deutschmann
2016-08-15 7:02 Robin H. Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1597706755.c024aafd9e3d27ec79bcc96dc17f2a152c2bc333.whissi@gentoo \
--to=whissi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox