1 |
commit: c74bbd229907063446180084e47f9fa8056e543a |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 25 09:21:44 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 25 19:03:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c74bbd22 |
7 |
|
8 |
app-backup/mirdir: fix build with LTO |
9 |
|
10 |
Seems to be a dodgy old autoconf bug. No source configure.in/.ac in the |
11 |
tarball so can't easily fix it either, sadly. |
12 |
|
13 |
Just force off the test as lutime doesn't ever exist on Linux |
14 |
but I'm not sure if lutime is even a thing anyway (lutimeS, perhaps?). |
15 |
|
16 |
Closes: https://bugs.gentoo.org/854213 |
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
.../files/mirdir-2.1-implicit-function-decl.patch | 11 ++++++ |
20 |
app-backup/mirdir/mirdir-2.1-r3.ebuild | 39 ++++++++++++++++++++++ |
21 |
2 files changed, 50 insertions(+) |
22 |
|
23 |
diff --git a/app-backup/mirdir/files/mirdir-2.1-implicit-function-decl.patch b/app-backup/mirdir/files/mirdir-2.1-implicit-function-decl.patch |
24 |
new file mode 100644 |
25 |
index 000000000000..e9e824d9f019 |
26 |
--- /dev/null |
27 |
+++ b/app-backup/mirdir/files/mirdir-2.1-implicit-function-decl.patch |
28 |
@@ -0,0 +1,11 @@ |
29 |
+https://bugs.gentoo.org/854213 |
30 |
+--- a/mirdir.c |
31 |
++++ b/mirdir.c |
32 |
+@@ -88,6 +88,7 @@ |
33 |
+ #include <fcntl.h> |
34 |
+ #include <dirent.h> |
35 |
+ #include <time.h> |
36 |
++#include <unistd.h> |
37 |
+ |
38 |
+ /* |
39 |
+ #include <sys/types.h> |
40 |
|
41 |
diff --git a/app-backup/mirdir/mirdir-2.1-r3.ebuild b/app-backup/mirdir/mirdir-2.1-r3.ebuild |
42 |
new file mode 100644 |
43 |
index 000000000000..ac0a24f319bd |
44 |
--- /dev/null |
45 |
+++ b/app-backup/mirdir/mirdir-2.1-r3.ebuild |
46 |
@@ -0,0 +1,39 @@ |
47 |
+# Copyright 1999-2022 Gentoo Authors |
48 |
+# Distributed under the terms of the GNU General Public License v2 |
49 |
+ |
50 |
+EAPI=8 |
51 |
+ |
52 |
+DESCRIPTION="Synchronize two directory trees in a fast way" |
53 |
+HOMEPAGE="https://sourceforge.net/projects/mirdir/" |
54 |
+SRC_URI="mirror://sourceforge/${PN}/${P}-Unix.tar.gz" |
55 |
+S="${WORKDIR}/${P}-UNIX" |
56 |
+ |
57 |
+LICENSE="GPL-2" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~amd64 ~x86" |
60 |
+ |
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}"/${PN}-2.1-implicit-function-decl.patch |
63 |
+) |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ |
68 |
+ # Disable stripping, bug #239939 |
69 |
+ sed -i -e 's:strip .*::' Makefile.in || die |
70 |
+} |
71 |
+ |
72 |
+src_configure() { |
73 |
+ # Old autoconf gets this test wrong with -flto(!) and there's |
74 |
+ # no source configure.in/.ac in the tarball. bug #854213 |
75 |
+ export ac_cv_func_lutime=no |
76 |
+ |
77 |
+ econf |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ dobin bin/${PN} |
82 |
+ doman ${PN}.1 |
83 |
+ |
84 |
+ einstalldocs |
85 |
+} |