[Buildroot] [PATCH 1/1] package/ecryptfs-utils: Add support without gettext
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Tue Mar 12 22:14:51 UTC 2019
Hello Vadim,
On Wed, 13 Mar 2019 00:20:35 +0200
Vadim Kochan <vadim4j at gmail.com> wrote:
> Add custom ecryptfs-common script which provides gettext wrapper as
> function which checks at runtime if there is gettext tool, if no - the
> "echo" will be used instead. Each script which uses gettext is
> patched with including this ecryptfs-common script.
>
> The patch for ecryptfs-utils only inserts hard-coded (w/o using
> @prefix@/lib/@PACKAGE@ variables) path to the ecryptfs-common, it is
> very small and trivial, it allows to easy support new bumped version.
>
> gettext package is now selected automatically only if NLS is enabled.
>
> Signed-off-by: Vadim Kochan <vadim4j at gmail.com>
> ---
> ...cho-instead-of-gettext-if-it-does-not-exi.patch | 117 +++++++++++++++++++++
> package/ecryptfs-utils/Config.in | 2 +-
> package/ecryptfs-utils/ecryptfs-common | 33 ++++++
> package/ecryptfs-utils/ecryptfs-utils.mk | 6 ++
> 4 files changed, 157 insertions(+), 1 deletion(-)
> create mode 100644 package/ecryptfs-utils/0003-utils-Use-echo-instead-of-gettext-if-it-does-not-exi.patch
> create mode 100755 package/ecryptfs-utils/ecryptfs-common
Thanks for this proposal. I would actually perfer if ecryptfs-common
was part of the ecryptfs-utils patch, and this patch be submitted
upstream.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list