From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1W6Nb7-0006gZ-Ga for ptxdist@pengutronix.de; Thu, 23 Jan 2014 17:57:45 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1W6Nb7-0001uJ-FA for ptxdist@pengutronix.de; Thu, 23 Jan 2014 17:57:45 +0100 Date: Thu, 23 Jan 2014 17:57:45 +0100 From: Michael Olbrich Message-ID: <20140123165745.GC7236@pengutronix.de> References: <1390470359-18122-1-git-send-email-post@lespocky.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1390470359-18122-1-git-send-email-post@lespocky.de> Subject: Re: [ptxdist] [PATCH] host-perl: add modules JSON and Locale::PO Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Thu, Jan 23, 2014 at 10:45:59AM +0100, Alexander Dahl wrote: > Thanks, applied with small changes. Michael > Signed-off-by: Alexander Dahl > --- > rules/host-system-perl.in | 7 +++++++ > rules/host-system-perl.make | 16 ++++++++++++++++ > 2 files changed, 23 insertions(+) > > diff --git a/rules/host-system-perl.in b/rules/host-system-perl.in > index fc487ce..c02eb08 100644 > --- a/rules/host-system-perl.in > +++ b/rules/host-system-perl.in > @@ -5,8 +5,15 @@ config HOST_SYSTEM_PERL > > if HOST_SYSTEM_PERL > > +config HOST_SYSTEM_PERL_JSON > + bool > + > +config HOST_SYSTEM_PERL_LOCALE_PO > + bool > + > config HOST_SYSTEM_PERL_XMLPARSER > bool > > endif > > +# vim: ft=kconfig noet tw=72 > diff --git a/rules/host-system-perl.make b/rules/host-system-perl.make > index 8a7b33c..1d9e2ef 100644 > --- a/rules/host-system-perl.make > +++ b/rules/host-system-perl.make > @@ -22,12 +22,28 @@ $(STATEDIR)/host-system-perl.prepare: > @echo "Checking for Perl ..." > @perl -v >/dev/null 2>&1 || \ > ptxd_bailout "'perl' not found! Please install."; > + > +ifdef PTXCONF_HOST_SYSTEM_PERL_LOCALE_PO > + @echo "Checking for Perl: Locale::PO" > + @perl -e "require Locale::PO" 2>/dev/null || \ > + ptxd_bailout "Locale::PO perl module is required. \ > + Please install liblocale-po-perl (debian)." > +endif > + > +ifdef PTXCONF_HOST_SYSTEM_PERL_JSON > + @echo "Checking for Perl: JSON" > + @perl -e "require JSON" 2>/dev/null || \ > + ptxd_bailout "JSON perl module is required. \ > + Please install libjson-perl (debian)." > +endif > + > ifdef PTXCONF_HOST_SYSTEM_PERL_XMLPARSER > @echo "Checking for Perl: XML::Parser" > @perl -e "require XML::Parser" 2>/dev/null || \ > ptxd_bailout "XML::Parser perl module is required. \ > Please install libxml-parser-perl (debian)." > endif > + > @echo > @$(call touch) > > -- > 1.7.10.4 > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de