Portage's bashrc

From Funtoo
Revision as of 01:30, December 29, 2011 by Drobbins (talk | contribs) (→‎Usefulness of bashrc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

bashrc's locations

If there is more than one bashrc files, each will be sourced before the ebuild is executed in the following order:

  • /etc/portage/bashrc - Global bashrc file which applied to all packages

Per-package:

  • /etc/portage/env/${CATEGORY}/${PN}
  • /etc/portage/env/${CATEGORY}/${PN}:${SLOT}
  • /etc/portage/env/${CATEGORY}/${P}
  • /etc/portage/env/${CATEGORY}/${PF}

Usefulness of bashrc

With bashrc you will be able to:

  • Set custom variables per package, like CFLAGS of FEATURES
  • Execute code in selected ebuild stages