All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package/pulseview: fix a build issue
@ 2017-05-17  9:22 Bartosz Golaszewski
  2017-05-17  9:40 ` Baruch Siach
  0 siblings, 1 reply; 2+ messages in thread
From: Bartosz Golaszewski @ 2017-05-17  9:22 UTC (permalink / raw)
  To: buildroot

Backport an upstream patch fixing the build issue related to boost
math definitions.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
---
v1 -> v2:
- backported the upstream patch instead of fixing it myself

 ...txt-Avoid-fext-numeric-literals-not-suppo.patch | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 package/pulseview/0003-CMakeLists.txt-Avoid-fext-numeric-literals-not-suppo.patch

diff --git a/package/pulseview/0003-CMakeLists.txt-Avoid-fext-numeric-literals-not-suppo.patch b/package/pulseview/0003-CMakeLists.txt-Avoid-fext-numeric-literals-not-suppo.patch
new file mode 100644
index 0000000..3bd05bd
--- /dev/null
+++ b/package/pulseview/0003-CMakeLists.txt-Avoid-fext-numeric-literals-not-suppo.patch
@@ -0,0 +1,26 @@
+From 326f6d8317da370513868946c4a77dea0cd7f913 Mon Sep 17 00:00:00 2001
+From: Uwe Hermann <uwe@hermann-uwe.de>
+Date: Wed, 17 May 2017 11:00:44 +0200
+Subject: [PATCH 3/3] CMakeLists.txt: Avoid -fext-numeric-literals, (not
+ supported by clang).
+
+This (re-)fixes bug #863.
+---
+ CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e8bc79f..e7e4432 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -395,6 +395,7 @@ add_definitions(${QT_DEFINITIONS} -DQT_NO_KEYWORDS)
+ add_definitions(-D__STDC_LIMIT_MACROS)
+ add_definitions(-Wall -Wextra)
+ add_definitions(-std=c++11)
++add_definitions(-DBOOST_MATH_DISABLE_FLOAT128=1)
+ 
+ if(ENABLE_DECODE)
+ 	add_definitions(-DENABLE_DECODE)
+-- 
+2.9.3
+
-- 
2.9.3

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

* [Buildroot] [PATCH v2] package/pulseview: fix a build issue
  2017-05-17  9:22 [Buildroot] [PATCH v2] package/pulseview: fix a build issue Bartosz Golaszewski
@ 2017-05-17  9:40 ` Baruch Siach
  0 siblings, 0 replies; 2+ messages in thread
From: Baruch Siach @ 2017-05-17  9:40 UTC (permalink / raw)
  To: buildroot

Hi Bartosz,

On Wed, May 17, 2017 at 11:22:49AM +0200, Bartosz Golaszewski wrote:
> Backport an upstream patch fixing the build issue related to boost
> math definitions.
> 
> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
> ---
> v1 -> v2:
> - backported the upstream patch instead of fixing it myself
> 
>  ...txt-Avoid-fext-numeric-literals-not-suppo.patch | 26 ++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>  create mode 100644 package/pulseview/0003-CMakeLists.txt-Avoid-fext-numeric-literals-not-suppo.patch
> 
> diff --git a/package/pulseview/0003-CMakeLists.txt-Avoid-fext-numeric-literals-not-suppo.patch b/package/pulseview/0003-CMakeLists.txt-Avoid-fext-numeric-literals-not-suppo.patch
> new file mode 100644
> index 0000000..3bd05bd
> --- /dev/null
> +++ b/package/pulseview/0003-CMakeLists.txt-Avoid-fext-numeric-literals-not-suppo.patch
> @@ -0,0 +1,26 @@
> +From 326f6d8317da370513868946c4a77dea0cd7f913 Mon Sep 17 00:00:00 2001
> +From: Uwe Hermann <uwe@hermann-uwe.de>
> +Date: Wed, 17 May 2017 11:00:44 +0200
> +Subject: [PATCH 3/3] CMakeLists.txt: Avoid -fext-numeric-literals, (not
> + supported by clang).

These patch numbers tend to get out of sync overtime. Please generate the 
patch with the -N parameter of 'git format-patch' to omit the numbering.

> +
> +This (re-)fixes bug #863.

Please add your sign-off here.

> +---
> + CMakeLists.txt | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index e8bc79f..e7e4432 100644
> +--- a/CMakeLists.txt
> ++++ b/CMakeLists.txt
> +@@ -395,6 +395,7 @@ add_definitions(${QT_DEFINITIONS} -DQT_NO_KEYWORDS)
> + add_definitions(-D__STDC_LIMIT_MACROS)
> + add_definitions(-Wall -Wextra)
> + add_definitions(-std=c++11)
> ++add_definitions(-DBOOST_MATH_DISABLE_FLOAT128=1)
> + 
> + if(ENABLE_DECODE)
> + 	add_definitions(-DENABLE_DECODE)

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

end of thread, other threads:[~2017-05-17  9:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-17  9:22 [Buildroot] [PATCH v2] package/pulseview: fix a build issue Bartosz Golaszewski
2017-05-17  9:40 ` Baruch Siach

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.