Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jul 2020 15:24:32 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r541755 - in head/misc/lf: . files
Message-ID:  <202007091524.069FOWRC036906@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Thu Jul  9 15:24:32 2020
New Revision: 541755
URL: https://svnweb.freebsd.org/changeset/ports/541755

Log:
  misc/lf: Fix the keyboard problem
  
  Fix suggested by the GH user flw-cn in https://github.com/gokcehan/lf/issues/392
  
  Reported in:		https://forums.freebsd.org/threads/terminal-file-manager-misc-lf-not-operational.75804/
  MFH:		2020Q3

Added:
  head/misc/lf/files/
  head/misc/lf/files/patch-vendor_github.com_doronbehar_termbox-go_api.go   (contents, props changed)
Modified:
  head/misc/lf/Makefile

Modified: head/misc/lf/Makefile
==============================================================================
--- head/misc/lf/Makefile	Thu Jul  9 15:23:02 2020	(r541754)
+++ head/misc/lf/Makefile	Thu Jul  9 15:24:32 2020	(r541755)
@@ -3,6 +3,7 @@
 PORTNAME=	lf
 DISTVERSIONPREFIX=	r
 DISTVERSION=	14
+PORTREVISION=	1
 CATEGORIES=	misc
 
 MAINTAINER=	yuri@FreeBSD.org

Added: head/misc/lf/files/patch-vendor_github.com_doronbehar_termbox-go_api.go
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/lf/files/patch-vendor_github.com_doronbehar_termbox-go_api.go	Thu Jul  9 15:24:32 2020	(r541755)
@@ -0,0 +1,14 @@
+Same as https://github.com/nsf/termbox-go/commit/58d4fcbc
+Suggested in https://github.com/gokcehan/lf/issues/392#issuecomment-656045163
+
+--- vendor/github.com/doronbehar/termbox-go/api.go.orig	2020-07-09 15:15:27 UTC
++++ vendor/github.com/doronbehar/termbox-go/api.go
+@@ -24,7 +24,7 @@ import "time"
+ func Init() error {
+ 	var err error
+ 
+-	if runtime.GOOS == "openbsd" {
++	if runtime.GOOS == "openbsd" || runtime.GOOS == "freebsd" {
+ 		out, err = os.OpenFile("/dev/tty", os.O_RDWR, 0)
+ 		if err != nil {
+ 			return err



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007091524.069FOWRC036906>