Package Details: e4rat 0.2.3-2

Git Clone URL: https://aur.archlinux.org/e4rat.git (read-only)
Package Base: e4rat
Description: Toolset to accelerate the boot process and application startups for systems with ext4 root partitions.
Upstream URL: http://e4rat.sourceforge.net/
Licenses: GPL
Submitter: swiftgeek
Maintainer: swiftgeek
Last Packager: swiftgeek
Votes: 36
Popularity: 0.000000
First Submitted: 2013-05-13 18:00
Last Updated: 2015-06-09 23:43

Latest Comments

1 2 3 Next › Last »

muhviehstarr commented on 2019-03-11 06:10

fix build patch:

--- PKGBUILD +++ PKGBUILD @@ -14,11 +14,15 @@ options=(!strip) backup=(etc/e4rat.conf) source=( "http://downloads.sourceforge.net/project/$pkgname/$pkgver/e4rat_${pkgver}_src.tar.gz" \ + 'sysmacros_h.patch' \ + 'logging.patch' \ 'boost-fs3-v2.patch' )

prepare () { cd "$srcdir/$pkgname-$pkgver" patch -p1 < "$srcdir/boost-fs3-v2.patch" + patch -p0 -i ../logging.patch + patch -p0 -i ../sysmacros_h.patch }

build() { @@ -36,4 +40,7 @@ install -dm755 "$pkgdir/var/lib/$pkgname" }

-sha256sums=('f6feda9618eff0f9442baf771b4776b634e5a2f39e678c10e4c7946b2c6a96a0' '9a9786d6167e4a47d1733735745b0eadeabf487886405df9e6771a28f3a20965') +sha256sums=('f6feda9618eff0f9442baf771b4776b634e5a2f39e678c10e4c7946b2c6a96a0' + 'ea35d1f7f8b6c4be9f20cc6ffbe72446dbdb6b99df450f29855a1cf9cf79362a' + 'd54959ea7fb0629de51f6b530ee72082863756bbe0b0b5af0965aa5ad9ac9739' + '9a9786d6167e4a47d1733735745b0eadeabf487886405df9e6771a28f3a20965') --- logging.patch +++ logging.patch @@ -0,0 +1,11 @@ +--- src/logging.hh ++++ src/logging.hh +@@ -93,7 +93,7 @@ + #define dump_log(...) logger.write(VA_ARGS) + + #ifdef DEBUG_ENABLED +- #define debug(format,args...) dump_log(Debug, "%s:%d in %s(): "format, FILE, LINE, FUNCTION, ## args) ++ #define debug(format, ...) logger.write(Debug, "%s:%d in %s(): " format, FILE, LINE, FUNCTION, ##VA_ARGS) + #else + #define debug(format,args...) + #endif --- sysmacros_h.patch +++ sysmacros_h.patch @@ -0,0 +1,62 @@ +diff -Naur -b '--to-file=e4rat-lite-patched/src/' -x '.o' -x '.tu' e4rat-lite/src/device.cc e4rat-lite-patched/src/device.cc +--- src/device.cc
++++ src/device.cc +@@ -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 +--- src/e4rat-collect.cc ++++ src/e4rat-collect.cc +@@ -45,6 +45,9 @@ + + #include <boost/foreach.hpp> + ++#include <sys/sysmacros.h> ++ ++ + #define PID_FILE "/dev/.e4rat-collect.pid" + + bool isAuditDaemonRunning() + +--- src/listener.cc ++++ src/listener.cc
+@@ -43,6 +43,8 @@ + + #include <fstream> + ++#include <sys/sysmacros.h> ++ + std::string getProcessName(pid_t pid) + { + std::string comm; +--- src/cmake/Findaudit.cmake ++++ src/cmake/Findaudit.cmake +@@ -1,7 +1,7 @@ + FIND_PATH(AUDIT_INCLUDE_DIR libaudit.h /usr/include + /usr/local/include) + +-FIND_LIBRARY(AUDIT_LIBRARY NAMES libaudit.a PATH /usr/lib /usr/local/lib) ++FIND_LIBRARY(AUDIT_LIBRARY NAMES audit PATH /usr/lib /usr/local/lib) + + IF (AUDIT_INCLUDE_DIR AND AUDIT_LIBRARY) + SET(AUDIT_FOUND TRUE) + +--- src/cmake/Findauparse.cmake
++++ src/cmake/Findauparse.cmake
+@@ -1,7 +1,7 @@ + FIND_PATH(AUPARSE_INCLUDE_DIR auparse.h /usr/include + /usr/local/include) + +-FIND_LIBRARY(AUPARSE_LIBRARY NAMES libauparse.a PATH /usr/lib /usr/local/lib) ++FIND_LIBRARY(AUPARSE_LIBRARY NAMES auparse PATH /usr/lib /usr/local/lib) + + IF (AUPARSE_INCLUDE_DIR AND AUPARSE_LIBRARY) + SET(AUPARSE_FOUND TRUE) +

takeshibaconsuzu commented on 2016-07-01 09:21

I had to modify the source. What I did was replace that problem line in logger.hh:
#define debug(format,args...) dump_log(Debug, "%s:%d in %s(): "format, __FILE__, __LINE__, __FUNCTION__, ## args)
with:
#define debug(format, ...) logger.write(Debug, "%s:%d in %s(): " format, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__)
and then did a makepkg -esri.

On a side note, when I first ran this, the startup.log file was blank. The easy solution was to follow cubethethird's advice and replace every occurence of:
Config::get<std::string>(“startup_log_file”).c_str()
with:
"/var/lib/e4rat/startup.log"
More information at https://cubethethird.wordpress.com/2016/04/02/reducing-boot-time/.

kozaki commented on 2016-06-12 17:24

Rebuilt audit with 'staticlibs' added in the 'options' array of the PKGBUILD, but e4rat still won't build. (context: I'd like to use it to further get close to a chromebook abilities out of my six year old netbook with good ol' spinning hdd :-} )
---
[ 28%] Built target e4rat-core
Scanning dependencies of target e4rat-collect
[ 33%] Building CXX object src/CMakeFiles/e4rat-collect.dir/e4rat-collect.cc.o
In file included from /data/system/build/x86/e4rat/src/e4rat-0.2.3/src/e4rat-collect.cc:24:0:
/data/system/build/x86/e4rat/src/e4rat-0.2.3/src/e4rat-collect.cc: In function ‘void scanOpenFiles(std::vector<FilePtr>&)’:
/data/system/build/x86/e4rat/src/e4rat-0.2.3/src/logging.hh:96:51: error: unable to find string literal operator ‘operator""format’ with ‘const char [16]’, ‘unsigned int’ arguments
#define debug(format,args...) dump_log(Debug, "%s:%d in %s(): "format, __FILE__, __LINE__, __FUNCTION__, ## args)
^
/data/system/build/x86/e4rat/src/e4rat-0.2.3/src/logging.hh:93:36: note: in definition of macro ‘dump_log’
#define dump_log(...) logger.write(__VA_ARGS__)
^~~~~~~~~~~
/data/system/build/x86/e4rat/src/e4rat-0.2.3/src/e4rat-collect.cc:107:5: note: in expansion of macro ‘debug’
debug("Scan open files by calling lsof");
^
src/CMakeFiles/e4rat-collect.dir/build.make:62: recipe for target 'src/CMakeFiles/e4rat-collect.dir/e4rat-collect.cc.o' failed
make[2]: *** [src/CMakeFiles/e4rat-collect.dir/e4rat-collect.cc.o] Error 1
CMakeFiles/Makefile2:123: recipe for target 'src/CMakeFiles/e4rat-collect.dir/all' failed
make[1]: *** [src/CMakeFiles/e4rat-collect.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build e4rat.
==> Restart building e4rat ? [y/N]
==> ------------------------------

beardedlinuxgeek commented on 2016-03-30 18:14

Look at this comment: https://bbs.archlinux.org/viewtopic.php?pid=1603933#p1603933

They say you should not edit /etc/makepkg.conf like dokie80 said. Instead just edit the PKGBUILD for audit.

Anonymous comment on 2015-11-29 04:32

sorry nvm.. this post is very helpfull : https://bbs.archlinux.org/viewtopic.php?pid=1358066

- change "!staticlibs" to "staticlibs" in /etc/makepkg.conf
- install abs = sudo pacman -S abs
- run abs to generate file tree
- navigate to /var/abs/community/audit, copy the folder "audit" to other place ie. home folder
- navigate to ~/audit
- run "makepkg", will generate a file with .tar.xz extension.
- run "sudo pacman -U ~/audit/audit-2.4.4-1-i686.pkg.tar.xz" (file name maybe different if there's update)
- try install e4rat again

hope this help other noob like me.

Anonymous comment on 2015-11-29 03:41

can you please describe how to rebuild audit (read it from wiki) for e4rat to work?

swiftgeek commented on 2014-09-08 09:10

Read ArchWiki about abs and PKGBUILDs -.-

avkonarev commented on 2014-09-08 07:37

ref http://www.opendevs.org/kmvkk/staticlibs-in-pkgbuild.html is broken..
please, how recompile audit package with staticlibs option

parchd commented on 2014-02-21 14:08

Sorry, forget it. No idea what happened but I reinstalled the deps and tried again, now everything worked fine. Third times a charm ;)

parchd commented on 2014-02-21 14:00

My build fails, can anyone help me figure out why?

Scanning dependencies of target ManPages
[ 82%] Generating e4rat-collect.8
doc/CMakeFiles/ManPages.dir/build.make:52: recipe for target 'doc/e4rat-collect.8' failed
CMakeFiles/Makefile2:270: recipe for target 'doc/CMakeFiles/ManPages.dir/all' failed
Makefile:116: recipe for target 'all' failed