summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/mg/mg/0001-Undefine-REGEX-for-musl-based-systems.patch19
-rw-r--r--meta-oe/recipes-support/mg/mg/0001-fileio-Include-sys-param.h-for-MAXNAMLEN.patch5
-rw-r--r--meta-oe/recipes-support/mg/mg/0002-fileio-Define-DEFFILEMODE-if-platform-is-missing.patch11
-rw-r--r--meta-oe/recipes-support/mg/mg_20200723.bb (renamed from meta-oe/recipes-support/mg/mg_20170401.bb)7
4 files changed, 13 insertions, 29 deletions
diff --git a/meta-oe/recipes-support/mg/mg/0001-Undefine-REGEX-for-musl-based-systems.patch b/meta-oe/recipes-support/mg/mg/0001-Undefine-REGEX-for-musl-based-systems.patch
index 1302679315..9c154a1734 100644
--- a/meta-oe/recipes-support/mg/mg/0001-Undefine-REGEX-for-musl-based-systems.patch
+++ b/meta-oe/recipes-support/mg/mg/0001-Undefine-REGEX-for-musl-based-systems.patch
@@ -9,31 +9,24 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 Makefile | 2 +- 9 Makefile | 2 +-
10 2 files changed, 1 insertion(+), 2 deletions(-) 10 2 files changed, 1 insertion(+), 2 deletions(-)
11 11
12diff --git a/GNUmakefile b/GNUmakefile
13index 7bf7dca..0e10030 100644
14--- a/GNUmakefile 12--- a/GNUmakefile
15+++ b/GNUmakefile 13+++ b/GNUmakefile
16@@ -41,7 +41,6 @@ endif 14@@ -45,7 +45,6 @@ endif
17 CC?= gcc 15 CC?= gcc
18 CFLAGS?= -O2 -pipe 16 CFLAGS?= -O2 -pipe
19 CFLAGS+= -g -Wall 17 CFLAGS+= -g -Wall
20-CPPFLAGS= -DREGEX 18-CPPFLAGS= -DREGEX
21 CPPFLAGS+= -D_GNU_SOURCE 19 CPPFLAGS+= -D_GNU_SOURCE
22 CPPFLAGS+= $(BSD_CPPFLAGS) -D__dead=__dead2 20 CPPFLAGS+= $(BSD_CPPFLAGS)
23 LIBS= $(CURSES_LIBS) $(BSD_LIBS) 21 LIBS= $(CURSES_LIBS) $(BSD_LIBS)
24diff --git a/Makefile b/Makefile
25index 94ce340..d516bbc 100644
26--- a/Makefile 22--- a/Makefile
27+++ b/Makefile 23+++ b/Makefile
28@@ -10,7 +10,7 @@ DPADD+= ${LIBCURSES} ${LIBUTIL} 24@@ -11,7 +11,7 @@ DPADD+= ${LIBUTIL}
29 # REGEX -- create regular expression functions.
30 # STARTUPFILE -- look for and handle initialization file. 25 # STARTUPFILE -- look for and handle initialization file.
26 # MGLOG -- debug mg internals to a log file.
31 # 27 #
32-CFLAGS+=-Wall -DREGEX 28-CFLAGS+=-Wall -DREGEX `pkg-config --cflags-only-I ncurses`
33+CFLAGS+=-Wall 29+CFLAGS+=-Wall `pkg-config --cflags-only-I ncurses`
34 30
35 SRCS= autoexec.c basic.c bell.c buffer.c cinfo.c dir.c display.c \ 31 SRCS= autoexec.c basic.c bell.c buffer.c cinfo.c dir.c display.c \
36 echo.c extend.c file.c fileio.c funmap.c help.c kbd.c keymap.c \ 32 echo.c extend.c file.c fileio.c funmap.c help.c kbd.c keymap.c \
37--
382.12.2
39
diff --git a/meta-oe/recipes-support/mg/mg/0001-fileio-Include-sys-param.h-for-MAXNAMLEN.patch b/meta-oe/recipes-support/mg/mg/0001-fileio-Include-sys-param.h-for-MAXNAMLEN.patch
index 551f1df163..8e8c2b9025 100644
--- a/meta-oe/recipes-support/mg/mg/0001-fileio-Include-sys-param.h-for-MAXNAMLEN.patch
+++ b/meta-oe/recipes-support/mg/mg/0001-fileio-Include-sys-param.h-for-MAXNAMLEN.patch
@@ -8,8 +8,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
8 fileio.c | 1 + 8 fileio.c | 1 +
9 1 file changed, 1 insertion(+) 9 1 file changed, 1 insertion(+)
10 10
11diff --git a/fileio.c b/fileio.c
12index 48a67a2..9b69665 100644
13--- a/fileio.c 11--- a/fileio.c
14+++ b/fileio.c 12+++ b/fileio.c
15@@ -12,6 +12,7 @@ 13@@ -12,6 +12,7 @@
@@ -20,6 +18,3 @@ index 48a67a2..9b69665 100644
20 #include <dirent.h> 18 #include <dirent.h>
21 #include <errno.h> 19 #include <errno.h>
22 #include <fcntl.h> 20 #include <fcntl.h>
23--
242.12.2
25
diff --git a/meta-oe/recipes-support/mg/mg/0002-fileio-Define-DEFFILEMODE-if-platform-is-missing.patch b/meta-oe/recipes-support/mg/mg/0002-fileio-Define-DEFFILEMODE-if-platform-is-missing.patch
index 907d67064a..bdd7632be6 100644
--- a/meta-oe/recipes-support/mg/mg/0002-fileio-Define-DEFFILEMODE-if-platform-is-missing.patch
+++ b/meta-oe/recipes-support/mg/mg/0002-fileio-Define-DEFFILEMODE-if-platform-is-missing.patch
@@ -8,13 +8,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
8 fileio.c | 4 ++++ 8 fileio.c | 4 ++++
9 1 file changed, 4 insertions(+) 9 1 file changed, 4 insertions(+)
10 10
11diff --git a/fileio.c b/fileio.c
12index 9b69665..a852fd2 100644
13--- a/fileio.c 11--- a/fileio.c
14+++ b/fileio.c 12+++ b/fileio.c
15@@ -28,6 +28,10 @@ 13@@ -36,6 +36,10 @@
16 #include "kbd.h" 14 #define DEFFILEMODE 0666
17 #include "pathnames.h" 15 #endif
18 16
19+#if !defined(DEFFILEMODE) 17+#if !defined(DEFFILEMODE)
20+# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666*/ 18+# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666*/
@@ -23,6 +21,3 @@ index 9b69665..a852fd2 100644
23 static char *bkuplocation(const char *); 21 static char *bkuplocation(const char *);
24 static int bkupleavetmp(const char *); 22 static int bkupleavetmp(const char *);
25 23
26--
272.12.2
28
diff --git a/meta-oe/recipes-support/mg/mg_20170401.bb b/meta-oe/recipes-support/mg/mg_20200723.bb
index dad1d008bf..b73f937565 100644
--- a/meta-oe/recipes-support/mg/mg_20170401.bb
+++ b/meta-oe/recipes-support/mg/mg_20200723.bb
@@ -5,15 +5,16 @@ LIC_FILES_CHKSUM = "file://version.c;md5=1895eb37bf6bd79cdc5c89d8166fabfb"
5DEPENDS = "ncurses libbsd" 5DEPENDS = "ncurses libbsd"
6SECTION = "console/editors" 6SECTION = "console/editors"
7 7
8SRC_URI = "http://homepage.boetes.org/software/mg/mg-${PV}.tar.gz \ 8SRCREV = "60fa3582f5f735b9d43825f5bdcc4ea5f0740f91"
9SRC_URI = "git://github.com/hboetes/mg \
9 file://0001-fileio-Include-sys-param.h-for-MAXNAMLEN.patch \ 10 file://0001-fileio-Include-sys-param.h-for-MAXNAMLEN.patch \
10 file://0002-fileio-Define-DEFFILEMODE-if-platform-is-missing.patch \ 11 file://0002-fileio-Define-DEFFILEMODE-if-platform-is-missing.patch \
11 " 12 "
12SRC_URI_append_libc-musl = "\ 13SRC_URI_append_libc-musl = "\
13 file://0001-Undefine-REGEX-for-musl-based-systems.patch \ 14 file://0001-Undefine-REGEX-for-musl-based-systems.patch \
14 " 15 "
15SRC_URI[md5sum] = "884388589fb38c2109ad9fed328be20a" 16
16SRC_URI[sha256sum] = "0a3608b17c153960cb1d954ca3b62445a77c0c1a18aa5c8c58aba9f6b8d62aab" 17S = "${WORKDIR}/git"
17 18
18# CFLAGS isn't in EXTRA_OEMAKE, as the makefile picks it up via ?= 19# CFLAGS isn't in EXTRA_OEMAKE, as the makefile picks it up via ?=
19EXTRA_OEMAKE = "\ 20EXTRA_OEMAKE = "\