portmanager loop?

Michael C. Shultz reso3w83 at verizon.net
Tue Jan 25 07:40:43 PST 2005


On Tuesday 25 January 2005 07:07 am, Bart Silverstrim wrote:
> I had (have?) several packages in the ports collection that needed
> updating, and recently someone in the list was talking about using
> portmanager -u to save on problems with updating; it doesn't touch
> the ports database, it won't mess up the collection, it walks
> dependencies automagically, etc...should be as easy as "portmanager
> -u" and letting it do it's magic, correct?
>
> On the Dell 2650 this is running on (FBSD 4.9) *seems* to keep
> recompiling xfree86-4-server.  Is there a way to tell if it is stuck
> in a loop?  I had to stop it yesterday after it had been upgrading
> for several hours.  Can someone take a look at this status output and
> tell me if I need to do something to get a successful portmanager
> run, or verify that letting it go will eventually "untangle" whatever
> it's doing? The portmanager -s shows:
>
> # portmanager -s
> ---------------------------------------------------------------------
>--- -------
> PMGRrStatus 0.2.4_0 info: Creating inital data bases
> ---------------------------------------------------------------------
>--- -------
> awk: cmd. line:1: fatal: cannot open file
> `/usr/local/etc/portmanager/pm-020.conf' for reading (No such file or
> directory)

You exposed a bug here, I'll look into it today. Portmanager
should abort if this file is missing.  What it is supposed to do is 
copy /usr/local/etc/portmanager/pm-020.conf.SAMPLE to
/usr/local/etc/portmanager/pm-020.conf when it is missing so I will
have to fix this, for now will you please do it manually?

[snip]

> OLD p5-Convert-TNEF-0.17 built with old dependency
> p5-Mail-Tools-1.64, current dependency is p5-Mail-Tools-1.65
> OLD p5-Digest-MD5-2.33 built with old dependency p5-Digest-1.08,
> current dependency is p5-Digest-1.10
> OLD mod_php3-3.0.18_4 built with old dependency apache-1.3.31_6,
> current dependency is apache-1.3.33_1
> OLD tcplist-2.2_1 built with old dependency lsof-4.72.2, current
> dependency is lsof-4.74
> OLD squidGuard-1.2.0_1 built with old dependency squid-2.5.7_1,
> current dependency is squid-2.5.7_8
> ---------------------------------------------------------------------
>--- -------
> status report finished
> =====================================================================
>=== =======

After you copy /usr/local/etc/portmanager/pm-020.conf.SAMPLE to
/usr/local/etc/portmanager/pm-020.conf I would like to see a couple of 
cycles of portmanager -u output if you don't mind.  Just run

assuming your shell is tcsh

portmanager -u >&  portmanager.log

if bash then

portmanager -u 2>&1 portmanager.log

then monitor it with 

tail -f portmanager.log

I just need to see where the loop occurs. I've been planning to post a 
patch tonight anyways and if there is something here to be fixed I'd
like to include it in the patch.  Thank you.

-Mike




More information about the freebsd-questions mailing list