Subject: pkg/25674: pkgsrc/net/vsftpd compiles on IPv6-capable platforms only
To: None <>
From: None <>
List: pkgsrc-bugs
Date: 05/22/2004 18:32:20
>Number:         25674
>Category:       pkg
>Synopsis:       pkgsrc/net/vsftpd compiles on IPv6-capable platforms only
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 22 18:33:01 UTC 2004
>Originator:     Georg Schwarz
>Release:        current pkgsrc
IRIX lorenz 5.3 08031225 IP20 mips
vsftpd's code assumes that the system has IPv6-capable libraries and header files. If this is not the case compiling fails.

The best fix would be to fix the soure (maybe by a huge number of #ifdefs) to make it work on IPv4 only platforms as well. Until this happens I propose the following addition for pkgsrc/net/vsftpd/Makefile, which prevents failing in the midst of the ompiling process (after needlessly having fetched the source etc.) but rather leads to a graceful bailout just right in the begining. It would even be nicer if that code could print out a little message simliar to the one in the comment line.

.include "../../mk/"
.if ${_OPSYS_HAS_INET6} != "yes"
# for the time being, vsftpd requires IPv6-enabled system libraries to compile
NOT_FOR_PLATFORM=       *-*-*