during the last phase of emerging db-4.2.52_p2 i see these warnings coming from find: find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments. i dont know if this is portage problem or db's ebuild error ? emerge info: Portage 2.0.51.22 (default-linux/x86/2005.0/2.4, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.4.28-gentoo-r3 i686) ================================================================= System uname: 2.4.28-gentoo-r3 i686 Celeron (Mendocino) Gentoo Base System version 1.6.12 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r9 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-pipe -march=pentium2 -O3 -fstack-protector" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-pipe -march=pentium2 -O3 -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distcc distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.mirror.solnet.ch http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://trumpetti.atm.tut.fi/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home/portagetmp" PORTDIR="/usr/portage" SYNC="rsync://1g.compfort.com.pl/gentoo-portage" USE="x86 alsa apm arts avi berkdb bitmap-fonts caps chroot clearpasswd crypt cups curl elf emboss encode foomaticdb gd gif gpm hardened imlib kde libg++ libwww mad mbox mikmod minimal motif mp3 mpeg ncurses oggvorbis opengl oss pam pam_chroot pam_timestamp pdflib perl png pwdb python qt quicktime readline sdl sendfile sftplogging snmp ssl svga tcpd threads truetype-fonts type1-fonts xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
these warnings are in many ebuilds, actually.
portage/bin $ grep find * | grep maxdepth | grep type prepinfo:for x in `find "${z}"/ \( -type f -or -type l \) -maxdepth 1 -mindepth 1 2>/dev/null` ; do prepman: for y in `find "${x}"/ \( -type f -or -type l \) ! -name '.keep' -maxdepth 1 -mindepth 1 2>/dev/null` ; do So how should these be written?
how about placing 'min/maxdepth' options before 'type' as find suggests?
Fixed on or before 2.0.51.22-r1
Looking through the batch of bugs, I'm not sure that some of these are actually fixed in stable. Others, the requirements have possibly changed after the initial fix was committed. If you think this bug has been closed incorrectly, please reopen or ask that it be reopened.