Bug 36407 - portupgrade hangs while "Cleaning out obsolete shared libraries"
Summary: portupgrade hangs while "Cleaning out obsolete shared libraries"
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Akinori MUSHA
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-28 04:00 UTC by albert.kinderman
Modified: 2002-03-28 12:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description albert.kinderman 2002-03-28 04:00:05 UTC
I cvsuped Wednesday, March 27 at 4:32 PM PST.  

I ran portupgrade -vr ruby (which upgraded portupgrade to 20020327.2)

I then ran portupgrade -vr gettext (which upgrade gettext and ORBit).

After upgrading ORBit, there was a hang during "Cleaning out 
obsolete shared libraries"  (I assume this is part of portsclean -L)

After several (close to five) minutes, I hit control-C, 
and portupgrade continued.
(Nothing else needed to be upgraded, and portupgrade reported the results.)

I then ran portupgrade -v linux-netscape, and portupgrade 
again hung in the same place.
Again, a control-C allowed portupgrade to finish successfully.

However, I am not sure that portsclean -L is actually finishing,
 since I don't see any reference to ldconfig running.

How-To-Repeat: Try to portupgrade a port with shared libraries.
Comment 1 albert.kinderman 2002-03-28 04:13:31 UTC
I ran portsclean -L (in non-interactive mode).  portsclean still 
asked me a question and stopped and waited for input from me.

overwrite /usr/local/lib/compat/pkg/libfreetype.so.6? (y/n [n])

My guess is that running portsclean -L from within portupgrade 
does not print the question to the console, so it is waiting for a 
user response which never comes.  This appears as a hang in 
portupgrade.  My response of control-C stopped portsclean and 
allowed portupgrade to continue.

Al

-- 
Albert Kinderman  California State University, Northridge
     Department of Systems and Operations Management
Comment 2 Patrick Li freebsd_committer freebsd_triage 2002-03-28 04:35:47 UTC
Responsible Changed
From-To: freebsd-ports->knu

Over to maintainer
Comment 3 Akinori MUSHA 2002-03-28 06:05:20 UTC
At Wed, 27 Mar 2002 20:13:31 -0800,
Albert Kinderman wrote:
> I ran portsclean -L (in non-interactive mode).  portsclean still 
> asked me a question and stopped and waited for input from me.
> 
> overwrite /usr/local/lib/compat/pkg/libfreetype.so.6? (y/n [n])
> 
> My guess is that running portsclean -L from within portupgrade 
> does not print the question to the console, so it is waiting for a 
> user response which never comes.  This appears as a hang in 
> portupgrade.  My response of control-C stopped portsclean and 
> allowed portupgrade to continue.

Thanks for the report.  I've just released 20020328 which should fix
the problem.

Fortunately, it is 100% safe to abort at the `Cleaning out obsolete
shared libraries' because it is done at the very end of the upgrading
procedure.

Regards,

-- 
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"Somewhere out of a memory.. of lighted streets on quiet nights.."
Comment 4 Akinori MUSHA freebsd_committer freebsd_triage 2002-03-28 12:55:15 UTC
State Changed
From-To: open->closed

Should be fixed in 20020328.  Thanks for the report.