Let's just say I'm very upset right now because I cannot emerge ebuilds which use eutils such as epatch. Basically, when I run emerge on an ebuild it is unable to apply the patches because of "command not found" errors.
For instance:
bash-2.05b# emerge grep
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/grep-2.5.1-r6 to /
>>> md5 src_uri
>>> Unpacking source...
>>> Unpacking grep-2.5.1.tar.gz to /var/tmp/portage/grep-2.5.1-r6/work
/usr/sbin/ebuild.sh: line 30: epatch: command not found
/usr/sbin/ebuild.sh: line 35: epatch: command not found
/usr/sbin/ebuild.sh: line 39: epatch: command not found
/usr/sbin/ebuild.sh: line 40: epatch: command not found
/usr/sbin/ebuild.sh: line 41: epatch: command not found
/usr/sbin/ebuild.sh: line 42: epatch: command not found
* Using GNU config files from /usr/share/libtool
* Updating config.sub [ ok ] * Updating config.guess [ ok ]>>> Source unpacked.
It's able to emerge grep even though it can't apply the patches, but with some programs, it is unable to complete the emerge (ncurses for example). The other day I recompiled openoffice-ximian, and I was shocked to see that it simply compiled openoffice without any of the ximain patches.
So yes... I cannot understand why this is happening. I may have somehow screwed up portage, but everything seems to be in the right place.
in the /usr/sbin directory (exerpt of ls -laF)
lrwxrwxrwx 1 root root 25 Sep 24 13:47 /usr/sbin/ebuild -> ../lib/portage/bin/ebuild*
lrwxrwxrwx 1 root root 28 Sep 24 13:47 /usr/sbin/ebuild.sh -> ../lib/portage/bin/ebuild.sh*
and in the /usr/lib/portage/bin/ directory
-rwxr-xr-x 1 root root 3290 Sep 24 13:47 /usr/lib/portage/bin/archive-conf*
-rwxr-xr-x 1 root root 2453 Sep 24 13:47 /usr/lib/portage/bin/chkcontents*
-rwxr-xr-x 1 root root 1807 Sep 24 13:47 /usr/lib/portage/bin/db-update.py*
-rwxr-xr-x 1 root root 9692 Sep 24 13:47 /usr/lib/portage/bin/dispatch-conf*
-rwxr-xr-x 1 root root 10838 Sep 24 13:47 /usr/lib/portage/bin/dispatch-conf-dialog*
-rwxr-xr-x 1 root root 981 Sep 24 13:47 /usr/lib/portage/bin/dobin*
-rwxr-xr-x 1 root root 433 Sep 24 13:47 /usr/lib/portage/bin/doconfd*
-rwxr-xr-x 1 root root 284 Sep 24 13:47 /usr/lib/portage/bin/dodir*
-rwxr-xr-x 1 root root 688 Sep 24 13:47 /usr/lib/portage/bin/dodoc*
-rwxr-xr-x 1 root root 431 Sep 24 13:47 /usr/lib/portage/bin/doenvd*
-rwxr-xr-x 1 root root 973 Sep 24 13:47 /usr/lib/portage/bin/doexe*
-rwxr-xr-x 1 root root 360 Sep 24 13:47 /usr/lib/portage/bin/dohard*
-rwxr-xr-x 1 root root 2981 Sep 24 13:47 /usr/lib/portage/bin/dohtml*
-rwxr-xr-x 1 root root 566 Sep 24 13:47 /usr/lib/portage/bin/doinfo*
-rwxr-xr-x 1 root root 433 Sep 24 13:47 /usr/lib/portage/bin/doinitd*
-rwxr-xr-x 1 root root 646 Sep 24 13:47 /usr/lib/portage/bin/doins*
-rwxr-xr-x 1 root root 1620 Sep 24 13:47 /usr/lib/portage/bin/dojar*
-rwxr-xr-x 1 root root 413 Sep 24 13:47 /usr/lib/portage/bin/dolib*
-rwxr-xr-x 1 root root 523 Sep 24 13:47 /usr/lib/portage/bin/dolib.a*
-rwxr-xr-x 1 root root 773 Sep 24 13:47 /usr/lib/portage/bin/dolib.so*
-rwxr-xr-x 1 root root 1461 Sep 24 13:47 /usr/lib/portage/bin/doman*
-rwxr-xr-x 1 root root 704 Sep 24 13:47 /usr/lib/portage/bin/domo*
lrwxrwxrwx 1 root root 6 Sep 24 13:47 /usr/lib/portage/bin/donewins -> newins*
-rwxr-xr-x 1 root root 597 Sep 24 13:47 /usr/lib/portage/bin/dopython*
-rwxr-xr-x 1 root root 988 Sep 24 13:47 /usr/lib/portage/bin/dosbin*
-rwxr-xr-x 1 root root 506 Sep 24 13:47 /usr/lib/portage/bin/dosed*
-rwxr-xr-x 1 root root 363 Sep 24 13:47 /usr/lib/portage/bin/dosym*
-rwxr-xr-x 1 root root 1100 Sep 24 13:47 /usr/lib/portage/bin/ebuild*
-rwxr-xr-x 1 root root 36567 Sep 24 13:47 /usr/lib/portage/bin/ebuild.sh*
-rwxr-xr-x 1 root root 679 Sep 24 13:47 /usr/lib/portage/bin/emake*
-rwxr-xr-x 1 root root 87918 Sep 24 13:47 /usr/lib/portage/bin/emerge*
-rwxr-xr-x 1 root root 1698 Sep 24 13:47 /usr/lib/portage/bin/emerge-webrsync*-rwxr-xr-x 1 root root 22604 Sep 24 13:47 /usr/lib/portage/bin/emergehelp.py*
-rwxr-xr-x 1 root root 377 Sep 24 13:47 /usr/lib/portage/bin/env-update*
-rwxr-xr-x 1 root root 10271 Sep 24 13:47 /usr/lib/portage/bin/etc-update*
-rwxr-xr-x 1 root root 1440 Sep 24 13:47 /usr/lib/portage/bin/find-requires*
-rwxr-xr-x 1 root root 4484 Sep 24 13:47 /usr/lib/portage/bin/fix-db.py*
-rwxr-xr-x 1 root root 522 Sep 24 13:47 /usr/lib/portage/bin/fixdbentries*
-rwxr-xr-x 1 root root 380 Sep 24 13:47 /usr/lib/portage/bin/fixpackages*
-rwxr-xr-x 1 root root 4245 Sep 24 13:47 /usr/lib/portage/bin/fixvardbentries*-rwxr-xr-x 1 root root 831 Sep 24 13:47 /usr/lib/portage/bin/fixvirtuals*
-rwxr-xr-x 1 root root 381 Sep 24 13:47 /usr/lib/portage/bin/fowners*
-rwxr-xr-x 1 root root 378 Sep 24 13:47 /usr/lib/portage/bin/fperms*
-rwxr-xr-x 1 root root 11207 Sep 24 13:47 /usr/lib/portage/bin/g-cpan.pl*
-rwxr-xr-x 1 root root 2572 Sep 24 13:47 /usr/lib/portage/bin/md5check.py*
-rwxr-xr-x 1 root root 828 Sep 24 13:47 /usr/lib/portage/bin/md5check.sh*
-rwxr-xr-x 1 root root 3980 Sep 24 13:47 /usr/lib/portage/bin/mirror.py*
-rwxr-xr-x 1 root root 367 Sep 24 13:47 /usr/lib/portage/bin/newbin*
-rwxr-xr-x 1 root root 371 Sep 24 13:47 /usr/lib/portage/bin/newconfd*
-rwxr-xr-x 1 root root 367 Sep 24 13:47 /usr/lib/portage/bin/newdoc*
-rwxr-xr-x 1 root root 369 Sep 24 13:47 /usr/lib/portage/bin/newenvd*
-rwxr-xr-x 1 root root 367 Sep 24 13:47 /usr/lib/portage/bin/newexe*
-rwxr-xr-x 1 root root 371 Sep 24 13:47 /usr/lib/portage/bin/newinitd*
-rwxr-xr-x 1 root root 374 Sep 24 13:47 /usr/lib/portage/bin/newins*
-rwxr-xr-x 1 root root 378 Sep 24 13:47 /usr/lib/portage/bin/newlib.a*
-rwxr-xr-x 1 root root 380 Sep 24 13:47 /usr/lib/portage/bin/newlib.so*
-rwxr-xr-x 1 root root 367 Sep 24 13:47 /usr/lib/portage/bin/newman*
-rwxr-xr-x 1 root root 369 Sep 24 13:47 /usr/lib/portage/bin/newsbin*
-rwxr-xr-x 1 root root 1764 Sep 24 13:47 /usr/lib/portage/bin/pkgmerge*
-rwxr-xr-x 1 root root 2311 Sep 24 13:47 /usr/lib/portage/bin/pkgmerge.new*
-rwxr-xr-x 1 root root 445 Sep 24 13:47 /usr/lib/portage/bin/pkgname*
lrwxrwxrwx 1 root root 5 Sep 24 13:47 /usr/lib/portage/bin/pmake -> emake*
-rwxr-xr-x 1 root root 6133 Sep 24 13:47 /usr/lib/portage/bin/portageq*
-rwxr-xr-x 1 root root 1017 Sep 24 13:47 /usr/lib/portage/bin/prepall*
-rwxr-xr-x 1 root root 869 Sep 24 13:47 /usr/lib/portage/bin/prepalldocs*
-rwxr-xr-x 1 root root 292 Sep 24 13:47 /usr/lib/portage/bin/prepallinfo*
-rwxr-xr-x 1 root root 428 Sep 24 13:47 /usr/lib/portage/bin/prepallman*
-rwxr-xr-x 1 root root 382 Sep 24 13:47 /usr/lib/portage/bin/prepallstrip*
-rwxr-xr-x 1 root root 1059 Sep 24 13:47 /usr/lib/portage/bin/prepinfo*
-rwxr-xr-x 1 root root 339 Sep 24 13:47 /usr/lib/portage/bin/preplib*
-rwxr-xr-x 1 root root 762 Sep 24 13:47 /usr/lib/portage/bin/preplib.so*
-rwxr-xr-x 1 root root 1017 Sep 24 13:47 /usr/lib/portage/bin/prepman*
-rwxr-xr-x 1 root root 1726 Sep 24 13:47 /usr/lib/portage/bin/prepstrip*
-rwxr-xr-x 1 root root 1398 Sep 24 13:47 /usr/lib/portage/bin/queryhost.sh*
-rwxr-xr-x 1 root root 3913 Sep 24 13:47 /usr/lib/portage/bin/quickpkg*
-rwxr-xr-x 1 root root 2269 Sep 24 13:47 /usr/lib/portage/bin/regenworld*
-rwxr-xr-x 1 root root 41235 Sep 24 13:47 /usr/lib/portage/bin/repoman*
-rwxr-xr-x 1 root root 25676 Sep 24 13:47 /usr/lib/portage/bin/sandbox*
-rwxr-xr-x 1 root root 6456 Sep 24 13:47 /usr/lib/portage/bin/tbz2tool*
-rwxr-xr-x 1 root root 412 Sep 24 13:47 /usr/lib/portage/bin/xpak*
now in terms of ebuild.sh:
# $Header: /home/cvsroot/gentoo-src/portage/bin/ebuild.sh,v 1.154 2004/02/04 22:40:21 carpaski Exp $
ebuild.sh has no hits when a search is conducted for epatch... is this correct?
Yeah, so I've tried pretty much everything, and I'm now stuck between a rock and a hard place since the logical thing to do would be to re-emerge a bunch of packages to see if that fixes things, but that's not really possible to do when the packages aren't getting emerged properly because of lack of eutils funcionality.
Help!
I can provide whatever further information is needed in solving the problem. I'll be checking the board every hour or so. Thanks again for your help. Any ideas would be helpful.
Mark


