support/script/scancpan: add support PREFER_STATIC_LIB
PATCH 1/5 support/script/scancpan: add support PREFER_STATIC_LIB
Perl extensions are loaded at runtime with dlopen(), so it does not make sense to even build extensions that are written in C.
Perl module written in C or with a dependency on a module written in C is not available when doing a static build.
--- support/scripts/scancpan | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-)
support/scripts/scancpan +26 -6
@@ -480,6 +480,7 @@ use Getopt::Long; use Pod::Usage; use File::Basename; use Module::CoreList; +use HTTP::Tiny; use MetaCPAN::API::Tiny; my ($help, $man, $quiet, $force, $recommend, $host);
@@ -499,9 +500,21 @@ pod2usage(-exitval => 1) if scalar @ARGV == 0; my %dist; # name -> metacpan data my %need_target; # name -> 1 if target package is needed 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 $mcpan = MetaCPAN::API::Tiny->new(); +my $ua = HTTP::Tiny->new(); + +sub is_xs { + my ($author, $distname, $version) = @_; + # This heuristic determines if a module is a native extension, by searching + # some file extension types in the MANIFEST of the distribution. + # It was inspired by http://deps.cpantesters.org/static/purity.html + my $url = qq{http://api.metacpan.org/source/${author}/${distname}-${version}/MANIFEST}; + my $response = $ua->get($url); + return $response->{content} =~ m/\.(swg|xs|c|h|i)\n/; +} sub fetch { my ($name, $need_target, $need_host) = @_;
@@ -511,6 +524,7 @@ sub fetch { say qq{fetch ${name}} unless $quiet; my $result = $mcpan->release( distribution => $name ); $dist{$name} = $result; + $need_dlopen{$name} = is_xs( $result->{author}, $name, $result->{version} ); my @deps_build = (); my @deps_runtime = (); my $mb;
@@ -539,12 +553,13 @@ sub fetch { unshift @deps_build, q{Module-Build} if $mb; $deps_build{$name} = \@deps_build; $deps_runtime{$name} = \@deps_runtime; - } - foreach my $distname (@{$deps_build{$name}}) { - fetch( $distname, 0, 1 ); - } - foreach my $distname (@{$deps_runtime{$name}}) { - fetch( $distname, $need_target, $need_host ); + foreach my $distname (@deps_build) { + fetch( $distname, 0, 1 ); + } + foreach my $distname (@deps_runtime) { + fetch( $distname, $need_target, $need_host ); + $need_dlopen{$name} ||= $need_dlopen{$distname}; + } } return; }
@@ -582,6 +597,7 @@ while (my ($distname, $dist) = each %dist) { open my $fh, q{>}, $cfgname; say {$fh} qq{config BR2_PACKAGE_${brname}}; say {$fh} qq{\tbool "${fsname}"}; + say {$fh} qq{\tdepends on !BR2_PREFER_STATIC_LIB} if $need_dlopen{$distname}; foreach my $dep (sort @{$deps_runtime{$distname}}) { my $brdep = brname( fsname( $dep ) ); say {$fh} qq{\tselect BR2_PACKAGE_${brdep}};
@@ -589,6 +605,10 @@ while (my ($distname, $dist) = each %dist) { say {$fh} qq{\thelp}; say {$fh} qq{\t ${abstract}\n} if $abstract; say {$fh} qq{\t ${homepage}}; + if ($need_dlopen{$distname}) { + say {$fh} qq{\ncomment "${fsname} needs a toolchain w/ dynamic library"}; + say {$fh} qq{\tdepends on BR2_PREFER_STATIC_LIB}; + } close $fh; } if ($force || !-f $mkname) {
Signature · 1 line
1.9.1
PATCH 2/5 perl-io-socket-ssl: new package
--- package/Config.in | 1 + package/perl-io-socket-ssl/Config.in | 11 +++++++++++ package/perl-io-socket-ssl/perl-io-socket-ssl.mk | 13 +++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 package/perl-io-socket-ssl/Config.in create mode 100644 package/perl-io-socket-ssl/perl-io-socket-ssl.mk
package/Config.in +1 -0
@@ -428,6 +428,7 @@ endif source "package/perl/Config.in" if BR2_PACKAGE_PERL menu "Perl libraries/modules" + source "package/perl-io-socket-ssl/Config.in" source "package/perl-mojolicious/Config.in" source "package/perl-net-ssleay/Config.in" source "package/perl-xml-libxml/Config.in"
package/perl-io-socket-ssl/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_PERL_IO_SOCKET_SSL + bool "perl-io-socket-ssl" + depends on !BR2_PREFER_STATIC_LIB + select BR2_PACKAGE_PERL_NET_SSLEAY + help + Nearly transparent SSL encapsulation for IO::Socket::INET. + + https://github.com/noxxi/p5-io-socket-ssl + +comment "perl-io-socket-ssl needs a toolchain w/ dynamic library" + depends on BR2_PREFER_STATIC_LIB
package/perl-io-socket-ssl/perl-io-socket-ssl.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# perl-io-socket-ssl +# +################################################################################ + +PERL_IO_SOCKET_SSL_VERSION = 1.997 +PERL_IO_SOCKET_SSL_SOURCE = IO-Socket-SSL-$(PERL_IO_SOCKET_SSL_VERSION).tar.gz +PERL_IO_SOCKET_SSL_SITE = $(BR2_CPAN_MIRROR)/authors/id/S/SU/SULLR/ +PERL_IO_SOCKET_SSL_DEPENDENCIES = perl perl-net-ssleay +PERL_IO_SOCKET_SSL_LICENSE = Artistic or GPLv1+ + +$(eval $(perl-package))
Signature · 1 line
1.9.1
Thomas Petazzoni
AppliedPATCH 2/5 perl-io-socket-ssl: new package
Dear Francois Perrad,
Quoted 8 lines · Francois Perrad
Signed-off-by Francois Perrad <[email protected]>--- package/Config.in | 1 + package/perl-io-socket-ssl/Config.in | 11 +++++++++++ package/perl-io-socket-ssl/perl-io-socket-ssl.mk | 13 +++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 package/perl-io-socket-ssl/Config.in create mode 100644 package/perl-io-socket-ssl/perl-io-socket-ssl.mk
Applied, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/5 perl-io-socket-ssl: new package
In reply to Francois PerradDear Francois Perrad,
package/perl-io-socket-ssl/perl-io-socket-ssl.mk line 9
Quoted 3 lines · Francois Perrad
package/perl-io-socket-ssl/perl-io-socket-ssl.mk new file +3
-0+PERL_IO_SOCKET_SSL_VERSION = 1.997 +PERL_IO_SOCKET_SSL_SOURCE = IO-Socket-SSL-$(PERL_IO_SOCKET_SSL_VERSION).tar.gz +PERL_IO_SOCKET_SSL_SITE = $(BR2_CPAN_MIRROR)/authors/id/S/SU/SULLR/
Yet another issue with the CPAN mirror:
http://autobuild.buildroot.org/results/5f1/5f15763397244d6f89918a8eebc6952a2895bad0/build-end.log.
Any fix?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/5 perl-io-socket-ssl: new package
2014-07-17 23:08 GMT+02:00 Thomas Petazzoni
<[email protected]>:
Quoted 4 lines
Dear Francois Perrad,
On Thu, 17 Jul 2014 18:32:59 +0200, Francois Perrad wrote:
Quoted 8 lines
package/perl-io-socket-ssl/perl-io-socket-ssl.mk line 9
Quoted 3 lines
package/perl-io-socket-ssl/perl-io-socket-ssl.mk new file +3
-0+PERL_IO_SOCKET_SSL_VERSION = 1.997 +PERL_IO_SOCKET_SSL_SOURCE = IO-Socket-SSL-$(PERL_IO_SOCKET_SSL_VERSION).tar.gz +PERL_IO_SOCKET_SSL_SITE = $(BR2_CPAN_MIRROR)/authors/id/S/SU/SULLR/Yet another issue with the CPAN mirror:
http://autobuild.buildroot.org/results/5f1/5f15763397244d6f89918a8eebc6952a2895bad0/build-end.log.Any fix?
Seems not a permanent failure.
$ wget http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-1.997.tar.gz works fine at this time for me.
Fran?ois
Quoted 12 lines
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH 2/5 perl-io-socket-ssl: new package
Dear Fran?ois Perrad,
Quoted 8 lines · Fran?ois Perrad
Quoted 4 lines
Yet another issue with the CPAN mirror:
http://autobuild.buildroot.org/results/5f1/5f15763397244d6f89918a8eebc6952a2895bad0/build-end.log.Any fix?
Seems not a permanent failure.
$ wget http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-1.997.tar.gz works fine at this time for me.
But again, with the new perl packages just merged:
http://autobuild.buildroot.org/results/6a8/6a89ac18c44490fd25792c39286acbf6c4830e60/build-end.log
http://autobuild.buildroot.org/results/c80/c80d549e38bfa15e19bec7ef226c0120d4adb6ab/build-end.log
http://autobuild.buildroot.org/results/bee/bee5add7dad08a573cad2aa1f438625b135551dd/build-end.log
Wouldn't it be possible to find a more reliable CPAN mirror to use as the default?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/5 perl-io-socket-ssl: new package
2014-07-19 0:38 GMT+02:00 Thomas Petazzoni
<[email protected]>:
Quoted 13 lines
Dear Fran?ois Perrad,
Quoted 8 lines · Fran?ois Perrad
Quoted 4 lines
Yet another issue with the CPAN mirror:
http://autobuild.buildroot.org/results/5f1/5f15763397244d6f89918a8eebc6952a2895bad0/build-end.log.Any fix?
Seems not a permanent failure.
$ wget http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-1.997.tar.gz works fine at this time for me.
Quoted 9 lines
But again, with the new perl packages just merged:
http://autobuild.buildroot.org/results/6a8/6a89ac18c44490fd25792c39286acbf6c4830e60/build-end.log
http://autobuild.buildroot.org/results/c80/c80d549e38bfa15e19bec7ef226c0120d4adb6ab/build-end.log
http://autobuild.buildroot.org/results/bee/bee5add7dad08a573cad2aa1f438625b135551dd/build-end.logWouldn't it be possible to find a more reliable CPAN mirror to use as the default?
There are 258 mirrors, see http://www.cpan.org/SITES.html
and their status are tracked by http://mirrors.cpan.org/
Fran?ois
Quoted 7 lines
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
PATCH 2/5 perl-io-socket-ssl: new package
Dear Fran?ois Perrad,
Quoted 11 lines · Fran?ois Perrad
Quoted 8 lines
But again, with the new perl packages just merged:
http://autobuild.buildroot.org/results/6a8/6a89ac18c44490fd25792c39286acbf6c4830e60/build-end.log
http://autobuild.buildroot.org/results/c80/c80d549e38bfa15e19bec7ef226c0120d4adb6ab/build-end.log
http://autobuild.buildroot.org/results/bee/bee5add7dad08a573cad2aa1f438625b135551dd/build-end.logWouldn't it be possible to find a more reliable CPAN mirror to use as the default?
There are 258 mirrors, see http://www.cpan.org/SITES.html
and their status are tracked by http://mirrors.cpan.org/
Could you select one that apparently works well, and propose a patch to use it as the default?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/5 perl-io-socket-ssl: new package
Fran?ois, All,
On 2014-07-19 10:58 +0200, Thomas Petazzoni spake thusly:
Quoted 8 lines · Fran?ois Perrad
Quoted 7 lines
Quoted 7 lines
But again, with the new perl packages just merged:
http://autobuild.buildroot.org/results/6a8/6a89ac18c44490fd25792c39286acbf6c4830e60/build-end.log
http://autobuild.buildroot.org/results/c80/c80d549e38bfa15e19bec7ef226c0120d4adb6ab/build-end.log
http://autobuild.buildroot.org/results/bee/bee5add7dad08a573cad2aa1f438625b135551dd/build-end.log
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Wouldn't it be possible to find a more reliable CPAN mirror to use as the default?
There are 258 mirrors, see http://www.cpan.org/SITES.html
and their status are tracked by http://mirrors.cpan.org/Could you select one that apparently works well, and propose a patch to use it as the default?
Why not use http://cpan.metacpan.org/ as the mirror? It looks like this one is a round-robin mirror (I got at least 7 different IPs in different sub-nets.)
I'll check if all our perl modules are available there before sending a patch.
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 3/5 perl-gd: new package
In reply to Francois Perrad--- package/Config.in | 1 + package/perl-gd/Config.in | 14 +++++++++++ package/perl-gd/perl-gd-01-getoptions.patch | 39 +++++++++++++++++++++++++++++ package/perl-gd/perl-gd-02-lgd.patch | 25 ++++++++++++++++++ package/perl-gd/perl-gd-03-force.patch | 29 +++++++++++++++++++++ package/perl-gd/perl-gd.mk | 20 +++++++++++++++ 6 files changed, 128 insertions(+) create mode 100644 package/perl-gd/Config.in create mode 100644 package/perl-gd/perl-gd-01-getoptions.patch create mode 100644 package/perl-gd/perl-gd-02-lgd.patch create mode 100644 package/perl-gd/perl-gd-03-force.patch create mode 100644 package/perl-gd/perl-gd.mk
package/Config.in +1 -0
@@ -428,6 +428,7 @@ endif source "package/perl/Config.in" if BR2_PACKAGE_PERL menu "Perl libraries/modules" + source "package/perl-gd/Config.in" source "package/perl-io-socket-ssl/Config.in" source "package/perl-mojolicious/Config.in" source "package/perl-net-ssleay/Config.in"
package/perl-gd/Config.in new file +14 -0
@@ -0,0 +1,14 @@ +config BR2_PACKAGE_PERL_GD + bool "perl-gd" + depends on !BR2_PREFER_STATIC_LIB + select BR2_PACKAGE_ZLIB + select BR2_PACKAGE_LIBPNG + select BR2_PACKAGE_FREETYPE + select BR2_PACKAGE_GD + help + Interface to Gd Graphics Library + + https://metacpan.org/release/GD + +comment "perl-gd needs a toolchain w/ dynamic library" + depends on BR2_PREFER_STATIC_LIB
package/perl-gd/perl-gd-01-getoptions.patch new file +39 -0
@@ -0,0 +1,39 @@ +fix option handling in Makefile.PL +the call to GetOptions() must be unique. + +Index: b/Makefile.PL +=================================================================== +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -24,7 +24,15 @@ + my ($options,$lib_gd_path,$lib_ft_path,$lib_png_path,$lib_jpeg_path,$lib_xpm_path,$lib_zlib_path,$force); + + use Getopt::Long; +-GetOptions("ignore_missing_gd" => \$force); ++my $result = GetOptions("options=s" => \$options, ++ "lib_gd_path=s" => \$lib_gd_path, ++ "lib_ft_path=s" => \$lib_ft_path, ++ "lib_png_path=s" => \$lib_png_path, ++ "lib_jpeg_path=s" => \$lib_jpeg_path, ++ "lib_xpm_path=s" => \$lib_xpm_path, ++ "lib_zlib_path=s" => \$lib_zlib_path, ++ "ignore_missing_gd" => \$force, ++ ); + + unless (try_to_autoconfigure(\$options,\$lib_gd_path,\@INC,\@LIBPATH,\@LIBS) || $force) { + die <<END; +@@ -47,14 +55,6 @@ + ############################################################################################# + # Build options passed in to script to support reproducible builds via Makefiles + ############################################################################################# +-my $result = GetOptions("options=s" => \$options, +- "lib_gd_path=s" => \$lib_gd_path, +- "lib_ft_path=s" => \$lib_ft_path, +- "lib_png_path=s" => \$lib_png_path, +- "lib_jpeg_path=s" => \$lib_jpeg_path, +- "lib_xpm_path=s" => \$lib_xpm_path, +- "lib_zlib_path=s" => \$lib_zlib_path, +- ); + unless ($result) { + print STDERR <<END; + Usage: perl Makefile.PL [options]
package/perl-gd/perl-gd-02-lgd.patch new file +25 -0
@@ -0,0 +1,25 @@ +refactor -lgd in @LIBS + +Index: b/Makefile.PL +=================================================================== +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -34,9 +34,9 @@ + END + } + ++push @LIBS, "-lgd"; + @INC = qw(-I/usr/include -I/usr/include/gd) unless @INC; + @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/lib) unless @LIBPATH; +- at LIBS = qw(-lgd) unless @LIBS; + + # support for AMD64 libraries + if (-d '/usr/lib64') { +@@ -291,7 +291,6 @@ + @$LIBPATH = map {s/^-L// && "-L$_"} split /\s+/,$ldflags; + @$LIBS = split /\s+/,$libs; + +- push @$LIBS,"-lgd"; + push @$LIBPATH,"-L$libdir"; + ($$lib_gd_path = $libdir) =~ s!/[^/]+$!!; + $$options = $features;
package/perl-gd/perl-gd-03-force.patch new file +29 -0
@@ -0,0 +1,29 @@ +let @INC and @LIBPATH empty when ignore_missing_gd + +Index: b/Makefile.PL +=================================================================== +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -35,13 +35,15 @@ + } + + push @LIBS, "-lgd"; +- at INC = qw(-I/usr/include -I/usr/include/gd) unless @INC; +- at LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/lib) unless @LIBPATH; +- +-# support for AMD64 libraries +-if (-d '/usr/lib64') { +- my @libs64 = map {my $a = $_; $a=~ s/lib$/lib64/; $a} @LIBPATH; +- @LIBPATH = (@LIBPATH, at libs64); ++unless ($force) { ++ @INC = qw(-I/usr/include -I/usr/include/gd) unless @INC; ++ @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/lib) unless @LIBPATH; ++ ++ # support for AMD64 libraries ++ if (-d '/usr/lib64') { ++ my @libs64 = map {my $a = $_; $a=~ s/lib$/lib64/; $a} @LIBPATH; ++ @LIBPATH = (@LIBPATH,@libs64); ++ } + } + + #############################################################################################
package/perl-gd/perl-gd.mk new file +20 -0
@@ -0,0 +1,20 @@ +################################################################################ +# +# perl-gd +# +################################################################################ + +PERL_GD_VERSION = 2.53 +PERL_GD_SOURCE = GD-$(PERL_GD_VERSION).tar.gz +PERL_GD_SITE = $(BR2_CPAN_MIRROR)/authors/id/L/LD/LDS/ +PERL_GD_DEPENDENCIES = perl zlib libpng freetype gd + +PERL_GD_CONF_OPT = \ + -options=FT,PNG \ + -lib_gd_path=$(STAGING_DIR)/usr \ + -lib_ft_path=$(STAGING_DIR)/usr \ + -lib_png_path=$(STAGING_DIR)/usr \ + -lib_zlib_path=$(STAGING_DIR)/usr \ + -ignore_missing_gd + +$(eval $(perl-package))
Signature · 1 line
1.9.1
PATCH 3/5 perl-gd: new package
Dear Francois Perrad,
package/perl-gd/perl-gd-01-getoptions.patch line 2
Quoted 8 lines · Francois Perrad
package/perl-gd/perl-gd-01-getoptions.patch new file +2
-0@@ -0,0 +1,39 @@ +fix option handling in Makefile.PL +the call to GetOptions() must be unique.
Please format the patch description as a git commit description: one line for the summary, then one empty new line, and then more details.
And also, your SoB line.
package/perl-gd/perl-gd-02-lgd.patch line 1
Quoted 7 lines
package/perl-gd/perl-gd-02-lgd.patch new file +1
-0@@ -0,0 +1,25 @@ +refactor -lgd in @LIBS
Ditto. The description is also a bit short...
package/perl-gd/perl-gd-03-force.patch line 1
Quoted 7 lines
package/perl-gd/perl-gd-03-force.patch new file +1
-0@@ -0,0 +1,29 @@ +let @INC and @LIBPATH empty when ignore_missing_gd
Same.
Quoted 6 lines
package/perl-gd/perl-gd.mk new file +0
-0
package/perl-gd/perl-gd.mk line 10
Quoted 10 lines
package/perl-gd/perl-gd.mk new file +10
-0@@ -0,0 +1,20 @@ +################################################################################ +# +# perl-gd +# +################################################################################ + +PERL_GD_VERSION = 2.53 +PERL_GD_SOURCE = GD-$(PERL_GD_VERSION).tar.gz +PERL_GD_SITE = $(BR2_CPAN_MIRROR)/authors/id/L/LD/LDS/ +PERL_GD_DEPENDENCIES = perl zlib libpng freetype gd
No license / license file?
package/perl-gd/perl-gd.mk line 20
Quoted 10 lines
package/perl-gd/perl-gd.mk new file +10
-0+ +PERL_GD_CONF_OPT = \ + -options=FT,PNG \ + -lib_gd_path=$(STAGING_DIR)/usr \ + -lib_ft_path=$(STAGING_DIR)/usr \ + -lib_png_path=$(STAGING_DIR)/usr \ + -lib_zlib_path=$(STAGING_DIR)/usr \ + -ignore_missing_gd + +$(eval $(perl-package))
Other than that, looks good to me.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 4/5 perl-gdtextutil: new package
In reply to Francois Perrad--- package/Config.in | 1 + package/perl-gdtextutil/Config.in | 6 ++++++ package/perl-gdtextutil/perl-gdtextutil.mk | 12 ++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 package/perl-gdtextutil/Config.in create mode 100644 package/perl-gdtextutil/perl-gdtextutil.mk
package/Config.in +1 -0
@@ -429,6 +429,7 @@ endif if BR2_PACKAGE_PERL menu "Perl libraries/modules" source "package/perl-gd/Config.in" + source "package/perl-gdtextutil/Config.in" source "package/perl-io-socket-ssl/Config.in" source "package/perl-mojolicious/Config.in" source "package/perl-net-ssleay/Config.in"
package/perl-gdtextutil/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_PERL_GDTEXTUTIL + bool "perl-gdtextutil" + help + Text utilities for use with GD + + https://metacpan.org/release/GDTextUtil
package/perl-gdtextutil/perl-gdtextutil.mk new file +12 -0
@@ -0,0 +1,12 @@ +################################################################################ +# +# perl-gdtextutil +# +################################################################################ + +PERL_GDTEXTUTIL_VERSION = 0.86 +PERL_GDTEXTUTIL_SOURCE = GDTextUtil-$(PERL_GDTEXTUTIL_VERSION).tar.gz +PERL_GDTEXTUTIL_SITE = $(BR2_CPAN_MIRROR)/authors/id/M/MV/MVERB/ +PERL_GDTEXTUTIL_DEPENDENCIES = perl + +$(eval $(perl-package))
Signature · 1 line
1.9.1
PATCH 4/5 perl-gdtextutil: new package
Dear Francois Perrad,
Quoted 8 lines · Francois Perrad
package/perl-gdtextutil/perl-gdtextutil.mk new file +2
-0@@ -0,0 +1,12 @@ +################################################################################ +#
package/perl-gdtextutil/perl-gdtextutil.mk line 12
Quoted 10 lines
package/perl-gdtextutil/perl-gdtextutil.mk new file +10
-0+# perl-gdtextutil +# +################################################################################ + +PERL_GDTEXTUTIL_VERSION = 0.86 +PERL_GDTEXTUTIL_SOURCE = GDTextUtil-$(PERL_GDTEXTUTIL_VERSION).tar.gz +PERL_GDTEXTUTIL_SITE = $(BR2_CPAN_MIRROR)/authors/id/M/MV/MVERB/ +PERL_GDTEXTUTIL_DEPENDENCIES = perl + +$(eval $(perl-package))
No license / license file?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 5/5 perl-gdgraph: new package
In reply to Francois Perrad--- package/Config.in | 1 + package/perl-gdgraph/Config.in | 12 ++++++++++++ package/perl-gdgraph/perl-gdgraph.mk | 13 +++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 package/perl-gdgraph/Config.in create mode 100644 package/perl-gdgraph/perl-gdgraph.mk
package/Config.in +1 -0
@@ -429,6 +429,7 @@ endif if BR2_PACKAGE_PERL menu "Perl libraries/modules" source "package/perl-gd/Config.in" + source "package/perl-gdgraph/Config.in" source "package/perl-gdtextutil/Config.in" source "package/perl-io-socket-ssl/Config.in" source "package/perl-mojolicious/Config.in"
package/perl-gdgraph/Config.in new file +12 -0
@@ -0,0 +1,12 @@ +config BR2_PACKAGE_PERL_GDGRAPH + bool "perl-gdgraph" + depends on !BR2_PREFER_STATIC_LIB + select BR2_PACKAGE_PERL_GD + select BR2_PACKAGE_PERL_GDTEXTUTIL + help + Produces charts with GD + + https://metacpan.org/release/GDGraph + +comment "perl-gdgraph needs a toolchain w/ dynamic library" + depends on BR2_PREFER_STATIC_LIB
package/perl-gdgraph/perl-gdgraph.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# perl-gdgraph +# +################################################################################ + +PERL_GDGRAPH_VERSION = 1.48 +PERL_GDGRAPH_SOURCE = GDGraph-$(PERL_GDGRAPH_VERSION).tar.gz +PERL_GDGRAPH_SITE = $(BR2_CPAN_MIRROR)/authors/id/R/RU/RUZ/ +PERL_GDGRAPH_DEPENDENCIES = perl perl-gd perl-gdtextutil +PERL_GDGRAPH_LICENSE = Artistic or GPLv1+ + +$(eval $(perl-package))
Signature · 1 line
1.9.1
Thomas Petazzoni
AppliedPATCH 1/5 support/script/scancpan: add support PREFER_STATIC_LIB
In reply to Francois PerradDear Francois Perrad,
Quoted 10 lines · Francois Perrad
Perl extensions are loaded at runtime with
dlopen(), so it does not make sense to even build extensions that are written in C.Perl module written in C or with a dependency on a module written in C is not available when doing a static build.
Signed-off-by Francois Perrad <[email protected]>--- support/scripts/scancpan | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-)
Applied, with an improved commit log. The commit log was not explaining what the commit was doing (i.e changing scancpan to automatically generate a !BR2_PREFER_STATIC_LIB dependency).
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com