From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 63EDE138335 for ; Thu, 28 Mar 2019 23:43:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26704E0997; Thu, 28 Mar 2019 23:43:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EDF60E097A for ; Thu, 28 Mar 2019 23:43:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4B7BA335D20 for ; Thu, 28 Mar 2019 23:43:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 48ABC520 for ; Thu, 28 Mar 2019 23:43:12 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1553801140.ccb86d0e5727b6428abe92ff93929e0c737ad0bd.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_arch.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: ccb86d0e5727b6428abe92ff93929e0c737ad0bd X-VCS-Branch: master Date: Thu, 28 Mar 2019 23:43:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d50d962a-c97b-4213-9340-c59ddd84df69 X-Archives-Hash: b1083b6d7573fa3a2ebbd48d3d35b1b6 commit: ccb86d0e5727b6428abe92ff93929e0c737ad0bd Author: Thomas Deutschmann gentoo org> AuthorDate: Thu Mar 28 19:25:40 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Thu Mar 28 19:25:40 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=ccb86d0e set_kernel_arch(): error out if VER, SUB or PAT is not defined If VER, SUB or PAT is not defined for some reason, bad things will happen. Signed-off-by: Thomas Deutschmann gentoo.org> gen_arch.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gen_arch.sh b/gen_arch.sh index 1c9ec37..4ced125 100755 --- a/gen_arch.sh +++ b/gen_arch.sh @@ -48,6 +48,10 @@ get_official_arch() { } set_kernel_arch() { + [ -z "${VER}" ] && gen_die "cannot set KERNEL_ARCH without VER!" + [ -z "${SUB}" ] && gen_die "cannot set KERNEL_ARCH without SUB!" + [ -z "${PAT}" ] && gen_die "cannot set KERNEL_ARCH without PAT!" + KERNEL_ARCH=${ARCH} case ${ARCH} in ppc|ppc64*)