Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
ebda0d2b7a
!64 [sync] PR-63: Support build with clang
From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2024-03-26 13:04:00 +00:00
luofeng14
48204ccf6f support clang build
(cherry picked from commit 52bcd5229feb9c7091cb9caf736d40685d00806a)
2024-03-26 20:18:20 +08:00
openeuler-ci-bot
a9471a1347
!62 update tigervnc to 1.13.1
From: @sherlock2010 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2023-07-31 09:03:58 +00:00
sherlock2010
e23232dcf5 update tigervnc to 1.13.1 2023-07-27 12:23:24 +00:00
openeuler-ci-bot
0450ffa69d
!48 add buildrequire xorg-x11-font-utils
From: @sherlock2010 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
2023-03-13 09:57:47 +00:00
sherlock2010
29173cbd12 add buildrequire xorg-x11-font-utils 2023-03-13 09:12:31 +00:00
openeuler-ci-bot
aedb94cbb8
!42 update tigervnc to 1.13.0
From: @sherlock2010 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2023-03-08 06:07:51 +00:00
sherlock2010
1f075ee177 update tigervnc to 1.13.0 2023-02-23 08:28:06 +00:00
openeuler-ci-bot
b9dedadd6c
!40 [sync] PR-39: enable test
From: @openeuler-sync-bot 
Reviewed-by: @yanan-rock 
Signed-off-by: @yanan-rock
2022-07-07 12:09:53 +00:00
eaglegai
6702c57d36 enable test
(cherry picked from commit 90888cf06388056193bd1bb63b418432d9f0567d)
2022-06-20 19:31:22 +08:00
5 changed files with 74 additions and 60 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

@ -3,15 +3,14 @@
%global modulename vncsession
Name: tigervnc
Version: 1.12.0
Release: 6
Version: 1.13.1
Release: 2
Summary: A TigerVNC remote display system
License: GPLv2+
URL: http://github.com/TigerVNC/tigervnc/
URL: https://tigervnc.org
Source0: https://github.com/TigerVNC/tigervnc/archive/v1.12.0.tar.gz
Source1: vncserver.service
Source0: https://github.com/TigerVNC/tigervnc/archive/v1.13.1.tar.gz
Source2: vncserver
Source3: 10-libvnc.conf
Source4: xvnc.service
@ -20,12 +19,14 @@ Source6: HOWTO.md
Patch0001: tigervnc-xserver120.patch
Patch0002: 0001-Fix-some-translations-of-start-menu.patch
Patch0003: fix-clang-build-error.patch
BuildRequires: gcc-c++ systemd cmake automake autoconf gettext gettext-autopoint pixman-devel fltk-devel >= 1.3.3
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
BuildRequires: libXext-devel xorg-x11-server-source libXi-devel libXdmcp-devel libxshmfence-devel
BuildRequires: xorg-x11-xtrans-devel xorg-x11-util-macros xorg-x11-server-devel libXtst-devel libdrm-devel libXt-devel
BuildRequires: openssl-devel mesa-libGL-devel freetype-devel desktop-file-utils java-devel jpackage-utils pam-devel gnutls-devel libjpeg-turbo-devel selinux-policy-devel
BuildRequires: xorg-x11-font-utils libselinux-devel libXdamage-devel libXfixes-devel libXrandr-devel libXrender-devel zlib-devel
Requires(post): coreutils
Requires(postun):coreutils
@ -52,7 +53,7 @@ X session.
%package server-minimal
Summary: A minimal installation of TigerVNC server
Requires: mesa-dri-drivers, xkeyboard-config, %{name}-license xkbcomp
Requires: mesa-dri-drivers, xkeyboard-config, %{name}-license xkbcomp dbus-x11
%description server-minimal
This package provides minimal installation of TigerVNC, with which
@ -77,7 +78,7 @@ If you want to use web browser in clients, please install this package.
%package selinux
Summary: SElinux module for TigerVNC
BuildRequires: selinux-policy-devel
Requires: selinux-policy-targeted
Requires: selinux-policy-%{selinuxtype}
BuildArch: noarch
%description selinux
@ -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"
@ -185,6 +187,14 @@ install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/10-libvnc.c
install -m 644 %{SOURCE6} %{buildroot}%{_docdir}/tigervnc/HOWTO.md
%check
pushd tests
make %{?_smp_mflags}
./unit/conv
./unit/convertlf
./unit/hostport
./unit/pixelformat
popd
%files -f %{name}.lang
%defattr(-,root,root)
@ -192,6 +202,7 @@ install -m 644 %{SOURCE6} %{buildroot}%{_docdir}/tigervnc/HOWTO.md
%{_bindir}/vncviewer
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/metainfo/org.tigervnc.vncviewer.metainfo.xml
%files server
%defattr(-,root,root)
@ -238,6 +249,36 @@ install -m 644 %{SOURCE6} %{buildroot}%{_docdir}/tigervnc/HOWTO.md
%{_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
- SUG:NA
- DESC:update tigervnc to 1.13.1
* Mon Mar 13 2023 zhouyihang <zhouyihang3@h-partners.com> - 1.13.0-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add buildrequire xorg-x11-font-utils
* Thu Feb 23 2023 zhouyihang <zhouyihang3@h-partners.com> - 1.13.0-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC:update tigervnc to 1.13.0
* Sat Jun 11 2022 gaihuiying <eaglegai@163.com> - 1.12.0-7
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC: enable test
* Thu Apr 14 2022 ouyangminxiang <ouyangminxiang@kylinsec.com.cn> - 1.12.0-6
- Type:translation
- ID:NA

Binary file not shown.

BIN
v1.13.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,52 +0,0 @@
# The vncserver service unit file
#
# Quick HowTo:
# 1. Copy this file to /etc/systemd/system/vncserver@.service
# 2. Replace <USER> with the actual user name and edit vncserver
# parameters appropriately
# 3. Run `systemctl daemon-reload`
# 4. Run `systemctl enable vncserver@:<display>.service`
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, you should
# limit connections to the local host and then tunnel from
# the machine you want to view VNC on (host A) to the machine
# whose VNC output you want to view (host B)
#
# [user@hostA ~]$ ssh -v -C -L 590N:localhost:590M hostB
#
# this will open a connection on port 590N of your hostA to hostB's port 590M
# (in fact, it ssh-connects to hostB and then connects to localhost (on hostB).
# See the ssh man page for details on port forwarding)
#
# You can then point a VNC client on hostA at vncdisplay N of localhost and with
# the help of ssh, you end up seeing what hostB makes available on port 590M
#
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
#
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
WorkingDirectory=/home/<USER>
User=<USER>
Group=<USER>
PIDFile=/home/<USER>/.vnc/%H%i.pid
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/vncserver -autokill %i
ExecStop=/usr/bin/vncserver -kill %i
Restart=on-success
RestartSec=15
[Install]
WantedBy=multi-user.target