* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libuev/, dev-libs/libuev/files/
@ 2021-10-18 4:12 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2021-10-18 4:12 UTC (permalink / raw
To: gentoo-commits
commit: db02aa38b2c766f454b31c9d051f3729c4e398df
Author: Oz N Tiram <oz.tiram <AT> gmail <DOT> com>
AuthorDate: Sat Oct 2 22:37:58 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 18 04:10:23 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db02aa38
dev-libs/libuev: fix building with sys-libs/glibc-2.34
Closes: https://bugs.gentoo.org/806604
Signed-off-by: Oz N Tiram <oz.tiram <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/libuev/files/libuev-64-bit-times.patch | 32 +++++++++++++++++++++++++
dev-libs/libuev/libuev-2.3.2-r1.ebuild | 27 +++++++++++++++++++++
2 files changed, 59 insertions(+)
diff --git a/dev-libs/libuev/files/libuev-64-bit-times.patch b/dev-libs/libuev/files/libuev-64-bit-times.patch
new file mode 100644
index 00000000000..b018da1ef70
--- /dev/null
+++ b/dev-libs/libuev/files/libuev-64-bit-times.patch
@@ -0,0 +1,32 @@
+diff --git a/configure.ac b/configure.ac
+index 786f502..c9859b1 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,4 +1,4 @@
+-AC_INIT(libuev, 2.4.0-beta1, https://github.com/troglobit/libuev/issues)
++AC_INIT(libuev, 2.4.0-rc1, https://github.com/troglobit/libuev/issues)
+ AC_CONFIG_AUX_DIR(aux)
+ AM_INIT_AUTOMAKE([1.11 foreign dist-xz])
+ AM_SILENT_RULES([yes])
+diff --git a/src/libuev.pc.in b/src/libuev.pc.in
+index 9f831a6..4b00176 100644
+--- a/src/libuev.pc.in
++++ b/src/libuev.pc.in
+@@ -8,5 +8,5 @@ Description: Simple event loop for Linux
+ Version: @VERSION@
+ Requires:
+ Libs: -L${libdir} -luev
+-Cflags: -I${includedir}
++Cflags: -I${includedir} -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64
+
+diff --git a/test/Makefile.am b/test/Makefile.am
+index 72fdfb4..6bbfc85 100644
+--- a/test/Makefile.am
++++ b/test/Makefile.am
+@@ -12,5 +12,5 @@ TESTS += event
+
+ check_PROGRAMS = $(TESTS)
+
+-CPPFLAGS = -D_GNU_SOURCE
++CPPFLAGS = -D_GNU_SOURCE -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64
+ LDADD = -L../src ../src/libuev.la
diff --git a/dev-libs/libuev/libuev-2.3.2-r1.ebuild b/dev-libs/libuev/libuev-2.3.2-r1.ebuild
new file mode 100644
index 00000000000..14f468a0569
--- /dev/null
+++ b/dev-libs/libuev/libuev-2.3.2-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Lightweight event loop library for Linux epoll() family APIs"
+HOMEPAGE="https://github.com/troglobit/libuev"
+SRC_URI="https://github.com/troglobit/${PN}/releases/download/v${PV}/${P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+PATCHES=(
+ "${FILESDIR}/${P}-64-bit-time.patch"
+ )
+
+src_configure() {
+ econf --enable-static=$(usex static-libs)
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+ rm "${D}/usr/share/doc/${PF}/LICENSE" || die
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-18 4:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-18 4:12 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libuev/, dev-libs/libuev/files/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox