[MacPorts] #30664: bash-completion: document to source $prefix/etc/profile.d/

MacPorts noreply at macports.org
Sat Aug 13 06:43:32 PDT 2011


#30664: bash-completion: document to source $prefix/etc/profile.d/
---------------------------------+------------------------------------------
  Reporter:  blair@…             |       Owner:  raimue@…           
      Type:  enhancement         |      Status:  reopened           
  Priority:  Normal              |   Milestone:                     
 Component:  ports               |     Version:  2.0.1              
Resolution:                      |    Keywords:                     
      Port:  bash-completion     |  
---------------------------------+------------------------------------------

Comment(by raimue@…):

 If you source everything in `${prefix}/etc/profile.d` it's your
 responsibility to ensure that things will not be sourced multiple times.
 MacPorts does not use `${prefix}/etc/profile.d`, instead ports usually
 create wrappers which set the required environment variables. For an
 example, see the wine port. If we always want to source
 `${prefix}/etc/profile.d`, we would need different installation
 instructions.

 If maven needs some special environment, it is a bug in maven. Add a note
 to maven that it needs special environment.

 The note in the bash-completion port should tell people how to enable
 bash-completion. It should not tell how to source all things which have
 been dropped into `${prefix}/etc/profile.d`. Files there might do stuff
 which is unrelated to bash-completion. Let's say it's not '''dangerous''',
 but unexpected behavior if the instructions for bash-completion influence
 other tools.

-- 
Ticket URL: <https://trac.macports.org/ticket/30664#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list