Patchwork [03/13] perl: add DB_File

login
register
mail settings
Submitter Francois Perrad
Date Sept. 8, 2012, 12:28 p.m.
Message ID <1347107325-4163-3-git-send-email-francois.perrad@gadz.org>
Download mbox | patch
Permalink /patch/182557/
State Superseded
Headers show

Comments

Francois Perrad - Sept. 8, 2012, 12:28 p.m.
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/perl/Config.in |    6 ++++++
 package/perl/perl.mk   |    5 +++++
 2 files changed, 11 insertions(+)
Thomas Petazzoni - Sept. 20, 2012, 7:57 p.m.
Dear Francois Perrad,

On Sat,  8 Sep 2012 14:28:35 +0200, Francois Perrad wrote:
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> ---
>  package/perl/Config.in |    6 ++++++
>  package/perl/perl.mk   |    5 +++++
>  2 files changed, 11 insertions(+)
> 
> diff --git a/package/perl/Config.in b/package/perl/Config.in
> index 1f044eb..9df487a 100644
> --- a/package/perl/Config.in
> +++ b/package/perl/Config.in
> @@ -20,4 +20,10 @@ config BR2_PACKAGE_PERL_ONLY_MINIPERL
>  	  Install only miniperl (without dynamic module loader)
>  	  Usually used to bootstrap a full Perl (@INC contains only .).
>  
> +config BR2_PACKAGE_PERL_DB_FILE
> +	bool "DB_File"
> +	select BR2_PACKAGE_BERKELEYDB
> +	help
> +	  Build the DB_File module.
> +
>  endif
> diff --git a/package/perl/perl.mk b/package/perl/perl.mk
> index b00116f..2225f0c 100644
> --- a/package/perl/perl.mk
> +++ b/package/perl/perl.mk
> @@ -12,6 +12,11 @@ PERL_LICENSE = Artistic
>  PERL_LICENSE_FILES = Artistic
>  PERL_INSTALL_STAGING = YES
>  
> +ifdef BR2_PACKAGE_PERL_DB_FILE

ifeq ($(BR2_PACKAGE_PERL_DB_FILE),y)

> +    PERL_DEPENDENCIES += berkeleydb
> +endif
> +HOST_PERL_DEPENDENCIES =
> +
>  ifeq ($(shell expr $(PERL_VERSION_MAJOR) % 2), 1)
>      PERL_USE_DEVEL=-Dusedevel
>  endif

Thomas
Francois Perrad - Sept. 21, 2012, 6:26 p.m.
2012/9/20 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>:
> Dear Francois Perrad,
>
> On Sat,  8 Sep 2012 14:28:35 +0200, Francois Perrad wrote:
>> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
>> ---
>>  package/perl/Config.in |    6 ++++++
>>  package/perl/perl.mk   |    5 +++++
>>  2 files changed, 11 insertions(+)
>>
>> diff --git a/package/perl/Config.in b/package/perl/Config.in
>> index 1f044eb..9df487a 100644
>> --- a/package/perl/Config.in
>> +++ b/package/perl/Config.in
>> @@ -20,4 +20,10 @@ config BR2_PACKAGE_PERL_ONLY_MINIPERL
>>         Install only miniperl (without dynamic module loader)
>>         Usually used to bootstrap a full Perl (@INC contains only .).
>>
>> +config BR2_PACKAGE_PERL_DB_FILE
>> +     bool "DB_File"
>> +     select BR2_PACKAGE_BERKELEYDB
>> +     help
>> +       Build the DB_File module.
>> +
>>  endif
>> diff --git a/package/perl/perl.mk b/package/perl/perl.mk
>> index b00116f..2225f0c 100644
>> --- a/package/perl/perl.mk
>> +++ b/package/perl/perl.mk
>> @@ -12,6 +12,11 @@ PERL_LICENSE = Artistic
>>  PERL_LICENSE_FILES = Artistic
>>  PERL_INSTALL_STAGING = YES
>>
>> +ifdef BR2_PACKAGE_PERL_DB_FILE
>
> ifeq ($(BR2_PACKAGE_PERL_DB_FILE),y)

ok.

>
>> +    PERL_DEPENDENCIES += berkeleydb
>> +endif
>> +HOST_PERL_DEPENDENCIES =
>> +
>>  ifeq ($(shell expr $(PERL_VERSION_MAJOR) % 2), 1)
>>      PERL_USE_DEVEL=-Dusedevel
>>  endif
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

Patch

diff --git a/package/perl/Config.in b/package/perl/Config.in
index 1f044eb..9df487a 100644
--- a/package/perl/Config.in
+++ b/package/perl/Config.in
@@ -20,4 +20,10 @@  config BR2_PACKAGE_PERL_ONLY_MINIPERL
 	  Install only miniperl (without dynamic module loader)
 	  Usually used to bootstrap a full Perl (@INC contains only .).
 
+config BR2_PACKAGE_PERL_DB_FILE
+	bool "DB_File"
+	select BR2_PACKAGE_BERKELEYDB
+	help
+	  Build the DB_File module.
+
 endif
diff --git a/package/perl/perl.mk b/package/perl/perl.mk
index b00116f..2225f0c 100644
--- a/package/perl/perl.mk
+++ b/package/perl/perl.mk
@@ -12,6 +12,11 @@  PERL_LICENSE = Artistic
 PERL_LICENSE_FILES = Artistic
 PERL_INSTALL_STAGING = YES
 
+ifdef BR2_PACKAGE_PERL_DB_FILE
+    PERL_DEPENDENCIES += berkeleydb
+endif
+HOST_PERL_DEPENDENCIES =
+
 ifeq ($(shell expr $(PERL_VERSION_MAJOR) % 2), 1)
     PERL_USE_DEVEL=-Dusedevel
 endif