Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Dec 2017 17:20:36 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        Jason Bacon <bacon4000@gmail.com>
Cc:        Adam Weinberger <adamw@adamw.org>, yuri@freebsd.org, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r456674 - in head/graphics: . libQGLViewer libQGLViewer/files
Message-ID:  <20171227172036.GA7861@FreeBSD.org>
In-Reply-To: <5b2cd5f1-5fcb-35d2-9339-dcf97cd11d3f@gmail.com>
References:  <20171224135522.GA1693@FreeBSD.org> <6fa2551a-dee7-9388-07fc-6539800b6c5a@freebsd.org> <20171225112028.GA61880@FreeBSD.org> <dd23ef4c-5136-d6b8-f638-95347ed3a357@freebsd.org> <E628F4ED-8707-4094-8849-AAF51477583E@adamw.org> <0e81e642-9157-d8e3-12f2-af08724accf6@gmail.com> <20171226155201.GA90333@FreeBSD.org> <4105e72a-cdd1-c792-7f69-e00bb22d01cb@gmail.com> <20171227082713.GB51426@FreeBSD.org> <5b2cd5f1-5fcb-35d2-9339-dcf97cd11d3f@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 27, 2017 at 10:54:10AM -0600, Jason Bacon wrote:
> On 12/27/17 02:27, Alexey Dokuchaev wrote:
> > On Tue, Dec 26, 2017 at 02:47:05PM -0600, Jason Bacon wrote:
> > ...
> >> Are you suggesting that PORTNAME should also be reduced to lowercase
> >> to match the directory name?
> >
> > I'd say most certainly yes, unless I'm overlooking a particular
> > edge-case where it could be useful, but I cannot think of right now.
> > Do you have some specific port(s) in mind?
> 
> emulators/virtualbox-ose is an example.  DISTNAME and the main binary
> both contain caps, but the maintainers chose to lowercase both the
> portname and directory name.

`emulators/virtualbox-ose' is correctly named (both port directory- and
the DISTNAME-wise).

> math/freemat is a counterexample, where the directory name was
> lowercased, but PORTNAME contains caps to match DISTNAME.

Correctly placed, but wrong PORTNAME.  It should be fixed (should not be
too hard; it's unmaintained port anyways).

> Mixed case in directory names is a nuisance when trying to use shell
> auto-complete, for example.

Yes, it is; another good example is `audio/Maaate' (e.g. try to edit the
category Makefile :-).

> I can't think of a strong reason to favor either lowercase or mixed for

We're Unix, lowercase is in our blood: most things, from commands, login
names to header files and APIs are lowercased.  This naturally applies
to port and package names.  Add to this all the nuisance with collation,
sorting order, shell tab-completion...

> PORTNAME, though, since pkg is case-insensitive and we'll always need
> to use -i when grepping for PORTNAME anyway, unless all PORTNAMEs are
> reduced to lower case.

Reducing *all* PORTNAMEs to lowercase would be wrong, and I never had
advocated for this; e.g. p5-* and libX* ports are named correctly, as
was mentioned earlier.

./danfe



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