[Bug 226506] ports-mgmt/portmaster: [patch] FETCH_ONLY fails for "Insufficient privileges to install ports"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Mar 10 21:55:53 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226506

            Bug ID: 226506
           Summary: ports-mgmt/portmaster: [patch] FETCH_ONLY fails for
                    "Insufficient privileges to install ports"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: se at FreeBSD.org
          Reporter: david at catwhisker.org
             Flags: maintainer-feedback?(se at FreeBSD.org)
          Assignee: se at FreeBSD.org

Created attachment 191380
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=191380&action=edit
Patch to portmaster to allow FETCH_ONLY without requiring "install" privelege

During src-based system updates, it has been my practice to run `portmaster
-aF` while "make buildworld" (& friends) run; usually, the timing is such that
the distfiles are fetched by the time the installworld is done, and this makes
a good use of resources.  Then, after the reboot, I can run `portmaster -ad`
without that process getting bogged down in waiting on receipt of files (well,
mostly, anyway).

However, I found that on a system where I (vs. a privileged user) own the
/usr/ports hierarchy, I see thing like:

/usr/local/sbin/portmaster -aF
===>>> Starting check of installed ports for available updates
===>>> Launching child to update boehm-gc-7.6.2 to boehm-gc-7.6.4

===>>> All >> boehm-gc-7.6.2 (1/1)
0;portmaster: All >> boehm-gc-7.6.2 (1/1)^G
===>>> Currently installed version: boehm-gc-7.6.2
===>>> Port directory: /usr/ports/devel/boehm-gc

===>>> Insufficient privileges to install ports (run as root or set PM_SU_CMD)
===>>> Aborting update

===>>> Update for boehm-gc-7.6.2 failed
===>>> Aborting update

which seems a little silly, since I'm not trying to install anything. :-)

I've attached a patch that seems to work for me.

This was tested with portmaster at r461586, on a system running stable/11,
amd64, at r330373.  The ports tree was at r464069 at the time.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list