From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C8C7D138359 for ; Mon, 31 Aug 2020 18:30:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0BCF0E09A6; Mon, 31 Aug 2020 18:30:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D47ABE09A6 for ; Mon, 31 Aug 2020 18:30:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 32E23340DBF for ; Mon, 31 Aug 2020 18:30:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A31502EE for ; Mon, 31 Aug 2020 18:30:46 +0000 (UTC) From: "Mats Lidell" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mats Lidell" Message-ID: <1598898640.5813a1933243715679ae314ad771ab5a881f2f67.matsl@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/xemacs/files/, app-editors/xemacs/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/xemacs/files/xemacs-21.4.24-strsignal.patch app-editors/xemacs/xemacs-21.4.24-r2.ebuild X-VCS-Directories: app-editors/xemacs/ app-editors/xemacs/files/ X-VCS-Committer: matsl X-VCS-Committer-Name: Mats Lidell X-VCS-Revision: 5813a1933243715679ae314ad771ab5a881f2f67 X-VCS-Branch: master Date: Mon, 31 Aug 2020 18:30:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2684f44f-9b01-481c-8a69-74ee60af61c5 X-Archives-Hash: 2180b424c13eda3a98372c4752ee708e commit: 5813a1933243715679ae314ad771ab5a881f2f67 Author: Mats Lidell gentoo org> AuthorDate: Mon Aug 31 18:29:46 2020 +0000 Commit: Mats Lidell gentoo org> CommitDate: Mon Aug 31 18:30:40 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5813a193 app-editors/xemacs: Compile on >=glibc-2.32 Use strsignal to compile on >=glibc-2.32. Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Mats Lidell gentoo.org> .../xemacs/files/xemacs-21.4.24-strsignal.patch | 89 ++++++++++++++++++++++ app-editors/xemacs/xemacs-21.4.24-r2.ebuild | 1 + 2 files changed, 90 insertions(+) diff --git a/app-editors/xemacs/files/xemacs-21.4.24-strsignal.patch b/app-editors/xemacs/files/xemacs-21.4.24-strsignal.patch new file mode 100644 index 00000000000..a44b925ccdd --- /dev/null +++ b/app-editors/xemacs/files/xemacs-21.4.24-strsignal.patch @@ -0,0 +1,89 @@ +diff -r ab1558b934ff configure +--- a/configure Sun Aug 30 22:05:05 2020 +0200 ++++ b/configure Sun Aug 30 22:38:03 2020 +0200 +@@ -11333,7 +11333,7 @@ + fi + + +-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 ++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 + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 + echo "configure:11340: checking for $ac_func" >&5 +diff -r ab1558b934ff configure.in +--- a/configure.in Sun Aug 30 22:05:05 2020 +0200 ++++ b/configure.in Sun Aug 30 22:38:03 2020 +0200 +@@ -4012,7 +4012,7 @@ + dnl Check for POSIX functions. + dnl ---------------------------------------------------------------- + +-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) ++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) + + dnl getaddrinfo() is borked under hpux11 + if test "$ac_cv_func_getaddrinfo" != "no" ; then +diff -r ab1558b934ff src/config.h.in +--- a/src/config.h.in Sun Aug 30 22:05:05 2020 +0200 ++++ b/src/config.h.in Sun Aug 30 22:38:03 2020 +0200 +@@ -346,6 +346,7 @@ + #undef HAVE_SNPRINTF + #undef HAVE_STPCPY + #undef HAVE_STRERROR ++#undef HAVE_STRSIGNAL + #undef HAVE_TZSET + #undef HAVE_ULIMIT + #undef HAVE_USLEEP +diff -r ab1558b934ff src/process.c +--- a/src/process.c Sun Aug 30 22:05:05 2020 +0200 ++++ b/src/process.c Sun Aug 30 22:38:03 2020 +0200 +@@ -1311,7 +1311,11 @@ + signal_name (int signum) + { + if (signum >= 0 && signum < NSIG) ++#ifdef HAVE_STRSIGNAL ++ return strsignal (signum); ++#else + return (const char *) sys_siglist[signum]; ++#endif + + return (const char *) GETTEXT ("unknown signal"); + } +diff -r ab1558b934ff src/s/linux.h +--- a/src/s/linux.h Sun Aug 30 22:05:05 2020 +0200 ++++ b/src/s/linux.h Sun Aug 30 22:38:03 2020 +0200 +@@ -107,7 +107,6 @@ + + #define NO_SIOCTL_H /* don't have sioctl.h */ + +-#define HAVE_SYS_SIGLIST + #define HAVE_WAIT_HEADER + + #define POSIX /* affects getpagesize.h and systty.h */ +diff -r ab1558b934ff src/sysdep.c +--- a/src/sysdep.c Sun Aug 30 22:05:05 2020 +0200 ++++ b/src/sysdep.c Sun Aug 30 22:38:03 2020 +0200 +@@ -3526,7 +3526,7 @@ + /* Strings corresponding to defined signals */ + /************************************************************************/ + +-#if !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST) ++#if !defined(HAVE_STRSIGNAL) && !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST) + + #if defined(WIN32_NATIVE) || defined(CYGWIN) + const char *sys_siglist[] = +diff -r ab1558b934ff src/syssignal.h +--- a/src/syssignal.h Sun Aug 30 22:05:05 2020 +0200 ++++ b/src/syssignal.h Sun Aug 30 22:38:03 2020 +0200 +@@ -223,10 +223,8 @@ + # define NSIG (SIGUSR2+1) /* guess how many elements are in sys_siglist... */ + #endif + +-/* SYS_SIGLIST_DECLARED is determined by configure. On Linux, it seems, +- configure incorrectly fails to find it, so s/linux.h defines +- HAVE_SYS_SIGLIST. */ +-#if !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST) ++/* Systems that have sys_siglist but do not declare it. */ ++#if !defined(HAVE_STRSIGNAL) && !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST) + extern const char *sys_siglist[]; + #endif + diff --git a/app-editors/xemacs/xemacs-21.4.24-r2.ebuild b/app-editors/xemacs/xemacs-21.4.24-r2.ebuild index 1276e477e5f..5eb8d525db8 100644 --- a/app-editors/xemacs/xemacs-21.4.24-r2.ebuild +++ b/app-editors/xemacs/xemacs-21.4.24-r2.ebuild @@ -65,6 +65,7 @@ src_prepare() { eapply "${FILESDIR}"/xemacs-21.4.24-glibc-macro.patch # see bug 615544 eapply "${FILESDIR}"/xemacs-21.4.24-ncurses-tinfo.patch + eapply "${FILESDIR}"/xemacs-21.4.24-strsignal.patch # Convert to utf-8 iconv -f iso-8859-1 -t utf-8 -o man/xemacs-faq.texi.tmp man/xemacs-faq.texi \