Fixed the build error for gcc-14 64/313064/2 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.234214 accepted/tizen/unified/20240624.104718 accepted/tizen/unified/dev/20240701.073121 tizen_9.0_m2_release
authorJinWang An <jinwang.an@samsung.com>
Wed, 19 Jun 2024 00:32:38 +0000 (09:32 +0900)
committerJinWang An <jinwang.an@samsung.com>
Wed, 19 Jun 2024 00:54:12 +0000 (09:54 +0900)
Change-Id: I4fad94558ee7917da9316dc4caeb657c986b2c75
Signed-off-by: JinWang An <jinwang.an@samsung.com>
packaging/fixed_the_build_error_for_gcc014.patch [new file with mode: 0644]
packaging/sysprof.spec

diff --git a/packaging/fixed_the_build_error_for_gcc014.patch b/packaging/fixed_the_build_error_for_gcc014.patch
new file mode 100644 (file)
index 0000000..9ff5360
--- /dev/null
@@ -0,0 +1,33 @@
+From 85384c42758748a3e17ce0e64bf96f78588d5e17 Mon Sep 17 00:00:00 2001
+From: wchang kim <wchang.kim@samsung.com>
+Date: Tue, 18 Jun 2024 18:38:32 +0900
+Subject: [PATCH] Fixed the build error for gcc-14
+
+Change-Id: I1c774596cd973cb59a593d2d4511c92d5edd5c70
+---
+ testdemangle.c | 1 +
+ unwind.h       | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/testdemangle.c b/testdemangle.c
+index c2b3d56..5d95926 100644
+--- a/testdemangle.c
++++ b/testdemangle.c
+@@ -1,4 +1,5 @@
+ #include "elfparser.h"
++#include <stdio.h>
+ int
+ main ()
+diff --git a/unwind.h b/unwind.h
+index 2827e74..0924462 100644
+--- a/unwind.h
++++ b/unwind.h
+@@ -1,3 +1,3 @@
+ #include <glib.h>
+-void unwind (const guchar *data);
++void unwind (ElfParser *elf);
+-- 
+2.25.1
+
index e72a68b..54b8814 100644 (file)
@@ -34,6 +34,7 @@ Group:          Development/Tools/Debuggers
 Url:            http://sysprof.com/
 Source:         sysprof-%version.tar.bz2
 Source1001:    sysprof.manifest
+Source1002:    fixed_the_build_error_for_gcc014.patch
 Recommends:     sysprof-cli
 
 %description
@@ -49,6 +50,7 @@ This package contains the command-line data-collection part only.
 %prep
 %setup -q -n sysprof-%version
 cp %{SOURCE1001} .
+%{__patch} -p1 < %{SOURCE1002}
 
 %build
 NOCONFIGURE=1 ./autogen.sh