Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jan 2006 20:43:17 GMT
From:      Victor Snezhko <snezhko@indorsoft.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/91279: [patch] x11-servers/xorg-fontserver startup script doesn't contain ldconfig dependency but actually depends on it
Message-ID:  <200601032043.k03KhHnA008974@www.freebsd.org>
Resent-Message-ID: <200601032050.k03KoAtg057725@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         91279
>Category:       ports
>Synopsis:       [patch] x11-servers/xorg-fontserver startup script doesn't contain ldconfig dependency but actually depends on it
>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:   Tue Jan 03 20:50:10 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Victor Snezhko
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
IndorSoft
>Environment:
System: FreeBSD freebsd.indorsoft.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Mon Jan 2 09:49:40 NOVT 2006 root@freebsd.indorsoft.ru:/home/vvs/obj/usr/src/sys/VVS i386

>Description:
I tried to install and run x11-servers/xorg-fontserver on a
FreeBSD 7.0-CURRENT machine.
When I added "xfs_enable=\"YES\"" to my /etc/rc.conf and rebooted,
xfs didn't start and complained it can't find libfreetype.so.9 library.
If I add ldconfig to the list of dependencies, everything works.
This malfunction is caused by the fact that on -current (and on
future FreeBSD 7.0) not only basesystem scripts are called in
order specified by rcorder script, but also X11 and local scripts.
If xfs startup script doesn't contain ldconfig dependency, it is
called before ldconfig (on -current) and therefore can't find
libfreetype.so.9 library.
>How-To-Repeat:
Install x11-servers/xorg-fontserver and enable it.
on 7.0-CURRENT it will fail to start and complain about libfreetype.so.9 library
>Fix:
Here is a trivial patch:

--- /usr/ports/x11-servers/xorg-fontserver/files/xfs.sh Wed Dec 14 00:59:12 2005
+++ /usr/ports/x11-servers/xorg-fontserver/files/xfs    Wed Jan  4 02:19:25 2006
@@ -4,7 +4,7 @@
 #
 
 # PROVIDE: xfs
-# REQUIRE: cleartmp
+# REQUIRE: cleartmp ldconfig
 # BEFORE:  LOGIN
 # KEYWORD: FreeBSD

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601032043.k03KhHnA008974>