Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Mar 2008 13:10:21 +0100
From:      Peter Olsson <pol@leissner.se>
To:        Doug Barton <dougb@freebsd.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Two questions about upgrade problems with portmaster
Message-ID:  <20080322121021.GA20609@pol.leissner.se>
In-Reply-To: <47E2CDEA.5050308@FreeBSD.org>
References:  <20080317221843.GQ3145@pol.leissner.se> <47DEFAEF.1030908@FreeBSD.org> <20080318123844.GK8717@pol.leissner.se> <47E2CDEA.5050308@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Problem seems solved, see last sentence below.

On Thu, Mar 20, 2008 at 01:49:46PM -0700, Doug Barton wrote:
> Peter Olsson wrote:
> 
> > TMPDIR doesn't seem to be set at all, I don't have it in "set".
> > Shell is bash.
> 
> Ok.
> 
> > Here is /etc/make.conf if that is relevant:
> > WITHOUT_X11=yes
> > WITHOUT_GUI=yes
> 
> I would try commenting these two out and see what happens.

Ok, tried but no improvement.
 
> > I tried upgrade again after a reboot, same problem today.
> > Here is the complete start of the run:
> > 
> > $ portmaster -bd tk-8.4.17,2
> > ===>>> Gathering distinfo list for installed ports
> > 
> > ===>>> Currently installed version: tk-8.4.17,2
> > ===>>> Port directory: /usr/ports/x11-toolkits/tk84
> > ===>>> Launching 'make checksum' for x11-toolkits/tk84 in background
> > Terminated
> > Terminated
> 
> Ok, that makes me very suspicious (as in, it shouldn't happen there).
> I don't recall from your first post if you were using portmaster 2.1,
> but could you update to 2.2 before you try again?

Tried but no improvement. Exactly the same sequence, including the
two Terminated.
 
> > ===>>> Gathering dependency list for x11-toolkits/tk84 from ports
> > ===>>> Starting recursive 'make config' check
> > ===>>> Recursive 'make config' check complete for x11-toolkits/tk84
> > 
> > ===>>> Starting build for x11-toolkits/tk84 <<<===
> > 
> > ===>>> The 'make config' check found no dependencies to update
> > 
> > ===>  Cleaning for tk-8.4.18,2
> > 
> > ===>>> Waiting on fetch & checksum for x11-toolkits/tk84 <<<===
> > 
> > 
> > ===>>> Waiting on fetch & checksum for x11-toolkits/tk84 <<<===
> > ===>  Found saved configuration for tk-8.4.14_4,2
> > => MD5 Checksum OK for tk8.4.18-src.tar.gz.
> > => SHA256 Checksum OK for tk8.4.18-src.tar.gz.
> 
> ...
> 
> I could not reproduce this, on my system it behaved as expected. Can
> you try cd'ing to the port directory and typing 'make checksum' and
> let us know if that does what it should?

Here is the output:
$ make checksum
===>  Found saved configuration for tk-8.4.14_4,2
=> MD5 Checksum OK for tk8.4.18-src.tar.gz.
=> SHA256 Checksum OK for tk8.4.18-src.tar.gz.

> If that works, try adding the
> -G flag to portmaster and see if it completes properly.

Immediate failure on that:
$ portmaster -G tk-8.4.17,2
===>>> Gathering distinfo list for installed ports

===>>> Currently installed version: tk-8.4.17,2
===>>> Port directory: /usr/ports/x11-toolkits/tk84
===>>> Launching 'make checksum' for x11-toolkits/tk84 in background
===>>> Starting check for build dependencies
===>>> Gathering dependency list for x11-toolkits/tk84 from ports
Terminated
Terminated
===>>> Starting dependency check

===>>> Cannot cd to Terminated
===>>> Aborting update

> My main concern though is that those "Terminateds" up there indicate
> that somehow the child process for the 'make checksum' got
> unexpectedly killed, and therefore didn't remove its flag file. It's a
> longshot, but do you know off hand if you're having problems in your
> shell with child processes? Try running the attached script and let us
> know how far you get. You can quit after 10 subshells.

Seems to work fine, I even went further than 50 subshells.

However, I noticed now that this server has an old bash, bash-2.05b.007_6.
I did a portmaster -o shells/bash bash-2.05b.007_6 and now upgrade of
tk works fine!

Thanks for your help!

Peter Olsson



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080322121021.GA20609>