All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/avro-c: fix build without C++
@ 2020-07-19 20:54 Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2020-07-19 20:54 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=c351877a6ec9436bbce46cfe355501f980e6a89f
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
 ...-Build-failure-without-a-C-compiler-again.patch | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)

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
+

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

* [Buildroot] [git commit] package/avro-c: fix build without C++
@ 2019-12-31 14:31 Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-12-31 14:31 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=a84e58198aab6a6c593745b5c0fffd61e204386c
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 .../0002-CMakeLists.txt-fix-build-without-C.patch  | 92 ++++++++++++++++++++++
 1 file changed, 92 insertions(+)

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
+

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-19 20:54 [Buildroot] [git commit] package/avro-c: fix build without C++ Yann E. MORIN
  -- strict thread matches above, loose matches on Subject: below --
2019-12-31 14:31 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.