Taken from upstream: https://github.com/sigrokproject/pulseview/pull/39/commits/fb89dd11f2a4a08b73c498869789e38677181a8d. From fb89dd11f2a4a08b73c498869789e38677181a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Wed, 28 Apr 2021 02:14:47 +0200 Subject: [PATCH] Fix broken build due to C++ template behind C linkage glib/gatomic.h since 2.68 includes type_traits, which causes a compilation error: In file included from /usr/include/glib-2.0/glib/gatomic.h:31, from /usr/include/glib-2.0/glib/gthread.h:32, from /usr/include/glib-2.0/glib/gasyncqueue.h:32, from /usr/include/glib-2.0/glib.h:32, from /usr/include/libsigrokdecode/libsigrokdecode.h:25, from /home/abuild/rpmbuild/BUILD/pulseview-0.4.2/pv/data/decode/annotation.cpp:21: /usr/include/c++/10/type_traits:2308:3: error: template with C linkage 2308 | template As libsigrokdecode.h declares extern C linkage itself where necessary, remove it from pulseviews include statements from the last two occasions. --- pv/data/decode/annotation.cpp | 2 -- pv/views/trace/decodetrace.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/pv/data/decode/annotation.cpp b/pv/data/decode/annotation.cpp index 7f233478..f8a5c47b 100644 --- a/pv/data/decode/annotation.cpp +++ b/pv/data/decode/annotation.cpp @@ -17,9 +17,7 @@ * along with this program; if not, see . */ -extern "C" { #include -} #include #include diff --git a/pv/views/trace/decodetrace.cpp b/pv/views/trace/decodetrace.cpp index 409f1d28..888064d0 100644 --- a/pv/views/trace/decodetrace.cpp +++ b/pv/views/trace/decodetrace.cpp @@ -17,9 +17,7 @@ * along with this program; if not, see . */ -extern "C" { #include -} #include #include h'/>
AgeCommit message (Expand)Author
2021-02-08gnu: perl-test-trailingspace: Update to 0.0600....* gnu/packages/perl-check.scm (perl-test-trailingspace): Update to 0.0600. Efraim Flashner
2021-02-08gnu: perl-test-simple: Update to 1.302183....* gnu/packages/perl-check.scm (perl-test-simple): Update to 1.302183. Efraim Flashner
2021-02-08gnu: perl-test-runvalgrind: Update to 0.2.2....* gnu/packages/perl-check.scm (perl-test-runvalgrind): Update to 0.2.2. Efraim Flashner
2021-02-08gnu: perl-test-requires: Update to 0.11....* gnu/packages/perl-check.scm (perl-test-requires): Update to 0.11. Efraim Flashner
2021-02-08gnu: perl-test-taint: Update to 1.08....* gnu/packages/perl-check.scm (perl-test-taint): Update to 1.08. Efraim Flashner
2021-02-08gnu: perl-test-warnings: Update to 0.030....* gnu/packages/perl-check.scm (perl-test-warnings): Update to 0.030. Efraim Flashner
2021-02-08gnu: perl-test-warn: Update to 0.36....* gnu/packages/perl-check.scm (perl-test-warn): Update to 0.36. Efraim Flashner
2021-01-07gnu: perl-test-file: Update to 1.444....* gnu/packages/perl-check.scm (perl-test-file): Update to 1.444. Tobias Geerinckx-Rice
2020-10-02gnu: perl-test-utf8: Update to 1.02....* gnu/packages/perl-check.scm (perl-test-utf8): Update to 1.02. Tobias Geerinckx-Rice