Skip to contentSkip to conversation

package/liburiparser: fix build without C++

PATCH New Fabrice Fontaine 3 participants 3 messages May 1, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/liburiparser: fix build without C++

Fixes:
- http://autobuild.buildroot.org/results/1e191676f28905a81de6282e07978aa5d4f02039

---
 ...1-CMakeLists.txt-fix-build-without-C.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/liburiparser/0001-CMakeLists.txt-fix-build-without-C.patch
package/liburiparser/0001-CMakeLists.txt-fix-build-without-C.patch new file +33 -0
new file mode 100644
index 0000000000..9f5e88989a
@@ -0,0 +1,33 @@
+From 0e385a6b747e967b6724ef3ded944c7da3b16f79 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Wed, 1 May 2019 11:18:29 +0200
+Subject: [PATCH] CMakeLists.txt: fix build without C++
+
+Specify that uriparser is a C project (C++ is needed only for the test
+runner) otherwise build will fail if no C++ compiler is found by cmake
+
+Fixes:
+ - http://autobuild.buildroot.org/results/1e191676f28905a81de6282e07978aa5d4f02039
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[Upstream status: https://github.com/uriparser/uriparser/pull/69]
+---
+ CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ceb79e0..40d3b20 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -39,6 +39,8 @@ cmake_minimum_required(VERSION 3.3)
+ project(uriparser
+     VERSION
+         0.9.3
++    LANGUAGES
++        C
+ )
+ 
+ # See https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
+-- 
+2.20.1
+
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/liburiparser: fix build without C++

Quoted 50 lines · Fabrice Fontaine

Fixes:
- http://autobuild.buildroot.org/results/1e191676f28905a81de6282e07978aa5d4f02039

---
 ...1-CMakeLists.txt-fix-build-without-C.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/liburiparser/0001-CMakeLists.txt-fix-build-without-C.patch
package/liburiparser/0001-CMakeLists.txt-fix-build-without-C.patch new file +33 -1
new file mode 100644
index 0000000000..9f5e88989a
@@ -0,0 +1,33 @@
+From 0e385a6b747e967b6724ef3ded944c7da3b16f79 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Wed, 1 May 2019 11:18:29 +0200
+Subject: [PATCH] CMakeLists.txt: fix build without C++
+
+Specify that uriparser is a C project (C++ is needed only for the test
+runner) otherwise build will fail if no C++ compiler is found by cmake
+
+Fixes:
+ - http://autobuild.buildroot.org/results/1e191676f28905a81de6282e07978aa5d4f02039
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[Upstream status: https://github.com/uriparser/uriparser/pull/69]
+---
+ CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ceb79e0..40d3b20 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -39,6 +39,8 @@ cmake_minimum_required(VERSION 3.3)
+ project(uriparser
+     VERSION
+         0.9.3
++    LANGUAGES
++        C
+ )
+
+ # See https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
+--
+2.20.1
+
--
Quoted 2 lines

2.20.1

#2 lore raw

PATCH 1/1 package/liburiparser: fix build without C++

In reply to Fabrice Fontaine
Quoted 32 lines · Fabrice Fontaine

Fixes:
- http://autobuild.buildroot.org/results/1e191676f28905a81de6282e07978aa5d4f02039

---
 ...1-CMakeLists.txt-fix-build-without-C.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/liburiparser/0001-CMakeLists.txt-fix-build-without-C.patch
package/liburiparser/0001-CMakeLists.txt-fix-build-without-C.patch new file +17 -0
new file mode 100644
index 0000000000..9f5e88989a
@@ -0,0 +1,33 @@
+From 0e385a6b747e967b6724ef3ded944c7da3b16f79 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Wed, 1 May 2019 11:18:29 +0200
+Subject: [PATCH] CMakeLists.txt: fix build without C++
+
+Specify that uriparser is a C project (C++ is needed only for the test
+runner) otherwise build will fail if no C++ compiler is found by cmake
+
+Fixes:
+ - http://autobuild.buildroot.org/results/1e191676f28905a81de6282e07978aa5d4f02039
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[Upstream status: https://github.com/uriparser/uriparser/pull/69]
+---
+ CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+

package/liburiparser/0001-CMakeLists.txt-fix-build-without-C.patch line 27

Quoted 10 lines
package/liburiparser/0001-CMakeLists.txt-fix-build-without-C.patch new file +10 -0
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ceb79e0..40d3b20 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -39,6 +39,8 @@ cmake_minimum_required(VERSION 3.3)
+ project(uriparser
+     VERSION
+         0.9.3
++    LANGUAGES
++        C

As upstream remarked: this will break the build of the testrunner because C++
is not enabled. So this is not OK for upstream, but good enough for us, so I applied to master, thanks.

Regards,
Arnout

Quoted 7 lines
package/liburiparser/0001-CMakeLists.txt-fix-build-without-C.patch new file +6 -0
+ )
+ 
+ # See https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
+-- 
+2.20.1
+