Commit dc2d9b55 authored by A. Wilcox's avatar A. Wilcox Committed by Ariadne Conill

main/libmowgli: bump to 2.1.3, mark no tests, modernise

parent 22a1f516
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libmowgli
pkgver=2.0.0
pkgver=2.1.3
pkgrel=0
pkgdesc="mowgli is a framework designed to reduce writing of boilerplate code"
pkgdesc="C library framework designed to reduce writing of boilerplate code"
url="http://atheme.org/project/mowgli"
arch="all"
options="!check" # No test suite.
license="ISC"
depends=
makedepends=
makedepends="openssl-dev"
install=
subpackages="$pkgname-dev"
source="https://github.com/atheme/libmowgli-2/archive/libmowgli-$pkgver.tar.gz"
source="https://github.com/atheme/libmowgli-2/archive/libmowgli-$pkgver.tar.gz
cacheline.patch"
_builddir="$srcdir"/libmowgli-2-$pkgname-$pkgver
builddir="$srcdir"/libmowgli-2-$pkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
cd "$builddir"
default_prepare
# workaround bug in busybox
sed -e "/touch/s/0001010000/200001010000/g" \
-i configure
}
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
|| return 1
make || return 1
--infodir=/usr/share/info
make
}
package() {
cd "$_builddir"
cd "$builddir"
make DESTDIR="$pkgdir" install
}
md5sums="0b8cf8b66d745d40f186e3cbd22fdc0e libmowgli-2.0.0.tar.gz"
sha256sums="fd48e74f1f706b436e0f25c3d3d63753e9c066ef88e662cd34303ccd3b780798 libmowgli-2.0.0.tar.gz"
sha512sums="220254c6083fcce5a7cf4dfc0684a15db61aafc371570f74af8be6fb8e4562945dc241bb79539eafd440150573f39153156fb912628f9bc11854ecefdafe3f95 libmowgli-2.0.0.tar.gz"
sha512sums="bf976cf8b8bf0efaf7565230f42147adcdbe993339f58f907f5005eddf178d936cffb6cdbba59e38813854f30414856a1b9f8bdc972ea2f59cb08987ee336533 libmowgli-2.1.3.tar.gz
861f043ef931b6d256c76c45a7958e3fdaf4db2d50ec09c2881a3d9f73c14666693cb11fc5a1ebbe1957efdaed970af86b7b61f2a02302d7f67d0f6c3e4f2bee cacheline.patch"
From 2b8892fe2ca51ef0334b08babad0fa9d689087c0 Mon Sep 17 00:00:00 2001
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
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.10.0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment