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

Bug 625702

Summary: Documentation: do not call epatch_user if undefined in /etc/portage/bashrc example code
Product: Websites Reporter: tedheadster
Component: Gentoo WebsiteAssignee: Gentoo Website Team <www>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://wiki.gentoo.org/wiki//etc/portage/patches
Whiteboard:
Package list:
Runtime testing required: ---

Description tedheadster 2017-07-19 21:11:31 UTC
The example code blindly calls the function 'epatch_user' even if it is not defined. This gives the appearance of an error during rebuilds. Instead replace the code thusly:

- epatch_user
+ [[ $( type -t epatch_user ) = "function" ]] && epatch_user

So if epatch_user does not exist, it will not be called.


Reproducible: Always

Steps to Reproduce:
1. Use the example code
2. Perform a rebuild with patched code
3. See lots of '/etc/portage/bashrc: line 12: epatch_user: command not found' errors.
Actual Results:  
Error messages.

Expected Results:  
No error messages.
Comment 1 Greg Kubaryk 2017-07-19 22:40:44 UTC
It is a wiki; update the page or use the Talk page to discuss your proposed changes. :)
Unless this is one of the restricted documents like the Handbook, no need to file a bug to request (or make) a change on the wiki.

Thanks for your contribution nonetheless!
Comment 2 Brian Evans (RETIRED) gentoo-dev 2017-07-19 23:34:33 UTC
Wiki updates are not bugs