pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/42607: pkg_add/ftp hangs when there are dependencies



>Number:         42607
>Category:       pkg
>Synopsis:       pkg_add hangs in ftp when there are dependencies (multiple 
>packages)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 11 15:45:00 +0000 2010
>Originator:     Louis Guillaume
>Release:        NetBSD 5.0_STABLE
>Environment:
System: NetBSD xxx.xxx.xxxxxxxx 5.0_STABLE NetBSD 5.0_STABLE (GENERIC) #13: Wed 
Dec 30 14:39:00 EST 2009 
louis%xxx.xxx.xxxxxxxx@localhost:/usr/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
When attempting to install a package with dependencies over ftp; i.e.
setting PKG_PATH=ftp://xxxx and then running "pkg_add" the process
appears to hang. Packages are not installed. Interestingly, it does
work for a single package in the case where there are no dependencies.

>How-To-Repeat:
Assuming that the graphics/tiff and graphics/jpeg are not installed:

# export PKG_PATH=ftp://some.ftp.server/path/to/packages/All
# pkg_add tiff

  <hangs> (Tiff requires jpeg)

# pkg_add jpeg

  <Success>

# pkg_add tiff

  <Success>

I was able to reproduce this on AIX, Linux and NetBSD. It was happening
with the netbsd-5 pkg_install (in October) and also in the latest pkgsrc
pkg_install (also in October).

In this discussion:
http://mail-index.netbsd.org/tech-pkg/2009/10/14/msg004085.html Joerg
Sonnenberger was able to reproduce the problem and provide (offline)
a workaround: comment out the QUIT command in ftp.c, line 1042 of
libfetch.

See also this discussion:
http://mail-index.netbsd.org/netbsd-users/2010/01/04/msg005242.html

>Fix:
A work-around is above that may be the fix, but I don't know if it is
the right solution.



Home | Main Index | Thread Index | Old Index