All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/transmission: fix build with autoconf >= 2.71
@ 2021-10-09 17:02 Fabrice Fontaine
  2021-10-09 19:46 ` Thomas Petazzoni
  2021-11-04 21:47 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2021-10-09 17:02 UTC (permalink / raw)
  To: buildroot; +Cc: Bernd Kuhls, Fabrice Fontaine

Fix the following build failure raised since bump of autoconf to version
2.71 in commit ecd54b65c1f998a7ccd91f7c523e4ff38c4781da:

ERROR: 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work.

Fixes:
 - http://autobuild.buildroot.org/results/e8bea26f6b12adf16335b24836a7c5c31911af6a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...ac-fix-autoreconf-with-autoconf-2.71.patch | 39 +++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch

diff --git a/package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch b/package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch
new file mode 100644
index 0000000000..9522f611ba
--- /dev/null
+++ b/package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch
@@ -0,0 +1,39 @@
+From 857ac91a03a096601f62b358fc61355d4cc25b9b Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 9 Oct 2021 18:51:13 +0200
+Subject: [PATCH] configure.ac: fix autoreconf with autoconf >= 2.71
+
+Remove the whitespace before IT_PROG_INTLTOOL as suggested in
+https://www.mail-archive.com/bug-autoconf@gnu.org/msg04851.html
+to avoid the following build failure with autoconf >= 2.71:
+
+ERROR: 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work.
+
+Fixes:
+ - http://autobuild.buildroot.org/results/e8bea26f6b12adf16335b24836a7c5c31911af6a
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: not upstreamable as upstream swicthed to cmake (
+https://github.com/transmission/transmission/issues/1573)]
+---
+ configure.ac | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index fd1132fda..04e0e19bb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -555,9 +555,7 @@ dnl it should be safe to re-edit 0.40 back down to 0.23
+ use_nls=no
+ if test "x$enable_nls" = "xyes" ; then
+     use_nls=yes
+-    m4_ifdef([IT_PROG_INTLTOOL],
+-             [IT_PROG_INTLTOOL([0.35.0],[no-xml])],
+-             [AC_MSG_ERROR("--enable-nls requires intltool to be installed.")])
++IT_PROG_INTLTOOL([0.35.0],[no-xml])
+     AC_CHECK_HEADERS([libintl.h])
+     GETTEXT_PACKAGE=transmission-gtk
+     AC_SUBST(GETTEXT_PACKAGE)
+-- 
+2.33.0
+
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/transmission: fix build with autoconf >= 2.71
  2021-10-09 17:02 [Buildroot] [PATCH 1/1] package/transmission: fix build with autoconf >= 2.71 Fabrice Fontaine
@ 2021-10-09 19:46 ` Thomas Petazzoni
  2021-10-09 21:01   ` Fabrice Fontaine
  2021-11-04 21:47 ` Thomas Petazzoni
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2021-10-09 19:46 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Bernd Kuhls, buildroot

Hello Fabrice,

On Sat,  9 Oct 2021 19:02:42 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix the following build failure raised since bump of autoconf to version
> 2.71 in commit ecd54b65c1f998a7ccd91f7c523e4ff38c4781da:
> 
> ERROR: 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work.
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/e8bea26f6b12adf16335b24836a7c5c31911af6a
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...ac-fix-autoreconf-with-autoconf-2.71.patch | 39 +++++++++++++++++++
>  1 file changed, 39 insertions(+)
>  create mode 100644 package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch
> 
> diff --git a/package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch b/package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch
> new file mode 100644
> index 0000000000..9522f611ba
> --- /dev/null
> +++ b/package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch
> @@ -0,0 +1,39 @@
> +From 857ac91a03a096601f62b358fc61355d4cc25b9b Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sat, 9 Oct 2021 18:51:13 +0200
> +Subject: [PATCH] configure.ac: fix autoreconf with autoconf >= 2.71
> +
> +Remove the whitespace before IT_PROG_INTLTOOL as suggested in
> +https://www.mail-archive.com/bug-autoconf@gnu.org/msg04851.html
> +to avoid the following build failure with autoconf >= 2.71:
> +
> +ERROR: 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work.
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/e8bea26f6b12adf16335b24836a7c5c31911af6a
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status: not upstreamable as upstream swicthed to cmake (
> +https://github.com/transmission/transmission/issues/1573)]

I am rather confused, because I don't see any changes between autoconf
2.70 and 2.71 that seem to explain this, and the message "ERROR:
'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work"
comes from intltoolize.in, which is in host-intltool, which has not
been updated for at least 2 years in Buildroot.

> +@@ -555,9 +555,7 @@ dnl it should be safe to re-edit 0.40 back down to 0.23
> + use_nls=no
> + if test "x$enable_nls" = "xyes" ; then
> +     use_nls=yes
> +-    m4_ifdef([IT_PROG_INTLTOOL],
> +-             [IT_PROG_INTLTOOL([0.35.0],[no-xml])],
> +-             [AC_MSG_ERROR("--enable-nls requires intltool to be installed.")])
> ++IT_PROG_INTLTOOL([0.35.0],[no-xml])
> +     AC_CHECK_HEADERS([libintl.h])
> +     GETTEXT_PACKAGE=transmission-gtk
> +     AC_SUBST(GETTEXT_PACKAGE)

So you're getting rid of the IT_PROG_INTLTOOL m4_ifdef test ? I guess
it's OK in the context of Buildroot, because transmission
unconditionally depends on host-intltool, so IT_PROG_INTLTOOL will
always be available.

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/transmission: fix build with autoconf >= 2.71
  2021-10-09 19:46 ` Thomas Petazzoni
@ 2021-10-09 21:01   ` Fabrice Fontaine
  2021-10-10 14:02     ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Fontaine @ 2021-10-09 21:01 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: Bernd Kuhls, Buildroot Mailing List

Hello Thomas,

Le sam. 9 oct. 2021 à 21:47, Thomas Petazzoni
<thomas.petazzoni@bootlin.com> a écrit :
>
> Hello Fabrice,
>
> On Sat,  9 Oct 2021 19:02:42 +0200
> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
>
> > Fix the following build failure raised since bump of autoconf to version
> > 2.71 in commit ecd54b65c1f998a7ccd91f7c523e4ff38c4781da:
> >
> > ERROR: 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work.
> >
> > Fixes:
> >  - http://autobuild.buildroot.org/results/e8bea26f6b12adf16335b24836a7c5c31911af6a
> >
> > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > ---
> >  ...ac-fix-autoreconf-with-autoconf-2.71.patch | 39 +++++++++++++++++++
> >  1 file changed, 39 insertions(+)
> >  create mode 100644 package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch
> >
> > diff --git a/package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch b/package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch
> > new file mode 100644
> > index 0000000000..9522f611ba
> > --- /dev/null
> > +++ b/package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch
> > @@ -0,0 +1,39 @@
> > +From 857ac91a03a096601f62b358fc61355d4cc25b9b Mon Sep 17 00:00:00 2001
> > +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > +Date: Sat, 9 Oct 2021 18:51:13 +0200
> > +Subject: [PATCH] configure.ac: fix autoreconf with autoconf >= 2.71
> > +
> > +Remove the whitespace before IT_PROG_INTLTOOL as suggested in
> > +https://www.mail-archive.com/bug-autoconf@gnu.org/msg04851.html
> > +to avoid the following build failure with autoconf >= 2.71:
> > +
> > +ERROR: 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work.
> > +
> > +Fixes:
> > + - http://autobuild.buildroot.org/results/e8bea26f6b12adf16335b24836a7c5c31911af6a
> > +
> > +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > +[Upstream status: not upstreamable as upstream swicthed to cmake (
> > +https://github.com/transmission/transmission/issues/1573)]
>
> I am rather confused, because I don't see any changes between autoconf
> 2.70 and 2.71 that seem to explain this, and the message "ERROR:
> 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work"
I assume that the culprit on autoconf side is:
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=b3b3af821a0b9e82ebe56b77b1731d2fe58f52de
So build failure is raised since autoconf 2.70 and not 2.71.
> comes from intltoolize.in, which is in host-intltool, which has not
> been updated for at least 2 years in Buildroot.
A bug has been opened on intltool but there is no upstream reaction:
https://bugs.launchpad.net/intltool/+bug/1921816
>
> > +@@ -555,9 +555,7 @@ dnl it should be safe to re-edit 0.40 back down to 0.23
> > + use_nls=no
> > + if test "x$enable_nls" = "xyes" ; then
> > +     use_nls=yes
> > +-    m4_ifdef([IT_PROG_INTLTOOL],
> > +-             [IT_PROG_INTLTOOL([0.35.0],[no-xml])],
> > +-             [AC_MSG_ERROR("--enable-nls requires intltool to be installed.")])
> > ++IT_PROG_INTLTOOL([0.35.0],[no-xml])
> > +     AC_CHECK_HEADERS([libintl.h])
> > +     GETTEXT_PACKAGE=transmission-gtk
> > +     AC_SUBST(GETTEXT_PACKAGE)
>
> So you're getting rid of the IT_PROG_INTLTOOL m4_ifdef test ? I guess
> it's OK in the context of Buildroot, because transmission
> unconditionally depends on host-intltool, so IT_PROG_INTLTOOL will
> always be available.
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
Best Regards,

Fabrice
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/transmission: fix build with autoconf >= 2.71
  2021-10-09 21:01   ` Fabrice Fontaine
@ 2021-10-10 14:02     ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2021-10-10 14:02 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Bernd Kuhls, Buildroot Mailing List

Hello,

On Sat, 9 Oct 2021 23:01:54 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> > I am rather confused, because I don't see any changes between autoconf
> > 2.70 and 2.71 that seem to explain this, and the message "ERROR:
> > 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work"  
> I assume that the culprit on autoconf side is:
> http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=b3b3af821a0b9e82ebe56b77b1731d2fe58f52de
> So build failure is raised since autoconf 2.70 and not 2.71.

Ah, indeed that seems more plausible.

BTW, do you understand this mess of gtkdocize and intltoolize, and the
reasoning behind the commit that you're pointing to?

> A bug has been opened on intltool but there is no upstream reaction:
> https://bugs.launchpad.net/intltool/+bug/1921816

Yeah, I've seen that. And there has been no release since 2015
apparently.

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/transmission: fix build with autoconf >= 2.71
  2021-10-09 17:02 [Buildroot] [PATCH 1/1] package/transmission: fix build with autoconf >= 2.71 Fabrice Fontaine
  2021-10-09 19:46 ` Thomas Petazzoni
@ 2021-11-04 21:47 ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2021-11-04 21:47 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Bernd Kuhls, buildroot

On Sat,  9 Oct 2021 19:02:42 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix the following build failure raised since bump of autoconf to version
> 2.71 in commit ecd54b65c1f998a7ccd91f7c523e4ff38c4781da:
> 
> ERROR: 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work.
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/e8bea26f6b12adf16335b24836a7c5c31911af6a
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...ac-fix-autoreconf-with-autoconf-2.71.patch | 39 +++++++++++++++++++
>  1 file changed, 39 insertions(+)
>  create mode 100644 package/transmission/0003-configure.ac-fix-autoreconf-with-autoconf-2.71.patch

I've applied to master after adjusting the patch and commit log to
indicate the issue is with autoconf 2.70, not 2.71. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-11-04 21:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-09 17:02 [Buildroot] [PATCH 1/1] package/transmission: fix build with autoconf >= 2.71 Fabrice Fontaine
2021-10-09 19:46 ` Thomas Petazzoni
2021-10-09 21:01   ` Fabrice Fontaine
2021-10-10 14:02     ` Thomas Petazzoni
2021-11-04 21:47 ` Thomas Petazzoni

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.