Date: Thu, 20 Feb 2014 10:52:19 GMT From: kaltheat <kaltheat@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/186915: ports-mgmt/portmaster: tries to use pkg to resolve missing dependency issue Message-ID: <201402201052.s1KAqJQs010708@cgiserv.freebsd.org> Resent-Message-ID: <201402201100.s1KB0049088660@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 186915 >Category: misc >Synopsis: ports-mgmt/portmaster: tries to use pkg to resolve missing dependency issue >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 20 11:00:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: kaltheat >Release: FreeBSD-10.0-RELEASE >Organization: >Environment: >Description: Hi, I recently realized that portmaster is slightly misbehaving when checking-dependencies. I did: portmaster --check-depends Because I have no pkg repo enabled I got a message of pkg at the end that no repo is configured. To me it made no sense that I need an enabled repo to check dependencies so I crawled through source of portmaster and saw that pkg utility is used to check if there is a dependecy failure, but it used with wrong set of parameters, so pkg tries to resolve the error. Regards, kaltheat >How-To-Repeat: >Fix: Here's a patch to avoid this behaviour: --- portmaster.ori 2014-02-17 21:03:12.549866000 +0000 +++ portmaster 2014-02-20 11:50:19.343070138 +0000 @@ -1590,7 +1590,8 @@ if [ -n "$CHECK_DEPENDS" ]; then if [ -n "$use_pkgng" ]; then # TODO - pkg check -adv + echo "Missing dependencies:" + pkg check -adn exit fi PM_VERBOSE=pmv_check_depends >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402201052.s1KAqJQs010708>