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

Bug 796245

Summary: [Future EAPI] Allow calling EXPORT_FUNCTIONS with arbitrary/custom functions
Product: Gentoo Hosted Projects Reporter: Michał Górny <mgorny>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Status: CONFIRMED ---    
Severity: normal CC: pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-06-15 18:16:39 UTC
I don't think we really have any technical reason to restrict EXPORT_FUNCTIONS to the standard phase functions defined by EAPI.  The same aliasing behavior is sometimes useful for custom functions.  I can think of two examples:

1. 'Pseudo-phases' used e.g. by distutils-r1.eclass.  Right now the eclass explicitly aliases 'python_test() { distutils-r1_python_test; }'.  While it's not a big deal, I suppose it would be cleaner to use EXPORT_FUNCTIONS consistently for it.

2. Custom phase functions for internal use.  In particular, I'm working on moving smart-live-rebuild logic to a phase-like function.