From owner-freebsd-ports@FreeBSD.ORG Wed Feb 25 00:23:39 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3839216A4D0 for ; Wed, 25 Feb 2004 00:23:39 -0800 (PST) Received: from rdsnet.ro (unknown [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4064843D2F for ; Wed, 25 Feb 2004 00:23:38 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 25489 invoked from network); 25 Feb 2004 08:23:36 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 25 Feb 2004 08:23:36 -0000 Received: from it.buh.cameradicommercio.ro (localhost.buh.cameradicommercio.ro [127.0.0.1]) by it.buh.cameradicommercio.ro (Postfix) with SMTP id 2A9C319F; Wed, 25 Feb 2004 10:25:30 +0200 (EET) Date: Wed, 25 Feb 2004 10:25:29 +0200 From: Ion-Mihai Tetcu To: Oliver Eikemeier , ports@freebsd.org Message-Id: <20040225102529.2f5d5bf6@it.buh.cameradicommercio.ro> X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: portaudit not fetching - bad awk code in fetch_locations() X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2004 08:23:39 -0000 Hi, Checking my log for distfiles fetching I've seen: ===> WARNING: Vulnerability database out of date, checking anyway so I've checked to see what was happening. It seems that the awk code from fetch_locations() doesn't return the right thing, e.g. redirecting: echo "${MASTER_SITE_LOCAL}" | awk " BEGIN { RS=\"[ \\t\\n]\"; IGNORECASE=1; srand() } /^$/ { next } { if (\$0 ~ /${MASTER_SORT_REGEX}/ ) rank=0; else rank=rand() gsub(/%SUBDIR%/, \"${MASTER_SITE_SUBDIR}\") print rank \"\\t\" \$0 } " | sort > /tmp/portul produce: # cat /tmp/portul ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/eik/ ftp://ftp.jp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/eik/ ftp://ftp.ru.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/eik/ ftp://ftp.se.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/eik/ ftp://ftp.tw.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/eik/ ftp://ftp.uk.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/eik/ 0.45396 so cut -f 2 returns nothing useful ==> no fetch locations. As my akw skills are at the sea level I cannot provide the trivial fix for this. A workaround is to delete the | cut -f 2 at the end of fetch_locations() from /usr/local/share/portaudit/portaudit.functions -- IOnut Unregistered ;) FreeBSD user