From owner-freebsd-current@FreeBSD.ORG Sun Mar 4 23:07:05 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B0663106566B; Sun, 4 Mar 2012 23:07:05 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 69DCB8FC08; Sun, 4 Mar 2012 23:07:05 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 6506E1E002C4; Mon, 5 Mar 2012 00:06:58 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.4) with ESMTP id q24N6bpA027785; Mon, 5 Mar 2012 00:06:37 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id q24N6aZM027784; Mon, 5 Mar 2012 00:06:36 +0100 (CET) (envelope-from nox) Date: Mon, 5 Mar 2012 00:06:36 +0100 (CET) From: Juergen Lock Message-Id: <201203042306.q24N6aZM027784@triton8.kn-bremen.de> To: guru@unixarea.de X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <20120302075153.GA1349@tiny> References: <20120301153409.GA2478@tiny> <201203012113.q21LDEjW009574@triton8.kn-bremen.de> Organization: Cc: gnome@freebsd.org, freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Subject: Re: skype-2.1.0.81,1 && problem in child proc X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2012 23:07:05 -0000 In article <20120302075153.GA1349@tiny> you write: >El día Thursday, March 01, 2012 a las 10:13:14PM +0100, Juergen Lock escribió: > >> I haven't really looked into this in detail but my guess is this is >> the Linux v4l2convert.so that is LD_PRELOAD'ed into skype for the >> benefit of cameras not able to provida yuv video. So I guess we'd >> need to prepend a wrapper for xdg-open to PATH that resets LD_PRELOAD >> before executing the real /usr/local/bin/xdg-open . (And btw I had >> to do something similar for google earth which sets LD_LIBRARY_PATH, >> see >> >> /usr/ports/astro/google-earth/files/browserwrapper >> >> and >> >> /usr/ports/astro/google-earth/files/patch-bin-googleearth >> >> .) >> >> Hm or should the xdg-utils port be patched to just unset LD_PRELOAD >> uncondtionally? I'll Cc gnome@ which is listed as maintainer for >> that port... > >I've set now a hardcoded 'unset LD_PRELOAD' in /usr/local/bin/xdg-open >and on click on the URL konqueror comes up fine with the URL; thanks for >the hint; Can you test the following patch? Also at: http://people.freebsd.org/~nox/tmp/xdg-utils-linux.patch Index: files/patch-scripts_xdg-open =================================================================== RCS file: /home/pcvs/ports/devel/xdg-utils/files/patch-scripts_xdg-open,v retrieving revision 1.2 diff -u -p -r1.2 patch-scripts_xdg-open --- files/patch-scripts_xdg-open 16 Aug 2009 03:41:39 -0000 1.2 +++ files/patch-scripts_xdg-open 4 Mar 2012 22:30:59 -0000 @@ -1,6 +1,19 @@ ---- scripts/xdg-open.orig 2009-08-15 13:22:26.000000000 -0400 -+++ scripts/xdg-open 2009-08-15 13:26:02.000000000 -0400 -@@ -364,7 +364,9 @@ open_generic() +--- scripts/xdg-open.orig ++++ scripts/xdg-open +@@ -31,6 +31,12 @@ + # + #--------------------------------------------- + ++# If we are started from a Linux app with LD_PRELOAD set unset that ++# so native apps (like browers) won't fail to start. ++if [ "x$(uname)" = "xLinux" ]; then ++ unset LD_PRELOAD ++fi ++ + manualpage() + { + cat << _MANUALPAGE +@@ -364,7 +370,9 @@ open_generic() for browser in $BROWSER; do if [ x"$browser" != x"" ]; then Thanx! :) If it works I hope it can be committed (along with a PORTREVISION bump of course...) Juergen