Two questions about upgrade problems with portmaster

Peter Olsson pol at leissner.se
Sat Mar 22 12:10:28 UTC 2008


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


More information about the freebsd-ports mailing list