From root@bit0.com  Wed Jan  2 07:57:31 2008
Return-Path: <root@bit0.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DE2AB16A417
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  2 Jan 2008 07:57:31 +0000 (UTC)
	(envelope-from root@bit0.com)
Received: from mindcrime.bit0.com (bit0.com [207.246.88.211])
	by mx1.freebsd.org (Postfix) with ESMTP id A94E213C45D
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  2 Jan 2008 07:57:31 +0000 (UTC)
	(envelope-from root@bit0.com)
Received: by mindcrime.bit0.com (Postfix, from userid 0)
	id 3DEBC1E33C1; Wed,  2 Jan 2008 02:40:48 -0500 (EST)
Message-Id: <20080102074048.3DEBC1E33C1@mindcrime.bit0.com>
Date: Wed,  2 Jan 2008 02:40:48 -0500 (EST)
From: Mike Andrews <mandrews@bit0.com>
Reply-To: Mike Andrews <mandrews@bit0.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: net-im/jabberd startup script doesn't use "REQUIRE: mysql" when mysql enabled
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         119247
>Category:       ports
>Synopsis:       net-im/jabberd startup script doesn't use "REQUIRE: mysql" when mysql enabled
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 02 08:00:01 UTC 2008
>Closed-Date:    Sun Jan 06 16:18:51 UTC 2008
>Last-Modified:  Sun Jan 06 16:18:51 UTC 2008
>Originator:     Mike Andrews
>Release:        FreeBSD 7.0-RC1 amd64
>Organization:
>Environment:
System: FreeBSD mindcrime.int.bit0.com 7.0-RC1 FreeBSD 7.0-RC1 #16: Mon Dec 24 21:16:22 EST 2007 mandrews@mindcrime.int.bit0.com:/usr/obj/usr/src/sys/MINDCRIME amd64


>Description:
	The net-im/jabberd port installs /usr/local/etc/rc.d/jabberd with
	a standard "REQUIRE: DAEMON" line.

	net-im/jabberd has numerous storage backend knobs: MySQL, Postgres,
	BDB, SQlite, LDAP, etc.  Enabling a backend that requires a separate
	daemon to be running, including the default MySQL, should add that
	to the REQUIRE: line so that the backend starts before jabberd.

	Currently, jabberd fails to start when the system boots because rcorder
	places mysql-server after jabberd.

>How-To-Repeat:
	Install net-im/jabberd port, configure it with MySQL as the backend,
	and reboot: jabberd will try and fail to start before mysql-server

>Fix:
	Modify files/jabberd.in and the Makefile and whatever else is needed
	to tweak the REQUIRE: line based on the selected storage backend.
	(unless it doesn't need a daemon running, like SQLite or BDB)

	The net/freeradius port has some logic to do this, so that could be
	the basis for creating a patch.  I'm not completely up on all the
	different rcorder keywords so I haven't created a patch myself.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mm 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Jan 2 08:00:07 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119247 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/119247: commit references a PR
Date: Thu,  3 Jan 2008 15:32:46 +0000 (UTC)

 mm          2008-01-03 15:32:41 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-im/jabberd       Makefile 
     net-im/jabberd/files jabberd.in 
   Log:
   - Remove optional support for Cyrus SASL (unsupported from 2.1.20) [1]
   - Add support for backend daemon requires to startup script (WITH_REQUIRES) [2]
   - Bump PORTREVISION
   
   PR:             ports/119287 [1], ports/119247 [2]
   Submitted by:   Denis Eremenko [1], Mike Andrews [2]
   
   Revision  Changes    Path
   1.53      +14 -14    ports/net-im/jabberd/Makefile
   1.2       +2 -3      ports/net-im/jabberd/files/jabberd.in
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: mm 
State-Changed-When: Sun Jan 6 16:18:50 UTC 2008 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119247 
>Unformatted:
