Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 117713

Summary: [Patch] package.provided support is incomplete, due to /usr/local not being in the ebuild path
Product: Portage Development Reporter: foo banana <videoscreen>
Component: Core - DependenciesAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: blubb, creideiki+gentoo-bugzilla, videoscreen
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 115839    
Attachments: suggested patch

Description foo banana 2006-01-04 02:34:17 UTC
Packages using provided dependencies may not be emergable if the build script involves executing a file. For example, on my system, I installed Imlib2 manually in /usr/local, and then tried emerging libcaca. libcaca could not build because it could not find the file imlib2-config, installed as /usr/local/bin/imlib2-config. One possible solution is to add /usr/local to /usr/lib/portage/bin/ebuild.sh:

- export PATH="/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:${ROOTPATH}"
+ export PATH="/usr/local/sbin:/sbin:/usr/sbin:/usr/lib/portage/bin:/usr/local/bin:/bin:/usr/bin:${ROOTPATH}"
Comment 1 foo banana 2006-01-04 02:38:41 UTC
Created attachment 76143 [details, diff]
suggested patch
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2006-03-10 07:36:00 UTC
i'd actually change the order to PATH="/sbin:/usr/sbin:/usr/local/sbin:/usr/lib/portage/bin:/bin:/usr/bin:/usr/local/bin:${ROOTPATH}
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2006-04-06 12:29:41 UTC
this is rev 3082
Comment 4 Simon Stelling (RETIRED) gentoo-dev 2006-04-06 12:30:29 UTC
err, reopen since it's only fixed in trunk
Comment 5 Zac Medico gentoo-dev 2006-04-09 00:10:43 UTC
Released in 2.1_pre7-r5.