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 310F913835A for ; Thu, 18 Feb 2021 23:12:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C4CFE09AD; Thu, 18 Feb 2021 23:12:19 +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 0396DE09AD for ; Thu, 18 Feb 2021 23:12:19 +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 A86D4340CB4 for ; Thu, 18 Feb 2021 23:12:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F13A54E4 for ; Thu, 18 Feb 2021 23:12:14 +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: <1613687510.1ffe1409c796372459a4985f8fe3f10fffe6e816.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_moddeps.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 1ffe1409c796372459a4985f8fe3f10fffe6e816 X-VCS-Branch: master Date: Thu, 18 Feb 2021 23:12:14 +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: e707eee8-f0ea-4641-af29-2b3b5c368cec X-Archives-Hash: 79b0cb9cf29b68b4a199c6e13e0628aa commit: 1ffe1409c796372459a4985f8fe3f10fffe6e816 Author: Thomas Deutschmann gentoo org> AuthorDate: Thu Feb 18 22:31:50 2021 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Thu Feb 18 22:31:50 2021 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=1ffe1409 gen_moddeps.sh: modules_dep_list(): match module more precise The current pattern is not precise enough. I.e. when looking for Realtek network driver module (realtek.ko), we also get a match on Realtek HD audio codec module (snd-hda-codec-realtek.ko). This commit will make the pattern more precise. Signed-off-by: Thomas Deutschmann gentoo.org> gen_moddeps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_moddeps.sh b/gen_moddeps.sh index fd7800f..193338d 100755 --- a/gen_moddeps.sh +++ b/gen_moddeps.sh @@ -50,7 +50,7 @@ modules_dep_list() { KEXT=$(modules_kext) if [ -f "${KERNEL_MODULES_PREFIX%/}/lib/modules/${KV}/modules.dep" ] then - cat "${KERNEL_MODULES_PREFIX%/}/lib/modules/${KV}/modules.dep" | grep ${1}${KEXT}\: | cut -d\: -f2 + grep -F -- "/${1}${KEXT}:" "${KERNEL_MODULES_PREFIX%/}/lib/modules/${KV}/modules.dep" | cut -d\: -f2 fi }