summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2023-10-31 17:50:55 +0000
committerPetr Vaněk <arkamar@gentoo.org>2023-12-30 18:42:22 +0100
commit87f1773f5a8f9b963093a52183e642fb50615dac (patch)
tree0cda7f5b0d38cd4059d01fb7b7fc0b4f29516edd /dev-libs/libmba
parentdev-python/PeachPy: enable python3_12, add doc (diff)
downloadgentoo-87f1773f5a8f9b963093a52183e642fb50615dac.tar.gz
gentoo-87f1773f5a8f9b963093a52183e642fb50615dac.tar.bz2
gentoo-87f1773f5a8f9b963093a52183e642fb50615dac.zip
dev-libs/libmba: Fix call to undeclared function getdtablesize
and update EAPI 7 -> 8 Closes: https://bugs.gentoo.org/895046 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33611 Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'dev-libs/libmba')
-rw-r--r--dev-libs/libmba/files/libmba-0.9.1-clang16-build-fix.patch11
-rw-r--r--dev-libs/libmba/libmba-0.9.1-r5.ebuild47
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-libs/libmba/files/libmba-0.9.1-clang16-build-fix.patch b/dev-libs/libmba/files/libmba-0.9.1-clang16-build-fix.patch
new file mode 100644
index 000000000000..7ddba14ea3b6
--- /dev/null
+++ b/dev-libs/libmba/files/libmba-0.9.1-clang16-build-fix.patch
@@ -0,0 +1,11 @@
+Bug: https://bugs.gentoo.org/895046
+--- a/src/daemon.c
++++ b/src/daemon.c
+@@ -22,6 +22,7 @@
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+
++#define _GNU_SOURCE
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <errno.h>
diff --git a/dev-libs/libmba/libmba-0.9.1-r5.ebuild b/dev-libs/libmba/libmba-0.9.1-r5.ebuild
new file mode 100644
index 000000000000..8d0d779f13cc
--- /dev/null
+++ b/dev-libs/libmba/libmba-0.9.1-r5.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="A library of generic C modules"
+LICENSE="MIT"
+HOMEPAGE="http://www.ioplex.com/~miallen/libmba/"
+SRC_URI="http://www.ioplex.com/~miallen/libmba/dl/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-qa.patch
+ "${FILESDIR}"/${P}-glibc-2.20.patch
+ "${FILESDIR}"/${P}-clang16-build-fix.patch
+)
+
+src_prepare() {
+ default
+
+ tc-export CC
+ sed -i -e "s:gcc:${CC}:g" mktool.c || die
+
+ # prevent reinventing strdup(), wcsdup() and strnlen()
+ append-cflags -D_XOPEN_SOURCE=500
+}
+
+src_compile() {
+ emake LIBDIR="$(get_libdir)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
+
+ dodoc README.txt docs/*.txt
+ docinto html
+ dodoc -r docs/*.html docs/www/* docs/ref
+
+ docinto examples
+ dodoc -r examples/*
+
+ gunzip -v $(find "${ED}" -name '*.[0-9]*.gz') || die
+}