diff options
author | Oz N Tiram <oz.tiram@gmail.com> | 2021-10-03 00:37:58 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-10-18 05:10:23 +0100 |
commit | db02aa38b2c766f454b31c9d051f3729c4e398df (patch) | |
tree | 8406bef48405aeacb2f786aa7900c9ad5f18f119 /dev-libs | |
parent | app-emulation/slirp4netns: Bump to version 1.1.12 (diff) | |
download | gentoo-db02aa38b2c766f454b31c9d051f3729c4e398df.tar.gz gentoo-db02aa38b2c766f454b31c9d051f3729c4e398df.tar.bz2 gentoo-db02aa38b2c766f454b31c9d051f3729c4e398df.zip |
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@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libuev/files/libuev-64-bit-times.patch | 32 | ||||
-rw-r--r-- | dev-libs/libuev/libuev-2.3.2-r1.ebuild | 27 |
2 files changed, 59 insertions, 0 deletions
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 000000000000..b018da1ef704 --- /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 000000000000..14f468a0569a --- /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 +} |