* [gentoo-commits] repo/gentoo:master commit in: app-editors/jasspa-microemacs/, app-editors/jasspa-microemacs/files/
@ 2020-08-29 14:24 Ulrich Müller
0 siblings, 0 replies; only message in thread
From: Ulrich Müller @ 2020-08-29 14:24 UTC (permalink / raw
To: gentoo-commits
commit: 0afb8fc17081fa7c825a6f336ee18dac6e5d46c5
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 29 14:23:17 2020 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Aug 29 14:24:14 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0afb8fc1
app-editors/jasspa-microemacs: Fix compilation with glibc-2.32.
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
.../files/20091011-glibc-2.32.patch | 57 ++++++++++++++++++++++
.../jasspa-microemacs-20091011-r3.ebuild | 1 +
2 files changed, 58 insertions(+)
diff --git a/app-editors/jasspa-microemacs/files/20091011-glibc-2.32.patch b/app-editors/jasspa-microemacs/files/20091011-glibc-2.32.patch
new file mode 100644
index 00000000000..7e2f57c934b
--- /dev/null
+++ b/app-editors/jasspa-microemacs/files/20091011-glibc-2.32.patch
@@ -0,0 +1,57 @@
+Fix compilation with glibc-2.32.
+
+--- me091011-orig/src/file.c
++++ me091011/src/file.c
+@@ -1325,7 +1325,7 @@
+ )
+ {
+ /* READ ONLY DIR */
+- mlwrite(MWPAUSE,(meUByte *)"%s: %s", dirbuf, sys_errlist[errno]);
++ mlwrite(MWPAUSE,(meUByte *)"%s: %s", dirbuf, strerror(errno));
+ /* Zap the filename - it is invalid.
+ We only want a buffer */
+ mlwrite (0,(meUByte *)"[New buffer %s]", getFileBaseName(fname));
+@@ -1355,7 +1355,7 @@
+ {
+ /* We are not allowed to read the file */
+ #if ((defined _UNIX) || (defined _DOS))
+- mlwrite(MWABORT,(meUByte *)"[%s: %s]", fn, sys_errlist[errno]) ;
++ mlwrite(MWABORT,(meUByte *)"[%s: %s]", fn, strerror(errno)) ;
+ #else
+ mlwrite(MWABORT,"[cannot read: %s]", fn) ;
+ #endif
+--- me091011-orig/src/fileio.c
++++ me091011/src/fileio.c
+@@ -2331,7 +2331,7 @@
+ if(meRename(filename,filename2) && (ffFileOp(filename,filename2,meRWFLAG_DELETE,-1) <= 0))
+ {
+ mlwrite(MWABORT|MWPAUSE,(meUByte *)"[Unable to backup file to %s (%d - %s)]",
+- filename2,errno,sys_errlist[errno]) ;
++ filename2,errno,strerror(errno)) ;
+ if(meUnlink(filename))
+ {
+ mlwrite(MWABORT|MWPAUSE,(meUByte *)"[Unable to remove backup file %s]", filename) ;
+@@ -2346,7 +2346,7 @@
+ mlwrite(MWABORT|MWPAUSE,(meUByte *)"[Unable to remove backup file %s]", filename) ;
+ else if(meRename(filenameOld,filename) && (ffFileOp(filenameOld,filename,meRWFLAG_DELETE,-1) <= 0))
+ mlwrite(MWABORT|MWPAUSE,(meUByte *)"[Unable to backup file to %s (%d - %s)]",
+- filename,errno,sys_errlist[errno]) ;
++ filename,errno,strerror(errno)) ;
+ else if(bp != NULL)
+ {
+ meUShort ss;
+--- me091011-orig/src/spawn.c
++++ me091011/src/spawn.c
+@@ -219,10 +219,10 @@
+ case 0:
+ /* we want the children to die on interrupt */
+ execlp("xterm", "xterm", "-sl", "200", "-sb", NULL);
+- mlwrite(MWABORT,(meUByte *)"exec failed, %s", sys_errlist[errno]);
++ mlwrite(MWABORT,(meUByte *)"exec failed, %s", strerror(errno));
+ meExit(127);
+ case -1:
+- ss = mlwrite(MWABORT,(meUByte *)"exec failed, %s", sys_errlist[errno]);
++ ss = mlwrite(MWABORT,(meUByte *)"exec failed, %s", strerror(errno));
+ default:
+ ss = meTRUE ;
+ }
diff --git a/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild b/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild
index c04a8195963..a2277979f14 100644
--- a/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild
+++ b/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild
@@ -38,6 +38,7 @@ PATCHES=(
"${FILESDIR}"/${PV}-ncurses.patch
"${FILESDIR}"/${PV}-linux3.patch
"${FILESDIR}"/${PV}-cc-detect.patch
+ "${FILESDIR}"/${PV}-glibc-2.32.patch
)
src_unpack() {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-29 14:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-29 14:24 [gentoo-commits] repo/gentoo:master commit in: app-editors/jasspa-microemacs/, app-editors/jasspa-microemacs/files/ Ulrich Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox