From nobody Fri Oct 27 06:33:59 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SGtD74Rfnz4xrXP; Fri, 27 Oct 2023 06:33:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SGtD73dFlz3KYR; Fri, 27 Oct 2023 06:33:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698388439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7KdG/EcGZM2EeIX/UYlfO5+bEu164Htjgy4vKcJEHtg=; b=FlnCmgtLJnl+dWBehDn2/D+Wrc2qd1m14zEz26GmS/417M3Xh3dL9A/BRqFvCNuDcO/P1p ih0vGTJq5gajCF2t3mK2aNERzDUgL0m0r89r75CxWKe4jXBtIWDezUboeoWOgo5GXm6XI9 R03nsCvyR3jAthRQ5x7O+i5ltxvllHXLE7zdcMavr5JoUEngxk3eQ0IhZqoP63iKJwL5n5 ziR4/IJTMMJ32xFSEQzbISlNXPd1gVlaB/i69YeLF7/XZ07UwlLEod0jeMJ9Ov66BX+hsf qiMzlHTCEh83CfyiUgnYxVT+2YtJ1iJx5QjKA2K+BQcQTVhy1xHRvSaXjheHxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698388439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7KdG/EcGZM2EeIX/UYlfO5+bEu164Htjgy4vKcJEHtg=; b=osUwJVIuaX5Q94Sy+eQ2/cQ5EnU2t8axa9p7PdTLg/19jdZ229VLZ5S0218SmwjibpqHj7 DD3S+YtBYAb46mrrF4YdBvV44kgA0GCw0sI2vFOdvMJKoBAt3KDTfblhGx2fU3s6xoc2nr +bbyvQPhiozKeesWwf87kaS96j80CO+M+CrwktW8oXJFSmY+qNqR5wCkhbl/QOJ8BUGPoK j+ZWDJmo1ufNIlhaOz14RVtd2IVxXdPmdpxJmndLiC7CbnaSVQPI6icYWo1d02kJ/BKQk5 8lu1pxLbzvEybl6nU+jO7QviKBSs8NyHlTKpstfyG4q3xReubBs3dForcZIUbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698388439; a=rsa-sha256; cv=none; b=oM1GCEqZzwqV+Z9eacgJ2aEEx4TNVKPwolQZRHi2gExQkcoBPt8KU92jxBNSmffzqAmtTg yQoK7y0sIk4iADR646zVsqGoXDvYj1XQZYNaLhnTDgk9pO6110icQYv9ykQQmKvMBVeQE+ ktvUt1KHIB/d+lDDvtmHZ1M16RUJFzAo7wCYakLX5J5HHqahEgEaxjosa00bsMG43N/oDi 9ZuuDhrHrMQ3u9yxD0Hq0QljXXlkT6TafWp6GpCHRStIBpD7KZfE1i/teVjgra0OfAl8Xu xlks5q6lNmPvzt8EpPSK6hP//GxOwDMPJ4Q31Utwv2kgZujLXt2BCKTnFjTW4g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SGtD72Njmz1312; Fri, 27 Oct 2023 06:33:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39R6XxLX089530; Fri, 27 Oct 2023 06:33:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39R6Xx2W089527; Fri, 27 Oct 2023 06:33:59 GMT (envelope-from git) Date: Fri, 27 Oct 2023 06:33:59 GMT Message-Id: <202310270633.39R6Xx2W089527@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: b47b76304cce - main - editors/mg: Update to OpenBSD 7.4 version; modify location of source tarball List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b47b76304ccebb0a40acd56f1687e232f0ebedeb Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=b47b76304ccebb0a40acd56f1687e232f0ebedeb commit b47b76304ccebb0a40acd56f1687e232f0ebedeb Author: Mark Willson AuthorDate: 2023-10-23 08:45:40 +0000 Commit: Robert Clausecker CommitDate: 2023-10-27 06:32:10 +0000 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 --- editors/mg/Makefile | 10 ++++----- editors/mg/distinfo | 6 +++--- editors/mg/files/patch-Makefile | 27 ++++------------------- editors/mg/files/patch-def.h | 10 +++++++++ editors/mg/files/patch-fileio.c | 19 +++++++++++++++++ editors/mg/files/patch-main.c | 47 +++++++++++++++++++++++++++++++++++++++++ editors/mg/files/patch-tags.c | 11 ++++++++++ 7 files changed, 99 insertions(+), 31 deletions(-) diff --git a/editors/mg/Makefile b/editors/mg/Makefile index 4af7f55602e2..6db8a3b90a71 100644 --- a/editors/mg/Makefile +++ b/editors/mg/Makefile @@ -1,18 +1,18 @@ PORTNAME= mg -DISTVERSION= 20230501 +DISTVERSION= 20231016 PORTEPOCH= 1 CATEGORIES= editors +MASTER_SITES= https://hydrus.org.uk/downloads/ MAINTAINER= cdr.nil@gmail.com COMMENT= Small, fast Emacs-like editor -WWW= https://github.com/hboetes/mg +WWW= https://man.openbsd.org/mg LICENSE= PD USES= ncurses -USE_GITHUB= yes -GH_ACCOUNT= hboetes STAGEOWN= ${USER} +# replace with STAGEGRP=${.MAKE.GID} once FreeBSD 12 is EOL STAGEGRP!= id -gn MAKE_ARGS+= BINOWN=${STAGEOWN} BINGRP=${STAGEGRP} MANOWN=${STAGEOWN} \ MANGRP=${STAGEGRP} BINDIR=${PREFIX}/bin \ @@ -28,7 +28,7 @@ PLIST_FILES= /rescue/mg .else PLIST_FILES= bin/mg \ man/man1/mg.1.gz -PORTDOCS= README README.md tutorial +PORTDOCS= README tutorial OPTIONS_DEFINE= DOCS .endif diff --git a/editors/mg/distinfo b/editors/mg/distinfo index fdf6bb07b3f1..1ba3033376f9 100644 --- a/editors/mg/distinfo +++ b/editors/mg/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1683455356 -SHA256 (hboetes-mg-20230501_GH0.tar.gz) = e2878feca64067a0c524e456ffba68d8cb69bcdce0943d2f2b69cad06174462e -SIZE (hboetes-mg-20230501_GH0.tar.gz) = 158315 +TIMESTAMP = 1698048672 +SHA256 (mg-20231016.tar.gz) = ef16fb32aae1dc132d4250039eb0a057826c7e888beb39bdf4748c0a4b0179e9 +SIZE (mg-20231016.tar.gz) = 154296 diff --git a/editors/mg/files/patch-Makefile b/editors/mg/files/patch-Makefile index 72f4d7baf3e4..2b36c667ada6 100644 --- a/editors/mg/files/patch-Makefile +++ b/editors/mg/files/patch-Makefile @@ -1,31 +1,12 @@ ---- Makefile.orig 2023-05-01 15:27:50 UTC +--- Makefile.orig 2023-10-22 13:42:02 UTC +++ Makefile -@@ -2,7 +2,7 @@ - - PROG= mg - --LDADD+= `pkg-config --libs ncurses` -lutil -+LDADD+= -L${NCURSESLIB} -lncurses -lutil - DPADD+= ${LIBUTIL} - - # (Common) compile-time options: -@@ -11,7 +11,7 @@ DPADD+= ${LIBUTIL} - # STARTUPFILE -- look for and handle initialization file. - # MGLOG -- debug mg internals to a log file. - # --CFLAGS+=-Wall -DREGEX `pkg-config --cflags-only-I ncurses` -+CFLAGS+=-Wall -DREGEX -L${NCURSESINC} - - SRCS= autoexec.c basic.c bell.c buffer.c cinfo.c dir.c display.c \ - echo.c extend.c file.c fileio.c funmap.c help.c kbd.c keymap.c \ -@@ -28,10 +28,5 @@ SRCS+= cmode.c cscope.c dired.c grep.c interpreter.c t - # -DMGLOG source file. +@@ -29,9 +29,4 @@ SRCS+= cmode.c cscope.c dired.c grep.c interpreter.c t # #SRCS+= log.c -- + -afterinstall: - ${INSTALL} -d -o root -g wheel ${DESTDIR}${DOCDIR}/mg - ${INSTALL} ${INSTALL_COPY} -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE} \ - ${.CURDIR}/tutorial ${DESTDIR}${DOCDIR}/mg - +- .include diff --git a/editors/mg/files/patch-def.h b/editors/mg/files/patch-def.h new file mode 100644 index 000000000000..2e8f5cab209a --- /dev/null +++ b/editors/mg/files/patch-def.h @@ -0,0 +1,10 @@ +--- def.h.orig 2023-10-22 13:42:02 UTC ++++ def.h +@@ -10,6 +10,7 @@ + * per-terminal definitions are in special header files. + */ + ++#include + #include "chrdef.h" + + typedef int (*PF)(int, int); /* generally useful type */ diff --git a/editors/mg/files/patch-fileio.c b/editors/mg/files/patch-fileio.c new file mode 100644 index 000000000000..94d8a5ba0ac5 --- /dev/null +++ b/editors/mg/files/patch-fileio.c @@ -0,0 +1,19 @@ +--- fileio.c.orig 2023-10-22 13:42:02 UTC ++++ fileio.c +@@ -22,6 +22,7 @@ + #include + #include + #include ++#include + + #include "def.h" + #include "kbd.h" +@@ -705,7 +706,7 @@ expandtilde(const char *fn) + struct passwd *pw; + struct stat statbuf; + const char *cp; +- char user[LOGIN_NAME_MAX], path[NFILEN]; ++ char user[MAXLOGNAME], path[NFILEN]; + char *ret; + size_t ulen, plen; + diff --git a/editors/mg/files/patch-main.c b/editors/mg/files/patch-main.c new file mode 100644 index 000000000000..ec956ee56e0c --- /dev/null +++ b/editors/mg/files/patch-main.c @@ -0,0 +1,47 @@ +--- main.c.orig 2023-10-20 07:56:18 UTC ++++ main.c +@@ -16,7 +16,7 @@ + #include + #include + #include +-#include ++#include + + #include "def.h" + #include "kbd.h" +@@ -43,6 +43,10 @@ struct mgwin *wheadp; /* MGWIN listhead */ + struct vhead varhead; /* Variable list head */ + char pat[NPAT]; /* pattern */ + ++#ifndef __dead ++#define __dead __attribute__ ((__noreturn__)) ++#endif ++ + static void edinit(struct buffer *); + static void pty_init(void); + static __dead void usage(void); +@@ -71,10 +75,6 @@ main(int argc, char **argv) + int nobackups = 0; + struct buffer *bp = NULL; + +- if (pledge("stdio rpath wpath cpath fattr chown getpw tty proc exec", +- NULL) == -1) +- err(1, "pledge"); +- + while ((o = getopt(argc, argv, "nRb:f:u:")) != -1) + switch (o) { + case 'b': +@@ -167,9 +167,11 @@ main(int argc, char **argv) + ffclose(ffp, NULL); + } + +- if (batch) ++ if (batch) { ++ vttidy(); + return (0); +- ++ } ++ + /* + * Now ensure any default buffer modes from the startup file are + * given to any files opened when parsing the startup file. diff --git a/editors/mg/files/patch-tags.c b/editors/mg/files/patch-tags.c new file mode 100644 index 000000000000..d565d7ea5486 --- /dev/null +++ b/editors/mg/files/patch-tags.c @@ -0,0 +1,11 @@ +--- tags.c.orig 2023-10-22 13:42:02 UTC ++++ tags.c +@@ -18,7 +18,7 @@ + #include + #include + #include +-#include ++#include + + #include "def.h" +