Authentication-Results: name.execsw.org; dkim=pass (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=jGvsKO6w; dkim=pass (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=K7nhuDc3 Received: by mail.netbsd.org (Postfix, from userid 605) id F2E6584E9C; Sun, 14 Apr 2024 09:03:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1713085383; bh=eqH+D8XVe//ckNxAJCSWukBKyyz/SnIshGWBejZ6Gs8=; h=Date:From:Subject:To:Reply-To:List-Id:List-Unsubscribe; b=jGvsKO6w7FPBg0qPywhput36a1AaJRoK/o2TLZIlM4FyL837Mi+Jwo3hQ8DzOFXAB hT9gfUCRSPjxy+ckOZWNjHH7glK3aQdmanM2PyiYxyrE0A3U0VaX/+94tqxmfDjQmX Od6tQhfpIOXfWs1PfAJSDhwKLRTJa+4HxbfKCuyU= Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E3C0F84E9B for ; Sun, 14 Apr 2024 09:03:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id SwQbF65zTClD for ; Sun, 14 Apr 2024 09:03:01 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 5C26184E9A for ; Sun, 14 Apr 2024 09:03:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1713085381; bh=eqH+D8XVe//ckNxAJCSWukBKyyz/SnIshGWBejZ6Gs8=; h=Date:From:Subject:To:Reply-To; b=K7nhuDc3M5IfPK4pd5AZjcyYiamMo52p2Y4LGS3CuaR3T0OPmgQQu/O9PtcDtub7c sslOYNJypdWMiJgBndnRpbnjAw8N4uefdXvC6TW0xmkkbe/K8DQpelFIP9cyYm3XPo 2pznAf2v66A4XBy7os9IOh+c8Qcr5mWBrXffQMfE= Received: by cvs.NetBSD.org (Postfix, from userid 500) id 5000CFA2C; Sun, 14 Apr 2024 09:03:01 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1713085381200300" MIME-Version: 1.0 Date: Sun, 14 Apr 2024 09:03:01 +0000 From: "Masatake Daimon" Subject: CVS commit: pkgsrc/net/tigervnc To: pkgsrc-changes@NetBSD.org Reply-To: pho@netbsd.org X-Mailer: log_accum Message-Id: <20240414090301.5000CFA2C@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1713085381200300 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1713085381200300 Content-Disposition: inline Content-Length: 1805 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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 --_----------=_1713085381200300--