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

Bug 414799

Summary: Let env-update concatenate ERL_LIBS
Product: Portage Development Reporter: Mira Ressel <aranea>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=414801
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for env_update.py, adding ERL_LIBS to colon_seperated

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...