Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] pkg-perl: add PREFER_INSTALLER variable
@ 2017-01-21 11:51 Francois Perrad
  2017-01-21 11:51 ` [Buildroot] [PATCH 2/3] perl-gd: bump to version 2.56 Francois Perrad
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Francois Perrad @ 2017-01-21 11:51 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 docs/manual/adding-packages-perl.txt |  6 +++++-
 package/pkg-perl.mk                  | 20 ++++++++++++++------
 2 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/docs/manual/adding-packages-perl.txt b/docs/manual/adding-packages-perl.txt
index 4f5a6a4..b4b81c9 100644
--- a/docs/manual/adding-packages-perl.txt
+++ b/docs/manual/adding-packages-perl.txt
@@ -69,7 +69,7 @@ named +perl-<something>+ in Buildroot.
 
 This infrastructure handles various Perl build systems :
 +ExtUtils-MakeMaker+, +Module-Build+ and +Module-Build-Tiny+.
-+Build.PL+ is always preferred when a package provides a +Makefile.PL+
++Build.PL+ is preferred by default when a package provides a +Makefile.PL+
 and a +Build.PL+.
 
 The main macro of the Perl/CPAN package infrastructure is
@@ -97,6 +97,10 @@ A few additional variables, specific to the Perl/CPAN infrastructure,
 can also be defined. Many of them are only useful in very specific
 cases, typical packages will therefore only use a few of them.
 
+* +PERL_FOO_PREFER_INSTALLER+/+HOST_PERL_FOO_PREFER_INSTALLER+, with the
+  value 'EUMM', the use of +Makefile.PL+ is prefered at +Build.pl+.
+  By default, 'MB'.
+
 * +PERL_FOO_CONF_ENV+/+HOST_PERL_FOO_CONF_ENV+, to specify additional
   environment variables to pass to the +perl Makefile.PL+ or +perl Build.PL+.
   By default, empty.
diff --git a/package/pkg-perl.mk b/package/pkg-perl.mk
index 4b20598..489b8ff 100644
--- a/package/pkg-perl.mk
+++ b/package/pkg-perl.mk
@@ -49,6 +49,14 @@ else
 $(2)_DEPENDENCIES += host-perl
 endif
 
+# equivalent at $CPAN::Config{prefer_installer}
+# legal values are MB and EUMM: if a module comes
+# with both a Makefile.PL and a Build.PL, use the
+# former (EUMM) or the latter (MB); if the module
+# comes with only one of the two, that one will be
+# used no matter the setting
+$(2)_PREFER_INSTALLER ?= MB
+
 #
 # Configure step. Only define it if not already defined by the package
 # .mk file. And take care of the differences between host and target
@@ -59,7 +67,7 @@ ifeq ($(4),target)
 
 # Configure package for target
 define $(2)_CONFIGURE_CMDS
-	cd $$($$(PKG)_SRCDIR) && if [ -f Build.PL ] ; then \
+	cd $$($$(PKG)_SRCDIR) && if [ -f Build.PL ] && [ $$($(2)_PREFER_INSTALLER) != "EUMM" ] ; then \
 		$$($(2)_CONF_ENV) \
 		PERL_MM_USE_DEFAULT=1 \
 		$$(PERL_RUN) Build.PL \
@@ -109,7 +117,7 @@ else
 
 # Configure package for host
 define $(2)_CONFIGURE_CMDS
-	cd $$($$(PKG)_SRCDIR) && if [ -f Build.PL ] ; then \
+	cd $$($$(PKG)_SRCDIR) && if [ -f Build.PL ] && [ $$($(2)_PREFER_INSTALLER) != "EUMM" ] ; then \
 		$$($(2)_CONF_ENV) \
 		PERL_MM_USE_DEFAULT=1 \
 		$$(PERL_RUN) Build.PL \
@@ -135,7 +143,7 @@ ifeq ($(4),target)
 
 # Build package for target
 define $(2)_BUILD_CMDS
-	cd $$($$(PKG)_SRCDIR) && if [ -f Build.PL ] ; then \
+	cd $$($$(PKG)_SRCDIR) && if [ -f Build.PL ] && [ $$($(2)_PREFER_INSTALLER) != "EUMM" ] ; then \
 		$$(PERL_RUN) Build $$($(2)_BUILD_OPTS) build; \
 	else \
 		$$(MAKE1) \
@@ -148,7 +156,7 @@ else
 
 # Build package for host
 define $(2)_BUILD_CMDS
-	cd $$($$(PKG)_SRCDIR) && if [ -f Build.PL ] ; then \
+	cd $$($$(PKG)_SRCDIR) && if [ -f Build.PL ] && [ $$($(2)_PREFER_INSTALLER) != "EUMM" ] ; then \
 		$$(PERL_RUN) Build $$($(2)_BUILD_OPTS) build; \
 	else \
 		$$(MAKE1) $$($(2)_BUILD_OPTS) pure_all; \
@@ -163,7 +171,7 @@ endif
 #
 ifndef $(2)_INSTALL_CMDS
 define $(2)_INSTALL_CMDS
-	cd $$($$(PKG)_SRCDIR) && if [ -f Build.PL ] ; then \
+	cd $$($$(PKG)_SRCDIR) && if [ -f Build.PL ] && [ $$($(2)_PREFER_INSTALLER) != "EUMM" ] ; then \
 		$$(PERL_RUN) Build $$($(2)_INSTALL_TARGET_OPTS) install; \
 	else \
 		$$(MAKE1) $$($(2)_INSTALL_TARGET_OPTS) pure_install; \
@@ -177,7 +185,7 @@ endif
 #
 ifndef $(2)_INSTALL_TARGET_CMDS
 define $(2)_INSTALL_TARGET_CMDS
-	cd $$($$(PKG)_SRCDIR) && if [ -f Build.PL ] ; then \
+	cd $$($$(PKG)_SRCDIR) && if [ -f Build.PL ] && [ $$($(2)_PREFER_INSTALLER) != "EUMM" ] ; then \
 		$$(PERL_RUN) Build $$($(2)_INSTALL_TARGET_OPTS) install; \
 	else \
 		$$(MAKE1) $$($(2)_INSTALL_TARGET_OPTS) pure_install; \
-- 
2.9.3

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

* [Buildroot] [PATCH 2/3] perl-gd: bump to version 2.56
  2017-01-21 11:51 [Buildroot] [PATCH 1/3] pkg-perl: add PREFER_INSTALLER variable Francois Perrad
@ 2017-01-21 11:51 ` Francois Perrad
  2017-01-22  6:35   ` Thomas Petazzoni
  2017-01-21 11:51 ` [Buildroot] [PATCH 3/3] perl-gdgraph: bump to version 1.54 Francois Perrad
  2017-01-22  6:34 ` [Buildroot] [PATCH 1/3] pkg-perl: add PREFER_INSTALLER variable Thomas Petazzoni
  2 siblings, 1 reply; 6+ messages in thread
From: Francois Perrad @ 2017-01-21 11:51 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/perl-gd/0002-lgd.patch                              | 4 ++--
 package/perl-gd/0003-force.patch                            | 2 +-
 package/perl-gd/0004-gdlib-config-is-now-configurable.patch | 2 +-
 package/perl-gd/Config.in                                   | 2 +-
 package/perl-gd/perl-gd.hash                                | 4 ++--
 package/perl-gd/perl-gd.mk                                  | 5 +++--
 6 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/package/perl-gd/0002-lgd.patch b/package/perl-gd/0002-lgd.patch
index 4a69c2a..2827cd7 100644
--- a/package/perl-gd/0002-lgd.patch
+++ b/package/perl-gd/0002-lgd.patch
@@ -7,7 +7,7 @@ Index: b/Makefile.PL
 ===================================================================
 --- a/Makefile.PL
 +++ b/Makefile.PL
-@@ -34,9 +34,9 @@
+@@ -42,9 +42,9 @@
  END
  }
  
@@ -18,7 +18,7 @@ Index: b/Makefile.PL
  
  # support for AMD64 libraries
  if (-d '/usr/lib64') {
-@@ -291,7 +291,6 @@
+@@ -294,7 +294,6 @@
    @$LIBPATH      = map {s/^-L// && "-L$_"} split /\s+/,$ldflags;
    @$LIBS         = split /\s+/,$libs;
  
diff --git a/package/perl-gd/0003-force.patch b/package/perl-gd/0003-force.patch
index 0a121a9..611066b 100644
--- a/package/perl-gd/0003-force.patch
+++ b/package/perl-gd/0003-force.patch
@@ -7,7 +7,7 @@ Index: b/Makefile.PL
 ===================================================================
 --- a/Makefile.PL
 +++ b/Makefile.PL
-@@ -35,13 +35,15 @@
+@@ -43,13 +43,15 @@
  }
  
  push @LIBS, "-lgd";
diff --git a/package/perl-gd/0004-gdlib-config-is-now-configurable.patch b/package/perl-gd/0004-gdlib-config-is-now-configurable.patch
index dea6126..58df225 100644
--- a/package/perl-gd/0004-gdlib-config-is-now-configurable.patch
+++ b/package/perl-gd/0004-gdlib-config-is-now-configurable.patch
@@ -53,7 +53,7 @@ index dfe8ad7..0fa6ef3 100644
  #############################################################################################
  
  if ($^O eq 'VMS'){
-@@ -275,7 +286,7 @@ exit 0;
+@@ -278,7 +289,7 @@ exit 0;
  
  sub try_to_autoconfigure {
    my ($options,$lib_gd_path,$INC,$LIBPATH,$LIBS) = @_;
diff --git a/package/perl-gd/Config.in b/package/perl-gd/Config.in
index 61f7e5d..2b7a265 100644
--- a/package/perl-gd/Config.in
+++ b/package/perl-gd/Config.in
@@ -6,7 +6,7 @@ config BR2_PACKAGE_PERL_GD
 	select BR2_PACKAGE_FREETYPE
 	select BR2_PACKAGE_GD
 	help
-	  Interface to Gd Graphics Library
+	  Perl interface to the gd2 graphics library
 
 	  https://metacpan.org/release/GD
 
diff --git a/package/perl-gd/perl-gd.hash b/package/perl-gd/perl-gd.hash
index c6822ae..0c16d3f 100644
--- a/package/perl-gd/perl-gd.hash
+++ b/package/perl-gd/perl-gd.hash
@@ -1,3 +1,3 @@
 # retrieved by scancpan from http://cpan.metacpan.org/
-md5    d2c9b18123bcaff8672eb50f2eb37ed3 GD-2.53.tar.gz
-sha256 d05d01fe95e581adb3468cf05ab5d405db7497c0fb3ec7ecf23d023705fab7aa GD-2.53.tar.gz
+md5    c4b3afd98b2c4ce3c2e1027d101a8f1e GD-2.56.tar.gz
+sha256 1f103d1c98de8621504642ed7fb79f1b40f5f6a63c2abe9390a8ab78617248f9 GD-2.56.tar.gz
diff --git a/package/perl-gd/perl-gd.mk b/package/perl-gd/perl-gd.mk
index 99568cb..ea8fd5c 100644
--- a/package/perl-gd/perl-gd.mk
+++ b/package/perl-gd/perl-gd.mk
@@ -4,12 +4,13 @@
 #
 ################################################################################
 
-PERL_GD_VERSION = 2.53
+PERL_GD_VERSION = 2.56
 PERL_GD_SOURCE = GD-$(PERL_GD_VERSION).tar.gz
 PERL_GD_SITE = $(BR2_CPAN_MIRROR)/authors/id/L/LD/LDS
 PERL_GD_DEPENDENCIES = zlib libpng freetype gd
-PERL_GD_LICENSE = Artistic-2.0 or GPLv1+
+PERL_GD_LICENSE = Artistic or GPLv1+
 PERL_GD_LICENSE_FILES = LICENSE
+PERL_GD_PREFER_INSTALLER = EUMM
 
 PERL_GD_CONF_OPTS = \
 	-options=FT,PNG \
-- 
2.9.3

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

* [Buildroot] [PATCH 3/3] perl-gdgraph: bump to version 1.54
  2017-01-21 11:51 [Buildroot] [PATCH 1/3] pkg-perl: add PREFER_INSTALLER variable Francois Perrad
  2017-01-21 11:51 ` [Buildroot] [PATCH 2/3] perl-gd: bump to version 2.56 Francois Perrad
@ 2017-01-21 11:51 ` Francois Perrad
  2017-01-22  6:34 ` [Buildroot] [PATCH 1/3] pkg-perl: add PREFER_INSTALLER variable Thomas Petazzoni
  2 siblings, 0 replies; 6+ messages in thread
From: Francois Perrad @ 2017-01-21 11:51 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/perl-gdgraph/perl-gdgraph.hash | 4 ++--
 package/perl-gdgraph/perl-gdgraph.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/perl-gdgraph/perl-gdgraph.hash b/package/perl-gdgraph/perl-gdgraph.hash
index 7005cc9..2e85452 100644
--- a/package/perl-gdgraph/perl-gdgraph.hash
+++ b/package/perl-gdgraph/perl-gdgraph.hash
@@ -1,3 +1,3 @@
 # retrieved by scancpan from http://cpan.metacpan.org/
-md5    8bb270a30fea27491302b39b701b3d4e GDGraph-1.49.tar.gz
-sha256 d26538c827e35c1d4b27f3c045b60f1ab6b45401c54a87e86103cd7c2374cff5 GDGraph-1.49.tar.gz
+md5    38c6a188519e6272e9b2b722b315c3d8 GDGraph-1.54.tar.gz
+sha256 b96f5c10b656c17d16ab65a1777c908297b028d3b6815f6d54b2337f006bfa4f GDGraph-1.54.tar.gz
diff --git a/package/perl-gdgraph/perl-gdgraph.mk b/package/perl-gdgraph/perl-gdgraph.mk
index dbc789e..dc7ffd9 100644
--- a/package/perl-gdgraph/perl-gdgraph.mk
+++ b/package/perl-gdgraph/perl-gdgraph.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-PERL_GDGRAPH_VERSION = 1.49
+PERL_GDGRAPH_VERSION = 1.54
 PERL_GDGRAPH_SOURCE = GDGraph-$(PERL_GDGRAPH_VERSION).tar.gz
 PERL_GDGRAPH_SITE = $(BR2_CPAN_MIRROR)/authors/id/R/RU/RUZ
 PERL_GDGRAPH_DEPENDENCIES = perl-gd perl-gdtextutil
-- 
2.9.3

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

* [Buildroot] [PATCH 1/3] pkg-perl: add PREFER_INSTALLER variable
  2017-01-21 11:51 [Buildroot] [PATCH 1/3] pkg-perl: add PREFER_INSTALLER variable Francois Perrad
  2017-01-21 11:51 ` [Buildroot] [PATCH 2/3] perl-gd: bump to version 2.56 Francois Perrad
  2017-01-21 11:51 ` [Buildroot] [PATCH 3/3] perl-gdgraph: bump to version 1.54 Francois Perrad
@ 2017-01-22  6:34 ` Thomas Petazzoni
  2017-01-24  9:46   ` François Perrad
  2 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2017-01-22  6:34 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat, 21 Jan 2017 12:51:16 +0100, Francois Perrad wrote:

> +* +PERL_FOO_PREFER_INSTALLER+/+HOST_PERL_FOO_PREFER_INSTALLER+, with the
> +  value 'EUMM', the use of +Makefile.PL+ is prefered at +Build.pl+.

Should be "Build.PL" (i.e PL in capital letters).

> +  By default, 'MB'.

Is it possible to find values that are less cryptic than EUMM and MB ?
Either a boolean style:

<pkg>_USES_MODULE_BUILD = YES/NO

or:

<pkg>_BUILD_TYPE = Module-Build / ExtUtils-MakeMaker

Or are EUMM/MB values already used in the Perl community?

> +# equivalent at $CPAN::Config{prefer_installer}

I don't understand what this sentence means.

> +# legal values are MB and EUMM: if a module comes
> +# with both a Makefile.PL and a Build.PL, use the
> +# former (EUMM) or the latter (MB); if the module
> +# comes with only one of the two, that one will be
> +# used no matter the setting
> +$(2)_PREFER_INSTALLER ?= MB

If we keep this name, it should be:

<pkg>_PREFERRED_INSTALLER

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 2/3] perl-gd: bump to version 2.56
  2017-01-21 11:51 ` [Buildroot] [PATCH 2/3] perl-gd: bump to version 2.56 Francois Perrad
@ 2017-01-22  6:35   ` Thomas Petazzoni
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2017-01-22  6:35 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat, 21 Jan 2017 12:51:17 +0100, Francois Perrad wrote:
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> ---
>  package/perl-gd/0002-lgd.patch                              | 4 ++--
>  package/perl-gd/0003-force.patch                            | 2 +-
>  package/perl-gd/0004-gdlib-config-is-now-configurable.patch | 2 +-
>  package/perl-gd/Config.in                                   | 2 +-
>  package/perl-gd/perl-gd.hash                                | 4 ++--
>  package/perl-gd/perl-gd.mk                                  | 5 +++--
>  6 files changed, 10 insertions(+), 9 deletions(-)

Why do we have to suddenly add this new PREFER_INSTALLER variable when
bumping perl-gd ? It should be explained in the commit log.

Do you expect other Perl packages to need this new PREFER_INSTALLER
variable ?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 1/3] pkg-perl: add PREFER_INSTALLER variable
  2017-01-22  6:34 ` [Buildroot] [PATCH 1/3] pkg-perl: add PREFER_INSTALLER variable Thomas Petazzoni
@ 2017-01-24  9:46   ` François Perrad
  0 siblings, 0 replies; 6+ messages in thread
From: François Perrad @ 2017-01-24  9:46 UTC (permalink / raw)
  To: buildroot

2017-01-22 7:34 GMT+01:00 Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>:
> Hello,
>
> On Sat, 21 Jan 2017 12:51:16 +0100, Francois Perrad wrote:
>
>> +* +PERL_FOO_PREFER_INSTALLER+/+HOST_PERL_FOO_PREFER_INSTALLER+, with the
>> +  value 'EUMM', the use of +Makefile.PL+ is prefered at +Build.pl+.
>
> Should be "Build.PL" (i.e PL in capital letters).

Fixed in V2

>
>> +  By default, 'MB'.
>
> Is it possible to find values that are less cryptic than EUMM and MB ?
> Either a boolean style:

No, I use same name (prefer_installer) and values (EUMM, MB) as in
cpan client (see http://perldoc.perl.org/CPAN.html#Config-Variables).
I don't want invent new ones.

Fran?ois

>
> <pkg>_USES_MODULE_BUILD = YES/NO
>
> or:
>
> <pkg>_BUILD_TYPE = Module-Build / ExtUtils-MakeMaker
>
> Or are EUMM/MB values already used in the Perl community?
>
>> +# equivalent at $CPAN::Config{prefer_installer}
>
> I don't understand what this sentence means.
>
>> +# legal values are MB and EUMM: if a module comes
>> +# with both a Makefile.PL and a Build.PL, use the
>> +# former (EUMM) or the latter (MB); if the module
>> +# comes with only one of the two, that one will be
>> +# used no matter the setting
>> +$(2)_PREFER_INSTALLER ?= MB
>
> If we keep this name, it should be:
>
> <pkg>_PREFERRED_INSTALLER
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

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

end of thread, other threads:[~2017-01-24  9:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-21 11:51 [Buildroot] [PATCH 1/3] pkg-perl: add PREFER_INSTALLER variable Francois Perrad
2017-01-21 11:51 ` [Buildroot] [PATCH 2/3] perl-gd: bump to version 2.56 Francois Perrad
2017-01-22  6:35   ` Thomas Petazzoni
2017-01-21 11:51 ` [Buildroot] [PATCH 3/3] perl-gdgraph: bump to version 1.54 Francois Perrad
2017-01-22  6:34 ` [Buildroot] [PATCH 1/3] pkg-perl: add PREFER_INSTALLER variable Thomas Petazzoni
2017-01-24  9:46   ` François Perrad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox