From owner-freebsd-current@FreeBSD.ORG Sat Apr 18 18:18:16 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6CA21065677 for ; Sat, 18 Apr 2009 18:18:15 +0000 (UTC) (envelope-from mel.flynn+fbsd.current@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 4EB2D8FC16 for ; Sat, 18 Apr 2009 18:18:14 +0000 (UTC) (envelope-from mel.flynn+fbsd.current@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (gate.lan.rachie.is-a-geek.net [192.168.2.10]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id BF87C7E818; Sat, 18 Apr 2009 10:18:13 -0800 (AKDT) From: Mel Flynn To: freebsd-current@freebsd.org Date: Sat, 18 Apr 2009 20:18:09 +0200 User-Agent: KMail/1.11.2 (FreeBSD/8.0-CURRENT; KDE/4.2.2; i386; ; ) References: <49E7BE78.6000802@freebsd.org> <200904181358.50806.mel.flynn+fbsd.current@mailing.thruhere.net> <20090418101702.18a4fcdf.wmoran@potentialtech.com> In-Reply-To: <20090418101702.18a4fcdf.wmoran@potentialtech.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904182018.11123.mel.flynn+fbsd.current@mailing.thruhere.net> Cc: Bill Moran Subject: Re: Weird warnings from lots of applications 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: Sat, 18 Apr 2009 18:18:52 -0000 On Saturday 18 April 2009 16:17:02 Bill Moran wrote: > Mel Flynn wrote: > > On Saturday 18 April 2009 01:49:56 Tim Kientzle wrote: > > > Igor R wrote: > > > >> "unexpected character `{', expected keyword - e.g. `style' > > > > > > > > Looks like GTK? > > > > > > I can't find this message in the gtk20 source anywhere. > > > > > > I actually ran grep over /usr/local/lib and the only > > > library that has all of these strings is libpython. > > > Of course, according to 'ldd', none of the programs > > > I've seen generating these warnings uses libpython. > > > > Sure they do. Just not via linking (fork or dlopen, didn't care to look). > > But, there's a run dep right here: > > # /stable/root/bin/finddep.php www/firefox lang/python26 > > /usr/ports/x11/xcb-proto: /usr/local/bin/python2.6 => > > /usr/ports/lang/python26 /usr/ports/x11/libxcb: /usr/local/bin/python2.6 > > => /usr/ports/lang/python26 /usr/ports/devel/glib20: > > /usr/local/bin/python2.6 => /usr/ports/lang/python26 > > That finddep.php seems to be a rather brilliant script. Couldn't find it > on the WWW anywhere ... are you keeping the code secret? Lol, no. I think I posted it on -questions once, either way, it's below. Been too lazy to use an option for "look for build deps too", so I switch comments on the respective lines. -- Mel #!/usr/local/bin/php -q \n"); echo("\tFind which dependancy lists dep in origin\n"); exit(1); } function chkdep($val, $check) { if( !is_dir($val) ) { fprintf(STDERR, "No such dir: %s/%s\n", $GLOBALS['PORTSDIR'], $val ); return; } chdir($val); $_deps = preg_split('/\s/', shell_exec("/usr/bin/make -V LIB_DEPENDS -V RUN_DEPENDS") //shell_exec("/usr/bin/make -V LIB_DEPENDS -V RUN_DEPENDS -V BUILD_DEPENDS") ); foreach($_deps AS $_dep) { list($pkgname, $origin) = explode(':', $_dep); if( preg_match('/^\s*$/', $origin) ) continue; if( in_array($origin, $GLOBALS['CHECKED']) ) continue; if( $origin == $GLOBALS['PORTSDIR'] . '/' . $check ) echo("$val: $pkgname => $origin\n"); else { if( defined('DEBUG') ) { fprintf(STDERR, "%s != %s/%s\n", $origin, $GLOBALS['PORTSDIR'], $check ); } $GLOBALS['CHECKED'][] = $origin; chkdep($origin, $check); } } } if( $argc < 3 ) usage(); $PORTSDIR=('' != getenv('PORTSDIR') ) ? getenv('PORTSDIR') : '/usr/ports'; $pkg = $argv[1]; $dep = $argv[2]; if(!file_exists("$PORTSDIR/$pkg/Makefile") ) { fprintf(STDERR, "Orphaned port: $pkg\n"); exit(2); } $CHECKED=array(); chkdep($PORTSDIR . '/' . $pkg, $dep); ?>