Bug 258407

Summary: editors/vim: vim@console and vim@tiny is not truly console/tiny
Product: Ports & Packages Reporter: Michael Osipov <michael.osipov>
Component: Individual Port(s)Assignee: Adam Weinberger <adamw>
Status: Closed FIXED    
Severity: Affects Some People CC: michael.osipov
Priority: --- Flags: bugzilla: maintainer-feedback? (adamw)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch for Makefile none

Description Michael Osipov 2021-09-10 15:48:36 UTC
Created attachment 227808 [details]
Patch for Makefile

If flavors tiny or console are used you expect that no X is involved. Unfortunately, the port does not properly handle that:
* The configure option says:
>  --enable-gui=OPTS       X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/haiku/photon/carbon
So it is still X11
* If you have X11 installed, e.g., for Wireshark, it will still link with X11 no matter what

To make is truly tiny/console you MUST pass --without-x.

Attached is a patch which addresses this for tiny and console for me.
Comment 1 Adam Weinberger freebsd_committer freebsd_triage 2021-09-11 15:58:08 UTC
Good catch!
Comment 2 Michael Osipov 2021-09-13 08:09:32 UTC
(In reply to Adam Weinberger from comment #1)

Thanks looking forward to a commit. Hopefully before the next quarterly branch.
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-09-18 23:52:47 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ed60959f8da5f8f2820993b3fa6761c501d2f59b

commit ed60959f8da5f8f2820993b3fa6761c501d2f59b
Author:     Michael Osipov <michael.osipov@siemens.com>
AuthorDate: 2021-09-18 23:50:28 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2021-09-18 23:51:58 +0000

    editors/git: Explicitly disable X for console Builds

    PR:   258407

 editors/vim/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 4 Adam Weinberger freebsd_committer freebsd_triage 2021-09-18 23:55:52 UTC
Committed. Thanks!