From matthias.andree@gmx.de  Sat Jan 31 06:08:21 2004
Return-Path: <matthias.andree@gmx.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id D275C16A4CE; Sat, 31 Jan 2004 06:08:21 -0800 (PST)
Received: from mail.dt.e-technik.uni-dortmund.de (krusty.dt.E-Technik.Uni-Dortmund.DE [129.217.163.1])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id D0BD243D2D; Sat, 31 Jan 2004 06:08:20 -0800 (PST)
	(envelope-from matthias.andree@gmx.de)
Received: from m2a2.dyndns.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1])
	by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id D9F2A1BD19;
	Sat, 31 Jan 2004 15:08:19 +0100 (CET)
Received: from libertas.emma.line.org (libertas.emma.line.org [192.168.0.2])
	by merlin.emma.line.org (Postfix) with ESMTP id 1337E1AA4;
	Sat, 31 Jan 2004 15:08:18 +0100 (CET)
Received: from emma by libertas.emma.line.org with local (Exim 4.30; FreeBSD)
	id 1AmvnF-0009fU-LT; Sat, 31 Jan 2004 15:08:17 +0100
Message-Id: <E1AmvnF-0009fU-LT@libertas.emma.line.org>
Date: Sat, 31 Jan 2004 15:08:17 +0100
From: Matthias Andree <matthias.andree@gmx.de>
Reply-To: Matthias Andree <matthias.andree@gmx.de>
To: FreeBSD-gnats-submit@freebsd.org, gnome@freebsd.org
Cc: gnome@freebsd.org
Subject: untrusted RPATH in xmlcatalog 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         62162
>Category:       ports
>Synopsis:       untrusted RPATH in xmlcatalog
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 31 06:10:25 PST 2004
>Closed-Date:    Tue Feb 03 01:31:22 PST 2004
>Last-Modified:  Tue Feb 03 01:31:22 PST 2004
>Originator:     Matthias Andree
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.9-STABLE FreeBSD 4.9-STABLE #78: Wed Jan 28 22:34:32 CET 2004 toor@libertas.emma.line.org:/usr/src/sys/compile/LIBERTAS i386


	
>Description:
The libxml2 port installs lib/python2.3/site-packages/libxml2mod.so 
which lists
/usr/ports/textproc/libxml2/work/libxml2-2.6.5/.libs in its RPATH.
This shouldn't happen.

	
>How-To-Repeat:
install libxml2 package
readelf -d /usr/local/lib/python2.3/site-packages/libxml2mod.so | grep RPATH
	
>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: marcus 
Responsible-Changed-When: Sat Jan 31 13:08:10 PST 2004 
Responsible-Changed-Why:  
Over to libxml2 maintainers. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62162 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Sat Jan 31 13:08:27 PST 2004 
State-Changed-Why:  
This is a noble effort you're undertaking, but this bug is a bit misplaced. 
The problem lies in libtool (and it's not just FreeBSD-specific).  Libtool 
will add all -L directories to RPATH (which is wrong IMHO).  Libtool should 
be patched to honor its own hardcode_minus_L variable, and not hardcode 
those paths if not requested.  Please take this up with the libtool developers. 
If you do get a patch that can be applied to FreeBSD, please send it to our 
libtool maintainer, ade.  Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62162 
State-Changed-From-To: closed->open 
State-Changed-By: bland 
State-Changed-When: Tue Feb 3 01:26:28 PST 2004 
State-Changed-Why:  
Re-open PR for the good news. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62162 
State-Changed-From-To: open->closed 
State-Changed-By: bland 
State-Changed-When: Tue Feb 3 01:27:30 PST 2004 
State-Changed-Why:  
After anoter attempt to beat the monster we found the 
solution. 
Please update your ports tree. This should be fixed now. 
Thanks to marcus for on-line collaboration. 

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