summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgutteridge <gutteridge@pkgsrc.org>2022-09-10 00:14:19 +0000
committergutteridge <gutteridge@pkgsrc.org>2022-09-10 00:14:19 +0000
commit5b9f35ce0707fa5673c5cf7a6cd52f82cb77a397 (patch)
treeab4e253dc9b1d5fef25edcf38bbfa51e29bc06a3
parentbc033ce4ec1f0042ec4f8223ad681a53656a54d2 (diff)
downloadpkgsrc-5b9f35ce0707fa5673c5cf7a6cd52f82cb77a397.tar.gz
mlterm: force consistent builds with posix_openpt(3) on NetBSD
Work around the fact this package tests whether posix_openpt(3) works at runtime. This fails in typical sandboxed build environments (including TNF's used for official binary builds), which causes a fallback to use "old-style" BSD ptys, which can result in runtime failures. Addresses PR pkg/56936. Needs monitoring to ensure official TNF binary packages now behave as expected.
-rw-r--r--x11/mlterm/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/x11/mlterm/Makefile b/x11/mlterm/Makefile
index 32a271da74b..47e2d776628 100644
--- a/x11/mlterm/Makefile
+++ b/x11/mlterm/Makefile
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.175 2022/08/11 05:09:31 gutteridge Exp $
+# $NetBSD: Makefile,v 1.176 2022/09/10 00:14:19 gutteridge Exp $
DISTNAME= mlterm-3.9.2
DIST_SUBDIR= ${PKGNAME_NOREV} # for re-tagged 3.9.2
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=arakiken/}
-GITHUB_PROJECT= ${PKGBASE}
+GITHUB_PROJECT= ${PKGBASE}
GITHUB_TAG= ${PKGVERSION_NOREV}
MAINTAINER= tsutsui@NetBSD.org
@@ -35,6 +35,16 @@ INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
+# Work around the fact this package tests whether posix_openpt(3) works at
+# runtime. This fails in typical sandboxed build environments (including
+# TNF's used for official binary builds), which causes a fallback to use
+# "old-style" BSD ptys. (If a user was running a kernel with non-standard
+# settings that don't support the expectations here, they'd need to disable
+# this override.) See PR pkg/56936.
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ENV+= bl_cv_pty=streams
+.endif
+
SUBST_CLASSES+= link
SUBST_MESSAGE.link= Fixing hardcoded paths and link options in Makefiles.
SUBST_STAGE.link= pre-configure