Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: [patch (kind of)] sysutils/gitlab-cli: terminal input doesn't work properly on OpenBSD
To:
YASUOKA Masahiko <yasuoka@openbsd.org>
Cc:
kn@openbsd.org, misha@freebsd.org, ports@openbsd.org
Date:
Sat, 28 Feb 2026 09:55:37 +0000

Download raw body.

Thread
On 2026/02/28 15:52, YASUOKA Masahiko wrote:
> I created a patch which makes the program use
> https://github.com/bsdmp/survey .
> 
> If this way is ok, I'll create a diff for gitlab-cli.

Here's a simplified version, tested and ok with me.

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/github-cli/Makefile,v
diff -u -p -r1.72 Makefile
--- Makefile	4 Feb 2026 17:45:53 -0000	1.72
+++ Makefile	28 Feb 2026 09:49:45 -0000
@@ -6,6 +6,11 @@ MODGO_VERSION =	v${V}
 
 DISTNAME =	cli-${MODGO_VERSION}
 PKGNAME =	github-cli-${V}
+REVISION =	0
+
+SURVEY_V =	vv2.3.8
+DIST_TUPLE =	github bsdmp survey ${SURVEY_V} ../survey
+EXTRACT_ONLY =	bsdmp-survey-${SURVEY_V}.tar.gz
 
 CATEGORIES =	devel
 HOMEPAGE =	https://cli.github.com/
@@ -23,6 +28,10 @@ MODGO_LDFLAGS +=	-X "${MODGO_MODNAME}/in
 TEST_TARGET =	./...
 
 PORTHOME =	${WRKDIR}
+
+pre-build:
+	cd ${WRKSRC}; ${MODGO_CMD} mod edit -replace \
+	    github.com/AlecAivazis/survey/v2=${WRKDIR}/survey
 
 post-install:
 	${WRKDIR}/go/bin/gen-docs --doc-path ${PREFIX}/man/man1 --man-page