From nobody@FreeBSD.org  Mon Jul 30 09:54:30 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2949016A418
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Jul 2007 09:54:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 1CB5113C480
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Jul 2007 09:54:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l6U9sT02081115
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Jul 2007 09:54:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l6U9sT7D081114;
	Mon, 30 Jul 2007 09:54:29 GMT
	(envelope-from nobody)
Message-Id: <200707300954.l6U9sT7D081114@www.freebsd.org>
Date: Mon, 30 Jul 2007 09:54:29 GMT
From: Volker Werth <volker@vwsoft.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] mpd4: 'libpdel.so.4 not found' on startup - rcorder problem
X-Send-Pr-Version: www-3.0

>Number:         115035
>Category:       ports
>Synopsis:       [patch] net/mpd4: 'libpdel.so.4 not found' on startup - rcorder problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 30 10:00:06 GMT 2007
>Closed-Date:    Tue Aug 28 20:19:55 GMT 2007
>Last-Modified:  Tue Aug 28 20:19:55 GMT 2007
>Originator:     Volker Werth
>Release:        6.2-RELEASE-p6
>Organization:
>Environment:
FreeBSD GwGrt.elbekies.net 6.2-RELEASE-p6 FreeBSD 6.2-RELEASE-p6 #7: Sat Jul 14 18:34:43 CEST 2007     root@GwGrt.elbekies.net:/usr/obj/usr/src/sys/GWGRT  i386
>Description:
mpd4 fails at startup as rcorder is wrong.

This has been filed in the logs:
Jul 28 12:53:23 GwGrt kernel: Starting mpd4.
Jul 28 12:53:23 GwGrt kernel: /libexec/ld-elf.so.1: 
Jul 28 12:53:23 GwGrt kernel: Shared object "libpdel.so.0" not found, required b
y "mpd4"

Another script (not quite sure which one but I suspect one from ports) has broken rcorder but the attached fix makes sure at least mpd4 can startup smoothly. Currently ldconfig is running really late and there seems to be the need to fix more rc.d scripts.

rc.d/mpd4 is being started before rc.d/ldconfig (I'm unable to recreate the wrong rcorder on a 6-STABLE box but the RELEASE version rcorder on one machine clearly shows the problem).

As I'm not happy with this quick mpd fix, I'll try to work out other rcorder dependency problems but I would like to have a quick fix for mpd first so the box is able to go online even with other rcorder problems. Also this fix will prevent us from similar problems in the future (which may get introduced easily).
>How-To-Repeat:

>Fix:
--- mpd4.orig   Mon Jul 30 11:27:59 2007
+++ mpd4        Mon Jul 30 10:03:34 2007
@@ -4,7 +4,7 @@
 #
 
 # PROVIDE: mpd
-# REQUIRE: SERVERS
+# REQUIRE: SERVERS ldconfig
 # BEFORE: DAEMON
 # KEYWORD: shutdown


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mav 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Jul 31 01:42:25 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

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

From: Alexander Motin <mav@freebsd.org>
To: bug-followup@FreeBSD.org,  volker@vwsoft.com
Cc:  
Subject: Re: ports/115035: [patch] net/mpd4: 'libpdel.so.4 not found' on startup
 - rcorder problem
Date: Tue, 31 Jul 2007 13:50:25 +0300

 As I can see in 7-CURRENT and on my 6-STABLE boxes rc.d/SERVERS includes
 line:
 # REQUIRE: mountcritremote abi ldconfig
 
 After that I am not sure it should be done in port. Should it?

From: Volker <volker@vwsoft.com>
To: Alexander Motin <mav@freebsd.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/115035: [patch] net/mpd4: 'libpdel.so.4 not found' on startup
 - rcorder problem
Date: Tue, 31 Jul 2007 14:17:22 +0200

 On 07/31/07 12:50, Alexander Motin wrote:
 > As I can see in 7-CURRENT and on my 6-STABLE boxes rc.d/SERVERS includes
 > line:
 > # REQUIRE: mountcritremote abi ldconfig
 > 
 > After that I am not sure it should be done in port. Should it?
 
 Alexander,
 
 I just checked the 6.2-RELEASE box and it's SERVERS rc file also
 requires ldconfig. Unfortunately rc.d/mpd4 was fired before ldconfig
 on that box (I suspect this ordering problem to come from iked from
 the racoon2 port but haven't checked that deeply).
 
 Explicitly REQUIREing ldconfig in rc.d/mpd4 fixed that even while it's
 not mpd4 which is causing this trouble. It's just rc ordering problems
 are too easy to run into as soon as another port is causing a circular
 dependency. I'm quite unsure whether or not I should suggest you to
 commit this fix but it would make sure mpd4 does it's job even while
 other scripts are bad. Your choice to 'fix' this or not.
 
 You may suspend this PR and commit the fix as soon as anybody else is
 running into this problem as I know how to deal with that problem,
 it's not that important to me.
 
 Volker

From: "M.Hirsch" <M.Hirsch@McGrip.de>
To: bug-followup@FreeBSD.org,  volker@vwsoft.com
Cc:  
Subject: Re: ports/115035: [patch] net/mpd4: 'libpdel.so.4 not found' on startup
 - rcorder problem
Date: Thu, 02 Aug 2007 11:10:14 +0200

 I am experiencing the exact same problem with a slightly older version.
 
 ---
 # uname -a
 FreeBSD myserver 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #0: Wed Jul  4 
 12:29:45 CEST 2007     root@myserver:/usr/obj/usr/src/sys/GENERIC  i386
 # pkg_info |grep mpd
 mpd-4.2.1           Multi-link PPP daemon based on netgraph(4)
 ---
 
 My rcorder dependencies look different though:
 ---
 # head -10 /usr/local/etc/rc.d/mpd4
 #!/bin/sh
 #
 # $FreeBSD: ports/net/mpd4/files/mpd4.sh.in,v 1.2 2007/02/17 04:50:11 
 alepulver Exp $
 #
 
 # PROVIDE: mpd
 # REQUIRE: NETWORKING
 # BEFORE: SERVERS
 
 #
 ---
 
 I do not have the racoon port installed.
 
 Unfortunately I can't upgrade ports right now as I am the only sysadmin 
 here and I am going on holidays this monday.
 
 On an unrelated note, when I reloaded the PR page at 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=115035&cat= , I downloaded 
 the perl sources to the gnats system....?
 
 M.

From: Alexander Motin <mav@freebsd.org>
To: "M.Hirsch" <M.Hirsch@McGrip.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/115035: [patch] net/mpd4: 'libpdel.so.4 not found' on startup
 - rcorder problem
Date: Thu, 02 Aug 2007 12:54:49 +0300

 M.Hirsch wrote:
 >  I am experiencing the exact same problem with a slightly older version.
 >  My rcorder dependencies look different though:
 >  # REQUIRE: NETWORKING
 >  # BEFORE: SERVERS
 
 At mpd-4.2.2 it was changed to
 # REQUIRE: SERVERS
 # BEFORE: DAEMON
 and in my opinion it is now correct.
 
 -- 
 Alexander Motin
State-Changed-From-To: open->suspended 
State-Changed-By: mav 
State-Changed-When: Tue Aug 14 22:08:12 UTC 2007 
State-Changed-Why:  
This is probably not an mpd problem now. Postpone solution until  
we have more feedbacks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115035 
State-Changed-From-To: suspended->closed 
State-Changed-By: mav 
State-Changed-When: Tue Aug 28 20:18:23 UTC 2007 
State-Changed-Why:  
This is not an mpd problem. 

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