From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Feb 25 20:30:08 2007 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 [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B01C16A402 for ; Sun, 25 Feb 2007 20:30:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id E927513C428 for ; Sun, 25 Feb 2007 20:30:07 +0000 (UTC) (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 l1PKU4gx010672 for ; Sun, 25 Feb 2007 20:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l1PKU490010671; Sun, 25 Feb 2007 20:30:04 GMT (envelope-from gnats) Resent-Date: Sun, 25 Feb 2007 20:30:04 GMT Resent-Message-Id: <200702252030.l1PKU490010671@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, Eygene Ryabinkin Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C5AB516A403 for ; Sun, 25 Feb 2007 20:22:22 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from pobox.codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 8580913C461 for ; Sun, 25 Feb 2007 20:22:22 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from localdomain by pobox.codelabs.ru with local id 1HLPsx-000Pss-89; Sun, 25 Feb 2007 23:22:19 +0300 Message-Id: Date: Sun, 25 Feb 2007 23:22:19 +0300 From: Eygene Ryabinkin Sender: rea-fbsd@codelabs.ru To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: clement@FreeBSD.org Subject: ports/109536: fix ports/www/apache22 rc.d script for multiple profiles X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eygene Ryabinkin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 20:30:08 -0000 >Number: 109536 >Category: ports >Synopsis: fix ports/www/apache22 rc.d script for multiple profiles >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 25 20:30:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Eygene Ryabinkin >Release: FreeBSD 6.2-STABLE i386 >Organization: Code Labs >Environment: System: FreeBSD XXX 6.2-STABLE FreeBSD 6.2-STABLE #13: Mon Feb 12 15:59:07 MSK 2007 root@XXX:/usr/obj/usr/src/sys/XXX i386 >Description: The port www/apache22 installs its rc.d script without the '.sh' extension since 5.x or 6.x. But the script references itself as the apache22.sh. This breaks the multiple Apache profiles case, since script is trying to invoke itself but ises the wrong name. >How-To-Repeat: Look into the files/apache22.sh.in, line 91: you will see that the script tries to call /usr/local/etc/rc.d/apache22.sh. >Fix: The following patch will cure the things on 6.x and 7.x, but I do not have 4.x at hand to test if it will work on it. --- Makefile.orig Sun Feb 25 22:41:47 2007 +++ Makefile Sun Feb 25 23:00:18 2007 @@ -50,6 +50,7 @@ USE_AUTOTOOLS= autoconf:259 libtool:15 USE_PERL5= yes USE_RC_SUBR= apache22.sh +SUB_LIST+= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX} LIBTOOLFILES= configure .if !defined(WITH_APR_FROM_PORTS) --- files/apache22.sh.in.orig Sun Feb 25 22:45:08 2007 +++ files/apache22.sh.in Sun Feb 25 22:46:38 2007 @@ -91,7 +91,7 @@ if [ "x$1" != "xrestart" ]; then for profile in ${apache22_profiles}; do echo "===> apache22 profile: ${profile}" - %%PREFIX%%/etc/rc.d/apache22.sh $1 ${profile} + %%PREFIX%%/etc/rc.d/apache22%%RC_SUBR_SUFFIX%% $1 ${profile} retcode="$?" if [ "0${retcode}" -ne 0 ]; then failed="${profile} (${retcode}) ${failed:-}" >Release-Note: >Audit-Trail: >Unformatted: