Questions on portmaster

b. f. bf1783 at
Thu Jul 2 06:29:14 UTC 2009

On 7/2/09, Manish Jain <invalid.pointer at> 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, and you can override it if
you prefer to use something else.  See the comments concerning
FETCH_ENV, and FETCH_REGET at the top of, 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, 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

> 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

> BTW, I also tried portmanager and it segfaulted at the stage of
> generating a report.

Oh, well.  Sounds like a job for .... rnoland at 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?


More information about the freebsd-questions mailing list