thin-provisioning-tools: update to 0.8.0.

This commit is contained in:
maxice8 2019-04-18 16:16:01 -03:00
parent 2ff5e4dd5e
commit 8f71364c2b
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
2 changed files with 3 additions and 45 deletions

View file

@ -1,42 +0,0 @@
--- block-cache/io_engine.h.orig 2017-03-27 15:00:54.000000000 +0200
+++ block-cache/io_engine.h 2017-06-13 23:49:37.403053236 +0200
@@ -10,13 +10,17 @@
#include <libaio.h>
#include <vector>
+#include <limits.h>
+#ifndef PAGE_SIZE
+#define PAGE_SIZE sysconf(_SC_PAGE_SIZE)
+#endif
+
//----------------------------------------------------------------
namespace bcache {
using sector_t = uint64_t;
unsigned const SECTOR_SHIFT = 9;
- unsigned const PAGE_SIZE = 4096;
// Virtual base class to aid unit testing
class io_engine {
--- unit-tests/io_engine_t.cc.orig 2017-03-27 15:00:54.000000000 +0200
+++ unit-tests/io_engine_t.cc 2017-06-13 23:58:17.674546348 +0200
@@ -23,6 +23,10 @@
#include <fcntl.h>
+#include <limits.h>
+#ifndef PAGE_SIZE
+#define PAGE_SIZE sysconf(_SC_PAGE_SIZE)
+#endif
using namespace boost;
using namespace std;
@@ -33,7 +37,6 @@
namespace {
unsigned const MAX_IO = 64;
- unsigned const PAGE_SIZE = 4096;
class IOEngineTests : public Test {
public:

View file

@ -1,7 +1,7 @@
# Template file for 'thin-provisioning-tools'
pkgname=thin-provisioning-tools
version=0.7.6
revision=2
version=0.8.0
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="boost-devel expat-devel libaio-devel"
@ -10,7 +10,7 @@ maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/jthornber/thin-provisioning-tools"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=491358c1406414ab3f06b260bd9da8a2f9109c4c426dda899d4d985860dfc01f
checksum=af4288954303af2fc39684ba7dbe9ff1683ed51c3290649a472a2f3adffebba5
pre_configure() {
autoreconf -fi