1 |
commit: 1c7a8d9e9a4342f577b902b2d87b8e3b8e5eebe6 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 2 11:40:56 2022 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 2 11:53:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c7a8d9e |
7 |
|
8 |
sci-libs/fplll: fix bashism in the latest version's ./configure. |
9 |
|
10 |
Pending upstream pull request: |
11 |
|
12 |
https://github.com/fplll/fplll/pull/491 |
13 |
|
14 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
15 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
16 |
|
17 |
sci-libs/fplll/files/fplll-5.4.2-with-qd-fix.patch | 27 ++++++++++++++++++++++ |
18 |
sci-libs/fplll/fplll-5.4.2.ebuild | 11 ++++++++- |
19 |
2 files changed, 37 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/sci-libs/fplll/files/fplll-5.4.2-with-qd-fix.patch b/sci-libs/fplll/files/fplll-5.4.2-with-qd-fix.patch |
22 |
new file mode 100644 |
23 |
index 000000000000..73c9b4386fd1 |
24 |
--- /dev/null |
25 |
+++ b/sci-libs/fplll/files/fplll-5.4.2-with-qd-fix.patch |
26 |
@@ -0,0 +1,27 @@ |
27 |
+From 94010a8c4c93c6ba9520b7c26bb6cb36344a4bf9 Mon Sep 17 00:00:00 2001 |
28 |
+From: Michael Orlitzky <michael@××××××××.com> |
29 |
+Date: Wed, 1 Jun 2022 22:11:48 -0400 |
30 |
+Subject: [PATCH 1/1] configure.ac: fix bashism in --with-qd test. |
31 |
+ |
32 |
+There's a double-equals test here that doesn't work properly when |
33 |
+/bin/sh is not bash. We simply change it to single-equals. |
34 |
+--- |
35 |
+ configure.ac | 2 +- |
36 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
37 |
+ |
38 |
+diff --git a/configure.ac b/configure.ac |
39 |
+index 0ccc4c4..ed0cd59 100644 |
40 |
+--- a/configure.ac |
41 |
++++ b/configure.ac |
42 |
+@@ -104,7 +104,7 @@ AS_IF([test -z "$with_qd"], [with_qd=yes]) |
43 |
+ # and libraries if that didn't work for some reason. |
44 |
+ # |
45 |
+ # We only show a warning if we cannot find libqd, it is optional but recommended |
46 |
+-AS_IF([test "x$with_qd" == "xyes"], [ |
47 |
++AS_IF([test "x$with_qd" = "xyes"], [ |
48 |
+ PKG_CHECK_MODULES([LIBQD], [qd], [have_libqd="yes"], [ |
49 |
+ # fall back to manual search. |
50 |
+ AC_SEARCH_LIBS(c_dd_add, |
51 |
+-- |
52 |
+2.35.1 |
53 |
+ |
54 |
|
55 |
diff --git a/sci-libs/fplll/fplll-5.4.2.ebuild b/sci-libs/fplll/fplll-5.4.2.ebuild |
56 |
index 01b12f0488b4..dc83e78f3551 100644 |
57 |
--- a/sci-libs/fplll/fplll-5.4.2.ebuild |
58 |
+++ b/sci-libs/fplll/fplll-5.4.2.ebuild |
59 |
@@ -3,6 +3,8 @@ |
60 |
|
61 |
EAPI=8 |
62 |
|
63 |
+inherit autotools |
64 |
+ |
65 |
DESCRIPTION="Implementations of the floating-point LLL reduction algorithm" |
66 |
HOMEPAGE="https://github.com/fplll/fplll" |
67 |
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz" |
68 |
@@ -18,6 +20,13 @@ DEPEND="dev-libs/gmp:0 |
69 |
qd? ( sci-libs/qd )" |
70 |
RDEPEND="${DEPEND}" |
71 |
|
72 |
+PATCHES=( "${FILESDIR}/${P}-with-qd-fix.patch" ) |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ default |
76 |
+ eautoreconf |
77 |
+} |
78 |
+ |
79 |
src_configure() { |
80 |
econf \ |
81 |
$(use_with qd) \ |
82 |
@@ -26,5 +35,5 @@ src_configure() { |
83 |
|
84 |
src_install() { |
85 |
default |
86 |
- find "${ED}" -name '*.la' -delete || die |
87 |
+ find "${ED}" -type f -name '*.la' -delete || die |
88 |
} |