From owner-freebsd-ports-bugs@FreeBSD.ORG Thu May 25 04:00:38 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DA3216A424 for ; Thu, 25 May 2006 04:00:38 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DACF43D55 for ; Thu, 25 May 2006 04:00:37 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4P40bUn010495 for ; Thu, 25 May 2006 04:00:37 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4P40ahI010478; Thu, 25 May 2006 04:00:37 GMT (envelope-from gnats) Resent-Date: Thu, 25 May 2006 04:00:37 GMT Resent-Message-Id: <200605250400.k4P40ahI010478@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jeremy Chadwick Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43ACF16A423 for ; Thu, 25 May 2006 03:55:52 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx1.parodius.com (mx1.parodius.com [64.62.145.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18E7643D45 for ; Thu, 25 May 2006 03:55:51 +0000 (GMT) (envelope-from jdc@parodius.com) Received: by mx1.parodius.com (Postfix, from userid 500) id CAC5F5D41; Wed, 24 May 2006 20:55:51 -0700 (PDT) Message-Id: <20060525035551.CAC5F5D41@mx1.parodius.com> Date: Wed, 24 May 2006 20:55:51 -0700 (PDT) From: Jeremy Chadwick To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/97876: mail/fetchmail -- rc.subr script doesn't work on 4.x X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jeremy Chadwick List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 May 2006 04:00:38 -0000 >Number: 97876 >Category: ports >Synopsis: mail/fetchmail -- rc.subr script doesn't work on 4.x >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 25 04:00:36 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jeremy Chadwick >Release: FreeBSD 4.11-STABLE i386 >Organization: Parodius Networking >Environment: System: FreeBSD pentarou.parodius.com 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu Jan 12 01:50:11 PST 2006 root@pentarou.parodius.com:/usr/obj/usr/src/sys/PENTAROU i386 >Description: fetchmail daemon startup script (for rc.subr) is not 4.x compatible. The problem is that the fetchmail.sh script tries to blindly call /etc/rc.subr, which is only available on 5.x and 6.x. This is incorrect; it needs to use %%RC_SUBR%% which will be expanded properly at patch or install-time. See line 49 of files/fetchmail.in for what I mean. :-) I've also cleaned up a typo in the Makefile. >How-To-Repeat: Try to start /usr/local/etc/rc.d/fetchmail.sh on a 4.x box. >Fix: Apply the below patches. --- files/fetchmail.in.orig Wed May 17 01:06:12 2006 +++ files/fetchmail.in Wed May 24 20:49:22 2006 @@ -46,7 +46,7 @@ # * `awaken': Sends a signal to the daemon(s) to check for new mail # immediately -. /etc/rc.subr +. %%RC_SUBR%% name=fetchmail rcvar=`set_rcvar` --- Makefile.orig Wed May 17 01:06:12 2006 +++ Makefile Wed May 24 20:53:19 2006 @@ -24,7 +24,7 @@ RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root.crt:${PORTSDIR}/security/ca-roots USE_RC_SUBR= fetchmail -FETCHMAILRC= ${PREFIX}/etc//fetchmailrc +FETCHMAILRC= ${PREFIX}/etc/fetchmailrc USE_BZIP2= yes USE_GMAKE= yes >Release-Note: >Audit-Trail: >Unformatted: