Changes between Initial Version and Version 1 of Ticket #47706


Ignore:
Timestamp:
May 11, 2015, 9:14:59 PM (10 years ago)
Author:
larryv (Lawrence Velázquez)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47706

    • Property Keywords PATH postflight.in removed
  • Ticket #47706 – Description

    initial v1  
    1 When sourcing CONF_FILE (in this case ~/.profile) with source ~/.profile, my PATH variable expands indefinitely, since there is no check if BINPATH is already in PATH ( https://trac.macports.org/browser/trunk/base/portmgr/dmg/postflight.in#L243 ).
     1When sourcing CONF_FILE (in this case ~/.profile) with source ~/.profile, my PATH variable expands indefinitely, since there is no check if BINPATH is already in PATH ([[source:trunk/base/portmgr/dmg/postflight.in#L243]]).
    22
    33My ~/.profile looks like this:
     
    99}}}
    1010
    11 The solution is to check in https://trac.macports.org/browser/trunk/base/portmgr/dmg/postflight.in#L103 if BINPATH (Part of ${2}) is already in PATH (\$ + ${1}). If so, do not export it again.
     11The solution is to check in source:trunk/base/portmgr/dmg/postflight.in#L103 if BINPATH (Part of $!{2}) is already in PATH (\$ + $!{1}). If so, do not export it again.
    1212
    1313I fixed it in my ~/.profile with this modification (bash):