From owner-freebsd-ports@FreeBSD.ORG Sun Oct 31 17:10:24 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D4EB10656B8 for ; Sun, 31 Oct 2010 17:10:24 +0000 (UTC) (envelope-from enlil65@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id CC4FC8FC16 for ; Sun, 31 Oct 2010 17:10:23 +0000 (UTC) Received: by vws12 with SMTP id 12so2701661vws.13 for ; Sun, 31 Oct 2010 10:10:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=XAsF87UZDbCu6/sjrXwc4zjXGK+CuwTuC8m8v8TFc4Y=; b=vHgH6dsJR530dDkNp36kWX2vGRRHuRBPyfAKTTFINmWCw3XsMyo//X8aplcqnZWw7n zuc7cKhkHlDTbb7KPUXmwuBVs7E1usw3HHQE0kMZv86cCirKYD+niV25RzEIfk/cvOkg b+QNEEVATNiqo+rkQ+Wj+ir5ndQLebsbW5+X0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=f+qeEA5eeHqLoTgt3Z1bEhYoHlNRnR69WHglbA7h33RhTqIE/pcWVmLml/6dU8KpUE SpnF7H44hC12ftlyvjTYpUrBuIsSIzTmn5ouwI+Dp8iI4aokczozOfFZjq2hwRb+7FQl hdiEY0VHaNAuN3Bacnd3Vtzmvt+oDNdajnFGU= MIME-Version: 1.0 Received: by 10.224.6.136 with SMTP id 8mr8081343qaz.0.1288543269394; Sun, 31 Oct 2010 09:41:09 -0700 (PDT) Received: by 10.229.66.158 with HTTP; Sun, 31 Oct 2010 09:41:09 -0700 (PDT) Date: Sun, 31 Oct 2010 11:41:09 -0500 Message-ID: From: Peggy Wilkins To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: portmaster hangs waiting for grep X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Oct 2010 17:10:24 -0000 I am doing my weekly run of portmaster to upgrade ports on my server: FreeBSD quarto.lib.uchicago.edu 7.3-RELEASE-p3 FreeBSD 7.3-RELEASE-p3 #0: Sat Sep 25 15:46:29 CDT 2010 root@quarto.lib.uchicago.edu:/usr/obj/usr/src/sys/GENERIC amd64 I updated my ports tree two days ago (Friday, Oct 29) via cron, if that has any relevance... Portmaster got its list of things to do, then after upgrading the first item on its to-do list (mysql-client-5.0.90_2), it is hung up here: [snip] ===> Compressing manual pages for mysql-client-5.0.90_2 ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib/mysql ===> Installing ldconfig configuration file ===> Registering installation for mysql-client-5.0.90_2 At this point, nothing happens. Here's some details from ps showing both the parent portmaster process and where the child is stuck: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 69546 0.0 0.1 7116 2120 p0 I+ 11:04AM 0:00.34 /bin/sh /usr/local/sbin/portmaster -bwDa -x virtuoso root 77472 0.0 0.0 7116 2044 p0 I+ 11:04AM 0:00.02 /bin/sh /usr/local/sbin/portmaster -D -w -b mysql-client-5.0.90_1 root 9375 0.0 0.0 7936 1424 p0 I+ 11:06AM 0:00.00 grep ^SIZE (mysql-5.0.90.tar.gz) Looking at portmaster source code, it is hung up in this part: dist_list_temp=`pm_mktemp dist_list` echo '# Added by portmaster' > $dist_list_temp for file in $distfiles; do size=`grep "^SIZE (${ds}${file})" $distinfo` sha256=`grep "^SHA256 (${ds}${file})" $distinfo` md5=`grep "^MD5 (${ds}${file})" $distinfo` echo "DISTFILE:${ds}${file}:SIZE=${size##* }:SHA256=${sha256##* }:MD5=${md5##* }" \ >> $dist_list_temp # Make sure any new distfiles get added to the list [ -z "$DONT_SCRUB_DISTFILES" -a ! "$$" -eq "$PM_PARENT_PID" ] && echo "${ds}$file" >> $DI_FILES done Specifically, size=`grep "^SIZE (${ds}${file})" $distinfo`. This suggests that $distinfo isn't set, but it is supposed to be. FYI my current $dist_list_temp has these contents: -rw------- 1 root wheel 22 Oct 31 11:06 f-69546-dist_list.No9h5tNN % cat /tmp/f-69546-dist_list.No9h5tNN # Added by portmaster I am suspicious that this may be related to the recent change in distinfo that I read about, where the MD5 checksums are being phased out. plw