From owner-freebsd-ports@FreeBSD.ORG Mon May 3 12:11:20 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A287106564A; Mon, 3 May 2010 12:11:20 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id E372F8FC19; Mon, 3 May 2010 12:11:19 +0000 (UTC) Received: from outgoing.leidinger.net (pD954F305.dip.t-dialin.net [217.84.243.5]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 5BB6D84424B; Mon, 3 May 2010 13:51:56 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 38A7D508A; Mon, 3 May 2010 13:51:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1272887510; bh=NDgeNjfCxG1NsoaWIqlz2gQaxrD1PC2QAQYBD4iZVts=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=tKaakT2aFknQxB68hpCEhYhJN9vh62UDt+IvrX/iamYL4rtuGGJcXv9VCTqIdUECk m9a06pjufIL1orqmNoPs8aidfkPZCZUWHxDG21zeBT/sd3h1Zergbh7NFzOviPWhaL sSa3jwus64WTFUiP8IiCvYV0Gz9x1fTRzE1ek3T95uQGCVDV7JXuQe3dMmMl9xwbm4 SYXQpK0Cde52waFBL6ta/22dcqPxwV030wS+kmVWpJIhZxI7nt6R1xTmpdPkXu6JK7 gNrwKS6ah1r4ZGWFxAiR45Uigv7dKoIbimkp8LZHLakbzg4VVXr2hWVX3CMtVOUC3z ey3hH/laxQuLw== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o43BpkNs071311; Mon, 3 May 2010 13:51:46 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Mon, 03 May 2010 13:51:45 +0200 Message-ID: <20100503135145.785968lw62popj40@webmail.leidinger.net> Date: Mon, 03 May 2010 13:51:45 +0200 From: Alexander Leidinger To: Doug Barton References: <4BDD1728.8080903@FreeBSD.org> <1272795699.58527.26.camel@headache.rainbow-runner.nl> <4BDDEC67.7090808@FreeBSD.org> <4BDDFC70.1040609@freebsd.org> <4BDE2225.30805@FreeBSD.org> In-Reply-To: <4BDE2225.30805@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 5BB6D84424B.0F9A0 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.209, required 6, autolearn=disabled, ALL_TRUSTED -1.44, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, TW_BJ 0.08, TW_BP 0.08, TW_IB 0.08) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1273492320.95839@K3xHZk+lBzHvUltdo9xK4w X-EBL-Spam-Status: No Cc: gnome@FreeBSD.org, Koop Mast , Joe Marcus Clarke , freebsd-ports@FreeBSD.org Subject: Re: Grandfather dependencies completely out of control X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2010 12:11:20 -0000 Quoting Doug Barton (from Sun, 02 May 2010 18:08:53 -0700): > On 05/02/10 15:28, Joe Marcus Clarke wrote: >> On 5/2/10 5:19 PM, Doug Barton wrote: >>> On 05/02/10 03:21, Koop Mast wrote: >>>> One of the scripts provided by devel/glib20 is a perl script. >>>> That is the reason why >>>> we need perl. >>> >>> Thanks for the response, couple things come to mind. First, how many >>> things actually make use of those perl/python scripts? If the number is >>> small they should probably be OPTIONS that default to off, or slave >>> ports as Thomas suggested. >> >> The script (glib-mkenums) is actually very important to almost all ports >> which depend on glib. Yes, what Thomas suggested could be done with >> some considerable work. What might be better is to have someone versed >> in shell scripting translate this script to sh. I think the GNOME guys >> would be fine to accept that. > > Please note that I'm not overwhelmingly interested in this particular > case. I'm more concerned about the general problem of grandfather > dependencies. Put EXPLICIT_PACKAGE_DEPENDS=yes in make.conf. This will get rid of the grandparent-deps. The problem with this is, that a lot of ports hardcode grandparent-libs. This is not a FreeBSD problem, this is a libtool (at least 1.x) problem and a pkg-config problem (adding grandparent-libs even if they are not necessary). So with this switch, you can not lookup potential candidates for an upgrade, by looking at the +REQUIRED_BY file. Because of the libtool/pkg-config problem all childs of a "problematic" lib will contain a reference to the lib, even if the particular lib is just a dependency of a lib which the current port uses. To make this description more explicit: if your port uses libGRAPH (I made upt this name) and libGRAPH is linked to libjpeg and libpng via libtool (at least 1.x), but your port is not directly using symbols from libjpeg or libpng, the binaries of your port will have libpng *and* libjpeg hardcoded. See /usr/ports/Tools/scripts/explicit_lib_depends.sh for a script which tells you which libs are hardcoded in the files (if they are in bin/ or lib/) of your (installed) port. Feel free to improve the script, I didn't touch it since 3 years because the software in the ports tree was not in a state where it made sense to finish the "NOT YET" part or extend the scope of files to analyze. Bye, Alexander. -- A baby is an alimentary canal with a loud voice at one end and no responsibility at the other. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137