diff options
author | cubethethird | 2018-11-16 23:57:22 -0500 |
---|---|---|
committer | cubethethird | 2018-11-16 23:57:22 -0500 |
commit | 4ddbab2cf38bcd76ab5e510d05756a1ec7fb73ac (patch) | |
tree | 2effef84d9b37fe6b51939096c4404e6406e428e | |
parent | 30cbe8f00b7e3b2cf1943b48169328502e5a8014 (diff) | |
download | aur-4ddbab2cf38bcd76ab5e510d05756a1ec7fb73ac.tar.gz |
Added patch to fix build issues.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 12 | ||||
-rw-r--r-- | sysmacros_h.patch | 37 |
3 files changed, 49 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = e4rat-lite-git pkgdesc = An improved version of e4rat, a toolset to accelerate the boot process and application startups. pkgver = 2.7.r87.0881c2e - pkgrel = 4 + pkgrel = 5 url = https://github.com/ShyPixie/e4rat-lite install = e4rat-lite-git.install arch = i686 @@ -24,9 +24,11 @@ pkgbase = e4rat-lite-git source = git://github.com/ShyPixie/e4rat-lite.git source = e4rat-lite-git.install source = e4rat-lite-git-update.hook + source = sysmacros_h.patch md5sums = SKIP md5sums = e0deb0fc92359da3a1970bbab467ffdf md5sums = b889cd20982a0d95fb694719174f5a11 + md5sums = d5fb93378ad2d9f887475ae30302192a pkgname = e4rat-lite-git @@ -5,7 +5,7 @@ _gitname=e4rat-lite pkgdesc="An improved version of e4rat, a toolset to accelerate the boot process and application startups." url=https://github.com/ShyPixie/$_gitname pkgver=2.7.r87.0881c2e -pkgrel=4 +pkgrel=5 arch=(i686 x86_64) license=('GPL3') @@ -18,11 +18,13 @@ conflicts=('ureadahead' 'e4rat-preload-lite' 'e4rat-preload-lite-git' 'e4rat-lit source=("git://github.com/ShyPixie/$_gitname.git" "$pkgname.install" - "e4rat-lite-git-update.hook") + "e4rat-lite-git-update.hook" + "sysmacros_h.patch") md5sums=('SKIP' 'e0deb0fc92359da3a1970bbab467ffdf' - 'b889cd20982a0d95fb694719174f5a11') + 'b889cd20982a0d95fb694719174f5a11' + 'd5fb93378ad2d9f887475ae30302192a') install=$pkgname.install backup=('etc/e4rat-lite.conf') @@ -44,6 +46,10 @@ prepare() { else mkdir build fi + + cd "$srcdir"/$_gitname + patch -p1 < ../sysmacros_h.patch + } build() { diff --git a/sysmacros_h.patch b/sysmacros_h.patch new file mode 100644 index 000000000000..b95bf0264534 --- /dev/null +++ b/sysmacros_h.patch @@ -0,0 +1,37 @@ +diff -Naur -b '--to-file=e4rat-lite-patched/src/' -x '*.o' -x '*.tu' e4rat-lite/src/device.cc e4rat-lite-patched/src/device.cc +--- e4rat-lite/src/device.cc 2018-09-20 19:40:39.823493172 +0530 ++++ e4rat-lite-patched/src/device.cc 2018-09-20 19:54:10.323375842 +0530 +@@ -32,6 +32,8 @@ + + #include <boost/lexical_cast.hpp> + ++#include <sys/sysmacros.h> ++ + #define BLOCKS_PER_GROUP(fs) (fs->super->s_blocks_per_group) + #define BLOCKS_PER_FLEX(fs) (BLOCKS_PER_GROUP(fs) << fs->super->s_log_groups_per_flex) + #define FREE_BLOCKS_PER_GROUP(fs) ( BLOCKS_PER_GROUP(fs) \ + +diff -Naur -b '--to-file=e4rat-lite-patched/src/' -x '*.o' -x '*.tu' e4rat-lite/src/e4rat-collect.cc e4rat-lite-patched/src/e4rat-collect.cc +--- e4rat-lite/src/e4rat-collect.cc 2018-09-20 19:40:39.823493172 +0530 ++++ e4rat-lite-patched/src/e4rat-collect.cc 2018-09-20 19:59:25.503867639 +0530 +@@ -48,6 +48,8 @@ + + #include <boost/foreach.hpp> + ++#include <sys/sysmacros.h> ++ + #define PID_FILE "/dev/.e4rat-lite-collect.pid" + #define MATCH(s, n) strcmp(section, s) == 0 && strcmp(name, n) == 0 + +diff -Naur -b '--to-file=e4rat-lite-patched/src/' -x '*.o' -x '*.tu' e4rat-lite/src/listener.cc e4rat-lite-patched/src/listener.cc +--- e4rat-lite/src/listener.cc 2018-09-20 19:40:39.826826547 +0530 ++++ e4rat-lite-patched/src/listener.cc 2018-09-20 20:04:09.833981860 +0530 +@@ -43,6 +43,8 @@ + + #include <fstream> + ++#include <sys/sysmacros.h> ++ + std::string getProcessName(pid_t pid) + { + std::string comm; |