From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3970659CB2 for ; Fri, 15 Apr 2016 07:54:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B311BE083B; Fri, 15 Apr 2016 07:54:48 +0000 (UTC) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 22CFEE083B for ; Fri, 15 Apr 2016 07:54:47 +0000 (UTC) Received: by mail-wm0-f51.google.com with SMTP id n3so20294011wmn.0 for ; Fri, 15 Apr 2016 00:54:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nextworks-it.20150623.gappssmtp.com; s=20150623; h=from:subject:organization:to:message-id:date:user-agent :mime-version; bh=wbVtqL2Hiw7lNmZa7h7w7SQtn8+6BAx4ZdjJ1dVGn8I=; b=ae6BhHXSmVjQBO4q9xXLguoCKgU+o+8qIox9yI6UnVpNVRgVG5R9xRFjQnfrVmpEtQ 2WWvob3GKD8ysRiUmyobHYxvKWTViRSulaTPj38/cLM/ijIkk1ff4vl94WV71yPfmCPe 67tnVGjWlhoKGC2Vqjv2+XLAPEVoXhfjFhQKIWJzMRMc2UWE8Ntimsq74xKGxAdhpgbx /6xiiaYcqmPC/xwm8XKHno3aXGd5qhPJXTxDIHSWE3P6okxTttZ/S2X8zrJn4BBEBKeJ 1OLK9Ziyp78yVaceRxw38PcqGW5uiQa6Vm299s7cYOU0wuF910qCLjxtbjkx0KFxi2MC zDvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:organization:to:message-id:date :user-agent:mime-version; bh=wbVtqL2Hiw7lNmZa7h7w7SQtn8+6BAx4ZdjJ1dVGn8I=; b=K6H69rPO6NqP+bbzI7rFSdyNF4eucJ2kydpVyZQZMWDCImWGcEQ8sm6PwP2MOgdn55 H/zAnO7gPa+PkZzFhof6vovefajGjXV4Hg2Tl74t4p1u9ylajYnwbOrsEOfXFpqaGaPi U1jzJy6EkrpCQO2WZU46Jr8oEIa9H0BQwVcPMG4hAiv5TaFCkB7DZZ6c9Ks7KtIY8mK3 UxGjrt46f3vIbQNahK2cVv/GmFMz8i97pr2RGo3aP4ZRLnkWK5Z0gJawxQB9Uf7CFWvq R30WdiwYfpuVd1yHVC9SfOmDKqkCFNG6RBXtzwFtEwUC5T+wqb8HEMrN00h8NWM7HgcM ESvw== X-Gm-Message-State: AOPr4FUmmFhp0zPRsqHLx0SFIyM72zMCekgPwA4ZsRDHB3vMAHi8+lpdCzl1pVlLMuzJSQ== X-Received: by 10.194.112.6 with SMTP id im6mr20418848wjb.16.1460706886521; Fri, 15 Apr 2016 00:54:46 -0700 (PDT) Received: from [10.0.2.148] ([213.182.68.158]) by smtp.gmail.com with ESMTPSA id l124sm10217275wmf.11.2016.04.15.00.54.44 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Apr 2016 00:54:44 -0700 (PDT) From: Marco Gigante Subject: [gentoo-catalyst] genkernel version parsing problem Organization: Nextworks Srl To: gentoo-catalyst@lists.gentoo.org Message-ID: <57109E43.3010801@nextworks.it> Date: Fri, 15 Apr 2016 09:54:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030708000303050905060602" X-Archives-Salt: ed0c3c21-9ba8-426f-a4b6-753b36679a06 X-Archives-Hash: 9c0044a006e5fadc897d15c57ee860f9 This is a multi-part message in MIME format. --------------030708000303050905060602 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------030708000303050905060602 Content-Type: text/x-patch; name="check_genkernel_version.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="check_genkernel_version.diff" 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%%.*} --------------030708000303050905060602--