Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414801 - Add information about the *_SEPARATED feature of env-update to the handbook
Summary: Add information about the *_SEPARATED feature of env-update to the handbook
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-05 22:49 UTC by Mira Ressel
Modified: 2012-06-29 15:42 UTC (History)
1 user (show)

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 Mira Ressel 2012-05-05 22:49:48 UTC
env-update handles some variables specially by concatenating their values if they are specified in multiple files in /etc/env.d/. The handbook includes some information about that in the section "The env-update Script". But one useful information is missing there: You can activate this concatenation behavior for additional environment vars by adding them to one of the COLON_SEPARATED or SPACE_SEPARATED variables (also inside an env.d file).

Proposed text:
 The concatenation of variables does not always happen, only with the following variables: KDEDIRS,
 PATH, LDPATH, MANPATH, INFODIR, INFOPATH, ROOTPATH, CONFIG_PROTECT, CONFIG_PROTECT_MASK, PRELINK_PATH
 and PRELINK_PATH_MASK. For all other variables the latest defined value (in alphabetical order of the
 files in /etc/env.d) is used.
+If you need this concatenation behavior for other variables, you can add their names to one of the
+COLON_SEPARATED or SPACE_SEPARATED variables (also inside an env.d file).
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2012-05-22 18:37:06 UTC
Doesn't that also mean that COLON_SEPARATED and SPACE_SEPARATED are variables that are handled as such?
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2012-06-29 15:36:12 UTC
Aha, those two special variables aren't exported (cfr /usr/lib/portage/pym/portage/util/env_update.py file)
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2012-06-29 15:42:19 UTC
Thanks a log for the suggestion. i've updated the handbook in CVS.