Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Inexplicable portage / ebuild.sh / eutils / epatch problem

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
synodontis
n00b
n00b
Posts: 4
Joined: Fri Sep 24, 2004 6:09 pm

Inexplicable portage / ebuild.sh / eutils / epatch problem

  • Quote

Post by synodontis » Fri Sep 24, 2004 6:30 pm

Hello everyone,
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 ;-) grep-2.5.1.tar.gz
>>> 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
Top
Pythonhead
Developer
Developer
User avatar
Posts: 1801
Joined: Mon Dec 16, 2002 6:30 pm
Location: Redondo Beach, Republic of Calif.
Contact:
Contact Pythonhead
Website

  • Quote

Post by Pythonhead » Fri Sep 24, 2004 6:34 pm

I guess you've tried simply re-emerging portage, if so, have you tried this?

/usr/portage/sys-apps/portage/files/README.RESCUE
Last edited by Pythonhead on Fri Sep 24, 2004 6:56 pm, edited 1 time in total.
Top
synodontis
n00b
n00b
Posts: 4
Joined: Fri Sep 24, 2004 6:09 pm

  • Quote

Post by synodontis » Fri Sep 24, 2004 6:38 pm

Yup, I tried reemerging portage from the normal and ~86 branches. I'm going to read the recovery readme file now. Thanks for pointing that out.

Mark
Top
synodontis
n00b
n00b
Posts: 4
Joined: Fri Sep 24, 2004 6:09 pm

  • Quote

Post by synodontis » Fri Sep 24, 2004 6:58 pm

I take it that it's not normal for emerge sync to give a "failed cache update" message for every package when following the portage recovery instructions. I don't know if this is a separate issue, but yeah -- after the recovery process, portage was not fixed :/. Thanks for the idea though.

Any other ideas, anyone? Does anyone know how to fix the cache update problem, or know if it's related to the ebuild / epatch problem?


Thanks,
Mark

PS I'll reply quickly if you need more info
Top
Halcy0n
Developer
Developer
User avatar
Posts: 1682
Joined: Wed Sep 17, 2003 5:09 am
Location: Freehold, NJ
Contact:
Contact Halcy0n
Website

  • Quote

Post by Halcy0n » Fri Sep 24, 2004 7:22 pm

You try wiping out your entire portage tree and resyncing?

Code: Select all

mv /usr/portage /usr/portage-backup
emerge-webrsync
Just move it first incase you screw anything up, you can always rm it later. You can `emerge sync' after that finishes, but you'll have a portage snapshot which should be relatively new to try again.
Mark Loeser
http://www.halcy0n.com
Top
irish
n00b
n00b
Posts: 10
Joined: Thu Sep 23, 2004 7:19 pm

  • Quote

Post by irish » Fri Sep 24, 2004 8:28 pm

I just tried this emergency repair, but it's broken it worse I think.
Before I just had a missing symbol in libsandbox, now I get this:
/usr/bin/python: error while loading shared libraries: libpython2.3.so.1.0: cannot open shared object file: No such file or directory

I think it's well and truely borked, what can I try now, a binary python install!?
Top
synodontis
n00b
n00b
Posts: 4
Joined: Fri Sep 24, 2004 6:09 pm

  • Quote

Post by synodontis » Fri Sep 24, 2004 9:08 pm

Thanks HaLCy0n, and everyone else who read the message and tried to help!
I wiped the portage tree and resynced, and now everything is back to normal. Irish, did you have the same problem as I did?

Mark :P
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Fri Sep 24, 2004 10:29 pm

epatch is no longer provided by portage, only by the eutils eclass.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic