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
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-staticinstalls mg 20261020,1, mg-static 20261020,1 fromlatest; fromquarterly(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 version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 20261020,1 | 20260519,1 | – |
| FreeBSD 15 | 20261020,1 | 20260519,1 | – |
| FreeBSD 14 | 20260519,1 | 20260519,1 | 20260519,1 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 20260519,1 | 20260519,1 | – |
| FreeBSD 14 | 20260519,1 | 20260519,1 | 20260519,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)
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
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 maintainer565f8cc360
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.com37579ae72a
editors/mg: Install man pages under share/man Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation1169e20189
editors/mg: convert to USES=uidfix Reported by: jbeich Approved by: portmgr (infrastructure blanket)fcaf1142ea
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: 274611b47b76304ceditors/mg: update to 20230501 Chase to a maintained upstream. Fix typo in maintainer address. PR: 2713490536eac2d9
editors/mg: Pass maintainership to submitter PR: 271009 Reported by: cdr.nil@gmail.com1cfdfecc98
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
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
*: Return unused ports7a18484110
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: portmgr7cd7a8d850
editors/mg: Update to 7.0 Changes: https://github.com/ibara/mg/releases/tag/mg-7.062484c7cf8
editors/mg: Update to 6.9 Changes: https://github.com/ibara/mg/releases/tag/mg-6.9a48771e765
Remove # $FreeBSD$ from Makefiles.305f148f48
editors/mg: Make mg-static a flavorc46b723a3f
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
editors/mg: update to 6.8 Changes: https://github.com/ibara/mg/releases/tag/mg-6.8 Reported by: GitHub (watch releases)29742375c8
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
Reset MAINTAINERf35841a5de
editors/mg: Update to 6.7b4ad088876
editors/mg: Update to 6.6e5c1a65acf
editors/mg: Update to 6.5e5a4f364c1
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: 2018Q4fc965e2fda
- Remove always true OSVERSION condition Approved by: portmgr blanket4797788827
editors/mg: Update WWW171872669a
editors/mg: Update to 20180408 - Upstream moved to GitHub - Simplify docs installationadd788dbb5
editors/mg: Update to 20171014cb98d378af
editors/mg: Update to 201708289b1523f0d4
Update to 20170401 Approved by: lme (mentor) Differential Revision: https://reviews.freebsd.org/D102609d36ed9000
Update MAINTAINER to tobik@FreeBSD.org for my ports Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D961098058b8684
Cleanup BROKEN/IGNORE for 10.3- Sponsored by: Absolightc1b39669d4
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
Update to 20161005 snapshot PR: 213292 Submitted by: Tobias Kortkamp (maintainer)10cbbd7dd0
- 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
editors/mg: document and fix ncurses requirement Approved by: ncurses blanket0dcc8837b7
Remove reference to FreeBSD 9, releases prior to 10.3-RELEASE are also concerned Suggested by: mat@fbd93e4883
- 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
Update to 20160118 snapshot PR: 206419 Submitted by: myself Approved by: <darcsis@gmail.com> (maintainer, timeout > 2 weeks)d3afba36e9
- 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
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
Update mg to 20140414 Submitted by: bcallah@openbsd.org Approved by: "Denise H. G." <darcsis@gmail.com> (maintainer)30dd7af6ff
Support staging863f1c2e18
Add NO_STAGE all over the place in preparation for the staging support (cat: editors)68ede13b49
- 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
- Update to 20110905 PR: ports/163445 Submitted by: Denise H. G. <darcsis@gmail.com> (maintainer)6859960d23
- Get Rid MD5 supportbb86cbe5d2
- Use another distfile locations.607023fbd8
- Mark broken PR: ports/151361 Submitted by: Denise H. G. <darcsis@gmail.com> (maintainer)8108df2ba7