FreeBSD Bugzilla – Attachment 249823 Details for
Bug 278248
editors/mg: Update to 20240405
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Git format-patch
0001-editors-mg-Update-to-OpenBSD-7.5-version-20240405.patch (text/plain), 3.59 KB, created by
Mark Willson
on 2024-04-08 07:41:29 UTC
(
hide
)
Description:
Git format-patch
Filename:
MIME Type:
Creator:
Mark Willson
Created:
2024-04-08 07:41:29 UTC
Size:
3.59 KB
patch
obsolete
>From fc89c7604e8490c0fa4ce071d897099c2c8375fa Mon Sep 17 00:00:00 2001 >From: Mark Willson <cdr.nil@gmail.com> >Date: Sun, 7 Apr 2024 15:51:02 +0100 >Subject: [PATCH] editors/mg: Update to OpenBSD 7.5 version (20240405) > >Changes in this release: > * Reinstate space-to-tabstop entry in manpage > * Call vttidy in the exit path for batch mode > * Fix hang for (regexp-replace "^.*$" "") > >From: https://cvsweb.openbsd.org/src/usr.bin/mg/ >--- > editors/mg/Makefile | 3 +-- > editors/mg/distinfo | 6 +++--- > editors/mg/files/patch-main.c | 26 ++++++-------------------- > editors/mg/files/patch-re_search.c | 15 +++++++++++++++ > 4 files changed, 25 insertions(+), 25 deletions(-) > create mode 100644 editors/mg/files/patch-re_search.c > >diff --git a/editors/mg/Makefile b/editors/mg/Makefile >index eb6a19211330..a2d846277840 100644 >--- a/editors/mg/Makefile >+++ b/editors/mg/Makefile >@@ -1,6 +1,5 @@ > PORTNAME= mg >-DISTVERSION= 20231016 >-PORTREVISION= 1 >+DISTVERSION= 20240405 > PORTEPOCH= 1 > CATEGORIES= editors > MASTER_SITES= https://hydrus.org.uk/downloads/ >diff --git a/editors/mg/distinfo b/editors/mg/distinfo >index 1ba3033376f9..9bfb9834cce3 100644 >--- a/editors/mg/distinfo >+++ b/editors/mg/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1698048672 >-SHA256 (mg-20231016.tar.gz) = ef16fb32aae1dc132d4250039eb0a057826c7e888beb39bdf4748c0a4b0179e9 >-SIZE (mg-20231016.tar.gz) = 154296 >+TIMESTAMP = 1712395301 >+SHA256 (mg-20240405.tar.gz) = abda55c6c53e8316324d56a9851865ada13f9cd82295f3757de7cb4b83bead57 >+SIZE (mg-20240405.tar.gz) = 156768 >diff --git a/editors/mg/files/patch-main.c b/editors/mg/files/patch-main.c >index ec956ee56e0c..f712ba61ff81 100644 >--- a/editors/mg/files/patch-main.c >+++ b/editors/mg/files/patch-main.c >@@ -1,4 +1,4 @@ >---- main.c.orig 2023-10-20 07:56:18 UTC >+--- main.c.orig 2023-10-24 10:26:02 UTC > +++ main.c > @@ -16,7 +16,7 @@ > #include <string.h> >@@ -9,7 +9,7 @@ > > #include "def.h" > #include "kbd.h" >-@@ -43,6 +43,10 @@ struct mgwin *wheadp; /* MGWIN listhead */ >+@@ -43,6 +43,10 @@ char pat[NPAT]; /* pattern */ > struct vhead varhead; /* Variable list head */ > char pat[NPAT]; /* pattern */ > >@@ -20,28 +20,14 @@ > static void edinit(struct buffer *); > static void pty_init(void); > static __dead void usage(void); >-@@ -71,10 +75,6 @@ main(int argc, char **argv) >+@@ -70,10 +74,6 @@ main(int argc, char **argv) >+ int o, i, nfiles; > 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-re_search.c b/editors/mg/files/patch-re_search.c >new file mode 100644 >index 000000000000..a37c830b014a >--- /dev/null >+++ b/editors/mg/files/patch-re_search.c >@@ -0,0 +1,15 @@ >+--- re_search.c.orig 2024-04-06 09:29:51 UTC >++++ re_search.c >+@@ -342,10 +342,9 @@ re_forwsrch(void) >+ if (tbo == clp->l_used) >+ /* >+ * Don't start matching past end of line -- must move to >+- * beginning of next line, unless line is empty or at >+- * end of file. >++ * beginning of next line, unless at end of file. >+ */ >+- if (clp != curbp->b_headp && llength(clp) != 0) { >++ if (clp != curbp->b_headp) { >+ clp = lforw(clp); >+ tdotline++; >+ tbo = 0; >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
cdr.nil
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 278248
: 249823