From: Marco Gigante <m.gigante@nextworks.it>
To: gentoo-catalyst@lists.gentoo.org
Subject: [gentoo-catalyst] genkernel version parsing problem
Date: Fri, 15 Apr 2016 09:54:43 +0200 [thread overview]
Message-ID: <57109E43.3010801@nextworks.it> (raw)
[-- Attachment #1: Type: text/plain, Size: 315 bytes --]
Hi,
I got a problem with catalyst and latest version of genkernel, installed
with genkernel-9999 ebuild.
genkernel --version returns v3.5.0.1 (with the 'v' prefix) and catalyst
fails to check the minimal required version.
I made a quick fix which worked for me and wanted to share it for comments.
Thanks
marco
[-- Attachment #2: check_genkernel_version.diff --]
[-- Type: text/x-patch, Size: 604 bytes --]
diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh
index 456ae4c..bcb22f4 100755
--- a/targets/support/chroot-functions.sh
+++ b/targets/support/chroot-functions.sh
@@ -21,6 +21,7 @@ check_genkernel_version(){
if [ -x /usr/bin/genkernel ]
then
genkernel_version=$(genkernel --version)
+ genkernel_version=${genkernel_version//[^0-9\.]/} # keep just numbers and dots
genkernel_version_major=${genkernel_version%%.*}
genkernel_version_minor_sub=${genkernel_version#${genkernel_version_major}.}
genkernel_version_minor=${genkernel_version_minor_sub%%.*}
next reply other threads:[~2016-04-15 7:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-15 7:54 Marco Gigante [this message]
2016-04-21 5:41 ` [gentoo-catalyst] genkernel version parsing problem Leno Hou
2016-04-21 5:42 ` Mike Frysinger
2016-04-21 5:48 ` Leno Hou
2016-04-21 6:21 ` Mike Frysinger
2016-04-21 6:29 ` Leno Hou
2016-04-21 6:34 ` Leno Hou
2016-04-21 16:43 ` Mike Frysinger
2016-04-21 6:34 ` Marco Gigante
2016-04-21 17:05 ` Mike Frysinger
2016-04-22 6:49 ` Marco Gigante
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=57109E43.3010801@nextworks.it \
--to=m.gigante@nextworks.it \
--cc=gentoo-catalyst@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