mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
sci-electronics/dsview: fix build with GCC 13
Closes: https://bugs.gentoo.org/887877 Closes: https://bugs.gentoo.org/887913 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
14
sci-electronics/dsview/files/dsview-1.3.0-fix-flags.patch
Normal file
14
sci-electronics/dsview/files/dsview-1.3.0-fix-flags.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
https://bugs.gentoo.org/887913
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index c40c925..41e5230 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -594,8 +594,6 @@ endif()
|
||||
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
||||
-set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||
-add_compile_options(-O3)
|
||||
|
||||
#===============================================================================
|
||||
#= Linker Configuration
|
||||
37
sci-electronics/dsview/files/dsview-1.3.0-gcc13.patch
Normal file
37
sci-electronics/dsview/files/dsview-1.3.0-gcc13.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
https://bugs.gentoo.org/887877
|
||||
https://github.com/DreamSourceLab/DSView/commit/2018baf0e1add4f9971dd02271ee8e6773cebfac
|
||||
From: Lutz Freitag <lutz@gottliebtfreitag.de>
|
||||
Date: Wed, 22 May 2024 21:29:54 +0200
|
||||
Subject: [PATCH] added missing includes and a define to compile it for recent
|
||||
machines
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -668,6 +668,8 @@ install(FILES DSView/icons/logo.svg DESTINATION share/pixmaps RENAME dsview.svg)
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
install(FILES DSView/DSView.desktop DESTINATION /usr/share/applications RENAME dsview.desktop)
|
||||
|
||||
+ add_compile_definitions(_DEFAULT_SOURCE)
|
||||
+
|
||||
if(IS_DIRECTORY /usr/lib/udev/rules.d)
|
||||
install(FILES DSView/DreamSourceLab.rules DESTINATION /usr/lib/udev/rules.d RENAME 60-dreamsourcelab.rules)
|
||||
elseif(IS_DIRECTORY /lib/udev/rules.d)
|
||||
--- a/libsigrok4DSL/input/in_wav.c
|
||||
+++ b/libsigrok4DSL/input/in_wav.c
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
+#include <strings.h>
|
||||
#include "../log.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
--- a/libsigrok4DSL/strutil.c
|
||||
+++ b/libsigrok4DSL/strutil.c
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "libsigrok-internal.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#include <strings.h>
|
||||
#include <stdio.h>
|
||||
#include "log.h"
|
||||
|
||||
Reference in New Issue
Block a user