>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 >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 29 17:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Lukasz Wasikowski >Release: 9.1-STABLE >Organization: >Environment: 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
>Description: When lang/perl5.14 is installed without USE_PERL knob then perl binaries are at: /usr/local/bin/perl /usr/local/bin/perl5 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. >How-To-Repeat: 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 >Fix: 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} "" post-patch: - @${REINPLACE_CMD} -e 's|$${exec_prefix}|${PREFIX}|g' \ + @${REINPLACE_CMD} -e 's|$${exec_prefix}|${PREFIX}|g' -e 's|@PERL@|${PERL}|g' \ ${WRKSRC}/configuration-file/pure-config.pl.in post-install: >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"