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: 41
Popularity: 0.238068
First Submitted: 2013-05-13 18:00
Last Updated: 2015-06-09 23:43

Dependencies (5)

Required by (0)

Sources (2)

Latest Comments

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.

dokie80 commented 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.

dokie80 commented 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 -.-

kale-ru 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

swiftgeek commented on 2013-11-30 12:29

http://www.opendevs.org/kmvkk/staticlibs-in-pkgbuild.html
You need to recompile audit package with staticlibs option, thanks to new policies :<

At least It's only needed once since e4rat isn't developed anymore and it's static ;)

(This package has far to low amount of votes to go back into community or extra)

All comments