* [Buildroot] [PATCH 1/1] package/librsync: fix build without C++ support
@ 2017-09-26 17:10 Bernd Kuhls
2017-09-27 20:03 ` Thomas Petazzoni
2017-10-17 8:59 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2017-09-26 17:10 UTC (permalink / raw)
To: buildroot
Fixes
http://autobuild.buildroot.net/results/3ca/3cacb87e39a0ebb9d227fff4be71bea8132bf0ed/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
...CMakeLists.txt-Don-t-require-a-C-compiler.patch | 33 ++++++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 package/librsync/0001-CMakeLists.txt-Don-t-require-a-C-compiler.patch
diff --git a/package/librsync/0001-CMakeLists.txt-Don-t-require-a-C-compiler.patch b/package/librsync/0001-CMakeLists.txt-Don-t-require-a-C-compiler.patch
new file mode 100644
index 0000000000..af5d28c5dc
--- /dev/null
+++ b/package/librsync/0001-CMakeLists.txt-Don-t-require-a-C-compiler.patch
@@ -0,0 +1,33 @@
+From c1af3e1b926fa04dbddc2d30586ff26026083134 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Tue, 26 Sep 2017 19:06:43 +0200
+Subject: [PATCH] CMakeLists.txt: Don't require a C++ compiler
+
+By default, CMake assumes that the project is using both C and C++. By
+explicitly passing 'C' as argument of the project() macro, we tell CMake
+that only C is used, which prevents CMake from erroring out if a C++
+compiler doesn't exist.
+
+Patch sent upstream: https://github.com/librsync/librsync/pull/116
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 85536e3..7fe1eda 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -16,7 +16,7 @@
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+
+-project(librsync)
++project(librsync C)
+ cmake_minimum_required(VERSION 2.6)
+
+ INCLUDE(CMakeDependentOption)
+--
+2.11.0
+
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/librsync: fix build without C++ support
2017-09-26 17:10 [Buildroot] [PATCH 1/1] package/librsync: fix build without C++ support Bernd Kuhls
@ 2017-09-27 20:03 ` Thomas Petazzoni
2017-10-17 8:59 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-09-27 20:03 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 26 Sep 2017 19:10:50 +0200, Bernd Kuhls wrote:
> Fixes
> http://autobuild.buildroot.net/results/3ca/3cacb87e39a0ebb9d227fff4be71bea8132bf0ed/
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> ...CMakeLists.txt-Don-t-require-a-C-compiler.patch | 33 ++++++++++++++++++++++
> 1 file changed, 33 insertions(+)
> create mode 100644 package/librsync/0001-CMakeLists.txt-Don-t-require-a-C-compiler.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/librsync: fix build without C++ support
2017-09-26 17:10 [Buildroot] [PATCH 1/1] package/librsync: fix build without C++ support Bernd Kuhls
2017-09-27 20:03 ` Thomas Petazzoni
@ 2017-10-17 8:59 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-10-17 8:59 UTC (permalink / raw)
To: buildroot
>>>>> "Bernd" == Bernd Kuhls <bernd.kuhls@t-online.de> writes:
> Fixes
> http://autobuild.buildroot.net/results/3ca/3cacb87e39a0ebb9d227fff4be71bea8132bf0ed/
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Committed to 2017.08.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-17 8:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-26 17:10 [Buildroot] [PATCH 1/1] package/librsync: fix build without C++ support Bernd Kuhls
2017-09-27 20:03 ` Thomas Petazzoni
2017-10-17 8:59 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox