support clang build

(cherry picked from commit 52bcd5229feb9c7091cb9caf736d40685d00806a)
This commit is contained in:
luofeng14 2024-03-04 11:22:43 +08:00 committed by openeuler-sync-bot
parent a9471a1347
commit 48204ccf6f
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From d8479c6d68c571d7080462258f70652573306434 Mon Sep 17 00:00:00 2001
From: luofeng <luofeng13@huawei.com>
Date: Mon, 4 Mar 2024 11:08:35 +0800
Subject: [PATCH] support clang build
---
unix/xserver/mi/miinitext.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unix/xserver/mi/miinitext.c b/unix/xserver/mi/miinitext.c
index 688beff..6379b17 100644
--- a/unix/xserver/mi/miinitext.c
+++ b/unix/xserver/mi/miinitext.c
@@ -108,7 +108,7 @@ SOFTWARE.
#include "globals.h"
#ifdef TIGERVNC
-extern void vncExtensionInit(INITARGS);
+extern void vncExtensionInit();
#endif
/* List of built-in (statically linked) extensions */
--
2.19.1

View File

@ -4,7 +4,7 @@
Name: tigervnc
Version: 1.13.1
Release: 1
Release: 2
Summary: A TigerVNC remote display system
License: GPLv2+
@ -19,6 +19,7 @@ Source6: HOWTO.md
Patch0001: tigervnc-xserver120.patch
Patch0002: 0001-Fix-some-translations-of-start-menu.patch
Patch0003: fix-clang-build-error.patch
BuildRequires: make gcc-c++ systemd cmake automake autoconf gettext gettext-autopoint pixman-devel fltk-devel >= 1.3.3
BuildRequires: libX11-devel libtool libxkbfile-devel libpciaccess-devel libXinerama-devel libXfont2-devel
@ -104,6 +105,7 @@ for all in `find . -type f -perm -001`; do
done
popd
%patch0002 -p1
%patch0003 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS -fpic"
@ -247,6 +249,12 @@ popd
%{_mandir}/man8/*
%changelog
* Fri Nov 10 2023 luofeng <luofeng13@huawei.com> - 1.13.1-2
- Type:enhencement
- CVE:NA
- SUG:NA
- DESC: support clang build
* Thu Jul 27 2023 zhouyihang <zhouyihang3@h-partners.com> - 1.13.1-1
- Type:requirements
- ID:NA