pkgsrc-Changes archive

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

CVS commit: pkgsrc/x11/mlterm



Module Name:    pkgsrc
Committed By:   gutteridge
Date:           Sat Sep 10 00:14:19 UTC 2022

Modified Files:
        pkgsrc/x11/mlterm: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.175 -r1.176 pkgsrc/x11/mlterm/Makefile

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

Modified files:

Index: pkgsrc/x11/mlterm/Makefile
diff -u pkgsrc/x11/mlterm/Makefile:1.175 pkgsrc/x11/mlterm/Makefile:1.176
--- pkgsrc/x11/mlterm/Makefile:1.175    Thu Aug 11 05:09:31 2022
+++ pkgsrc/x11/mlterm/Makefile  Sat Sep 10 00:14:19 2022
@@ -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@localhost
@@ -35,6 +35,16 @@ INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX
 .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



Home | Main Index | Thread Index | Old Index