From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: In-Reply-To: <20200714165405.4622-2-bruno.thomsen@gmail.com> MIME-Version: 1.0 Message-Id: From: Michael Olbrich Date: Fri, 17 Jul 2020 13:57:08 +0200 Subject: Re: [ptxdist] [APPLIED] gettext: cli/lib install options List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Bruno Thomsen Thanks, applied as b9a52493d874fb4d671f950607365372163010bd. Michael [sent from post-receive hook] On Fri, 17 Jul 2020 13:57:08 +0200, Bruno Thomsen wrote: > This allows users to deselect parts not needed, e.g. if you > only need envsubst tool. > > Fixed runtime issue with xgettext missing libtextstyle. > > Signed-off-by: Bruno Thomsen > Message-Id: <20200714165405.4622-2-bruno.thomsen@gmail.com> > Signed-off-by: Michael Olbrich > > diff --git a/rules/gettext.in b/rules/gettext.in > index dc05739120ec..3c823eca402b 100644 > --- a/rules/gettext.in > +++ b/rules/gettext.in > @@ -20,4 +20,17 @@ config GETTEXT_ENVSUBST > help > Substitutes environment variables in shell format strings > > +config GETTEXT_TOOLS > + bool > + prompt "gettext/xgettext cli" > + select GETTEXT_LIBS > + help > + Command line tools for translations. > + > +config GETTEXT_LIBS > + bool > + prompt "gettext libs" > + help > + System libraries for translations. > + > endif > diff --git a/rules/gettext.make b/rules/gettext.make > index f4360aa2a852..83638543e4cb 100644 > --- a/rules/gettext.make > +++ b/rules/gettext.make > @@ -76,13 +76,18 @@ ifdef PTXCONF_GETTEXT_ENVSUBST > @$(call install_copy, gettext, 0, 0, 0755, -, /usr/bin/envsubst) > endif > > +ifdef PTXCONF_GETTEXT_TOOLS > @$(call install_copy, gettext, 0, 0, 0755, -, /usr/bin/xgettext) > @$(call install_copy, gettext, 0, 0, 0755, -, /usr/bin/gettext) > +endif > > +ifdef PTXCONF_GETTEXT_LIBS > @$(call install_lib, gettext, 0, 0, 0644, libgettextlib-$(GETTEXT_VERSION)) > @$(call install_lib, gettext, 0, 0, 0644, libasprintf) > @$(call install_lib, gettext, 0, 0, 0644, libgettextpo) > - @$(call install_lib, gettext, 0, 0, 0644,libgettextsrc-$(GETTEXT_VERSION)) > + @$(call install_lib, gettext, 0, 0, 0644, libgettextsrc-$(GETTEXT_VERSION)) > + @$(call install_lib, gettext, 0, 0, 0644, libtextstyle) > +endif > > @$(call install_finish, gettext) > _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de