From patchwork Wed Sep 5 15:40:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 966522 X-Patchwork-Delegate: yszhou4tech@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=198.137.202.133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="W6Nx0ng8"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lUbO1/2J"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4257qq1sdSz9sCw for ; Thu, 6 Sep 2018 02:06:47 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8tEdQ6MnI/3eaZB6REismFlp5MFUdJsBNxSgnbGO1JM=; b=W6Nx0ng81bfdha Eq/7WFUOy9QQhnFLJu+ptBDq69nB1Eg5fi7Hp0RKs1opcgsNTM+elgYfMGhdzyyQl3KE4pRbd2Aij B4mV82m0OYozJGyEywemKqqfqKAw2iq1J/99Vrji+BleCLXPdqTUwpwvsrFasA6yp1fdssqa7pKyf TvW2ooqr1HOFFbBfx1RSjNTYd+z2GzFvHLvW4yDtKvi3rErUxB+wZDuFPgUc2o9oycp9eiElPK4pM F5BcuoE11kuKu8sn58wmDThiU+bASUdl8YyKjfOcEMrxs6kd3DNZsMNbpiEzP0m7D8XOHFvbaJJw+ hhH2WybG7l8jO5oWeSWA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fxZvY-0007Jw-C4; Wed, 05 Sep 2018 15:41:08 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fxZvU-0007Iw-BZ for openwrt-devel@lists.openwrt.org; Wed, 05 Sep 2018 15:41:05 +0000 Received: by mail-pf1-x441.google.com with SMTP id u24-v6so3664670pfn.13 for ; Wed, 05 Sep 2018 08:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=9SBEtfL5DokbPDtZYPadNE4j6w0vatfXGKxv7vczuSM=; b=lUbO1/2J3nycBR/wCFSK/lDMasjUO0OhwdnS6ZtcmwQjRiSi+26gvGhKfFcD9SEc4D og08rO7m2ibZcdio2TyYvvCoqLVIYPJC1umDDZnjVm7tR3aTO9kp963X2VY8UPJtytU0 OkH73hxnmzGobBK5dOqmrmsEPxjm44ZdYBJ09tayZC5/TrGlt12t68t8lL6n0/5Q80zk ht6qJ2mTczQbnRrb0TuLUMYYtSE2bvmdFiQAJDFM8WHcY9iKuAIlSWX7SCA/lUHDadJx aPMIDQa6+tVIRXiHTvqg55Pp9o7L5MCYChzmW8H55qaRDJJnw+eGi5LMHC13sF7OJe3Y HD5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9SBEtfL5DokbPDtZYPadNE4j6w0vatfXGKxv7vczuSM=; b=R0AutrhNt3tQNDgvdor9/Vdl9cTzvZz/SI0cTzAfufgsXwLql0iGG9pUPkhwiTbOb7 xpOPnZAoO1l0ZluoMTXmJXNLeK84nHed3WaKyeQ7hzRMu7e6G4hGafE8aYSJcP7mG12O BoEPH1GqsDtrRewfbR2IIgzZBYs2seAoFRHz6HEkKsT991GtzZAiw9w3lq25TCjuh1Ou e+SADfDSjtVC7N3ACB1aN+6XOOz8h2RMaYmQBkGbMNU6SD9LOTiG1xrtO2DhfcWn+muM sXQ1Vc1N1p1CGwkfkyYOkS5esjM5Bz3U2MmW5aDygESfouXuJ0y/26jhbSkg/hC7xcA1 FeWA== X-Gm-Message-State: APzg51ByfKqgdWX0/j93W0mP6QnkF2emGiwxfi7aUxmn3T/2xxfrtwpc L81G7ucGYyM9Q/UmIZCaX1Qyyvqk3+U= X-Google-Smtp-Source: ANB0VdYIVv2lRnWRRK9vlNdF0UhagPoGT3s/DL2IpPiLxFOaKKwNUtOQgt6vMvnXzNaC0yPp07jspA== X-Received: by 2002:a63:e001:: with SMTP id e1-v6mr11190613pgh.380.1536162052707; Wed, 05 Sep 2018 08:40:52 -0700 (PDT) Received: from titan.hq.cloud.yunionyun.com ([47.52.22.109]) by smtp.gmail.com with ESMTPSA id l9-v6sm2987993pgg.79.2018.09.05.08.40.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 08:40:51 -0700 (PDT) From: Yousong Zhou To: openwrt-devel@lists.openwrt.org Date: Wed, 5 Sep 2018 15:40:35 +0000 Message-Id: <20180905154036.24318-1-yszhou4tech@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180905_084104_423338_0C6C4429 X-CRM114-Status: UNSURE ( 7.95 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:441 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (yszhou4tech[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Subject: [OpenWrt-Devel] [PATCH 1/2] scripts/metadata.pm: avoid adding dup names in provides list X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yousong Zhou MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The need arises from building Open vSwitch kernel datapath modules, e.g. - kmod-openvswitch from Linux upstream - kmod-openvswitch-intree from openvswitch source code where both provides virtual package "kmod-openvswitch" for userspace packages to select and depend on Signed-off-by: Yousong Zhou --- scripts/metadata.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/metadata.pm b/scripts/metadata.pm index e05e400991..4a5464edc0 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -250,6 +250,7 @@ sub parse_package_metadata($) { my @vpkg = split /\s+/, $1; @{$pkg->{provides}} = ($pkg->{name}, @vpkg); foreach my $vpkg (@vpkg) { + next if ($vpkg eq $pkg->{name}); $vpackage{$vpkg} or $vpackage{$vpkg} = []; push @{$vpackage{$vpkg}}, $pkg; }