* [Buildroot] [PATCH 1/3] gettext: add gettextize definition @ 2014-07-12 17:27 Gustavo Zacarias 2014-07-12 17:27 ` [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF Gustavo Zacarias 2014-07-12 17:27 ` [Buildroot] [PATCH 3/3] wget: remove redundant gettextize run Gustavo Zacarias 0 siblings, 2 replies; 15+ messages in thread From: Gustavo Zacarias @ 2014-07-12 17:27 UTC (permalink / raw) To: buildroot To be used in pkg-autotools for AUTORECONF. Also delete the "Press Return..." prompt to avoid user confusion. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- package/gettext/gettext.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/gettext/gettext.mk b/package/gettext/gettext.mk index 9d5d9f3..4385f10 100644 --- a/package/gettext/gettext.mk +++ b/package/gettext/gettext.mk @@ -69,8 +69,12 @@ endif # Disable interactive confirmation in host gettextize for package fixups define HOST_GETTEXT_GETTEXTIZE_CONFIRMATION $(SED) '/read dummy/d' $(HOST_DIR)/usr/bin/gettextize + $(SED) '/Press Return/d' $(HOST_DIR)/usr/bin/gettextize endef HOST_GETTEXT_POST_INSTALL_HOOKS += HOST_GETTEXT_GETTEXTIZE_CONFIRMATION $(eval $(autotools-package)) $(eval $(host-autotools-package)) + +# variables used by other packages +GETTEXTIZE = $(HOST_CONFIGURE_OPTS) $(HOST_DIR)/usr/bin/gettextize -f -- 1.8.5.5 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF 2014-07-12 17:27 [Buildroot] [PATCH 1/3] gettext: add gettextize definition Gustavo Zacarias @ 2014-07-12 17:27 ` Gustavo Zacarias 2014-07-14 11:01 ` Thomas Petazzoni 2014-07-12 17:27 ` [Buildroot] [PATCH 3/3] wget: remove redundant gettextize run Gustavo Zacarias 1 sibling, 1 reply; 15+ messages in thread From: Gustavo Zacarias @ 2014-07-12 17:27 UTC (permalink / raw) To: buildroot Since the bump to gettext version 0.19 many autoreconfigured packages will complain about gettext infra version mismatch and fail to AUTORECONF. Fix this by hooking up a gettextize run before autoreconfiguring. It adds some extra build time when doing autoreconf passes but the alternative would require a new GETTEXTIZE option and package audit which could take some time to get resolved. Fixes: http://autobuild.buildroot.net/results/6d4/6d477b7042d949c3ceea9a63bd26ffc187a67221/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- package/pkg-autotools.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/pkg-autotools.mk b/package/pkg-autotools.mk index ddff9bf..544f524 100644 --- a/package/pkg-autotools.mk +++ b/package/pkg-autotools.mk @@ -204,7 +204,7 @@ endif # define AUTORECONF_HOOK @$$(call MESSAGE,"Autoreconfiguring") - $$(Q)cd $$($$(PKG)_SRCDIR) && $$(AUTORECONF) $$($$(PKG)_AUTORECONF_OPT) + $$(Q)cd $$($$(PKG)_SRCDIR) && $$(GETTEXTIZE) && $$(AUTORECONF) $$($$(PKG)_AUTORECONF_OPT) $$(Q)if test "$$($$(PKG)_LIBTOOL_PATCH)" = "YES"; then \ for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \ ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' $$$$i | \ @@ -224,14 +224,14 @@ endef # _DEPENDENCIES if _AUTORECONF is YES. Also filter the result of _AUTORECONF # away from the non-host rule ifeq ($(4),host) -$(2)_DEPENDENCIES ?= $$(filter-out host-automake host-autoconf host-libtool \ - host-toolchain $(1),\ +$(2)_DEPENDENCIES ?= $$(filter-out host-automake host-autoconf host-gettext \ + host-libtool host-toolchain $(1),\ $$(patsubst host-host-%,host-%,$$(addprefix host-,$$($(3)_DEPENDENCIES)))) endif ifeq ($$($(2)_AUTORECONF),YES) $(2)_PRE_CONFIGURE_HOOKS += AUTORECONF_HOOK -$(2)_DEPENDENCIES += host-automake host-autoconf host-libtool +$(2)_DEPENDENCIES += host-automake host-autoconf host-gettext host-libtool endif # -- 1.8.5.5 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF 2014-07-12 17:27 ` [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF Gustavo Zacarias @ 2014-07-14 11:01 ` Thomas Petazzoni 2014-07-14 11:04 ` Gustavo Zacarias ` (3 more replies) 0 siblings, 4 replies; 15+ messages in thread From: Thomas Petazzoni @ 2014-07-14 11:01 UTC (permalink / raw) To: buildroot Dear Gustavo Zacarias, On Sat, 12 Jul 2014 14:27:03 -0300, Gustavo Zacarias wrote: > It adds some extra build time when doing autoreconf passes but the alternative > would require a new GETTEXTIZE option and package audit which could take some > time to get resolved. I believe I would actually prefer a separate GETTEXTIZE option, I'm a little bit worried about the extra build time. What do others think? Thanks, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF 2014-07-14 11:01 ` Thomas Petazzoni @ 2014-07-14 11:04 ` Gustavo Zacarias 2014-07-14 11:07 ` Gustavo Zacarias ` (2 subsequent siblings) 3 siblings, 0 replies; 15+ messages in thread From: Gustavo Zacarias @ 2014-07-14 11:04 UTC (permalink / raw) To: buildroot On 07/14/2014 08:01 AM, Thomas Petazzoni wrote: > I believe I would actually prefer a separate GETTEXTIZE option, I'm a > little bit worried about the extra build time. What do others think? That's fine with me as well, however we'll be hunting a little until the autobuilders look greener :) Regards. ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF 2014-07-14 11:01 ` Thomas Petazzoni 2014-07-14 11:04 ` Gustavo Zacarias @ 2014-07-14 11:07 ` Gustavo Zacarias 2014-07-14 12:30 ` Yann E. MORIN 2014-07-14 16:30 ` Arnout Vandecappelle 3 siblings, 0 replies; 15+ messages in thread From: Gustavo Zacarias @ 2014-07-14 11:07 UTC (permalink / raw) To: buildroot On 07/14/2014 08:01 AM, Thomas Petazzoni wrote: > I believe I would actually prefer a separate GETTEXTIZE option, I'm a > little bit worried about the extra build time. What do others think? Expanding a little bit on my rationale i opted for simplicity when making the patch ("fix it quick"), and it may not be that straightforward to document. Also it only add big time to the autoreconf deps, a gettextize run is usually quite quick, in the one digit seconds. Regards. ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF 2014-07-14 11:01 ` Thomas Petazzoni 2014-07-14 11:04 ` Gustavo Zacarias 2014-07-14 11:07 ` Gustavo Zacarias @ 2014-07-14 12:30 ` Yann E. MORIN 2014-07-14 12:40 ` Gustavo Zacarias 2014-07-14 16:30 ` Arnout Vandecappelle 3 siblings, 1 reply; 15+ messages in thread From: Yann E. MORIN @ 2014-07-14 12:30 UTC (permalink / raw) To: buildroot Thomas, Gustavo, All, On 2014-07-14 13:01 +0200, Thomas Petazzoni spake thusly: > On Sat, 12 Jul 2014 14:27:03 -0300, Gustavo Zacarias wrote: > > It adds some extra build time when doing autoreconf passes but the alternative > > would require a new GETTEXTIZE option and package audit which could take some > > time to get resolved. > > I believe I would actually prefer a separate GETTEXTIZE option, I'm a > little bit worried about the extra build time. What do others think? Should I revive the series I did a while ago, that did just that? Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF 2014-07-14 12:30 ` Yann E. MORIN @ 2014-07-14 12:40 ` Gustavo Zacarias 2014-07-14 12:47 ` Yann E. MORIN 0 siblings, 1 reply; 15+ messages in thread From: Gustavo Zacarias @ 2014-07-14 12:40 UTC (permalink / raw) To: buildroot On 07/14/2014 09:30 AM, Yann E. MORIN wrote: > Should I revive the series I did a while ago, that did just that? A couple of fixes: It needs the filter-out addition for host-gettext in package/pkg-autotools.mk (like AUTORECONF does), and probably a tiny mention that GETTEXTIZING without AUTORECONF is useless. Also we might be able to filter gettextizing out when gettext/host-gettext aren't pulled in - no infra version mismatch to account for, hence time savings. Regards. ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF 2014-07-14 12:40 ` Gustavo Zacarias @ 2014-07-14 12:47 ` Yann E. MORIN 2014-07-14 12:51 ` Gustavo Zacarias 0 siblings, 1 reply; 15+ messages in thread From: Yann E. MORIN @ 2014-07-14 12:47 UTC (permalink / raw) To: buildroot Gustavo, All, On 2014-07-14 09:40 -0300, Gustavo Zacarias spake thusly: > On 07/14/2014 09:30 AM, Yann E. MORIN wrote: > > Should I revive the series I did a while ago, that did just that? > > A couple of fixes: > It needs the filter-out addition for host-gettext in > package/pkg-autotools.mk (like AUTORECONF does), and probably a tiny > mention that GETTEXTIZING without AUTORECONF is useless. Yep. > Also we might be able to filter gettextizing out when > gettext/host-gettext aren't pulled in - no infra version mismatch to > account for, hence time savings. But we can only know that when the package is extracted+patched, which is too late for the dependency rules, no? Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF 2014-07-14 12:47 ` Yann E. MORIN @ 2014-07-14 12:51 ` Gustavo Zacarias 0 siblings, 0 replies; 15+ messages in thread From: Gustavo Zacarias @ 2014-07-14 12:51 UTC (permalink / raw) To: buildroot On 07/14/2014 09:47 AM, Yann E. MORIN wrote: >> Also we might be able to filter gettextizing out when >> gettext/host-gettext aren't pulled in - no infra version mismatch to >> account for, hence time savings. > > But we can only know that when the package is extracted+patched, which > is too late for the dependency rules, no? It's likely the host-gettext infra that triggers the problem (may as well be target gettext, i haven't tested as much), so we might be able to skip the run if gettext isn't in DEPENDENCIES (and not pulling it in if GETTEXTIZE = YES, just running if it is for packages that gettextize). Regards. ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF 2014-07-14 11:01 ` Thomas Petazzoni ` (2 preceding siblings ...) 2014-07-14 12:30 ` Yann E. MORIN @ 2014-07-14 16:30 ` Arnout Vandecappelle 2014-07-14 19:23 ` Thomas Petazzoni 3 siblings, 1 reply; 15+ messages in thread From: Arnout Vandecappelle @ 2014-07-14 16:30 UTC (permalink / raw) To: buildroot On 14/07/14 13:01, Thomas Petazzoni wrote: > Dear Gustavo Zacarias, > > On Sat, 12 Jul 2014 14:27:03 -0300, Gustavo Zacarias wrote: > >> It adds some extra build time when doing autoreconf passes but the alternative >> would require a new GETTEXTIZE option and package audit which could take some >> time to get resolved. > > I believe I would actually prefer a separate GETTEXTIZE option, I'm a > little bit worried about the extra build time. What do others think? I agree with Gustavo that the extra 2 seconds of gettextize are anyway dwarfed by the 15 seconds for autoreconf (on my I/O-bound laptop). So I wouldn't bother with an extra option. My worry is more that gettextize could fail, like autoreconf sometimes does. Though I think the risk is lower for gettextize. Regards, Arnout -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF 2014-07-14 16:30 ` Arnout Vandecappelle @ 2014-07-14 19:23 ` Thomas Petazzoni 2014-07-15 13:44 ` Gustavo Zacarias [not found] ` <53C52F0D.70004@zacarias.com.ar> 0 siblings, 2 replies; 15+ messages in thread From: Thomas Petazzoni @ 2014-07-14 19:23 UTC (permalink / raw) To: buildroot Dear Arnout Vandecappelle, On Mon, 14 Jul 2014 18:30:27 +0200, Arnout Vandecappelle wrote: > > I believe I would actually prefer a separate GETTEXTIZE option, I'm a > > little bit worried about the extra build time. What do others think? > > I agree with Gustavo that the extra 2 seconds of gettextize are anyway dwarfed > by the 15 seconds for autoreconf (on my I/O-bound laptop). So I wouldn't bother > with an extra option. Actually, I am not worried about the duration of the gettextize step itself, but worried about the fact that host-gettext now gets unconditionally added to all packages that have <pkg>_AUTORECONF = YES, while this gettextize is probably not needed for the majority of them. So we pull-in a fairly heavy dependency (host-gettext) for no reason for such packages. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF 2014-07-14 19:23 ` Thomas Petazzoni @ 2014-07-15 13:44 ` Gustavo Zacarias [not found] ` <53C52F0D.70004@zacarias.com.ar> 1 sibling, 0 replies; 15+ messages in thread From: Gustavo Zacarias @ 2014-07-15 13:44 UTC (permalink / raw) To: buildroot On 07/14/2014 04:23 PM, Thomas Petazzoni wrote: > Actually, I am not worried about the duration of the gettextize step > itself, but worried about the fact that host-gettext now gets > unconditionally added to all packages that have <pkg>_AUTORECONF = YES, > while this gettextize is probably not needed for the majority of them. > So we pull-in a fairly heavy dependency (host-gettext) for no reason > for such packages. At least libffi doesn't like getting gettextized, probably some stray gettext bits in it's build stuff without really using it. So i'm leaning towards PKG_GETTEXTIZE, or at least trying to detect if it's required (a find for gettext.m4 in the package source should suffice). Regards. ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <53C52F0D.70004@zacarias.com.ar>]
[parent not found: <20140715191515.160512e4@free-electrons.com>]
[parent not found: <53C562F6.8080705@zacarias.com.ar>]
* [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF [not found] ` <53C562F6.8080705@zacarias.com.ar> @ 2014-07-15 17:25 ` Gustavo Zacarias 0 siblings, 0 replies; 15+ messages in thread From: Gustavo Zacarias @ 2014-07-15 17:25 UTC (permalink / raw) To: buildroot On 07/15/2014 02:20 PM, Gustavo Zacarias wrote: > On 07/15/2014 02:15 PM, Thomas Petazzoni wrote: > >> Except that trying to detect if it's required will still make the >> dependency on host-gettext mandatory. >> >> What would be good to have is <pkg>_GETTEXTIZE + a check that verifies >> whether the gettextize is still needed or not. This way, on the >> packages on which we'll be adding <pkg>_GETTEXTIZE = YES, we will >> notice when the <pkg>_GETTEXTIZE = YES can be remove after an upstream >> bump. > > Detecting if it's required via gettext.m4 says if it's using the infra, > but you must do a grep for the serial usually in $(@D)/m4/gettext.m4 to > know if it's a different version. > If we do a silent warning it will probably pass unnoticed, making it > fatal would be best probably - though we never did that kind of > behaviour before it would only affect bumps. > Regards. And i forgot to cc@ the list again, broke it when adding Yann before :) Looking at the source upstream had the great idea of NOT updating the serial so that won't work, sigh... Regards. ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 3/3] wget: remove redundant gettextize run 2014-07-12 17:27 [Buildroot] [PATCH 1/3] gettext: add gettextize definition Gustavo Zacarias 2014-07-12 17:27 ` [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF Gustavo Zacarias @ 2014-07-12 17:27 ` Gustavo Zacarias 2014-07-13 3:26 ` Baruch Siach 1 sibling, 1 reply; 15+ messages in thread From: Gustavo Zacarias @ 2014-07-12 17:27 UTC (permalink / raw) To: buildroot Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- package/wget/wget.mk | 8 -------- 1 file changed, 8 deletions(-) diff --git a/package/wget/wget.mk b/package/wget/wget.mk index 56ccfb5..c546aba 100644 --- a/package/wget/wget.mk +++ b/package/wget/wget.mk @@ -13,14 +13,6 @@ WGET_LICENSE_FILES = COPYING # patching gnulib .m4 file WGET_AUTORECONF = YES -# Ugly kludge to fix autoreconf with old gettext infra -# We need to gettextize before autoreconf to upgrade -WGET_DEPENDENCIES += host-gettext -define WGET_GETTEXTIZE - cd $(@D) ; $(HOST_DIR)/usr/bin/gettextize -f -endef -WGET_PRE_CONFIGURE_HOOKS += WGET_GETTEXTIZE - # Prefer full-blown wget over busybox ifeq ($(BR2_PACKAGE_BUSYBOX),y) WGET_DEPENDENCIES += busybox -- 1.8.5.5 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Buildroot] [PATCH 3/3] wget: remove redundant gettextize run 2014-07-12 17:27 ` [Buildroot] [PATCH 3/3] wget: remove redundant gettextize run Gustavo Zacarias @ 2014-07-13 3:26 ` Baruch Siach 0 siblings, 0 replies; 15+ messages in thread From: Baruch Siach @ 2014-07-13 3:26 UTC (permalink / raw) To: buildroot Hi Gustavo, On Sat, Jul 12, 2014 at 02:27:04PM -0300, Gustavo Zacarias wrote: > Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Please explain in the commit log that gettextize now runs unconditionally when enabling AUTORECONF. baruch > --- > package/wget/wget.mk | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/package/wget/wget.mk b/package/wget/wget.mk > index 56ccfb5..c546aba 100644 > --- a/package/wget/wget.mk > +++ b/package/wget/wget.mk > @@ -13,14 +13,6 @@ WGET_LICENSE_FILES = COPYING > # patching gnulib .m4 file > WGET_AUTORECONF = YES > > -# Ugly kludge to fix autoreconf with old gettext infra > -# We need to gettextize before autoreconf to upgrade > -WGET_DEPENDENCIES += host-gettext > -define WGET_GETTEXTIZE > - cd $(@D) ; $(HOST_DIR)/usr/bin/gettextize -f > -endef > -WGET_PRE_CONFIGURE_HOOKS += WGET_GETTEXTIZE > - > # Prefer full-blown wget over busybox > ifeq ($(BR2_PACKAGE_BUSYBOX),y) > WGET_DEPENDENCIES += busybox -- 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 - ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2014-07-15 17:25 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-12 17:27 [Buildroot] [PATCH 1/3] gettext: add gettextize definition Gustavo Zacarias
2014-07-12 17:27 ` [Buildroot] [PATCH 2/3] infra: add gettextize run in AUTORECONF Gustavo Zacarias
2014-07-14 11:01 ` Thomas Petazzoni
2014-07-14 11:04 ` Gustavo Zacarias
2014-07-14 11:07 ` Gustavo Zacarias
2014-07-14 12:30 ` Yann E. MORIN
2014-07-14 12:40 ` Gustavo Zacarias
2014-07-14 12:47 ` Yann E. MORIN
2014-07-14 12:51 ` Gustavo Zacarias
2014-07-14 16:30 ` Arnout Vandecappelle
2014-07-14 19:23 ` Thomas Petazzoni
2014-07-15 13:44 ` Gustavo Zacarias
[not found] ` <53C52F0D.70004@zacarias.com.ar>
[not found] ` <20140715191515.160512e4@free-electrons.com>
[not found] ` <53C562F6.8080705@zacarias.com.ar>
2014-07-15 17:25 ` Gustavo Zacarias
2014-07-12 17:27 ` [Buildroot] [PATCH 3/3] wget: remove redundant gettextize run Gustavo Zacarias
2014-07-13 3:26 ` Baruch Siach
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox