From owner-freebsd-questions@FreeBSD.ORG Thu Jul 2 06:29:14 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49E0F1065686 for ; Thu, 2 Jul 2009 06:29:14 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id B807C8FC1A for ; Thu, 2 Jul 2009 06:29:13 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: by bwz12 with SMTP id 12so1155256bwz.43 for ; Wed, 01 Jul 2009 23:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7uTdwCaSVpscVXHCq1DmtN9wGPc8ZvD3haOSQWjPeRU=; b=Oqi93L42MncPlWWGoEcJ2MK5jfhuydmVnmlpGL5vFkZcPUCJEX9KU2I/gz+QUKx26P 5yYnZ+6hhBwbJcv0d03XPq3Ittityr/lgGjKIAG2PKnEWaTg2vSttOExB2P/Z8aYLT2G MI801hMj5rL/uurO1svRyDJ5pMAU7QPTLz0Go= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=HElPGyMed47NvOkfJcpqrhXLdSIW+sMI+38a37W7LLcOyGACoxtJhrUHdltjbCIisV JUdjXb83BqoV5C7mq9Aq9yFcuB7/S8piUtHMBRgJ7hEi2OFCmIpdUI5gPbAlCGLPwlcU TdnIMDOjZ9LIxBgjfufZvIdeVOY3ReOnErOLs= MIME-Version: 1.0 Received: by 10.239.175.140 with SMTP id n12mr811118hbf.164.1246516152632; Wed, 01 Jul 2009 23:29:12 -0700 (PDT) In-Reply-To: <4A4C4057.5010209@gmail.com> References: <4A4C4057.5010209@gmail.com> Date: Thu, 2 Jul 2009 06:29:12 +0000 Message-ID: From: "b. f." To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Manish Jain Subject: Re: Questions on portmaster X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2009 06:29:14 -0000 On 7/2/09, Manish Jain wrote: > b. f. wrote: >> Manish Jain wrote: > Regarding the download speeds I was getting with portmaster fetches (0.7 > kBps to 4.0 kBps), I immediately booted into Windows/Cygwin and did a > wget from the same site portmaster was using. The speed I got from wget > was ~ 35 kBps. This happened not just once but multiple times. Each time > I did this, I had to interrupt portmaster. Finally I managed to get to > install the wget port on FreeBSD itself. When I ran wget from FreeBSD, > it reported comparable transfer rates (~ 35 kBps) from the same sites as > portmaster was using. > This has nothing to do with portmaster. Remember, portmaster is just a (sometimes) convenient shell script wrapper for the normal ports infrastructure. What you're probably seeing is either the usual fluctuations in network performance, or the difference between wget and FreeBSD fetch(1), which by default is used for getting distfiles and packages. This is set in bsd.port.mk, and you can override it if you prefer to use something else. See the comments concerning FETCH_BINARY, FETCH_ARGS, FETCH_CMD, FETCH_{BEFORE,AFTER}_ARGS, FETCH_ENV, and FETCH_REGET at the top of bsd.port.mk, or the relevant portion of that script. You can also try tuning your network settings, which can speed things up significantly in some cases. >>> It respects IGNORE (it checks for it in the port Makefile, and also >>> hands off to bsd.port.mk, which respects it). > > I got a curl port from portsnap marked IGNORE. portmaster did not ignore > it anywhere near gracefully enough and finally killed off all child > processes and itself. > Uh, yeah -- but that's another matter. It did IGNORE it, but it just stopped entirely. This is another one of the things that need improvement. portupgrade, by contrast, will keep going, only ignoring the port in question and any ports that depend upon it, but updating the rest. You should be able to patch portmaster to mimic this behavior. > Anyway, my system became so unpredictable that I had to reinstall > FreeBSD. For the moment, I am avoiding portmaster till I can try it out > on a dummy PC first. > Well, something is awry if your system was damaged that badly, and it probably wasn't because of portmaster. In general, few ports ought to damage the base system. You're probably better off trying to remove and then reinstall all of your ports first (the instructions in the portmaster manpage are good in this regard), before reinstalling everything. > BTW, I also tried portmanager and it segfaulted at the stage of > generating a report. > Oh, well. Sounds like a job for .... rnoland@FreeBSD.org. But wait -- who wants to bother him about some tiny piece of port management software when he is heroically staging a single-handed campaign to maintain X11 on FreeBSD? b.