CVE and update status of the FreeBSD ports tree3,296 unaddressed CVEs in 671 portsAll times are CET
Port details

editors/mg 20261020,1

Small, fast Emacs-like editor

Port info

Maintainer
cdr.nil@gmail.com
Packages
latest: mg 20261020,1, mg-static 20261020,1
Upstream
up to date
Last update
to 20261020,1 · fd9ce24e33
Quarterly
2026Q4: mg 20260519,1, mg-static 20260519,1
Formerly
editors/mg-static until 2021-02-28
WWW
https://man.openbsd.org/mg
Links
cgit · VuXML · Report wrong data

Install

Package
# pkg install mg
# pkg install mg-static
installs mg 20261020,1, mg-static 20261020,1 from latest; from quarterly (2026Q4) mg 20260519,1, mg-static 20260519,1
Port
# cd /usr/ports/editors/mg && make install clean
# make -C /usr/ports/editors/mg config  # change options first
Size
113 KiB download · 253 KiB installed
Depends on
nothing
License
PD
Options
1 of 1 on in the package: DOCS
Note
Size, dependencies, options and messages are those of mg.

Packages by version and architecture

latest

FreeBSD versionamd64aarch64i386
FreeBSD 1620261020,120260519,1–
FreeBSD 1520261020,120260519,1–
FreeBSD 1420260519,120260519,120260519,1

quarterly (2026Q4)

FreeBSD versionamd64aarch64i386
FreeBSD 1520260519,120260519,1–
FreeBSD 1420260519,120260519,120260519,1

version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.

Unaddressed and VuXML only (0)

No unaddressed CVE and nothing reported by pkg audit for the packaged version 20261020,1.

Fixed (0)

No VuXML entries for this package.

Problem reports (0) · open in Bugzilla, most recently changed first

None.

Commits (68)

Yusuf Yaman (nxjoseph) · 20261020,1
editors/mg: Update 20260519 => 20261020

This is an update to OpenBSD 8.0 version.

Changelog:
* word.c:         tranpose -> transpose
* echo.c:         use strncmp instead of memcmp in complt()
* interpreter.c:  fix NULL-deref in parsexp; from Han Boetes
https://cvsweb.openbsd.org/src/usr.bin/mg/

PR:		299837
Approved by:	osa, vvd (Mentors, implicit)
fd9ce24e33
Yusuf Yaman (nxjoseph) · 20260519,1
editors/mg: Update 20241008 => 20260519

Changelog:
* file.c: improve the "No changes need to be saved" check
* fileio.c, funmap.c, echo.c: handle strdup failure
* re_search.c: fix regex-replace infinite loop issues
* word.c: rework grabword() a bit; plug a memory leak
* interpreter.c: fix two memory leaks
* dired.c: improve externs for KEYMAPE()
* mg.1: fix typo
https://cvsweb.openbsd.org/src/usr.bin/mg/

PR:		295474
MFH:		2026Q2
Approved by:	osa, vvd (Mentors, implicit)
8df6682efe
Zsolt Udvari (uzsolt) · 20241008,1
editors/mg: Update to 20241008

Pet portlint, portfmt.

Changelog:
* Ignore universal ctags extended metadata in tagaddress, making search
  patterns work again
* Fix auto-indent-mode with custom tab widths
* Add handling for C-u modifier in M-! and M-|
* Dired-up-directory bound to ^ to go up a directory in dired buffers

PR:		282052
Approved by:	submitter is maintainer
565f8cc360
Fernando Apesteguía (fernape) · 20240405,1
editors/mg: Update to 20240405

ChangeLog: https://cvsweb.openbsd.org/src/usr.bin/mg/

 * Reinstate space-to-tabstop entry in manpage
 * Call vttidy in the exit path for batch mode
 * Fix hang for (regexp-replace "^.*$" "")

PR:		278248
Reported by:	cdr.nil@gmail.com
37579ae72a
Joseph Mingrone (jrm) · 20231016_1,1
editors/mg: Install man pages under share/man

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
1169e20189
Robert Clausecker (fuz) · 20231016,1
editors/mg: convert to USES=uidfix

Reported by:	jbeich
Approved by:	portmgr (infrastructure blanket)
fcaf1142ea
Robert Clausecker (fuz) · 20231016,1
editors/mg: Update to OpenBSD 7.4 version; modify location of source tarball

Changes in this release:

  * New command set-tab-width to change the tabulator width on a per-buffer
    basis.
  * Let the space-to-tabstop command move to the right position even if
    the line contains tabs, control characters, or non-ASCII bytes.
  * Fall back to /bin/sh if $SHELL is undefined.
  * Fix parsing of tag files with duplicate entries. Instead of erroring
    out, ignore duplicates. Fixes using /var/db/libc.tags again.
  * Change the visit-tags-table command to immediately load the tag
    file, and drop the lazy mechanics.
  * Do not leak memory in pop-tag-mark if it fails to switch buffers.
  * Fix a read buffer overrun caused by -u arguments longer than 1023 bytes.
  * Fix a write buffer overrun on the stack caused by blink-and-insert
    matching a very long line that is not currently visible in the
    window.
  * Skip checking permissions of conffile with access(2).
  * Resurrect no-tab-mode and add it to the list of modes that can be
    set with set-default-mode.

From: https://www.openbsd.org/74.html

PR:		274611
b47b76304c
Robert Clausecker (fuz) · 20230501,1
editors/mg: update to 20230501

Chase to a maintained upstream.
Fix typo in maintainer address.

PR:		271349
0536eac2d9
Wen Heping (wen) · 7.0,1
editors/mg: Pass maintainership to submitter

PR:		271009
Reported by:	cdr.nil@gmail.com
1cfdfecc98
Stefan Eßer (se) · 7.0,1
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
fb16dfecae
Stefan Eßer (se) · 7.0,1
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
b7f05445c0
Tobias Kortkamp (tobik) · 7.0,1
*: Return unused ports
7a18484110
Tobias C. Berner (tcberner) · 7.0,1
editors: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  Adam Saponara <as@php.net>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Akinori MUSHA aka knu <knu@idaemons.org>
  *  Alexey Dokuchaev <danfe@FreeBSD.org>
  *  Andreas Kohout <shanee@augusta.de>
  *  Andrej Zverev <az@inec.ru>
  *  Andrey Zakhvatov
  *  Anton Tornqvist <antont@inbox.lv>
  *  Bill Fumerola <billf@chc-chimes.com>
  *  Bob Eager <bob@eager.cx>
  *  Chris D. Faulhaber <jedgar@fxp.org>
  *  Chris Petrik <chris@officialunix.com>
  *  Christian Brueffer <chris@unixpages.org>
  *  Craig Leres <leres@FreeBSD.org>
  *  Daniel Eischen <deischen@FreeBSD.org>
  *  David O'Brien <obrien@cs.ucdavis.edu>
  *  David Thiel <lx@redundancy.redundancy.org>
  *  Diego Depaoli <trebestie@gmail.com>
  *  Dima Dorfman <dima@unixfreak.org>
  *  Dmitri Goutnik <dg@syrec.org>
  *  Dominic Mitchell
  *  Emanuel Haupt <ehaupt@FreeBSD.org>
  *  Frederic Cambus
  *  Gea-Suan Lin <gslin@gslin.org>
  *  Geoffrey Mainland <mainland@apeiron.net>
  *  Grzegorz Blach <gblach@FreeBSD.org>
  *  Hakisho Nukama <nukama@gmail.com>
  *  James Bailie <jimmy@mammothcheese.ca>
  *  Janos Mohacsi <janos.mohacsi@bsd.hu>
  *  Jason Evans <jasone@FreeBSD.org>
  *  Jean-Yves Lefort <jylefort@brutele.be>
  *  Jille Timmermans (jille@quis.cx)
  *  Joe Marcus Clarke <marcus@FreeBSD.org>
  *  Johannes Meixner <johannes@perceivon.net>
  *  John Merryweather Cooper et al
  *  Jun-ichiro itojun Itoh <itojun@itojun.org>
  *  KIMURA Yasuhiro <yasu@utahime.org>
  *  Kelly Yancey <kbyanc@posi.net>
  *  Kenneth Vestergaard Schmidt <kvs@pil.dk>
  *  Kris Kennaway <kris@FreeBSD.org>
  *  Leif Pedersen <bilbo@devpit.org>
  *  MANTANI Nobutaka <nobutaka@nobutaka.com>
  *  Mark Pulford <mark@kyne.com.au>
  *  Martin Blapp
  *  Matías Pizarro <matias@pizarro.net>
  *  Maxim Sobolev <sobomax@FreeBSD.org>
  *  Michael Johnson <ahze@FreeBSD.org>
  *  Michael Johnson <ahze@ahze.net>
  *  Michael L. Hostbaek (mich@freebsdcluster.org)
  *  Michael Vasilenko <acid@stu.cn.ua>
  *  Miguel Clara <miguelmclara@gmail.com>
  *  Mohammad S. Babaei <info@babaei.net>
  *  Nicola Vitale <nivit@email.it>
  *  Olga Smirnova <mistresssilvara@hotmail.com>
  *  Oliver Lehmann <oliver@FreeBSD.org>
  *  Olivier Cochard-Labbe <olivier@FreeBSD.org>
  *  Olivier Duchateau
  *  Patrick Li <pat@databits.net>
  *  Peter Wemm <peter@FreeBSD.org>
  *  Philippe Lefebvre <nemesis@balistik.net>
  *  Rimvydas Jasinskas <zrj@ef.irc>
  *  Roman Shterenzon <roman@xpert.com>
  *  Satoshi Asami (asami)
  *  Shaun Amott <shaun@FreeBSD.org>
  *  Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
  *  Shigeyuki Fukushima <shige@FreeBSD.org>
  *  Stanislav Sedov <stas@core.310.ru>
  *  Thomas Gellekum <tg@FreeBSD.org>
  *  Vitaly Magerya <vmagerya@gmail.com>
  *  Xin LI <delphij@FreeBSD.org>
  *  Ying-Chieh Liao
  *  Ying-Chieh Liao <ijliao@FreeBSD.org>
  *  Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
  *  alepulver
  *  brett@peloton.physics.montana.edu
  *  buganini@gmail.com
  *  eric
  *  erich@rrnet.com
  *  gahr
  *  gelf
  *  giffunip@asme.org
  *  ijliao
  *  jkh
  *  joerg
  *  joseph@randomnetworks.com
  *  krion
  *  lightside <lightside@gmx.com>
  *  pgf
  *  rch@richard.eu.org
  *  tetsushi NAKAI <nakai@tsl.pe.u-tokyo.ac.jp>
  *  tg
  *  thierry@pompo.net
  *  torstenb@FreeBSD.org
  *  verm

With hat:	portmgr
7cd7a8d850
Tobias Kortkamp (tobik) · 7.0,1
editors/mg: Update to 7.0

Changes:	https://github.com/ibara/mg/releases/tag/mg-7.0
62484c7cf8
Tobias Kortkamp (tobik) · 6.9,1
editors/mg: Update to 6.9

Changes:	https://github.com/ibara/mg/releases/tag/mg-6.9
a48771e765
Mathieu Arnold (mat) · 6.8.1,1
Remove # $FreeBSD$ from Makefiles.
305f148f48
Tobias Kortkamp (tobik) · 6.8.1,1
editors/mg: Make mg-static a flavor
c46b723a3f
Jan Beich (jbeich) · 6.8.1,1
editors/mg: update to 6.8.1

Changes:	https://github.com/ibara/mg/releases/tag/mg-6.8.1
Reported by:	GitHub (watch releases)
7fb9acbda8
Jan Beich (jbeich) · 6.8,1
editors/mg: update to 6.8

Changes:	https://github.com/ibara/mg/releases/tag/mg-6.8
Reported by:	GitHub (watch releases)
29742375c8
Jan Beich (jbeich) · 6.7,1
editors/mg: add -static slave installed as /rescue/mg

When recovering from a broken rtld(1) one may want a visual editor that
feels like Emacs. ee(1) isn't under /rescue, and its Emacs keys support
lacks even C-x C-c (save-buffers-kill-emacs).
c2b8c5a018
Tobias Kortkamp (tobik) · 6.7,1
Reset MAINTAINER
f35841a5de
Tobias Kortkamp (tobik) · 6.7,1
editors/mg: Update to 6.7
b4ad088876
Tobias Kortkamp (tobik) · 6.6,1
editors/mg: Update to 6.6
e5c1a65acf
Tobias Kortkamp (tobik) · 6.5,1
editors/mg: Update to 6.5
e5a4f364c1
Tobias Kortkamp (tobik) · 20180927
editors/mg: Update to 20180927

This brings mg up to what will be in OpenBSD 6.4.

Simplify port by moving to Brian Callahan's portable mg release.
It has a configure script to detect OS features and it hopefully
won't break building mg on FreeBSD for no reason.

MFH:		2018Q4
fc965e2fda
Dmitry Marakasov (amdmi3) · 20180408
- Remove always true OSVERSION condition

Approved by:	portmgr blanket
4797788827
Tobias Kortkamp (tobik) · 20180408
editors/mg: Update WWW
171872669a
Tobias Kortkamp (tobik) · 20180408
editors/mg: Update to 20180408

- Upstream moved to GitHub
- Simplify docs installation
add788dbb5
Tobias Kortkamp (tobik) · 20171014
editors/mg: Update to 20171014
cb98d378af
Tobias Kortkamp (tobik) · 20170828
editors/mg: Update to 20170828
9b1523f0d4
Tobias Kortkamp (tobik) · 20170401
Update to 20170401

Approved by:	lme (mentor)
Differential Revision:	https://reviews.freebsd.org/D10260
9d36ed9000
Tobias Kortkamp (tobik) · 20161005
Update MAINTAINER to tobik@FreeBSD.org for my ports

Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D9610
98058b8684
Mathieu Arnold (mat) · 20161005
Cleanup BROKEN/IGNORE for 10.3-

Sponsored by:	Absolight
c1b39669d4
John Marino (marino) · 20161005
editors/mg: Use OPSYS with OSVERSION (restores DF build)

DragonFly doesn't provided reallocarray.  OPSYS should be used with
OSVERSION (covered by a blanket)
f02adea702
Olivier Duchateau (olivierd) · 20161005
Update to 20161005 snapshot

PR:		213292
Submitted by:	Tobias Kortkamp (maintainer)
10cbbd7dd0
Olivier Duchateau (olivierd) · 20160912
- Update to 20160912 snapshot - Remove GNUmakefile patch, port doesn't use gmake - Replace patches by another, when reallocarray(3) is missing - Pass maintainership to submitter - Add LICENSE - Update pkg-descr

PR:		212634
Submitted by:	Tobias Kortkamp
Approved by:	<darcsis@gmail.com> (previous maintainer, timeout > 3 weeks)
0f3528e19a
John Marino (marino) · 20160421_1
editors/mg: document and fix ncurses requirement

Approved by:	ncurses blanket
0dcc8837b7
Olivier Duchateau (olivierd) · 20160421
Remove reference to FreeBSD 9, releases prior to 10.3-RELEASE are also concerned

Suggested by:	mat@
fbd93e4883
Olivier Duchateau (olivierd) · 20160421
- Update to 20160421 snapshot - Cosmetic change for documentation - Mark BROKEN on FreeBSD 9.x, because it requires futimens system call

PR:		209290
Submitted by:	myself
Approved by:	<darcsis@gmail.com> (maintainer, timeout > 2 weeks)
0b57ba0f23
Olivier Duchateau (olivierd) · 20160118
Update to 20160118 snapshot

PR:		206419
Submitted by:	myself
Approved by:	<darcsis@gmail.com> (maintainer, timeout > 2 weeks)
d3afba36e9
Olivier Duchateau (olivierd) · 20150323
- Update to 20150323 snapshot - Add patches which replace reallocarray by realloc(3)

PR:		200682
Submitted by:	myself
Approved by:	darcsis (maintainer, timeout > 3 weeks)
df975d029b
Jimmy Olgeni (olgeni) · 20140414
Remove indefinite articles and trailing periods from COMMENT, plus minor COMMENT typos and surrounding whitespace fixes. Categories D-F.

CR:		D196
Approved by:	portmgr (bapt)
76c7f8fbe6
Eitan Adler (eadler) · 20140414
Update mg to 20140414

Submitted by:	bcallah@openbsd.org
Approved by:	"Denise H. G." <darcsis@gmail.com> (maintainer)
30dd7af6ff
Emanuel Haupt (ehaupt) · 20110905
Support staging
863f1c2e18
Baptiste Daroussin (bapt) · 20110905
Add NO_STAGE all over the place in preparation for the staging support (cat: editors)
68ede13b49
Alex Kozlov (ak) · 20110905
- Remove hardcoded CC [1] and PREFIX - Remove pkg-plist

PR:	ports/168648 [1]
Submitted by:	Sevan Janiyan <venture37@geeklan.co.uk>
Approved By:	maintainer (timeout, 14 days), eadler, itetcu (mentors, implicit)
6f45551017
Frederic Culot (culot) · 20110905
- Update to 20110905

PR:		ports/163445
Submitted by:	Denise H. G. <darcsis@gmail.com> (maintainer)
6859960d23
Martin Wilke (miwi) · 20090107
- Get Rid MD5 support
bb86cbe5d2
Stanislav Sedov (stas) · 20090107
- Use another distfile locations.
607023fbd8
Philip M. Gollucci (pgollucci) · 20090107
- Mark broken

PR:             ports/151361
Submitted by:   Denise H. G. <darcsis@gmail.com> (maintainer)
8108df2ba7