From nobody@FreeBSD.org  Fri Sep 18 19:01:26 2009
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 733FD1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Sep 2009 19:01:26 +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 634ED8FC21
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Sep 2009 19:01:26 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n8IJ1PpL030713
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Sep 2009 19:01:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n8IJ1Pw5030712;
	Fri, 18 Sep 2009 19:01:25 GMT
	(envelope-from nobody)
Message-Id: <200909181901.n8IJ1Pw5030712@www.freebsd.org>
Date: Fri, 18 Sep 2009 19:01:25 GMT
From: Bruce Cran <bruce@cran.org.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [sysinstall] remove configuration of /usr/X11R6/lib as shared library path
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         138945
>Category:       bin
>Synopsis:       [patch] sysinstall(8): remove configuration of /usr/X11R6/lib as shared library path
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brucec
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 18 19:10:01 UTC 2009
>Closed-Date:    Sun Feb 28 14:04:03 UTC 2010
>Last-Modified:  Sun Feb 28 14:04:03 UTC 2010
>Originator:     Bruce Cran
>Release:        8.0-RC1
>Organization:
>Environment:
FreeBSD helix.draftnet 8.0-RC1 FreeBSD 8.0-RC1 #0: Fri Sep 18 01:57:55 BST 2009 brucec@helix.draftnet:/usr/obj/usr/src/sys/GENERIC i386
>Description:
During installation sysinstall runs ldconfig to configure several directories including /usr/X11R6/lib as directories containing shared libraries.  /usr/X11R6 is no longer created or used since xorg is now installed under /usr/local, and can be removed from the set of directories.
>How-To-Repeat:
Install FreeBSD. A warning is produced during installation that /usr/X11R6/lib doesn't exist.
>Fix:


Patch attached with submission follows:

--- usr.sbin/sysinstall/package.c.orig	2009-09-18 20:50:32.000000000 +0100
+++ usr.sbin/sysinstall/package.c	2009-09-18 20:50:51.000000000 +0100
@@ -139,7 +139,7 @@
 
     /* If necessary, initialize the ldconfig hints */
     if (!file_readable("/var/run/ld-elf.so.hints"))
-	vsystem("ldconfig /usr/lib /usr/lib/compat /usr/local/lib /usr/X11R6/lib");
+	vsystem("ldconfig /usr/lib /usr/lib/compat /usr/local/lib");
 
     /* Be initially optimistic */
     ret = DITEM_SUCCESS;


>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/138945: commit references a PR
Date: Mon,  8 Feb 2010 21:29:45 +0000 (UTC)

 Author: brucec
 Date: Mon Feb  8 21:29:34 2010
 New Revision: 203690
 URL: http://svn.freebsd.org/changeset/base/203690
 
 Log:
   Xorg isn't treated as a distribution, so /usr/X11R6/lib shouldn't be configured when running ldconfig.
   
   PR:		bin/138945
   Approved by:	rrs (mentor)
   MFC after:	3 days
 
 Modified:
   head/usr.sbin/sysinstall/package.c
 
 Modified: head/usr.sbin/sysinstall/package.c
 ==============================================================================
 --- head/usr.sbin/sysinstall/package.c	Mon Feb  8 21:24:12 2010	(r203689)
 +++ head/usr.sbin/sysinstall/package.c	Mon Feb  8 21:29:34 2010	(r203690)
 @@ -139,7 +139,7 @@ package_extract(Device *dev, char *name,
  
      /* If necessary, initialize the ldconfig hints */
      if (!file_readable("/var/run/ld-elf.so.hints"))
 -	vsystem("ldconfig /usr/lib /usr/lib/compat /usr/local/lib /usr/X11R6/lib");
 +	vsystem("ldconfig /usr/lib /usr/lib/compat /usr/local/lib");
  
      /* Be initially optimistic */
      ret = DITEM_SUCCESS;
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched  
State-Changed-By: brucec 
State-Changed-When: Mon Feb 8 21:41:32 UTC 2010 
State-Changed-Why:  
Fix has been checked in to -CURRENT. 


Responsible-Changed-From-To: freebsd-bugs->brucec 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Mon Feb 8 21:41:32 UTC 2010 
Responsible-Changed-Why:  
Take. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/138945: commit references a PR
Date: Thu, 18 Feb 2010 10:48:46 +0000 (UTC)

 Author: brucec
 Date: Thu Feb 18 10:48:37 2010
 New Revision: 204034
 URL: http://svn.freebsd.org/changeset/base/204034
 
 Log:
   MFC r203690:
   
   Xorg isn't treated as a distribution, so /usr/X11R6/lib shouldn't be
   configured when running ldconfig.
   
   PR:	bin/138945
   Approved by:	rrs (mentor)
 
 Modified:
   stable/8/usr.sbin/sysinstall/package.c
 Directory Properties:
   stable/8/usr.sbin/sysinstall/   (props changed)
 
 Modified: stable/8/usr.sbin/sysinstall/package.c
 ==============================================================================
 --- stable/8/usr.sbin/sysinstall/package.c	Thu Feb 18 10:46:25 2010	(r204033)
 +++ stable/8/usr.sbin/sysinstall/package.c	Thu Feb 18 10:48:37 2010	(r204034)
 @@ -139,7 +139,7 @@ package_extract(Device *dev, char *name,
  
      /* If necessary, initialize the ldconfig hints */
      if (!file_readable("/var/run/ld-elf.so.hints"))
 -	vsystem("ldconfig /usr/lib /usr/lib/compat /usr/local/lib /usr/X11R6/lib");
 +	vsystem("ldconfig /usr/lib /usr/lib/compat /usr/local/lib");
  
      /* Be initially optimistic */
      ret = DITEM_SUCCESS;
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed  
State-Changed-By: brucec 
State-Changed-When: Sun Feb 28 14:03:32 UTC 2010 
State-Changed-Why:  
Fix has been committed to stable/8. 

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