mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] powertop: disable native language support
@ 2014-04-07 14:08 Alexander Aring
  2014-04-10  7:45 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Aring @ 2014-04-07 14:08 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Aring

This patch should fix a gettext issue and disable native language
support.

Original notice from powertop-2.5 "ABOUT-NLS" file:

"By default, this package will be installed to allow translation of
messages.  It will automatically detect whether the system already
provides the GNU `gettext' functions.  If not, the included GNU
`gettext' library will be used.  This library is wholly contained
within this package, usually in the `intl/' subdirectory, so prior
installation of the GNU `gettext' package is _not_ required.
Installers may use special options at configuration time for changing
the default behaviour.  The commands:

     ./configure --with-included-gettext
     ./configure --disable-nls

will, respectively, bypass any pre-existing `gettext' to use the
internationalizing routines provided within this package, or else,
_totally_ disable translation of messages."

This patch disable the native language support. We don't need such
support for translate messsages in another languages. The
documententation is somewhat outdated because there is no
"--with-included-gettext" option there. I hope --disable-nls should do
that also, then we don't need gettext anymore.

Also added arguments for "--without-libintl-prefix" and
"--without-libiconv-prefix". Making no sense with --disable-nls, but I saw
that in other rules as well.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reported-by: Jürgen Beisert <jbe@pengutronix.de>
---
 rules/powertop.make | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/rules/powertop.make b/rules/powertop.make
index 36bc52a..6c376e0 100644
--- a/rules/powertop.make
+++ b/rules/powertop.make
@@ -36,7 +36,10 @@ POWERTOP_LICENSE	:= GPLv2
 POWERTOP_CONF_TOOL	:= autoconf
 POWERTOP_CONF_OPT	:= \
 	$(CROSS_AUTOCONF_USR) \
-	--$(call ptx/endis, PTXCONF_POWERTOP_PCI_SUPPORT)-pci
+	--$(call ptx/endis, PTXCONF_POWERTOP_PCI_SUPPORT)-pci \
+	--disable-nls \
+	--without-libiconv-prefix \
+	--without-libintl-prefix
 
 # ----------------------------------------------------------------------------
 # Target-Install
-- 
1.9.1


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2014-04-10  7:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-07 14:08 [ptxdist] [PATCH] powertop: disable native language support Alexander Aring
2014-04-10  7:45 ` Michael Olbrich

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