Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2013 04:08:10 GMT
From:      Doug Barton <dougb@dougbarton.us>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/179098: ports-mgmt/portmaster bash completion file depends on /usr/ports/Mk/bsd.port.mk
Message-ID:  <201305300408.r4U48Ak6074881@oldred.FreeBSD.org>
Resent-Message-ID: <201305300410.r4U4A0Cb022695@freefall.freebsd.org>

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

>Number:         179098
>Category:       ports
>Synopsis:       ports-mgmt/portmaster bash completion file depends on /usr/ports/Mk/bsd.port.mk
>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:   Thu May 30 04:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Doug Barton
>Release:        DNA
>Organization:
AAAG
>Environment:
DNA
>Description:
A revision to the bash completions file included with portmaster uses 'make -V' to determine if the system has been converted to pkg. That fails on a system that has no ports tree installed (such as a system which is updated by packages + INDEX only).
>How-To-Repeat:
On a system with no ports tree and the bash completions file installed and sourced, do: portmaster<space><tab>
>Fix:
Preferable solutions would involve one of the following (can't be sure, don't run pkg):

1. Look for the presence of a file or directory on the system which clearly indicates that it has been converted
2. Run some sort of pkg command which tells whether or not the system has been converted
3. If neither of the above are possible, wrap the current code in a test for whether or not /usr/ports/Mk/bsd.port.mk exists

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



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