From 583446d6c076aadebbb43856c3f992fcab61e3a5 Mon Sep 17 00:00:00 2001 From: Wade Cline Date: Sun, 5 Apr 2020 13:09:10 -0700 Subject: [PATCH] dev-libs/libmowgli: Revbump Bug: https://bugs.gentoo.org/715752 Signed-off-by: Wade Cline Closes: https://github.com/gentoo/gentoo/pull/15241 Signed-off-by: Joonas Niilola --- ...re-sysconf-var-is-defined-before-use.patch | 25 ++++++++++++++++ dev-libs/libmowgli/libmowgli-2.1.3-r1.ebuild | 29 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 dev-libs/libmowgli/files/libmowgli-2.1.3-cacheline-Ensure-sysconf-var-is-defined-before-use.patch create mode 100644 dev-libs/libmowgli/libmowgli-2.1.3-r1.ebuild diff --git a/dev-libs/libmowgli/files/libmowgli-2.1.3-cacheline-Ensure-sysconf-var-is-defined-before-use.patch b/dev-libs/libmowgli/files/libmowgli-2.1.3-cacheline-Ensure-sysconf-var-is-defined-before-use.patch new file mode 100644 index 000000000000..ff070e1d00ed --- /dev/null +++ b/dev-libs/libmowgli/files/libmowgli-2.1.3-cacheline-Ensure-sysconf-var-is-defined-before-use.patch @@ -0,0 +1,25 @@ +From 2b8892fe2ca51ef0334b08babad0fa9d689087c0 Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" +Date: Wed, 27 Sep 2017 01:42:33 -0500 +Subject: [PATCH] cacheline: Ensure sysconf var is defined before use on Linux + +--- + src/libmowgli/platform/cacheline.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/libmowgli/platform/cacheline.c b/src/libmowgli/platform/cacheline.c +index 90c803f..7651588 100644 +--- a/src/libmowgli/platform/cacheline.c ++++ b/src/libmowgli/platform/cacheline.c +@@ -32,7 +32,7 @@ size_t cacheline_size; + void + mowgli_cacheline_bootstrap(void) + { +-#ifdef MOWGLI_OS_LINUX ++#if defined(MOWGLI_OS_LINUX) && defined(_SC_LEVEL1_DCACHE_LINESIZE) + cacheline_size = sysconf(_SC_LEVEL1_DCACHE_LINESIZE); + #elif defined(MOWGLI_OS_OSX) + size_t size = sizeof(size_t); +-- +2.24.1 + diff --git a/dev-libs/libmowgli/libmowgli-2.1.3-r1.ebuild b/dev-libs/libmowgli/libmowgli-2.1.3-r1.ebuild new file mode 100644 index 000000000000..2597f8dcc4c6 --- /dev/null +++ b/dev-libs/libmowgli/libmowgli-2.1.3-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Useful set of performance and usability-oriented extensions to C" +HOMEPAGE="https://github.com/atheme/libmowgli-2" +SRC_URI="https://github.com/atheme/libmowgli-2/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-linux ~ppc-macos ~x86-macos" +IUSE="libressl ssl" + +RDEPEND="ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + !~dev-libs/libmowgli-2.1.0" # Bug 629644 +DEPEND="${RDEPEND}" + +DOCS=( AUTHORS README doc/BOOST doc/design-concepts.txt ) +PATCHES=( "${FILESDIR}"/${P}-cacheline-Ensure-sysconf-var-is-defined-before-use.patch ) +S="${WORKDIR}/${PN}-2-${PV}" + +src_configure() { + econf \ + $(use_with ssl openssl) +} -- 2.26.2