Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 625702 - Documentation: do not call epatch_user if undefined in /etc/portage/bashrc example code
Summary: Documentation: do not call epatch_user if undefined in /etc/portage/bashrc ex...
Status: RESOLVED INVALID
Alias: None
Product: Websites
Classification: Unclassified
Component: Gentoo Website (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Website Team
URL: https://wiki.gentoo.org/wiki//etc/por...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-19 21:11 UTC by tedheadster
Modified: 2017-07-19 23:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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