public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-backup/mirdir/files/, app-backup/mirdir/
@ 2022-06-25 19:03 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2022-06-25 19:03 UTC (permalink / raw
  To: gentoo-commits

commit:     c74bbd229907063446180084e47f9fa8056e543a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 25 09:21:44 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 25 19:03:24 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c74bbd22

app-backup/mirdir: fix build with LTO

Seems to be a dodgy old autoconf bug. No source configure.in/.ac in the
tarball so can't easily fix it either, sadly.

Just force off the test as lutime doesn't ever exist on Linux
but I'm not sure if lutime is even a thing anyway (lutimeS, perhaps?).

Closes: https://bugs.gentoo.org/854213
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/mirdir-2.1-implicit-function-decl.patch  | 11 ++++++
 app-backup/mirdir/mirdir-2.1-r3.ebuild             | 39 ++++++++++++++++++++++
 2 files changed, 50 insertions(+)

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
new file mode 100644
index 000000000000..e9e824d9f019
--- /dev/null
+++ b/app-backup/mirdir/files/mirdir-2.1-implicit-function-decl.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/854213
+--- a/mirdir.c
++++ b/mirdir.c
+@@ -88,6 +88,7 @@
+ #include <fcntl.h>
+ #include <dirent.h>
+ #include <time.h>
++#include <unistd.h>
+ 
+ /*
+ #include <sys/types.h>

diff --git a/app-backup/mirdir/mirdir-2.1-r3.ebuild b/app-backup/mirdir/mirdir-2.1-r3.ebuild
new file mode 100644
index 000000000000..ac0a24f319bd
--- /dev/null
+++ b/app-backup/mirdir/mirdir-2.1-r3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Synchronize two directory trees in a fast way"
+HOMEPAGE="https://sourceforge.net/projects/mirdir/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-Unix.tar.gz"
+S="${WORKDIR}/${P}-UNIX"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-2.1-implicit-function-decl.patch
+)
+
+src_prepare() {
+	default
+
+	# Disable stripping, bug #239939
+	sed -i -e 's:strip .*::' Makefile.in || die
+}
+
+src_configure() {
+	# Old autoconf gets this test wrong with -flto(!) and there's
+	# no source configure.in/.ac in the tarball. bug #854213
+	export ac_cv_func_lutime=no
+
+	econf
+}
+
+src_install() {
+	dobin bin/${PN}
+	doman ${PN}.1
+
+	einstalldocs
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-25 19:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-25 19:03 [gentoo-commits] repo/gentoo:master commit in: app-backup/mirdir/files/, app-backup/mirdir/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox