mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
thin-provisioning-tools: update to 0.8.0.
This commit is contained in:
parent
2ff5e4dd5e
commit
8f71364c2b
2 changed files with 3 additions and 45 deletions
|
@ -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:
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'thin-provisioning-tools'
|
# Template file for 'thin-provisioning-tools'
|
||||||
pkgname=thin-provisioning-tools
|
pkgname=thin-provisioning-tools
|
||||||
version=0.7.6
|
version=0.8.0
|
||||||
revision=2
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="automake libtool pkg-config"
|
hostmakedepends="automake libtool pkg-config"
|
||||||
makedepends="boost-devel expat-devel libaio-devel"
|
makedepends="boost-devel expat-devel libaio-devel"
|
||||||
|
@ -10,7 +10,7 @@ maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
homepage="https://github.com/jthornber/thin-provisioning-tools"
|
homepage="https://github.com/jthornber/thin-provisioning-tools"
|
||||||
distfiles="${homepage}/archive/v${version}.tar.gz"
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
||||||
checksum=491358c1406414ab3f06b260bd9da8a2f9109c4c426dda899d4d985860dfc01f
|
checksum=af4288954303af2fc39684ba7dbe9ff1683ed51c3290649a472a2f3adffebba5
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue