From patchwork Sat Jul 19 07:22:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 371777 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 96BFF14013F for ; Sat, 19 Jul 2014 17:22:48 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 89D1730AFC; Sat, 19 Jul 2014 07:22:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7xRSf816THJV; Sat, 19 Jul 2014 07:22:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C860E2FC21; Sat, 19 Jul 2014 07:22:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1AF7E1BFA2B for ; Sat, 19 Jul 2014 07:22:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 144AD8BB93 for ; Sat, 19 Jul 2014 07:22:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kmvTACGsFjwq for ; Sat, 19 Jul 2014 07:22:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3801F8961A for ; Sat, 19 Jul 2014 07:22:43 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id bs8so1811524wib.2 for ; Sat, 19 Jul 2014 00:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=M5ePlITd5wQdkbB+3ETPzjNKSOit0iMRsV19L6Sub/w=; b=UA9M9pA30k3qtJQRosbrdIFuvqu4w/cWTvj6e2eAptHH8hDGxk5i8klpMGwrBNk+7P NbnnSt1iOUc7frTo94VPAIK8HRpEl143WQrLW7s8V932bQtTIrJYmRbhA5swlcmYhtYf q5Lw95L6Q9ZLEivGWP0PrCNXe4kODYKQWT+1MFsTK4wqMS4JpuU7E89J+Qoe8l1TEXrw 5Tc/0t//JNVw+y6W1m2nshfZaI9N+/tMOZXb9CGgZDMa1N75H9MyM2+P1zlxr0XCybqC xDpPq/R/KDVkm2vsbMCf1KwFF9wDMBUQ+ZwSjAOBj71FHY4pmw1OhkgGgySZ/Ax9KSVH mPuA== X-Received: by 10.194.121.65 with SMTP id li1mr3308692wjb.10.1405754561662; Sat, 19 Jul 2014 00:22:41 -0700 (PDT) Received: from localhost.localdomain (158.193.82.79.rev.sfr.net. [79.82.193.158]) by mx.google.com with ESMTPSA id pj6sm19988739wjb.21.2014.07.19.00.22.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Jul 2014 00:22:41 -0700 (PDT) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Sat, 19 Jul 2014 09:22:23 +0200 Message-Id: <1405754543-17066-1-git-send-email-francois.perrad@gadz.org> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] support/script/scanpcan: small fix X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net - typo in comment - remove trailing space in _HOST_DEPENCENCIES when no dependency Signed-off-by: Francois Perrad --- support/scripts/scancpan | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/support/scripts/scancpan b/support/scripts/scancpan index 1280e75..de11ef1 100755 --- a/support/scripts/scancpan +++ b/support/scripts/scancpan @@ -503,7 +503,7 @@ my %need_host; # name -> 1 if host package is needed my %need_dlopen; # name -> 1 if requires dynamic library my %deps_build; # name -> list of host dependencies my %deps_runtime; # name -> list of target dependencies -my %license_files; # neam -> list of license files +my %license_files; # name -> list of license files my $mcpan = MetaCPAN::API::Tiny->new(); my $ua = HTTP::Tiny->new(); @@ -636,10 +636,11 @@ while (my ($distname, $dist) = each %dist) { # the scheme is not used, because the job is done by the BR download infrastructure # the auth part is not used, because we use $(BR2_CPAN_MIRROR) my($filename, $directories, $suffix) = fileparse( $path, q{tar.gz}, q{tgz} ); - my $dependencies = join q{ }, qw( perl ), + my $dependencies = join q{ }, qw( = perl ), map( { q{host-} . fsname( $_ ); } sort @{$deps_build{$distname}} ), map( { fsname( $_ ); } sort @{$deps_runtime{$distname}} ); - my $host_dependencies = join q{ }, map { q{host-} . fsname( $_ ); } sort( @{$deps_build{$distname}}, + my $host_dependencies = join q{ }, qw( = ), + map { q{host-} . fsname( $_ ); } sort( @{$deps_build{$distname}}, @{$deps_runtime{$distname}} ); my $license = ref $dist->{license} eq 'ARRAY' ? join q{ or }, @{$dist->{license}} @@ -659,8 +660,8 @@ while (my ($distname, $dist) = each %dist) { say {$fh} qq{${brname}_VERSION = ${version}}; say {$fh} qq{${brname}_SOURCE = ${distname}-\$(${brname}_VERSION).${suffix}}; say {$fh} qq{${brname}_SITE = \$(BR2_CPAN_MIRROR)${directories}}; - say {$fh} qq{${brname}_DEPENDENCIES = ${dependencies}} if $need_target{$distname}; - say {$fh} qq{HOST_${brname}_DEPENDENCIES = ${host_dependencies}} if $need_host{$distname}; + say {$fh} qq{${brname}_DEPENDENCIES ${dependencies}} if $need_target{$distname}; + say {$fh} qq{HOST_${brname}_DEPENDENCIES ${host_dependencies}} if $need_host{$distname}; say {$fh} qq{${brname}_LICENSE = ${license}} if $license && $license ne q{unknown}; say {$fh} qq{${brname}_LICENSE_FILES = ${license_files}} if $license_files; say {$fh} qq{};