Github messages for voidlinux
 help / color / mirror / Atom feed
From: unspecd <unspecd@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] turbovnc: update to 3.0.2.
Date: Thu, 22 Dec 2022 16:39:12 +0100	[thread overview]
Message-ID: <20221222153912.L4bYE1WjD3NG3UDmXZBpcmANY2gL8L0y9argtMP70cM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41238@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1240 bytes --]

There is an updated pull request by unspecd against master on the void-packages repository

https://github.com/unspecd/void-packages pkg/turbovnc
https://github.com/void-linux/void-packages/pull/41238

turbovnc: update to 3.0.2.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - ppc64le-musl
  - x86_64


A patch file from https://github.com/void-linux/void-packages/pull/41238.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/turbovnc-41238.patch --]
[-- Type: text/x-diff, Size: 3795 bytes --]

From 9922f5c156213cc16767aa42ae63d71e47c5824e Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Wed, 21 Dec 2022 03:07:48 +1100
Subject: [PATCH] turbovnc: update to 3.0.2.

---
 srcpkgs/turbovnc-viewer                      |  1 +
 srcpkgs/turbovnc/patches/musl-asm_page.patch | 13 --------
 srcpkgs/turbovnc/template                    | 35 +++++++++++++++-----
 3 files changed, 27 insertions(+), 22 deletions(-)
 create mode 120000 srcpkgs/turbovnc-viewer
 delete mode 100644 srcpkgs/turbovnc/patches/musl-asm_page.patch

diff --git a/srcpkgs/turbovnc-viewer b/srcpkgs/turbovnc-viewer
new file mode 120000
index 000000000000..c47d5b709064
--- /dev/null
+++ b/srcpkgs/turbovnc-viewer
@@ -0,0 +1 @@
+turbovnc
\ No newline at end of file
diff --git a/srcpkgs/turbovnc/patches/musl-asm_page.patch b/srcpkgs/turbovnc/patches/musl-asm_page.patch
deleted file mode 100644
index a1360275e83e..000000000000
--- a/srcpkgs/turbovnc/patches/musl-asm_page.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Try to include <asm/page.h> only if __GLIBC__ is defined also.
-
---- a/unix/Xvnc/programs/Xserver/Xext/xf86bigfont.c	2014-07-20 02:45:59.000000000 +0200
-+++ b/unix/Xvnc/programs/Xserver/Xext/xf86bigfont.c	2015-09-01 10:28:30.171432632 +0200
-@@ -40,7 +40,7 @@
- 
- #include <sys/types.h>
- #ifdef HAS_SHM
--#if defined(linux) && (!defined(__GNU_LIBRARY__) || __GNU_LIBRARY__ < 2)
-+#if defined(linux) && (!defined(__GNU_LIBRARY__) || __GNU_LIBRARY__ < 2) && defined(__GLIBC__)
- /* libc4 does not define __GNU_LIBRARY__, libc5 defines __GNU_LIBRARY__ as 1 */
- /* Linux libc4 and libc5 only (because glibc doesn't include kernel headers):
-    Linux 2.0.x and 2.2.x define SHMLBA as PAGE_SIZE, but forget to define
diff --git a/srcpkgs/turbovnc/template b/srcpkgs/turbovnc/template
index 3a9876a44a22..8198b51ab364 100644
--- a/srcpkgs/turbovnc/template
+++ b/srcpkgs/turbovnc/template
@@ -1,30 +1,47 @@
 # Template file for 'turbovnc'
 pkgname=turbovnc
-version=2.2.7
+version=3.0.2
 revision=1
 build_style=cmake
-configure_args="-DTJPEG_LIBRARY=${XBPS_CROSS_BASE}/usr/lib/libturbojpeg.so -DTVNC_BUILDJAVA=0
- -DTVNC_SYSTEMLIBS=ON"
-hostmakedepends="rsync"
-makedepends="libjpeg-turbo-devel libXt-devel libXaw-devel libXcursor-devel pam-devel
- zlib-devel freetype-devel bzip2-devel openssl-devel"
+configure_args="-DCMAKE_INSTALL_JAVADIR=/usr/lib/turbovnc
+ -DTJPEG_LIBRARY=${XBPS_CROSS_BASE}/usr/lib/libturbojpeg.so
+ -DTVNC_SYSTEMLIBS=ON -DTVNC_BUILDWEBSERVER=OFF"
+hostmakedepends="openjdk17"
+makedepends="bzip2-devel freetype-devel libjpeg-turbo-devel libX11-devel
+ libXext-devel libXi-devel openssl-devel pam-devel zlib-devel"
 depends="perl"
 short_desc="Optimized version of TightVNC VNC client and server"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later"
 homepage="https://turbovnc.org"
 distfiles="${SOURCEFORGE_SITE}/turbovnc/${pkgname}-${version}.tar.gz"
-checksum=8a9a86c5028b70f8d6bc8a5317bba1e3010a72242b1b5b18d958272b5249b8cd
-
+checksum=616dc72ce52351b70a239c2f464c83136e6143a23c7d316e3b29f68ea71c9949
 conf_files="/etc/*.conf"
-archs="i686* x86_64* ppc64*"
 conflicts="tigervnc>=0"
 
 # Need this to make <sys/socket.h> define struct ucred with musl
 CFLAGS="-D_GNU_SOURCE"
 
+pre_configure() {
+	. /etc/profile.d/openjdk.sh
+}
+
 post_install() {
 	rm -rf ${DESTDIR}/etc/sysconfig
 	rm -rf ${DESTDIR}/etc/init.d
 	rm ${DESTDIR}/usr/share/man/man1/Xserver.1
+	mv ${DESTDIR}/usr/lib/turbovnc/README.md \
+	   ${DESTDIR}/usr/share/doc/TurboVNC/README-vncviewer.md
+}
+
+turbovnc-viewer_package() {
+	short_desc+=" - viewer"
+	depends="openjdk17"
+	conflicts="tigervnc>=0"
+	pkg_install() {
+		vmove usr/bin/vncviewer
+		vmove usr/lib
+		vmove usr/share/doc/TurboVNC/README-vncviewer.md
+		vmove usr/share/man/man1/vncviewer.1
+	}
 }

  reply	other threads:[~2022-12-22 15:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-22 15:26 [PR PATCH] " unspecd
2022-12-22 15:39 ` unspecd [this message]
2022-12-22 15:42 ` [PR PATCH] [Updated] " unspecd
2023-01-22  1:53 ` [PR PATCH] [Merged]: " Vaelatern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221222153912.L4bYE1WjD3NG3UDmXZBpcmANY2gL8L0y9argtMP70cM@z \
    --to=unspecd@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).