From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jan 25 14:19:02 2004 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AE6B16A4CE for ; Sun, 25 Jan 2004 14:19:02 -0800 (PST) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id E569943D67 for ; Sun, 25 Jan 2004 14:18:37 -0800 (PST) (envelope-from h.eichmann@gmx.de) Received: (qmail 3126 invoked by uid 65534); 25 Jan 2004 22:18:36 -0000 Received: from pD9EC1E6F.dip.t-dialin.net (EHLO 7of9.unimatrix-zero.borg) (217.236.30.111) by mail.gmx.net (mp003) with SMTP; 25 Jan 2004 23:18:36 +0100 X-Authenticated: #4450881 From: Heiner Organization: ncc-1701 To: pav@FreeBSD.org Date: Sun, 25 Jan 2004 23:19:14 +0100 User-Agent: KMail/1.5.4 References: <200401252048.i0PKmXVS071023@freefall.freebsd.org> <200401252158.35897.h.eichmann@gmx.de> <1075066030.21573.6.camel@hood.oook.cz> In-Reply-To: <1075066030.21573.6.camel@hood.oook.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200401252319.14278.h.eichmann@gmx.de> cc: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/61840: Port sysutils/cdrdao might corrupt package database X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2004 22:19:02 -0000 On Sunday 25 January 2004 22:27, Pav Lucistnik wrote: > So you're hitting general issue with installing A, optional autodetected > dependency of B, later, and having C, which depends on B, recorded A as > it's dependency. Yes, thats the problem. > This is general ports system design definiency and I don't know how to > fix it. > Or you're hitting the cdrdao port weirdness that it depends on gnome-- > but checks presence of gnomelibs? Yes and no.=20 Yes: If the port should follow the instructions in=20 http://www.freebsd.org/gnome/docs/porting.html. Especially: use USE_GNOME f= or=20 variable dependencies; NEVER use LIB_DEPENDS. I guess that C (in your=20 example) scans the MAKEFILE of A for LIB_DEPENDS. If there are no, C will n= ot=20 depend on B. In other words: replace the=20 LIB_DEPENDS+=3D=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0gtkmm.2:${PORTSDIR}/x11-too= lkits/gtk-- LIB_DEPENDS+=3D=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0gnomemm-1.2.10:${PORTSDIR}/= x11-toolkits/gnome-- by USE_GNOME=3D=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0gnomelibs gtk-- gnome= =2D- This requires bsd.gnome.mk to be touched as well (gtk-- and gnome-- have to= be=20 added). I made this on my machine (for testing purposes) and afterwards the= =20 port installation worked fine in both cases (discussed in the PR). No: cdrdao is a commandline tool. Why does it depend on gnome? I guess (I d= o=20 not have gnome) gnome has a gui interface to cdrdao. For people just using= =20 the command line this gui stuff is a big overhead. My prefered solution is = to=20 split the port as written in the PR. None gnome user install cdrdao; others= =20 cdrdao-gnome (which depends on cdrdao). This also solves another problem: Afaik the packages are built automaticall= y.=20 I guess (not checked) the build system in cleaned, the dependent ports are= =20 installed, the port is built and the package is created and stored on the=20 =46reeBSD ftp server. Therefore the cdrdao package either contains the gnom= e=20 stuff or not (I guess not). In any case there will be group of people, whic= h=20 can not use the package! If there were 2 ports (cdrdao and cdrdao-gnome),=20 there will be 2 packages; one for each group of people. Good night=20 Heiner