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 
>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
System: NetBSD 5.0_STABLE NetBSD 5.0_STABLE (GENERIC) #13: Wed 
Dec 30 14:39:00 EST 2009 i386
Architecture: i386
Machine: i386
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.

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


# pkg_add tiff


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: Joerg
Sonnenberger was able to reproduce the problem and provide (offline)
a workaround: comment out the QUIT command in ftp.c, line 1042 of

See also this discussion:

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