All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/avro-c: fix build without C++
@ 2019-12-30 13:50 Fabrice Fontaine
  2019-12-31 14:31 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2019-12-30 13:50 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/135e246aa70f28c6b9aea5fd6b0eb9c7b45ebfe7

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...2-CMakeLists.txt-fix-build-without-C.patch | 92 +++++++++++++++++++
 1 file changed, 92 insertions(+)
 create mode 100644 package/avro-c/0002-CMakeLists.txt-fix-build-without-C.patch

diff --git a/package/avro-c/0002-CMakeLists.txt-fix-build-without-C.patch b/package/avro-c/0002-CMakeLists.txt-fix-build-without-C.patch
new file mode 100644
index 0000000000..89a500c588
--- /dev/null
+++ b/package/avro-c/0002-CMakeLists.txt-fix-build-without-C.patch
@@ -0,0 +1,92 @@
+From cdab7db8ad81884cfb21cc1cf94c981c59d17ef4 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Mon, 30 Dec 2019 12:32:20 +0100
+Subject: [PATCH] CMakeLists.txt: fix build without C++
+
+Specify that AvroC is a C project and remove tests_cpp.cpp to avoid the
+following build failure if a C++ compiler is not found:
+
+CMake Error at CMakeLists.txt:20 (project):
+  The CMAKE_CXX_COMPILER:
+
+    /home/naourr/work/instance-2/output-1/host/bin/microblazeel-buildroot-linux-uclibc-g++
+
+  is not a full path to an existing compiler tool.
+
+  Tell CMake where to find the compiler by setting either the environment
+  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
+  to the compiler, or to the compiler name if it is in the PATH.
+
+Fixes:
+ - http://autobuild.buildroot.org/results/135e246aa70f28c6b9aea5fd6b0eb9c7b45ebfe7
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/apache/avro/pull/754]
+---
+ CMakeLists.txt       |  2 +-
+ tests/CMakeLists.txt |  1 -
+ tests/test_cpp.cpp   | 27 ---------------------------
+ 3 files changed, 1 insertion(+), 29 deletions(-)
+ delete mode 100644 lang/c/tests/test_cpp.cpp
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 11cbf018..b75418c3 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -17,7 +17,7 @@
+ # under the License.
+ #
+ cmake_minimum_required(VERSION 2.4)
+-project(AvroC)
++project(AvroC C)
+ enable_testing()
+ 
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR})
+diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
+index b9e8fe1d..2e84a06a 100644
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -81,7 +81,6 @@ add_avro_test_checkmem(test_avro_1405)
+ add_avro_test_checkmem(test_avro_1572)
+ add_avro_test(test_avro_data) # Skip memory check for datum. Deprecated and has a lot of memory issues
+ add_avro_test_checkmem(test_refcount)
+-add_avro_test_checkmem(test_cpp test_cpp.cpp)
+ add_avro_test_checkmem(test_avro_1379)
+ add_avro_test_checkmem(test_avro_1691)
+ add_avro_test_checkmem(test_avro_1906)
+diff --git a/lang/c/tests/test_cpp.cpp b/lang/c/tests/test_cpp.cpp
+deleted file mode 100644
+index 13f98a9b..00000000
+--- a/tests/test_cpp.cpp
++++ /dev/null
+@@ -1,27 +0,0 @@
+-/*
+- * Licensed to the Apache Software Foundation (ASF) under one or more
+- * contributor license agreements.  See the NOTICE file distributed with
+- * this work for additional information regarding copyright ownership.
+- * The ASF licenses this file to you under the Apache License, Version 2.0
+- * (the "License"); you may not use this file except in compliance with
+- * the License.  You may obtain a copy of the License at
+- *
+- * https://www.apache.org/licenses/LICENSE-2.0
+- *
+- * Unless required by applicable law or agreed to in writing, software
+- * distributed under the License is distributed on an "AS IS" BASIS,
+- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+- * implied.  See the License for the specific language governing
+- * permissions and limitations under the License.
+- */
+-
+-#include "avro.h"
+-
+-int main(int argc, char **argv)
+-{
+-    (void)argc;
+-    (void)argv;
+-
+-	return 0;
+-}
+-
+-- 
+2.24.0
+
-- 
2.24.0

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

* [Buildroot] [PATCH 1/1] package/avro-c: fix build without C++
  2019-12-30 13:50 [Buildroot] [PATCH 1/1] package/avro-c: fix build without C++ Fabrice Fontaine
@ 2019-12-31 14:31 ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2019-12-31 14:31 UTC (permalink / raw)
  To: buildroot

On Mon, 30 Dec 2019 14:50:12 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fixes:
>  - http://autobuild.buildroot.org/results/135e246aa70f28c6b9aea5fd6b0eb9c7b45ebfe7
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...2-CMakeLists.txt-fix-build-without-C.patch | 92 +++++++++++++++++++
>  1 file changed, 92 insertions(+)
>  create mode 100644 package/avro-c/0002-CMakeLists.txt-fix-build-without-C.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 1/1] package/avro-c: fix build without C++
  2020-07-19  8:27 Fabrice Fontaine
@ 2020-07-19 20:55 ` Yann E. MORIN
  0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2020-07-19 20:55 UTC (permalink / raw)
  To: buildroot

Fabrice, All,

On 2020-07-19 10:27 +0200, Fabrice Fontaine spake thusly:
> Fixes:
>  - http://autobuild.buildroot.org/results/cfa91db53cf5502cbb6f902d1e7ad6397c8d70fd
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  ...d-failure-without-a-C-compiler-again.patch | 34 +++++++++++++++++++
>  1 file changed, 34 insertions(+)
>  create mode 100644 package/avro-c/0001-cmake-Build-failure-without-a-C-compiler-again.patch
> 
> diff --git a/package/avro-c/0001-cmake-Build-failure-without-a-C-compiler-again.patch b/package/avro-c/0001-cmake-Build-failure-without-a-C-compiler-again.patch
> new file mode 100644
> index 0000000000..8f7e59cf62
> --- /dev/null
> +++ b/package/avro-c/0001-cmake-Build-failure-without-a-C-compiler-again.patch
> @@ -0,0 +1,34 @@
> +From 8f5633a29b083a84876c00b88fba6d3e8dbbf1a8 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sun, 19 Jul 2020 09:35:09 +0200
> +Subject: [PATCH] cmake: Build failure without a C++ compiler (again)
> +
> +avro-c fails to build (again) without a C++ compiler because commit
> +664c2fc7fba19709c1f974055f9cf4c8a799e108 reverted the change made by
> +commit 414a51fdc1856083bb16851f09a4c61a48796132
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/cfa91db53cf5502cbb6f902d1e7ad6397c8d70fd
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status: https://issues.apache.org/jira/browse/AVRO-2898]
> +---
> + CMakeLists.txt | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index 6c8d7aaf..aa923e18 100644
> +--- a/CMakeLists.txt
> ++++ b/CMakeLists.txt
> +@@ -17,7 +17,7 @@
> + # under the License.
> + #
> + cmake_minimum_required(VERSION 3.1)
> +-project(AvroC)
> ++project(AvroC C)
> + enable_testing()
> + 
> + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR})
> +-- 
> +2.27.0
> +
> -- 
> 2.27.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 1/1] package/avro-c: fix build without C++
@ 2020-07-19  8:27 Fabrice Fontaine
  2020-07-19 20:55 ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2020-07-19  8:27 UTC (permalink / raw)
  To: buildroot

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...d-failure-without-a-C-compiler-again.patch | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/avro-c/0001-cmake-Build-failure-without-a-C-compiler-again.patch

diff --git a/package/avro-c/0001-cmake-Build-failure-without-a-C-compiler-again.patch b/package/avro-c/0001-cmake-Build-failure-without-a-C-compiler-again.patch
new file mode 100644
index 0000000000..8f7e59cf62
--- /dev/null
+++ b/package/avro-c/0001-cmake-Build-failure-without-a-C-compiler-again.patch
@@ -0,0 +1,34 @@
+From 8f5633a29b083a84876c00b88fba6d3e8dbbf1a8 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sun, 19 Jul 2020 09:35:09 +0200
+Subject: [PATCH] cmake: Build failure without a C++ compiler (again)
+
+avro-c fails to build (again) without a C++ compiler because commit
+664c2fc7fba19709c1f974055f9cf4c8a799e108 reverted the change made by
+commit 414a51fdc1856083bb16851f09a4c61a48796132
+
+Fixes:
+ - http://autobuild.buildroot.org/results/cfa91db53cf5502cbb6f902d1e7ad6397c8d70fd
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://issues.apache.org/jira/browse/AVRO-2898]
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 6c8d7aaf..aa923e18 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -17,7 +17,7 @@
+ # under the License.
+ #
+ cmake_minimum_required(VERSION 3.1)
+-project(AvroC)
++project(AvroC C)
+ enable_testing()
+ 
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR})
+-- 
+2.27.0
+
-- 
2.27.0

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

end of thread, other threads:[~2020-07-19 20:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-30 13:50 [Buildroot] [PATCH 1/1] package/avro-c: fix build without C++ Fabrice Fontaine
2019-12-31 14:31 ` Thomas Petazzoni
2020-07-19  8:27 Fabrice Fontaine
2020-07-19 20:55 ` Yann E. MORIN

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.