misc/177481: ftp/pure-ftpd start error when lang/perl5.14 has unset USE_PERL

Lukasz Wasikowski lukasz at wasikowski.net
Fri Mar 29 17:00:01 UTC 2013

>Number:         177481
>Category:       misc
>Synopsis:       ftp/pure-ftpd start error when lang/perl5.14 has unset USE_PERL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 29 17:00:00 UTC 2013
>Originator:     Lukasz Wasikowski
>Release:        9.1-STABLE
FreeBSD vesper.wasikowski.net 9.1-STABLE FreeBSD 9.1-STABLE #27 r247781: Tue Mar  5 11:51:35 CET 2013     root@:/usr/obj/usr/src/sys/vesper  i386

When lang/perl5.14 is installed without USE_PERL knob then perl binaries are at:


and there's no symlinks to those in /usr/bin

ftp/pure-ftpd's config parser /usr/local/sbin/pure-config.pl use /usr/bin/env perl as shebang.

When pure-ftpd is started by invoking /usr/local/etc/rc.d/pure-ftpd script everything works ok, as /usr/bin/env perl is expanded to /usr/local/bin/perl

But when pure-ftpd is started by invoking service pure-ftpd start /usr/local/bin is not searched and startup fails.
Install lang/perl5.14 with OPTIONS_FILE_UNSET+=USE_PERL

# /usr/local/etc/rc.d/pure-ftpd start
Starting pureftpd.

This worked. Stop the daemon:

# /usr/local/etc/rc.d/pure-ftpd stop
Stopping pureftpd.
Waiting for PIDS: 45876.

Start it via service:

# service pure-ftpd start
Starting pureftpd.
env: perl: No such file or directory
/usr/local/etc/rc.d/pure-ftpd: WARNING: failed to start pureftpd

Attached patch should help.

Patch attached with submission follows:

diff -ruN pure-ftpd.bak/Makefile pure-ftpd/Makefile
--- pure-ftpd.bak/Makefile	2012-12-30 01:46:54.000000000 +0100
+++ pure-ftpd/Makefile	2013-03-29 17:48:28.757265042 +0100
@@ -167,7 +167,7 @@
 	@${ECHO_MSG} ""
-	@${REINPLACE_CMD} -e 's|$${exec_prefix}|${PREFIX}|g' \
+	@${REINPLACE_CMD} -e 's|$${exec_prefix}|${PREFIX}|g' -e 's|@PERL@|${PERL}|g' \


More information about the freebsd-bugs mailing list