Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 127010
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Christian Faulhammer <fauli@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: José Romildo Malaquias <j.romildo@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
mlocate-0.14.ebuild mlocate-0.14.ebuild text/plain José Romildo Malaquias 2006-03-21 06:21 0000 1.09 KB Details
updatedb.conf files/updatedb.conf text/plain José Romildo Malaquias 2006-03-21 06:22 0000 567 bytes Details
slocate.cron files/slocate.cron text/plain José Romildo Malaquias 2006-03-21 06:23 0000 152 bytes Details
mlocate-0.17-build.log build.log (tests failing) text/plain Santiago M. Mola 2007-05-21 21:37 0000 26.18 KB Details
testsuite.log testsuite.log text/plain Santiago M. Mola 2007-05-21 21:38 0000 66.00 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 127010 depends on: Show dependency tree
Bug 127010 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-03-20 13:56 0000
Please, add mlocate to portage.

http://carolina.mff.cuni.cz/~trmac/blog/mlocate/

"mlocate is a new locate implementation. The 

------- Comment #1 From José Romildo Malaquias 2006-03-20 13:56:54 0000 -------
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."

------- Comment #2 From Jakub Moc (RETIRED) 2006-03-20 14:00:06 0000 -------
Hmmm, have you tried sys-apps/rlocate?

------- Comment #3 From José Romildo Malaquias 2006-03-21 06:14:36 0000 -------
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.

------- Comment #4 From José Romildo Malaquias 2006-03-21 06:21:34 0000 -------
Created an attachment (id=82776) [details]
mlocate-0.14.ebuild

My ebuild for sys-apps/mlocate-0.14.

------- Comment #5 From José Romildo Malaquias 2006-03-21 06:22:41 0000 -------
Created an attachment (id=82777) [details]
files/updatedb.conf

Needed by my mlocate ebuild.

------- Comment #6 From José Romildo Malaquias 2006-03-21 06:23:15 0000 -------
Created an attachment (id=82778) [details]
files/slocate.cron

Needed by my mlocate ebuild

------- Comment #7 From Jakub Moc (RETIRED) 2007-01-11 11:31:18 0000 -------
*** Bug 161506 has been marked as a duplicate of this bug. ***

------- Comment #8 From Christian Faulhammer 2007-05-20 06:58:55 0000 -------
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

------- Comment #9 From Jakub Moc (RETIRED) 2007-05-20 16:14:35 0000 -------
*** Bug 179234 has been marked as a duplicate of this bug. ***

------- Comment #10 From Santiago M. Mola 2007-05-21 21:36:27 0000 -------
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

------- Comment #11 From Santiago M. Mola 2007-05-21 21:37:20 0000 -------
Created an attachment (id=119935) [details]
build.log (tests failing)

build.log for mlocate-0.17.

------- Comment #12 From Santiago M. Mola 2007-05-21 21:38:19 0000 -------
Created an attachment (id=119937) [details]
testsuite.log

extended info about tests...

------- Comment #13 From Michał Kiedrowicz 2007-05-27 13:36:00 0000 -------
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 ...
> PATH LENGTH  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 @@
> +PATH LENGTH  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

------- Comment #14 From Christian Faulhammer 2007-05-29 06:57:38 0000 -------
(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.

------- Comment #15 From Michał Kiedrowicz 2007-05-29 12:27:04 0000 -------
(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.

------- Comment #16 From Sergey Belyashov 2007-07-06 07:19:48 0000 -------
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

------- Comment #17 From Christian Faulhammer 2007-07-06 17:42:09 0000 -------
(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.

------- Comment #18 From SpanKY 2007-07-07 22:22:47 0000 -------
that's fine

------- Comment #19 From Christian Faulhammer 2007-07-08 10:25:55 0000 -------
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.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug