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

Bug 294651

Summary: [Tracker] Packages using ${EDITOR} at build time
Product: Gentoo Linux Reporter: Ulrich Müller <ulm>
Component: New packagesAssignee: Ulrich Müller <ulm>
Status: RESOLVED FIXED    
Severity: normal CC: flameeyes
Priority: High Keywords: Tracker
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 286017, 294759, 294760, 294762, 294764, 294766    
Bug Blocks:    

Description Ulrich Müller gentoo-dev 2009-11-25 22:26:10 UTC
Some packages are doing things like "econf --with-editor=${EDITOR}", thus creating an implicit (i.e. missing from RDEPEND) dependency on the ${EDITOR} package. If that editor package is later removed, or for binpkgs installed on another system, breakage will result.

Solution: There is now a package app-editors/gentoo-editor. This will install an auxiliary /usr/libexec/gentoo-editor script that calls ${EDITOR} (determined from the environment or from the system profile) at run time.

Necessary ebuild changes:
- Add app-editors/gentoo-editor to {,R}DEPEND.
- Specify /usr/libexec/gentoo-editor instead of ${EDITOR}.

See >=app-admin/sudo-1.7.2_p1-r1 for an example ebuild.
Comment 1 Ulrich Müller gentoo-dev 2010-10-11 20:12:45 UTC
Looks like all blocking bugs have been fixed. Closing.