1 |
commit: 5813a1933243715679ae314ad771ab5a881f2f67 |
2 |
Author: Mats Lidell <matsl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 31 18:29:46 2020 +0000 |
4 |
Commit: Mats Lidell <matsl <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 31 18:30:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5813a193 |
7 |
|
8 |
app-editors/xemacs: Compile on >=glibc-2.32 |
9 |
|
10 |
Use strsignal to compile on >=glibc-2.32. |
11 |
|
12 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
13 |
Signed-off-by: Mats Lidell <matsl <AT> gentoo.org> |
14 |
|
15 |
.../xemacs/files/xemacs-21.4.24-strsignal.patch | 89 ++++++++++++++++++++++ |
16 |
app-editors/xemacs/xemacs-21.4.24-r2.ebuild | 1 + |
17 |
2 files changed, 90 insertions(+) |
18 |
|
19 |
diff --git a/app-editors/xemacs/files/xemacs-21.4.24-strsignal.patch b/app-editors/xemacs/files/xemacs-21.4.24-strsignal.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..a44b925ccdd |
22 |
--- /dev/null |
23 |
+++ b/app-editors/xemacs/files/xemacs-21.4.24-strsignal.patch |
24 |
@@ -0,0 +1,89 @@ |
25 |
+diff -r ab1558b934ff configure |
26 |
+--- a/configure Sun Aug 30 22:05:05 2020 +0200 |
27 |
++++ b/configure Sun Aug 30 22:38:03 2020 +0200 |
28 |
+@@ -11333,7 +11333,7 @@ |
29 |
+ fi |
30 |
+ |
31 |
+ |
32 |
+-for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask |
33 |
++for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror strsignal tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask |
34 |
+ do |
35 |
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
36 |
+ echo "configure:11340: checking for $ac_func" >&5 |
37 |
+diff -r ab1558b934ff configure.in |
38 |
+--- a/configure.in Sun Aug 30 22:05:05 2020 +0200 |
39 |
++++ b/configure.in Sun Aug 30 22:38:03 2020 +0200 |
40 |
+@@ -4012,7 +4012,7 @@ |
41 |
+ dnl Check for POSIX functions. |
42 |
+ dnl ---------------------------------------------------------------- |
43 |
+ |
44 |
+-AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask) |
45 |
++AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror strsignal tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask) |
46 |
+ |
47 |
+ dnl getaddrinfo() is borked under hpux11 |
48 |
+ if test "$ac_cv_func_getaddrinfo" != "no" ; then |
49 |
+diff -r ab1558b934ff src/config.h.in |
50 |
+--- a/src/config.h.in Sun Aug 30 22:05:05 2020 +0200 |
51 |
++++ b/src/config.h.in Sun Aug 30 22:38:03 2020 +0200 |
52 |
+@@ -346,6 +346,7 @@ |
53 |
+ #undef HAVE_SNPRINTF |
54 |
+ #undef HAVE_STPCPY |
55 |
+ #undef HAVE_STRERROR |
56 |
++#undef HAVE_STRSIGNAL |
57 |
+ #undef HAVE_TZSET |
58 |
+ #undef HAVE_ULIMIT |
59 |
+ #undef HAVE_USLEEP |
60 |
+diff -r ab1558b934ff src/process.c |
61 |
+--- a/src/process.c Sun Aug 30 22:05:05 2020 +0200 |
62 |
++++ b/src/process.c Sun Aug 30 22:38:03 2020 +0200 |
63 |
+@@ -1311,7 +1311,11 @@ |
64 |
+ signal_name (int signum) |
65 |
+ { |
66 |
+ if (signum >= 0 && signum < NSIG) |
67 |
++#ifdef HAVE_STRSIGNAL |
68 |
++ return strsignal (signum); |
69 |
++#else |
70 |
+ return (const char *) sys_siglist[signum]; |
71 |
++#endif |
72 |
+ |
73 |
+ return (const char *) GETTEXT ("unknown signal"); |
74 |
+ } |
75 |
+diff -r ab1558b934ff src/s/linux.h |
76 |
+--- a/src/s/linux.h Sun Aug 30 22:05:05 2020 +0200 |
77 |
++++ b/src/s/linux.h Sun Aug 30 22:38:03 2020 +0200 |
78 |
+@@ -107,7 +107,6 @@ |
79 |
+ |
80 |
+ #define NO_SIOCTL_H /* don't have sioctl.h */ |
81 |
+ |
82 |
+-#define HAVE_SYS_SIGLIST |
83 |
+ #define HAVE_WAIT_HEADER |
84 |
+ |
85 |
+ #define POSIX /* affects getpagesize.h and systty.h */ |
86 |
+diff -r ab1558b934ff src/sysdep.c |
87 |
+--- a/src/sysdep.c Sun Aug 30 22:05:05 2020 +0200 |
88 |
++++ b/src/sysdep.c Sun Aug 30 22:38:03 2020 +0200 |
89 |
+@@ -3526,7 +3526,7 @@ |
90 |
+ /* Strings corresponding to defined signals */ |
91 |
+ /************************************************************************/ |
92 |
+ |
93 |
+-#if !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST) |
94 |
++#if !defined(HAVE_STRSIGNAL) && !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST) |
95 |
+ |
96 |
+ #if defined(WIN32_NATIVE) || defined(CYGWIN) |
97 |
+ const char *sys_siglist[] = |
98 |
+diff -r ab1558b934ff src/syssignal.h |
99 |
+--- a/src/syssignal.h Sun Aug 30 22:05:05 2020 +0200 |
100 |
++++ b/src/syssignal.h Sun Aug 30 22:38:03 2020 +0200 |
101 |
+@@ -223,10 +223,8 @@ |
102 |
+ # define NSIG (SIGUSR2+1) /* guess how many elements are in sys_siglist... */ |
103 |
+ #endif |
104 |
+ |
105 |
+-/* SYS_SIGLIST_DECLARED is determined by configure. On Linux, it seems, |
106 |
+- configure incorrectly fails to find it, so s/linux.h defines |
107 |
+- HAVE_SYS_SIGLIST. */ |
108 |
+-#if !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST) |
109 |
++/* Systems that have sys_siglist but do not declare it. */ |
110 |
++#if !defined(HAVE_STRSIGNAL) && !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST) |
111 |
+ extern const char *sys_siglist[]; |
112 |
+ #endif |
113 |
+ |
114 |
|
115 |
diff --git a/app-editors/xemacs/xemacs-21.4.24-r2.ebuild b/app-editors/xemacs/xemacs-21.4.24-r2.ebuild |
116 |
index 1276e477e5f..5eb8d525db8 100644 |
117 |
--- a/app-editors/xemacs/xemacs-21.4.24-r2.ebuild |
118 |
+++ b/app-editors/xemacs/xemacs-21.4.24-r2.ebuild |
119 |
@@ -65,6 +65,7 @@ src_prepare() { |
120 |
eapply "${FILESDIR}"/xemacs-21.4.24-glibc-macro.patch |
121 |
# see bug 615544 |
122 |
eapply "${FILESDIR}"/xemacs-21.4.24-ncurses-tinfo.patch |
123 |
+ eapply "${FILESDIR}"/xemacs-21.4.24-strsignal.patch |
124 |
|
125 |
# Convert to utf-8 |
126 |
iconv -f iso-8859-1 -t utf-8 -o man/xemacs-faq.texi.tmp man/xemacs-faq.texi \ |