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.)
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
Thanks for this information. We discussed the matter in IRC but nobody knew about this possibilty...