Date: Sat, 10 Mar 2018 21:55:51 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 226506] ports-mgmt/portmaster: [patch] FETCH_ONLY fails for "Insufficient privileges to install ports" Message-ID: <bug-226506-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226506 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@FreeBSD.org Reporter: david@catwhisker.org Flags: maintainer-feedback?(se@FreeBSD.org) Assignee: se@FreeBSD.org Created attachment 191380 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D191380&action= =3Dedit Patch to portmaster to allow FETCH_ONLY without requiring "install" privele= ge During src-based system updates, it has been my practice to run `portmaster -aF` while "make buildworld" (& friends) run; usually, the timing is such t= hat the distfiles are fetched by the time the installworld is done, and this ma= kes 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 (we= ll, 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 =3D=3D=3D>>> Starting check of installed ports for available updates =3D=3D=3D>>> Launching child to update boehm-gc-7.6.2 to boehm-gc-7.6.4 =3D=3D=3D>>> All >> boehm-gc-7.6.2 (1/1) 0;portmaster: All >> boehm-gc-7.6.2 (1/1)^G =3D=3D=3D>>> Currently installed version: boehm-gc-7.6.2 =3D=3D=3D>>> Port directory: /usr/ports/devel/boehm-gc =3D=3D=3D>>> Insufficient privileges to install ports (run as root or set P= M_SU_CMD) =3D=3D=3D>>> Aborting update =3D=3D=3D>>> Update for boehm-gc-7.6.2 failed =3D=3D=3D>>> 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-226506-13>