[MacPorts] #34841: Each MacPorts install adds a $PATH variable even if it already exists; Also, puts it after rvm $PATH variable

MacPorts noreply at macports.org
Tue Jun 12 08:43:15 PDT 2012


#34841: Each MacPorts install adds a $PATH variable even if it already exists;
Also, puts it after rvm $PATH variable
---------------------------------------+------------------------------------
 Reporter:  lawrence.trey@…            |       Owner:  macports-tickets@…                   
     Type:  enhancement                |      Status:  new                                  
 Priority:  Low                        |   Milestone:  MacPorts Future                      
Component:  ports                      |     Version:  2.1.1                                
 Keywords:  $PATH, .bash_profile, rvm  |        Port:                                       
---------------------------------------+------------------------------------
 Even if the $PATH variable exists for a previous install, MacPorts adds
 another. This won't cause any issues, but it will clutter the
 ~/.bash_profile script.

 Also, the $PATH variable is appended to the ~/.bash_profile script. This
 means that if rvm has been installed, the default rvm ruby version is
 overridden by the $PATH variable for MacPorts. So for each new bash
 session, the native ruby is loaded instead of the default rvm ruby
 version. There should be some logic to check to see if rvm is being used,
 and if so, the MacPorts $PATH variable should be added before rvm is
 loaded.

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


More information about the macports-tickets mailing list