1 |
commit: 0afb8fc17081fa7c825a6f336ee18dac6e5d46c5 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 29 14:23:17 2020 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 29 14:24:14 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0afb8fc1 |
7 |
|
8 |
app-editors/jasspa-microemacs: Fix compilation with glibc-2.32. |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
12 |
|
13 |
.../files/20091011-glibc-2.32.patch | 57 ++++++++++++++++++++++ |
14 |
.../jasspa-microemacs-20091011-r3.ebuild | 1 + |
15 |
2 files changed, 58 insertions(+) |
16 |
|
17 |
diff --git a/app-editors/jasspa-microemacs/files/20091011-glibc-2.32.patch b/app-editors/jasspa-microemacs/files/20091011-glibc-2.32.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..7e2f57c934b |
20 |
--- /dev/null |
21 |
+++ b/app-editors/jasspa-microemacs/files/20091011-glibc-2.32.patch |
22 |
@@ -0,0 +1,57 @@ |
23 |
+Fix compilation with glibc-2.32. |
24 |
+ |
25 |
+--- me091011-orig/src/file.c |
26 |
++++ me091011/src/file.c |
27 |
+@@ -1325,7 +1325,7 @@ |
28 |
+ ) |
29 |
+ { |
30 |
+ /* READ ONLY DIR */ |
31 |
+- mlwrite(MWPAUSE,(meUByte *)"%s: %s", dirbuf, sys_errlist[errno]); |
32 |
++ mlwrite(MWPAUSE,(meUByte *)"%s: %s", dirbuf, strerror(errno)); |
33 |
+ /* Zap the filename - it is invalid. |
34 |
+ We only want a buffer */ |
35 |
+ mlwrite (0,(meUByte *)"[New buffer %s]", getFileBaseName(fname)); |
36 |
+@@ -1355,7 +1355,7 @@ |
37 |
+ { |
38 |
+ /* We are not allowed to read the file */ |
39 |
+ #if ((defined _UNIX) || (defined _DOS)) |
40 |
+- mlwrite(MWABORT,(meUByte *)"[%s: %s]", fn, sys_errlist[errno]) ; |
41 |
++ mlwrite(MWABORT,(meUByte *)"[%s: %s]", fn, strerror(errno)) ; |
42 |
+ #else |
43 |
+ mlwrite(MWABORT,"[cannot read: %s]", fn) ; |
44 |
+ #endif |
45 |
+--- me091011-orig/src/fileio.c |
46 |
++++ me091011/src/fileio.c |
47 |
+@@ -2331,7 +2331,7 @@ |
48 |
+ if(meRename(filename,filename2) && (ffFileOp(filename,filename2,meRWFLAG_DELETE,-1) <= 0)) |
49 |
+ { |
50 |
+ mlwrite(MWABORT|MWPAUSE,(meUByte *)"[Unable to backup file to %s (%d - %s)]", |
51 |
+- filename2,errno,sys_errlist[errno]) ; |
52 |
++ filename2,errno,strerror(errno)) ; |
53 |
+ if(meUnlink(filename)) |
54 |
+ { |
55 |
+ mlwrite(MWABORT|MWPAUSE,(meUByte *)"[Unable to remove backup file %s]", filename) ; |
56 |
+@@ -2346,7 +2346,7 @@ |
57 |
+ mlwrite(MWABORT|MWPAUSE,(meUByte *)"[Unable to remove backup file %s]", filename) ; |
58 |
+ else if(meRename(filenameOld,filename) && (ffFileOp(filenameOld,filename,meRWFLAG_DELETE,-1) <= 0)) |
59 |
+ mlwrite(MWABORT|MWPAUSE,(meUByte *)"[Unable to backup file to %s (%d - %s)]", |
60 |
+- filename,errno,sys_errlist[errno]) ; |
61 |
++ filename,errno,strerror(errno)) ; |
62 |
+ else if(bp != NULL) |
63 |
+ { |
64 |
+ meUShort ss; |
65 |
+--- me091011-orig/src/spawn.c |
66 |
++++ me091011/src/spawn.c |
67 |
+@@ -219,10 +219,10 @@ |
68 |
+ case 0: |
69 |
+ /* we want the children to die on interrupt */ |
70 |
+ execlp("xterm", "xterm", "-sl", "200", "-sb", NULL); |
71 |
+- mlwrite(MWABORT,(meUByte *)"exec failed, %s", sys_errlist[errno]); |
72 |
++ mlwrite(MWABORT,(meUByte *)"exec failed, %s", strerror(errno)); |
73 |
+ meExit(127); |
74 |
+ case -1: |
75 |
+- ss = mlwrite(MWABORT,(meUByte *)"exec failed, %s", sys_errlist[errno]); |
76 |
++ ss = mlwrite(MWABORT,(meUByte *)"exec failed, %s", strerror(errno)); |
77 |
+ default: |
78 |
+ ss = meTRUE ; |
79 |
+ } |
80 |
|
81 |
diff --git a/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild b/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild |
82 |
index c04a8195963..a2277979f14 100644 |
83 |
--- a/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild |
84 |
+++ b/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild |
85 |
@@ -38,6 +38,7 @@ PATCHES=( |
86 |
"${FILESDIR}"/${PV}-ncurses.patch |
87 |
"${FILESDIR}"/${PV}-linux3.patch |
88 |
"${FILESDIR}"/${PV}-cc-detect.patch |
89 |
+ "${FILESDIR}"/${PV}-glibc-2.32.patch |
90 |
) |
91 |
|
92 |
src_unpack() { |