Index | Thread | Search

From:
YASUOKA Masahiko <yasuoka@openbsd.org>
Subject:
Re: [patch (kind of)] sysutils/gitlab-cli: terminal input doesn't work properly on OpenBSD
To:
kn@openbsd.org
Cc:
misha@freebsd.org, ports@openbsd.org
Date:
Sat, 28 Feb 2026 23:17:00 +0900

Download raw body.

Thread
On Sat, 28 Feb 2026 13:48:15 +0000
Klemens Nanni <kn@openbsd.org> wrote:
> 28.02.2026 12:55, Stuart Henderson пишет:
>> 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.
> 
> Yes, please!
> 
> Could you add a brief comment above SURVEY_V what it's for?
> 
> Either way, OK kn

Thanks, I'll commit the diff from sthen

> Could this be applied to sysutils/gitlab-cli as well?

Yes, it can be fixed in the same way.

ok?

Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/gitlab-cli/Makefile,v
diff -u -p -r1.45 Makefile
--- Makefile	13 Feb 2026 18:33:12 -0000	1.45
+++ Makefile	28 Feb 2026 14:12:19 -0000
@@ -6,6 +6,11 @@ MODGO_VERSION =		v${V}
 
 DISTNAME =		cli-${MODGO_VERSION}
 PKGNAME =		gitlab-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 =		sysutils
 HOMEPAGE =		https://docs.gitlab.com/ee/integration/glab/
@@ -22,6 +27,10 @@ BUILD_DEPENDS =		lang/go>=1.24.2
 MODGO_LDFLAGS =		-X main.version=${V}
 
 TEST_TARGET =		./...
+
+pre-build:
+	cd ${WRKSRC}; ${MODGO_CMD} mod edit -replace \
+	    github.com/AlecAivazis/survey/v2=${WRKDIR}/survey
 
 post-install:
 	${WRKDIR}/go/bin/gen-docs --path ${PREFIX}/man/man1 --manpage
Index: distinfo
===================================================================
RCS file: /cvs/ports/sysutils/gitlab-cli/distinfo,v
diff -u -p -r1.44 distinfo
--- distinfo	13 Feb 2026 18:33:12 -0000	1.44
+++ distinfo	28 Feb 2026 14:12:19 -0000
@@ -1,3 +1,4 @@
+SHA256 (bsdmp-survey-vv2.3.8.tar.gz) = fPcSUSZ4Kkovs52dRmmAtg+lX8R/EDkhLaLMZJCphMU=
 SHA256 (cli-v1.85.0.zip) = hYO7yC6gzqViGUIqOagtPLhCJWQGsgmB1VK1urUh+CM=
 SHA256 (go_modules/al.essio.dev/pkg/shellescape/@v/v1.5.1.mod) = fW3oKR7t4TYCgXcER8PoYsrLbEot39+WoKs40YzeHLw=
 SHA256 (go_modules/al.essio.dev/pkg/shellescape/@v/v1.6.0.mod) = fW3oKR7t4TYCgXcER8PoYsrLbEot39+WoKs40YzeHLw=
@@ -693,6 +694,7 @@ SHA256 (go_modules/sigs.k8s.io/structure
 SHA256 (go_modules/sigs.k8s.io/yaml/@v/v1.4.0.mod) = CZ2G+OBNET1A9KFSzf4AFxFtfv6mjkF6nGRthgJj174=
 SHA256 (go_modules/sigs.k8s.io/yaml/@v/v1.6.0.mod) = Tjw8HUmmZSRA/3D7R15Urka+LKtjzEZyGzwC/ZzKmF4=
 SHA256 (go_modules/sigs.k8s.io/yaml/@v/v1.6.0.zip) = z4hkikcVgYF7AKQu6NJP1z6w41A5mM9G2OY3h+EeUFI=
+SIZE (bsdmp-survey-vv2.3.8.tar.gz) = 125803
 SIZE (cli-v1.85.0.zip) = 17703196
 SIZE (go_modules/al.essio.dev/pkg/shellescape/@v/v1.5.1.mod) = 113
 SIZE (go_modules/al.essio.dev/pkg/shellescape/@v/v1.6.0.mod) = 113