From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] dos2unix: add target support
Date: Wed, 2 Sep 2015 08:49:12 +0300 [thread overview]
Message-ID: <20150902054912.GU17874@tarshish> (raw)
In-Reply-To: <87a8t5q0r4.fsf@dell.be.48ers.dk>
Hi Peter,
On Tue, Sep 01, 2015 at 11:37:51PM +0200, Peter Korsgaard wrote:
> >>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
>
> > From: James Knight <james.knight@rockwellcollins.com>
> > Allow the `dos2unix` utility to be built and installed on the target
> > system.
>
> > [baruch: properly handle target gettext]
> > Signed-off-by: James Knight <james.knight@rockwellcollins.com>
> > Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> > ---
> > v2:
> > * Fix static build with gettext
> > * Support build without locale support
> > ---
> > package/Config.in | 3 +++
> > package/dos2unix/Config.in | 11 +++++++++++
> > package/dos2unix/dos2unix.mk | 24 +++++++++++++++++++++---
> > 3 files changed, 35 insertions(+), 3 deletions(-)
> > create mode 100644 package/dos2unix/Config.in
>
> > diff --git a/package/Config.in b/package/Config.in
> > index 914b83833d3e..7c5fe4ec36b2 100644
> > --- a/package/Config.in
> > +++ b/package/Config.in
> > @@ -115,6 +115,9 @@ menu "Development tools"
> > source "package/cvs/Config.in"
> > if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
> > source "package/diffutils/Config.in"
> > +endif
> > + source "package/dos2unix/Config.in"
> > +if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
>
> Busybox does have a dos2unix applet, so this should also be inside the
> conditional.
Will fix.
> > source "package/findutils/Config.in"
> > endif
> > source "package/flex/Config.in"
> > diff --git a/package/dos2unix/Config.in b/package/dos2unix/Config.in
> > new file mode 100644
> > index 000000000000..fdcd0700509b
> > --- /dev/null
> > +++ b/package/dos2unix/Config.in
> > @@ -0,0 +1,11 @@
> > +config BR2_PACKAGE_DOS2UNIX
> > + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
> > + depends on BR2_USE_WCHAR # gettext
>
> This looks odd - If wchar is only for gettext then we should allow
> non-locale builds without wchar. A quick test shows that dos2unix uses
> wchar several places, but this can be disabled if UCS= is passed on the
> make line (wchar_t is still referred in 3 error prints though).
It seems like most packages conditionally selecting BR2_PACKAGE_GETTEXT do not
depend on BR2_USE_WCHAR. But then, how do you prevent gettext build when the
toolchain has no wchar support? The autobuilder
(http://autobuild.buildroot.net/?reason=gettext-0.19.5.1) shows no gettext
build failure.
> > DOS2UNIX_VERSION = 7.0
> > DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix
> > -DOS2UNIX_DEPENDENCIES = host-gettext
> > DOS2UNIX_LICENSE = BSD-2c
> > DOS2UNIX_LICENSE_FILES = COPYING.txt
> > +HOST_DOS2UNIX_DEPENDENCIES = host-gettext
>
> If gettext is optional for target builds, why do we then force it for
> host builds?
Do we care about host packages binaries size?
In any case, this is a matter for another patch.
Thanks for reviewing,
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
next prev parent reply other threads:[~2015-09-02 5:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-01 6:43 [Buildroot] [PATCH 1/2] dos2unix: add target support Baruch Siach
2015-09-01 6:43 ` [Buildroot] [PATCH 2/2] dos2unix: bump to version 7.3 Baruch Siach
2015-09-01 14:10 ` James Knight
2015-09-01 10:57 ` [Buildroot] [PATCH 1/2] dos2unix: add target support Vicente Olivert Riera
2015-09-01 11:30 ` Baruch Siach
2015-09-01 21:37 ` Peter Korsgaard
2015-09-02 5:49 ` Baruch Siach [this message]
2015-09-02 6:45 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150902054912.GU17874@tarshish \
--to=baruch@tkos.co.il \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.