Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Oct 2011 12:04:28 GMT
From:      Igor Potapov <garrych@ya.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/161873: portmaster doesn't respect PATH enviroment variable
Message-ID:  <201110211204.p9LC4SpR001937@red.freebsd.org>
Resent-Message-ID: <201110211210.p9LCA9lg089617@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         161873
>Category:       ports
>Synopsis:       portmaster doesn't respect PATH enviroment variable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 21 12:10:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Igor Potapov
>Release:        8.2-RELEASE-p3
>Organization:
>Environment:
FreeBSD serv09.vnipigas.ru 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
I have installed security/krb5 port. Set PATH in such a way that krb5-config of MIT executes by default under my interactive shell.
But when I tried to update squid with ports-mgmt/portmaster, squid is configured with heimdal in base despite PATH settings.
/usr/local/sbin/portmaster exports new PATH settings with the wrong order:

 # /usr/local is needed in the path for make
        PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
        [ -e /usr/X11R6 ] && [ ! -L /usr/X11R6 ] && PATH=$PATH:/usr/X11R6/bin
        [ -n "$CCACHE_PATH" -a -z "$NOCCACHE" ] && PATH="/usr/local/libexec/ccache:$PATH"
        export PM_PARENT_PID TMPDIR UPGRADE_TOOL PATH

>How-To-Repeat:
portmaster www/squid31
>Fix:
Edit /usr/local/sbin/portmaster to appropriate PATH

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110211204.p9LC4SpR001937>