From owner-freebsd-ports@FreeBSD.ORG Sun Apr 2 13:24:39 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC4DC16A400 for ; Sun, 2 Apr 2006 13:24:39 +0000 (UTC) (envelope-from thomas@hardy.tmseck.homedns.org) Received: from smtp3.netcologne.de (smtp3.netcologne.de [194.8.194.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5834643D53 for ; Sun, 2 Apr 2006 13:24:39 +0000 (GMT) (envelope-from thomas@hardy.tmseck.homedns.org) Received: from laurel.tmseck.homedns.org (xdsl-213-196-241-215.netcologne.de [213.196.241.215]) by smtp3.netcologne.de (Postfix) with SMTP id 39B4B6737F for ; Sun, 2 Apr 2006 15:24:38 +0200 (CEST) Received: (qmail 13175 invoked from network); 2 Apr 2006 13:25:00 -0000 Received: from unknown (HELO hardy.tmseck.homedns.org) (192.168.1.2) by 0 with SMTP; 2 Apr 2006 13:25:00 -0000 Received: from hardy.tmseck.homedns.org (localhost [127.0.0.1]) by hardy.tmseck.homedns.org (8.13.4/8.13.4) with ESMTP id k32DOac6077449 for ; Sun, 2 Apr 2006 15:24:36 +0200 (CEST) (envelope-from thomas@hardy.tmseck.homedns.org) Received: (from thomas@localhost) by hardy.tmseck.homedns.org (8.13.4/8.13.4/Submit) id k32DOU5E077448; Sun, 2 Apr 2006 15:24:30 +0200 (CEST) (envelope-from thomas) Date: Sun, 2 Apr 2006 15:24:30 +0200 (CEST) Message-Id: <200604021324.k32DOU5E077448@hardy.tmseck.homedns.org> From: tmseck-lists@netcologne.de (Thomas-Martin Seck) To: freebsd-ports@freebsd.org In-Reply-To: <1143982421.30626.3.camel@ikaros.oook.cz> X-Newsgroups: gmane.os.freebsd.devel.ports X-Attribution: tms MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: Pare Down Dependencies from Gnome 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: Sun, 02 Apr 2006 13:24:39 -0000 * Pav Lucistnik [gmane.os.freebsd.devel.ports]: > [-- text/plain, encoding quoted-printable, charset: ISO-8859-2, 22 lines --] > > Thomas-Martin Seck pí?e v ne 02. 04. 2006 v 14:28 +0200: > >> > Here we go, gnomevfs2 has this: >> > >> > .if exists(${LOCALBASE}/lib/libkrb5.so) >> > LIB_DEPENDS+= krb5:${PORTSDIR}/security/heimdal >> > .endif >> >> Ack, this is most evil. Could portlint(1) be extended to mark these >> constructs as fatal? Hidden auto-dependencies that cannot be disabled >> are really nasty. > > What if it's hidden auto-dependency in vendor configure script? > > The port merely records the state of reality. Don't blame it for it. In my opinion, a port should always be explicit about it's dependencies. The ported software itself should be, too and if not, it's a bug IMO. Most problems with implicit dependencies in a vendor's configure script are often cured by adding "--disable-foo" to CONFIGURE_ARGS unless the option is explicitly enabled via an appropriate port option. If there is no --disable-foo, then "foo" needs to be an explicit dependency. Auto-dependencies that cannot be overridden are - IMO - a big no-no.