All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/ruby: fix build with autoconf >= 2.70
@ 2021-10-06 20:40 Fabrice Fontaine
  2021-10-13 18:56 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-10-06 20:40 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

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

checking whether the C++ compiler works... no
configure: error: in `/home/buildroot/autobuild/instance-3/output-1/build/ruby-3.0.2':
configure: error: C++ compiler cannot create executables

Fixes:
 - http://autobuild.buildroot.org/results/63f32033aff5c800a933d8b1c805be0d9d6abea6

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/ruby/0002-Needs-AC_PROG_CC.patch | 28 ++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 package/ruby/0002-Needs-AC_PROG_CC.patch

diff --git a/package/ruby/0002-Needs-AC_PROG_CC.patch b/package/ruby/0002-Needs-AC_PROG_CC.patch
new file mode 100644
index 0000000000..647358be70
--- /dev/null
+++ b/package/ruby/0002-Needs-AC_PROG_CC.patch
@@ -0,0 +1,28 @@
+From 912a8dcfc5369d840dcd6bf0f88ee0bac7d902d6 Mon Sep 17 00:00:00 2001
+From: Nobuyoshi Nakada <nobu@ruby-lang.org>
+Date: Thu, 30 Sep 2021 18:24:37 +0900
+Subject: [PATCH] Needs `AC_PROG_CC`
+
+Although `AC_PROG_CC_C99` has been obsolete, `AC_PROG_CC` is not
+and the latter is necessary not to make C++ compiler mandatory.
+
+[Retrieved from:
+https://github.com/ruby/ruby/commit/912a8dcfc5369d840dcd6bf0f88ee0bac7d902d6]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index b24a8f59b0d2..c7059ee1ecf4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -218,7 +218,7 @@ rb_test_CXXFLAGS=${CXXFLAGS+yes}
+ # BSD's ports and MacPorts prefix GNU binutils with 'g'
+ 
+ dnl Seems necessarily in order to add -std=gnu99 option for gcc 4.9.
+-m4_version_prereq([2.70], [], [AC_PROG_CC_C99])
++m4_version_prereq([2.70], [AC_PROG_CC], [AC_PROG_CC_C99])
+ 
+ AC_PROG_CXX
+ AC_PROG_CPP
-- 
2.33.0

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

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

* Re: [Buildroot] [PATCH 1/1] package/ruby: fix build with autoconf >= 2.70
  2021-10-06 20:40 [Buildroot] [PATCH 1/1] package/ruby: fix build with autoconf >= 2.70 Fabrice Fontaine
@ 2021-10-13 18:56 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2021-10-13 18:56 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot



On 06/10/2021 22:40, Fabrice Fontaine wrote:
> Fix the following build failure raised since bump of autoconf to version
> 2.71 in commit ecd54b65c1f998a7ccd91f7c523e4ff38c4781da:
> 
> checking whether the C++ compiler works... no
> configure: error: in `/home/buildroot/autobuild/instance-3/output-1/build/ruby-3.0.2':
> configure: error: C++ compiler cannot create executables
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/63f32033aff5c800a933d8b1c805be0d9d6abea6
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   package/ruby/0002-Needs-AC_PROG_CC.patch | 28 ++++++++++++++++++++++++
>   1 file changed, 28 insertions(+)
>   create mode 100644 package/ruby/0002-Needs-AC_PROG_CC.patch
> 
> diff --git a/package/ruby/0002-Needs-AC_PROG_CC.patch b/package/ruby/0002-Needs-AC_PROG_CC.patch
> new file mode 100644
> index 0000000000..647358be70
> --- /dev/null
> +++ b/package/ruby/0002-Needs-AC_PROG_CC.patch
> @@ -0,0 +1,28 @@
> +From 912a8dcfc5369d840dcd6bf0f88ee0bac7d902d6 Mon Sep 17 00:00:00 2001
> +From: Nobuyoshi Nakada <nobu@ruby-lang.org>
> +Date: Thu, 30 Sep 2021 18:24:37 +0900
> +Subject: [PATCH] Needs `AC_PROG_CC`
> +
> +Although `AC_PROG_CC_C99` has been obsolete, `AC_PROG_CC` is not
> +and the latter is necessary not to make C++ compiler mandatory.
> +
> +[Retrieved from:
> +https://github.com/ruby/ruby/commit/912a8dcfc5369d840dcd6bf0f88ee0bac7d902d6]
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +---
> + configure.ac | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/configure.ac b/configure.ac
> +index b24a8f59b0d2..c7059ee1ecf4 100644
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -218,7 +218,7 @@ rb_test_CXXFLAGS=${CXXFLAGS+yes}
> + # BSD's ports and MacPorts prefix GNU binutils with 'g'
> +
> + dnl Seems necessarily in order to add -std=gnu99 option for gcc 4.9.
> +-m4_version_prereq([2.70], [], [AC_PROG_CC_C99])
> ++m4_version_prereq([2.70], [AC_PROG_CC], [AC_PROG_CC_C99])
> +
> + AC_PROG_CXX
> + AC_PROG_CPP
> 
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-10-13 18:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-06 20:40 [Buildroot] [PATCH 1/1] package/ruby: fix build with autoconf >= 2.70 Fabrice Fontaine
2021-10-13 18:56 ` Arnout Vandecappelle

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.