From patchwork Wed Dec 28 20:41:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 6351 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Nj3NH6fFdz3xk3 for ; Wed, 28 Dec 2022 20:41:51 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Nj3NF2NKKz10R; Wed, 28 Dec 2022 20:41:49 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Nj3ND590lz2yxs; Wed, 28 Dec 2022 20:41:48 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Nj3NC0k5nz2xGT for ; Wed, 28 Dec 2022 20:41:47 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Nj3NB5NrgzQh; Wed, 28 Dec 2022 20:41:46 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1672260107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Fj0j/vfv+2GvJM92R1bLkFrYGERuiCJQOw5GPTyuFRI=; b=uiAgtUcYS7YWR5xHg1zkyhZ0dXIB2jXZ6F4ORMd8u/m4Q6Kz/WZcfSkGXAcMJrlpTJrqYp +2EfWChQmHe72iBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1672260107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Fj0j/vfv+2GvJM92R1bLkFrYGERuiCJQOw5GPTyuFRI=; b=DcLhxaMiA4rPmOzkblkeeOIFu1Ku9Bp72ECTXydCQEH3MhTQjnxXrPNoDcWl/HowscDJaM IKHaWcjNY6MzBXI/2PT3hZTuhWSxUyPHRuSbmNpEIG2iMqC6xU1oZGFdh58oDHmqjvF8qd wODjNe6Wwybwg92ZYv4SphzBuEdXNxO5FR+ZsGoCO2sakfo7CbvhP8QFezPB8Zp35BFWfi l+Z3/ZA05LuLJADZFqje8++Fwa4FxjKjoy7+hHJd+K/3P6M98vfFwMT5k0adTXzxmwBH59 IUPWVaZPLDO+w2w7yX5NmHZLgxYJqPP15/06BXscXLP4QGXQJRVow68rO0HsQA== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 2/2] perl.req: Automatically filter-out version related requirements. Date: Wed, 28 Dec 2022 21:41:36 +0100 Message-Id: <20221228204136.391950-2-stefan.schantl@ipfire.org> In-Reply-To: <20221228204136.391950-1-stefan.schantl@ipfire.org> References: <20221228204136.391950-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Filter-out everything like perl(5), perl(v5), perl(5.000), perl(5.000_000) etc. Signed-off-by: Stefan Schantl --- src/scripts/perl.req | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripts/perl.req b/src/scripts/perl.req index 5a5a54e1..2bdf04dd 100644 --- a/src/scripts/perl.req +++ b/src/scripts/perl.req @@ -47,6 +47,7 @@ foreach my $perlver (sort keys %perlreq) { } foreach my $module (sort keys %global_require) { + next if ($module =~ /^v?\d*\.?\d*\_?\d*$/); next if (&is_filtered($module)); if (length($global_require{$module}) == 0) {