All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] pkg-perl: refactor perl infrastructure
@ 2015-09-02 19:31 Francois Perrad
  2015-09-02 19:31 ` [Buildroot] [PATCH 2/2] pkg-perl: remove the dependency generated by scancpan Francois Perrad
  2015-09-07 12:37 ` [Buildroot] [PATCH 1/2] pkg-perl: refactor perl infrastructure Vicente Olivert Riera
  0 siblings, 2 replies; 5+ messages in thread
From: Francois Perrad @ 2015-09-02 19:31 UTC (permalink / raw)
  To: buildroot

the perl dependency of cpan module is no longer generated by scancpan,
but added at the infrastructure level

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/pkg-perl.mk      | 8 ++++++++
 support/scripts/scancpan | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/package/pkg-perl.mk b/package/pkg-perl.mk
index 6577588..a06c068 100644
--- a/package/pkg-perl.mk
+++ b/package/pkg-perl.mk
@@ -39,7 +39,15 @@ PERL_RUN = PERL5LIB= $(HOST_DIR)/usr/bin/perl
 
 define inner-perl-package
 
+# Target packages need both the perl interpreter on the target (for
+# runtime) and the perl interpreter on the host (for
+# compilation). However, host packages only need the perl
+# interpreter on the host.
+ifeq ($(4),target)
+$(2)_DEPENDENCIES += host-perl perl
+else
 $(2)_DEPENDENCIES += host-perl
+endif
 
 #
 # Configure step. Only define it if not already defined by the package
diff --git a/support/scripts/scancpan b/support/scripts/scancpan
index c7180c8..947d248 100755
--- a/support/scripts/scancpan
+++ b/support/scripts/scancpan
@@ -655,7 +655,7 @@ while (my ($distname, $dist) = each %dist) {
         # the auth part is not used, because we use $(BR2_CPAN_MIRROR)
         my($filename, $directories, $suffix) = fileparse( $path, q{tar.gz}, q{tgz} );
         $directories =~ s|/$||;
-        my $dependencies = join q{ }, qw( = perl ),
+        my $dependencies = join q{ }, qw( = ),
                                       map( { q{host-} . fsname( $_ ); } sort @{$deps_build{$distname}} ),
                                       map( { fsname( $_ ); } sort @{$deps_runtime{$distname}} );
         my $host_dependencies = join q{ }, qw( = ),
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-07 12:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-02 19:31 [Buildroot] [PATCH 1/2] pkg-perl: refactor perl infrastructure Francois Perrad
2015-09-02 19:31 ` [Buildroot] [PATCH 2/2] pkg-perl: remove the dependency generated by scancpan Francois Perrad
2015-09-02 19:59   ` Thomas Petazzoni
2015-09-04 12:18     ` François Perrad
2015-09-07 12:37 ` [Buildroot] [PATCH 1/2] pkg-perl: refactor perl infrastructure Vicente Olivert Riera

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.