ports/166500: portmaster -PP --index-only exits if empty /usr/ports exists
Greg Larkin
glarkin at FreeBSD.org
Thu Mar 29 20:00:22 UTC 2012
>Number: 166500
>Category: ports
>Synopsis: portmaster -PP --index-only exits if empty /usr/ports exists
>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 Mar 29 20:00:21 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Greg Larkin
>Release: 8.2-RELEASE
>Organization:
The FreeBSD Project
>Environment:
FreeBSD mailserver6.shn.prv 8.2-RELEASE FreeBSD 8.2-RELEASE #3 r218745: Wed Feb 16 15:07:48 PST 2011 root at build8x64.pcbsd.org:/usr/obj/storage/fbsd-sources/8.2/sys/GENERIC amd64
>Description:
During an attempt to perform binary package updates, I discovered that portmaster still probes the /usr/ports directory looking for a ports tree. In my case, /usr/ports was an empty directory.
My command line looked like:
env MASTER_SITE_INDEX=http://pkgbuilder/tb/packages/8.2-FreeBSD-SHN/ PACKAGES=/tmp INDEXDIR=/tmp PACKAGESITE=http://pkgbuilder/tb/packages/8.2-FreeBSD-SHN/ portmaster -PP --index-only puppet
This resulted in:
===>>> The ports directory (/usr/ports) does not seem to contain a ports tree
===>>> Aborting update
Terminated
After renaming /usr/ports to /usr/ports.orig, portmaster proceeded with no problem.
>How-To-Repeat:
Create an empty directory /usr/ports, then perform a binary package upgrade with "portmaster -PP --index-only ...".
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list