1 |
commit: 7b89e73e3f0497297ab49f7693e50c683627b63e |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 19 00:43:54 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 19 00:43:54 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b89e73e |
7 |
|
8 |
app-crypt/ccrypt: fix configure w/ clang 16 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/900130 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
...ccrypt-1.11-r3.ebuild => ccrypt-1.11-r4.ebuild} | 23 ++++++-- |
14 |
.../files/ccrypt-1.11-refresh-macro-clang16.patch | 64 ++++++++++++++++++++++ |
15 |
2 files changed, 83 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/app-crypt/ccrypt/ccrypt-1.11-r3.ebuild b/app-crypt/ccrypt/ccrypt-1.11-r4.ebuild |
18 |
similarity index 61% |
19 |
rename from app-crypt/ccrypt/ccrypt-1.11-r3.ebuild |
20 |
rename to app-crypt/ccrypt/ccrypt-1.11-r4.ebuild |
21 |
index dc921dadfc0a..a8bd812cb08c 100644 |
22 |
--- a/app-crypt/ccrypt/ccrypt-1.11-r3.ebuild |
23 |
+++ b/app-crypt/ccrypt/ccrypt-1.11-r4.ebuild |
24 |
@@ -1,7 +1,9 @@ |
25 |
-# Copyright 1999-2021 Gentoo Authors |
26 |
+# Copyright 1999-2023 Gentoo Authors |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
-EAPI="7" |
30 |
+EAPI=8 |
31 |
+ |
32 |
+inherit autotools |
33 |
|
34 |
DESCRIPTION="Encryption and decryption" |
35 |
HOMEPAGE="https://sourceforge.net/projects/ccrypt/" |
36 |
@@ -13,8 +15,21 @@ KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" |
37 |
IUSE="emacs" |
38 |
|
39 |
RDEPEND="virtual/libcrypt:=" |
40 |
-DEPEND="${RDEPEND} |
41 |
- emacs? ( >=app-editors/emacs-23.1:* )" |
42 |
+DEPEND=" |
43 |
+ ${RDEPEND} |
44 |
+ emacs? ( >=app-editors/emacs-23.1:* ) |
45 |
+" |
46 |
+ |
47 |
+PATCHES=( |
48 |
+ "${FILESDIR}"/${PN}-1.11-refresh-macro-clang16.patch |
49 |
+) |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ default |
53 |
+ |
54 |
+ # Clang 16 patch |
55 |
+ eautoreconf |
56 |
+} |
57 |
|
58 |
src_configure() { |
59 |
econf \ |
60 |
|
61 |
diff --git a/app-crypt/ccrypt/files/ccrypt-1.11-refresh-macro-clang16.patch b/app-crypt/ccrypt/files/ccrypt-1.11-refresh-macro-clang16.patch |
62 |
new file mode 100644 |
63 |
index 000000000000..f610a1c38065 |
64 |
--- /dev/null |
65 |
+++ b/app-crypt/ccrypt/files/ccrypt-1.11-refresh-macro-clang16.patch |
66 |
@@ -0,0 +1,64 @@ |
67 |
+https://bugs.gentoo.org/900130 |
68 |
+ |
69 |
+Refresh macro from gettext. |
70 |
+--- a/m4/intdiv0.m4 |
71 |
++++ b/m4/intdiv0.m4 |
72 |
+@@ -1,5 +1,5 @@ |
73 |
+-# intdiv0.m4 serial 6 (gettext-0.18.2) |
74 |
+-dnl Copyright (C) 2002, 2007-2008, 2010-2016 Free Software Foundation, Inc. |
75 |
++# intdiv0.m4 serial 9 (gettext-0.21.1) |
76 |
++dnl Copyright (C) 2002, 2007-2008, 2010-2020 Free Software Foundation, Inc. |
77 |
+ dnl This file is free software; the Free Software Foundation |
78 |
+ dnl gives unlimited permission to copy and/or distribute it, |
79 |
+ dnl with or without modifications, as long as this notice is preserved. |
80 |
+@@ -12,7 +12,7 @@ AC_DEFUN([gt_INTDIV0], |
81 |
+ AC_REQUIRE([AC_CANONICAL_HOST])dnl |
82 |
+ |
83 |
+ AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], |
84 |
+- gt_cv_int_divbyzero_sigfpe, |
85 |
++ [gt_cv_int_divbyzero_sigfpe], |
86 |
+ [ |
87 |
+ gt_cv_int_divbyzero_sigfpe= |
88 |
+ changequote(,)dnl |
89 |
+@@ -31,8 +31,11 @@ changequote([,])dnl |
90 |
+ if test -z "$gt_cv_int_divbyzero_sigfpe"; then |
91 |
+ AC_RUN_IFELSE( |
92 |
+ [AC_LANG_SOURCE([[ |
93 |
+-#include <stdlib.h> |
94 |
++#include <stdlib.h> /* for exit() */ |
95 |
+ #include <signal.h> |
96 |
++#if !(defined _WIN32 && !defined __CYGWIN__) |
97 |
++#include <unistd.h> /* for _exit() */ |
98 |
++#endif |
99 |
+ |
100 |
+ static void |
101 |
+ sigfpe_handler (int sig) |
102 |
+@@ -44,7 +47,7 @@ sigfpe_handler (int sig) |
103 |
+ int x = 1; |
104 |
+ int y = 0; |
105 |
+ int z; |
106 |
+-int nan; |
107 |
++int inan; |
108 |
+ |
109 |
+ int main () |
110 |
+ { |
111 |
+@@ -59,7 +62,7 @@ int main () |
112 |
+ #endif |
113 |
+ |
114 |
+ z = x / y; |
115 |
+- nan = y / y; |
116 |
++ inan = y / y; |
117 |
+ exit (2); |
118 |
+ } |
119 |
+ ]])], |
120 |
+@@ -79,8 +82,8 @@ changequote([,])dnl |
121 |
+ fi |
122 |
+ ]) |
123 |
+ case "$gt_cv_int_divbyzero_sigfpe" in |
124 |
+- *yes) value=1;; |
125 |
+- *) value=0;; |
126 |
++ *yes) value=1 ;; |
127 |
++ *) value=0 ;; |
128 |
+ esac |
129 |
+ AC_DEFINE_UNQUOTED([INTDIV0_RAISES_SIGFPE], [$value], |
130 |
+ [Define if integer division by zero raises signal SIGFPE.]) |