Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414799 - Let env-update concatenate ERL_LIBS
Summary: Let env-update concatenate ERL_LIBS
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All All
: Normal enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-05 22:08 UTC by Mira Ressel
Modified: 2012-05-05 22:50 UTC (History)
0 users

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


Attachments
Patch for env_update.py, adding ERL_LIBS to colon_seperated (file_414799.txt,744 bytes, patch)
2012-05-05 22:08 UTC, Mira Ressel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mira Ressel 2012-05-05 22:08:07 UTC
Created attachment 310923 [details, diff]
Patch for env_update.py, adding ERL_LIBS to colon_seperated

ERL_LIBS is an environment variable a bit like PATH, but for Erlang. Now, if packages wanted to add their own dirs to this variable, the preffered way would be an entry in /etc/env.d/. But this doesn't work if more than one package does that, because ERL_LIBS isn't handled specially by env-update, so the last env.d entry overwrites the others,

The attached patch adds ERL_LIBS to the 'colon_seperated' set of env-update.py. (It's a bit voluminous because I also rewrapped the four lines.)
Comment 1 Zac Medico gentoo-dev 2012-05-05 22:11:48 UTC
There's no need to patch portage, since you can configure this with a COLON_SEPARATED setting in /etc/env.d. For example:

$ grep -r COLON_SEPARATED /etc/env.d
/etc/env.d/30xdg-data-local:COLON_SEPARATED="XDG_DATA_DIRS XDG_CONFIG_DIRS"
/etc/env.d/77kde:COLON_SEPARATED=QT_PLUGIN_PATH
Comment 2 Mira Ressel 2012-05-05 22:15:43 UTC
Thanks for this information. We discussed the matter in IRC but nobody knew about this possibilty...