Gentoo Archives: gentoo-commits

From: Mats Lidell <matsl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/xemacs/, app-editors/xemacs/files/
Date: Sun, 30 Aug 2020 18:11:40
Message-Id: 1598811085.aa0f2ac8fe28b871da7d7b91844d7313daef909f.matsl@gentoo
1 commit: aa0f2ac8fe28b871da7d7b91844d7313daef909f
2 Author: Mats Lidell <matsl <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 29 20:41:37 2020 +0000
4 Commit: Mats Lidell <matsl <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 30 18:11:25 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa0f2ac8
7
8 app-editors/xemacs: Compile on >=glibc-2.32
9
10 Use strsignal to compile on >=glibc-2.32.
11
12 Closes: https://bugs.gentoo.org/738396
13 Package-Manager: Portage-2.3.103, Repoman-2.3.23
14 Signed-off-by: Mats Lidell <matsl <AT> gentoo.org>
15
16 .../xemacs/files/xemacs-21.5.34-strsignal.patch | 92 ++++++++++++++++++++++
17 app-editors/xemacs/xemacs-21.5.34-r5.ebuild | 1 +
18 2 files changed, 93 insertions(+)
19
20 diff --git a/app-editors/xemacs/files/xemacs-21.5.34-strsignal.patch b/app-editors/xemacs/files/xemacs-21.5.34-strsignal.patch
21 new file mode 100644
22 index 00000000000..464c6a542e8
23 --- /dev/null
24 +++ b/app-editors/xemacs/files/xemacs-21.5.34-strsignal.patch
25 @@ -0,0 +1,92 @@
26 +diff -r 3ca291c0f7e3 configure
27 +--- a/configure Sun Jul 28 10:17:08 2019 +0100
28 ++++ b/configure Thu Aug 27 00:15:50 2020 +0200
29 +@@ -18090,7 +18090,7 @@
30 + esac
31 +
32 +
33 +-for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp fsync ftime ftruncate getaddrinfo gethostname getnameinfo getpagesize getrlimit gettimeofday getcwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setsid sigblock sighold sigprocmask snprintf strerror strlwr strupr symlink tzset ulimit umask usleep vlimit vsnprintf waitpid wcscmp wcslen
34 ++for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp fsync ftime ftruncate getaddrinfo gethostname getnameinfo getpagesize getrlimit gettimeofday getcwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setsid sigblock sighold sigprocmask snprintf strerror strlwr strsignal strupr symlink tzset ulimit umask usleep vlimit vsnprintf waitpid wcscmp wcslen
35 + do :
36 + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37 + ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38 +diff -r 3ca291c0f7e3 configure.ac
39 +--- a/configure.ac Sun Jul 28 10:17:08 2019 +0100
40 ++++ b/configure.ac Thu Aug 27 00:15:50 2020 +0200
41 +@@ -4563,7 +4563,7 @@
42 + dnl Check for POSIX functions.
43 + dnl ----------------------------------------------------------------
44 +
45 +-AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp fsync ftime ftruncate getaddrinfo gethostname getnameinfo getpagesize getrlimit gettimeofday getcwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setsid sigblock sighold sigprocmask snprintf strerror strlwr strupr symlink tzset ulimit umask usleep vlimit vsnprintf waitpid wcscmp wcslen)
46 ++AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp fsync ftime ftruncate getaddrinfo gethostname getnameinfo getpagesize getrlimit gettimeofday getcwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setsid sigblock sighold sigprocmask snprintf strerror strlwr strsignal strupr symlink tzset ulimit umask usleep vlimit vsnprintf waitpid wcscmp wcslen)
47 +
48 + dnl getaddrinfo() is borked under hpux11
49 + if test "$ac_cv_func_getaddrinfo" != "no" ; then
50 +diff -r 3ca291c0f7e3 src/config.h.in
51 +--- a/src/config.h.in Sun Jul 28 10:17:08 2019 +0100
52 ++++ b/src/config.h.in Thu Aug 27 00:15:50 2020 +0200
53 +@@ -417,6 +417,7 @@
54 + #undef HAVE_SNPRINTF
55 + #undef HAVE_STRERROR
56 + #undef HAVE_STRLWR
57 ++#undef HAVE_STRSIGNAL
58 + #undef HAVE_STRUPR
59 + #undef HAVE_SYMLINK
60 + #undef HAVE_TZSET
61 +diff -r 3ca291c0f7e3 src/process.c
62 +--- a/src/process.c Sun Jul 28 10:17:08 2019 +0100
63 ++++ b/src/process.c Thu Aug 27 00:15:50 2020 +0200
64 +@@ -1646,7 +1646,11 @@
65 + signal_name (int signum)
66 + {
67 + if (signum >= 0 && signum < NSIG)
68 ++#ifdef HAVE_STRSIGNAL
69 ++ return strsignal (signum);
70 ++#else
71 + return (const char *) sys_siglist[signum];
72 ++#endif
73 +
74 + return (const char *) GETTEXT ("unknown signal");
75 + }
76 +diff -r 3ca291c0f7e3 src/s/linux.h
77 +--- a/src/s/linux.h Sun Jul 28 10:17:08 2019 +0100
78 ++++ b/src/s/linux.h Thu Aug 27 00:15:50 2020 +0200
79 +@@ -36,10 +36,6 @@
80 +
81 + /* Deleted GNU_LIBRARY_PENDING_OUTPUT_COUNT -- unused in XEmacs */
82 +
83 +-/* This is needed for sysdep.c */
84 +-
85 +-#define HAVE_SYS_SIGLIST
86 +-
87 + /* #define POSIX -- not used in XEmacs */
88 +
89 + /* Deleted TERM stuff -- probably hugely obsolete */
90 +diff -r 3ca291c0f7e3 src/sysdep.c
91 +--- a/src/sysdep.c Sun Jul 28 10:17:08 2019 +0100
92 ++++ b/src/sysdep.c Thu Aug 27 00:15:50 2020 +0200
93 +@@ -3520,7 +3520,7 @@
94 + /* Strings corresponding to defined signals */
95 + /************************************************************************/
96 +
97 +-#if (!defined(HAVE_DECL_SYS_SIGLIST) || !HAVE_DECL_SYS_SIGLIST ) && !defined (HAVE_SYS_SIGLIST)
98 ++#if !defined(HAVE_STRSIGNAL) && (!defined(HAVE_DECL_SYS_SIGLIST) || !HAVE_DECL_SYS_SIGLIST )
99 +
100 + #if defined(WIN32_NATIVE) || defined(CYGWIN)
101 + const char *sys_siglist[] =
102 +diff -r 3ca291c0f7e3 src/syssignal.h
103 +--- a/src/syssignal.h Sun Jul 28 10:17:08 2019 +0100
104 ++++ b/src/syssignal.h Thu Aug 27 00:15:50 2020 +0200
105 +@@ -263,10 +263,8 @@
106 + # endif
107 + #endif
108 +
109 +-/* HAVE_DECL_SYS_SIGLIST is determined by configure. On Linux, it seems,
110 +- configure incorrectly fails to find it, so s/linux.h defines
111 +- HAVE_SYS_SIGLIST. */
112 +-#if (!defined(HAVE_DECL_SYS_SIGLIST) || !HAVE_DECL_SYS_SIGLIST ) && !defined (HAVE_SYS_SIGLIST)
113 ++/* Systems that have sys_siglist but do not declare it. */
114 ++#if !defined(HAVE_STRSIGNAL) && (!defined(HAVE_DECL_SYS_SIGLIST) || !HAVE_DECL_SYS_SIGLIST )
115 + extern const char *sys_siglist[];
116 + #endif
117 +
118
119 diff --git a/app-editors/xemacs/xemacs-21.5.34-r5.ebuild b/app-editors/xemacs/xemacs-21.5.34-r5.ebuild
120 index 6e6d7958c4e..accb1cfdff3 100644
121 --- a/app-editors/xemacs/xemacs-21.5.34-r5.ebuild
122 +++ b/app-editors/xemacs/xemacs-21.5.34-r5.ebuild
123 @@ -69,6 +69,7 @@ src_prepare() {
124 eapply "${FILESDIR}/${P}-as-needed.patch"
125 eapply "${FILESDIR}/${P}-configure-libc-version.patch"
126 eapply "${FILESDIR}/${P}-ar.patch"
127 + eapply "${FILESDIR}/${P}-strsignal.patch"
128
129 eapply_user