Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2017 16:07:03 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        Ben Woods <woodsb02@gmail.com>
Cc:        Jan Beich <jbeich@freebsd.org>, Ben Woods <woodsb02@freebsd.org>, "ports-committers@FreeBSD.org" <ports-committers@freebsd.org>, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r447625 - in head/sysutils: . chvt chvt/files
Message-ID:  <20170809160703.GA52509@FreeBSD.org>
In-Reply-To: <CAOc73CDC6PKZV%2BugiP2jsjOg=dUe_FvLdd=SSq%2Bi4yuGXx0gUA@mail.gmail.com>
References:  <201708091208.v79C8d91081610@repo.freebsd.org> <60dw-hqg6-wny@FreeBSD.org> <CAOc73CDC6PKZV%2BugiP2jsjOg=dUe_FvLdd=SSq%2Bi4yuGXx0gUA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 09, 2017 at 10:22:09PM +0800, Ben Woods wrote:
> On 9 August 2017 at 20:32, Jan Beich <jbeich@freebsd.org> wrote:
> > FYI, on FreeBSD you can implement chvt(1) via shell script:
> >
> > $ cat ~/bin/chvt
> > #! /bin/sh
> > # The file is under Public Domain if not obvious
> > vidcontrol </dev/ttyv0 -s "${1?usage: chvt N}"

I was also somewhat surprised to see it added.

> I wasn't aware - thanks for the heads up.
> 
> Given its already committed, it probably doesn't hurt to keep this port
> with the C programming language option as an alternative to vidcontrol.

I thought that generally we try not to duplicate functionality that is
available in the base with the ports, unless the the port's implementation
is sufficiently different (e.g. GNU tools) or serves as another ports'
dependency which cannot be easily patched to use the base counterpart.

Every port takes time to fetch/build/package, and it does hurt in a way:
it increases maintenance burden (even if it's relatively minor in this
particular case).

./danfe



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