Bug 202340

Summary: [PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree.
Product: Ports & Packages Reporter: Vinícius Zavam <egypcio>
Component: Individual Port(s)Assignee: Wesley Shields <wxs>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: egypcio
Priority: --- Keywords: patch
Version: LatestFlags: bugzilla: maintainer-feedback? (wxs)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
[PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree.
none
[PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree. (updated) none

Description Vinícius Zavam freebsd_committer freebsd_triage 2015-08-15 02:28:28 UTC
Created attachment 159891 [details]
[PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree.

Allow users to use it with a "non-default" PORTSDIR value. First test went well with a patched version of 'fastest_sites' running under FreeBSD 11.0-CURRENT r284645 (amd64).

# pkg info -d fastest_sites
fastest_sites-20110317:
	python27-2.7.10

BEFORE:

# fastest_sites > fsites.conf
make: cannot open /usr/ports/Makefile.
Traceback (most recent call last):
  File "/usr/local/bin/fastest_sites", line 145, in <module>
    fd = open(sites_mk, "r")
IOError: [Errno 2] No such file or directory: '\nmake: stopped in /root/Mk/bsd.sites.mk'


# grep PORTSDIR /etc/make.conf 
PORTSDIR=/panzer/ports

# make -V PORTSDIR
/panzer/ports

AFTER:

# fastest_sites > fsites.conf
 => Checking servers for MASTER_SITE_GENTOO (59 servers)
 => Checking servers for MASTER_SITE_TCLTK (8 servers)
 => Checking servers for MASTER_SITE_APACHE (26 servers)
 => Checking servers for MASTER_SITE_EASYSW (4 servers)
 => Checking servers for MASTER_SITE_PACKETSTORM (15 servers)
 ...
Comment 1 Vinícius Zavam freebsd_committer freebsd_triage 2015-08-22 02:43:23 UTC
Created attachment 160200 [details]
[PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree. (updated)

This patch updates the last one, and considers bug #191106.