Please, add mlocate to portage. http://carolina.mff.cuni.cz/~trmac/blog/mlocate/ "mlocate is a new locate implementation. The
Please, add mlocate to portage. http://carolina.mff.cuni.cz/~trmac/blog/mlocate/ "mlocate is a new locate implementation. The m stands for merging: updatedb reuses the existing database to avoid rereading most of the file system, which makes updatedb faster and does not trash the system caches as much."
Hmmm, have you tried sys-apps/rlocate?
I have not tried rlocate, but it seems to have many restrictions on the kernel. Maybe I will try it soon. mlocate should be really faster than slocate, and does not require kernel modules. So I think it would be nice to have in portage. It also is the new locate replacement on Fedora Core 5.
Created attachment 82776 [details] mlocate-0.14.ebuild My ebuild for sys-apps/mlocate-0.14.
Created attachment 82777 [details] files/updatedb.conf Needed by my mlocate ebuild.
Created attachment 82778 [details] files/slocate.cron Needed by my mlocate ebuild
*** Bug 161506 has been marked as a duplicate of this bug. ***
This is now in the sunrise overlay. You can find it at: http://overlays.gentoo.org/svn/proj/sunrise/reviewed/sys-apps/mlocate/ I bumped version 0.17 and cleaned the ebuild a bit. Eventually I will bring it into Portage together with base-system
*** Bug 179234 has been marked as a duplicate of this bug. ***
mlocate-0.17 (the latest revision in sunrise) fails test on my two machines. I'll attach the info of my stable x86 machine. emerge --info -------------------------------------------------------------- Portage 2.1.2.7 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r2, 2.6.20-gentoo-r7 i686) ================================================================= System uname: 2.6.20-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System release 1.12.9 Timestamp of tree: Mon, 21 May 2007 19:00:09 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test" GENTOO_MIRRORS="http://ftp.caliu.info/gentoo/ http://distfiles.gentoo.org" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa amuled apache2 avi bash-completion berkdb bitmap-fonts bzip2 cairo ccache cdr cdrom cli cracklib crosscompile crypt cscope cups curl d dbus dri dvd dvdr emboss encode es fam firefox foomaticdb fortran gd gdbm gif gimp gimpprint glibc-omitfp gpm grammar graphviz gstreamer gtalk gtk gtk2 gzip hal haskell howl i8x0 icecast iconv imagemagick imlib2 irc irssi jabber jpeg jpeg2k lame ldap libg++ lighttpd logrotate mad matroska mbox midi mikmod mmx mng mp3 mp4 mpeg mplayer mudflap musepack musicbrainz mysql ncurses network nfs nls nntp nptl nptlonly octave ogg on-the-fly-crypt openal opengl openmp openssl pam pcre pda pdflib perl php png ppds pppd python quicktime readline recode reflection remote samba scanner scp screen session silc slang slp sms smtp sockets socks5 softmmu spell spl sse sse2 ssl subversion svg svgz svn-mirror tcl tcpd test tga tiff tk transcode truetype truetype-fonts type1-fonts unicode usb vfat vim vorbis win32codecs winbind wma x264 x86 xml xmlrpc xorg xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga nv" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 119935 [details] build.log (tests failing) build.log for mlocate-0.17.
Created attachment 119937 [details] testsuite.log extended info about tests...
I also tested mlocate and have exactly the same fails. So I've sent testsuite.log to Miloslav Trmac and here's his reply: Hello, Thanks for your report. Michał Kiedrowicz napsal(a): > 34. updatedb.at:82: testing ... > updatedb.at:94: updatedb -U "$(pwd)/d" -o db -l 0 > updatedb.at:96: locate -d db / | sed "s,^$(pwd)/,," > --- - 2007-05-23 14:18:28.652234211 +0200 > +++ /var/tmp/portage/sys-apps/mlocate-0.17/work/mlocate-0.17/testsuite.dir/at-stdout 2007-05-23 14:18:28.000000000 +0200 > @@ -15,8 +15,20 @@ > d/f500 > d/f600 > d/f700 > +d/d000/d > +d/d000/d/f > +d/d100/d > +d/d100/d/f > +d/d200/d > +d/d200/d/f > +d/d300/d > +d/d300/d/f > +d/d400/d > +d/d400/d/f > d/d500/d > d/d500/d/f > +d/d600/d > +d/d600/d/f > d/d700/d > d/d700/d/f > > 34. updatedb.at:82: 34. updatedb: Permissions (updatedb.at:82): FAILED (updatedb.at:96) This failure happens because you are running the test suite as root. That makes it impossible to check permissions are honored. > 38. updatedb.at:239: testing ... > [33;01mPATH LENGTH[0m mkdir: depth116-abcdefghijklmnopqrstuvwxyz <snip> > updatedb.at:258: updatedb -U "$(pwd)/d" -o db -l 0 > --- /dev/null 2007-05-23 16:03:37.747428458 +0200 > +++ /var/tmp/portage/sys-apps/mlocate-0.17/work/mlocate-0.17/testsuite.dir/at-stderr 2007-05-23 14:18:36.000000000 +0200 > @@ -0,0 +1 @@ > +[33;01mPATH LENGTH[0m open_rd: . > 38. updatedb.at:239: 38. updatedb: Very deep hierarchy (updatedb.at:239): FAILED (updatedb.at:258) Gentoo's sandbox is printing unexpected error messages. If the sandbox is supposed to be transparent, it should not print them. > 39. updatedb.at:266: testing ... > updatedb.at:272: updatedb -U "$(pwd)/d" -o out/db -l 0 > --- experr 2007-05-23 14:18:36.000000000 +0200 > +++ /var/tmp/portage/sys-apps/mlocate-0.17/work/mlocate-0.17/testsuite.dir/at-stderr 2007-05-23 14:18:36.000000000 +0200 > @@ -1 +0,0 @@ > -updatedb: can not open a temporary file for `/var/tmp/portage/sys-apps/mlocate-0.17/work/mlocate-0.17/testsuite.dir/39/out/db' > updatedb.at:272: exit code was 0, expected 1 > 39. updatedb.at:266: 39. updatedb: Output creation (updatedb.at:266): FAILED (updatedb.at:272) This is caused by running the test suite as root, as well. Mirek
(In reply to comment #13) > I also tested mlocate and have exactly the same fails. So I've sent > testsuite.log to Miloslav Trmac and here's his reply: Great. I planned working on the test suite today, but you helped me a lot. Tests are passed here when I activate FEATURES=userpriv in make.conf (or on the command line). There will a check added to the ebuild in Sunrise to start testsuite only, when those FEATURES are activated.
(In reply to comment #14) > Great. I planned working on the test suite today, but you helped me a lot. > Tests are passed here when I activate FEATURES=userpriv in make.conf (or on the > command line). There will a check added to the ebuild in Sunrise to start > testsuite only, when those FEATURES are activated. > Test 38 still fails if "usersandbox" feature is active. This is because setting "userpriv" disables sandbox.
May be it is good idea to move mlocate to portage from overlay? mlocate supports ignore-case of non-ascii symbols in utf8 encoding unlike slocate and rlocate
(In reply to comment #16) > May be it is good idea to move mlocate to portage from overlay? mlocate > supports ignore-case of non-ascii symbols in utf8 encoding unlike slocate and > rlocate Ok...base-system are you ok to be added in metadata.xml? I will be maintainer, but would like to have it in a herd, too.
that's fine
In Portage now. If you want amd64 KEYWORDS, file a bug. The arch team for amd64 will take care of it. Thanks for the contributions and patience. Closing.