pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/tigervnc



Module Name:    pkgsrc
Committed By:   pho
Date:           Sun Apr 14 09:03:01 UTC 2024

Modified Files:
        pkgsrc/net/tigervnc: Makefile
Added Files:
        pkgsrc/net/tigervnc: hacks.mk

Log Message:
net/tigervnc: Work around kern/58149 on NetBSD/aarch64 9.* and 10.0

See also
http://mail-index.netbsd.org/netbsd-users/2024/04/12/msg030915.html


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 pkgsrc/net/tigervnc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/net/tigervnc/hacks.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/tigervnc/Makefile
diff -u pkgsrc/net/tigervnc/Makefile:1.69 pkgsrc/net/tigervnc/Makefile:1.70
--- pkgsrc/net/tigervnc/Makefile:1.69   Sun Nov 12 13:23:14 2023
+++ pkgsrc/net/tigervnc/Makefile        Sun Apr 14 09:03:01 2024
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.69 2023/11/12 13:23:14 wiz Exp $
+# $NetBSD: Makefile,v 1.70 2024/04/14 09:03:01 pho Exp $
 
 DISTNAME=              tigervnc-1.13.1
 PKGNAME=               ${DISTNAME}.1.20.13
-PKGREVISION=           5
+PKGREVISION=           6
 CATEGORIES=            net
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=TigerVNC/}
 GITHUB_TAG=            v1.13.1

Added files:

Index: pkgsrc/net/tigervnc/hacks.mk
diff -u /dev/null pkgsrc/net/tigervnc/hacks.mk:1.1
--- /dev/null   Sun Apr 14 09:03:01 2024
+++ pkgsrc/net/tigervnc/hacks.mk        Sun Apr 14 09:03:01 2024
@@ -0,0 +1,26 @@
+# $NetBSD: hacks.mk,v 1.1 2024/04/14 09:03:01 pho Exp $
+
+.if !defined(FOO_HACKS_MK)
+FOO_HACKS_MK=  defined
+
+### [Tue Apr  9 13:40:46 JST 2024 : pho]
+###
+### With "smart scheduler" enabled, Xserver sets up an itimer to
+### periodically receive SIGALRM from the kernel while the server is doing
+### a socket I/O and processing commands from X clients. When the signal
+### arrives while Xserver is in pixman_composite_src_8888_8888_asm_neon()
+### or any similar functions from libpixman, the process fails to return
+### from the signal handler and exits with status code 22 (EINVAL) due to
+### kern/58149. These functions misalign SP while doing some SIMD stuff,
+### thereby trigger the kernel bug.
+###
+### Disabling itimer can avoid the problem but there might be a performance
+### regression.
+###
+.if ${MACHINE_PLATFORM:MNetBSD-9.*-aarch64} || \
+       ${MACHINE_PLATFORM:MNetBSD-10.0-aarch64}
+PKG_HACKS+=    smart-scheduler-workaround
+CONFIGURE_ENV+=        ac_cv_func_setitimer=no
+.endif
+
+.endif  # FOO_HACKS_MK



Home | Main Index | Thread Index | Old Index