Gentoo Archives: gentoo-commits

From: "Jim Ramsay (lack)" <lack@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-wm/fluxbox/files: fluxbox-1.3.0-osx-has-otool.patch
Date: Tue, 22 Feb 2011 13:23:05
Message-Id: 20110222132255.4A9B220057@flycatcher.gentoo.org
1 lack 11/02/22 13:22:55
2
3 Added: fluxbox-1.3.0-osx-has-otool.patch
4 Log:
5 Fluxbox 1.3.0 is released! (Bug #355643)
6
7 (Portage version: 2.1.9.34/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 x11-wm/fluxbox/files/fluxbox-1.3.0-osx-has-otool.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/fluxbox/files/fluxbox-1.3.0-osx-has-otool.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/fluxbox/files/fluxbox-1.3.0-osx-has-otool.patch?rev=1.1&content-type=text/plain
14
15 Index: fluxbox-1.3.0-osx-has-otool.patch
16 ===================================================================
17 --- util/fbsetbg
18 +++ util/fbsetbg
19 @@ -356,7 +356,10 @@
20 if [ ! "$wpsetter" = Esetroot ]; then
21 WPSETTER=$wpsetter
22 break
23 - elif ldd `which Esetroot`|grep libImlib 2>&1 > /dev/null; then
24 + elif ( [[ `type -t otool` == file ]] \
25 + && otool -L `which Esetroot`|grep libImlib 2>&1 > /dev/null ) \
26 + || ( [[ `type -t ldd` == file ]] \
27 + && ldd `which Esetroot`|grep libImlib 2>&1 > /dev/null ); then
28 WPSETTER=$wpsetter
29 break
30 else