From owner-freebsd-ports@FreeBSD.ORG Mon Mar 21 13:23:46 2005 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 DE94016A4CE for ; Mon, 21 Mar 2005 13:23:45 +0000 (GMT) Received: from smtp.unsam.edu.ar (smtp.unsam.edu.ar [170.210.48.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id D179943D1D for ; Mon, 21 Mar 2005 13:23:37 +0000 (GMT) (envelope-from fernan@iib.unsam.edu.ar) Received: from pi.iib.unsam.edu.ar (pi.iib.unsam.edu.ar [192.168.10.11]) by smtp.unsam.edu.ar (8.12.6/8.12.6) with ESMTP id j2LDYtr9024133; Mon, 21 Mar 2005 10:34:56 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: from pi.iib.unsam.edu.ar (localhost [127.0.0.1]) by pi.iib.unsam.edu.ar (8.13.1/8.13.1) with ESMTP id j2LDMZu1093159; Mon, 21 Mar 2005 10:22:35 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: (from fernan@localhost) by pi.iib.unsam.edu.ar (8.13.1/8.13.1/Submit) id j2LDMIE0093092; Mon, 21 Mar 2005 10:22:18 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) X-Authentication-Warning: pi.iib.unsam.edu.ar: fernan set sender to fernan@iib.unsam.edu.ar using -f Date: Mon, 21 Mar 2005 10:22:18 -0300 From: Fernan Aguero To: Gerald Pfeifer , ports@FreeBSD.ORG Message-ID: <20050321132218.GA74515@iib.unsam.edu.ar> Mail-Followup-To: Gerald Pfeifer , ports@FreeBSD.ORG, Roman Neuhauser References: <20050317131405.GA31049@iib.unsam.edu.ar> <20050320030504.GG79230@iib.unsam.edu.ar> <20050320150820.GA5057@isis.sigpipe.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050320150820.GA5057@isis.sigpipe.cz> User-Agent: Mutt/1.5.9i cc: Roman Neuhauser Subject: Re: problems fetching lang/gcc*: random? 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: Mon, 21 Mar 2005 13:23:46 -0000 +----[ Roman Neuhauser (20.Mar.2005 12:11): | | # fernan@iib.unsam.edu.ar / 2005-03-20 00:05:04 -0300: | > | On Thu, 17 Mar 2005, Fernan Aguero wrote: | > | > In all cases this is as far as I get: | > | > | > | > pi# pwd | > | > /usr/ports/lang/gcc34 | > | > pi# make fetch | > | > Making GCC 3.4.4 for FreeBSD 4.11 target=i386-portbld-freebsd4.11 | > | > => gcc-core-3.4-20050311.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/. | > | > | > | > at the same time CPU usage raises considerably and 75-80% of | > | > this corresponds to a process named random, which ps(1) shows | > | > as /usr/games/random. As soon as I Ctrl-C and quit the | > | > fetch, this process disappears and CPU usage return to | > | > normal levels. This is the second reason I found this weird. | > | > The raise in the CPU usage makes me think that the list | > might be monstrous. However, I've run a 'make fetch' | > overnight once and it never got to fetch anything, so it | > seems like it never finished. | > | > Of course, the list in MASTER_SITE_GCC is not that big, so | > it should be something else. But that something seems to be in | > the gcc* ports. | > | > Any ideas anyone? | | That looks like a problem in random. Can you post the exact | (expanded) command line that causes it to hang? Mmm, doesn't seem like a problem in random to me. Seems like a problem with bsd.port.mk (or perhaps bsd.sites.mk?). I just inserted the following line after line 3093 in bsd.port.mk (mine is revision 1.511 from 2005/03/17) in order to get the exact command that is going to be evaluated in the next line: ${ECHO_MSG} 'DEBUG: ${SORTED_MASTER_SITES_CMD_TMP} ${_RANDOMIZE_SITES}'; \ and this is what I get on 'make fetch' for lang/gcc32: => gcc-core-3.2.3.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/. DEBUG: " |/usr/games/random "-w -f -"" Now, seems like an empty list is being passed through that pipe. However, neither of the following make random hang: echo "" | random -w -f - echo " " | random -w -f - What I found weird is the quoting on the command. This is hardcoded in bsd.port.mk (lines 1892-94) But my knowledge of Makefile syntax is not deep ;) Nonetheless, the quotes seem to work when fetching from other ports, so I don't think this is causing the problem here. Now we still have these questions: i) why the master sites list in $SORTED_MASTER_SITES_CMD_TMP is empty? ii) why does random hang? Is it because of the eval? BTW, have you been able to reproduce this? Roman? Gerald? Anyone else? | | Also, uname -a? | +----] FreeBSD pi.iib.unsam.edu.ar 4.11-RELEASE FreeBSD 4.11-RELEASE #0: Tue Mar 8 19:04:58 ART 2005 fernan@pi.iib.unsam.edu.ar:/usr/obj/usr/src/sys/PI i386 Fernan