From owner-freebsd-ports@FreeBSD.ORG Wed Sep 22 19:23:40 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E866106566C for ; Wed, 22 Sep 2010 19:23:40 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id CA2038FC08 for ; Wed, 22 Sep 2010 19:23:39 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o8MJNZkk035353 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 22 Sep 2010 20:23:35 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4C9A57AE.7070101@infracaninophile.co.uk> Date: Wed, 22 Sep 2010 20:23:26 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Tim Kellers References: <4C9A20EA.10701@wallnet.com> In-Reply-To: <4C9A20EA.10701@wallnet.com> X-Enigmail-Version: 1.1.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBC37DA786E2BA873688388A0" X-Virus-Scanned: clamav-milter 0.96.2 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_40,DKIM_ADSP_ALL, SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Cc: ports@freebsd.org, Tim Kellers Subject: Re: portupgrade bugzilla fails with mysql > 4 installed 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: Wed, 22 Sep 2010 19:23:40 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBC37DA786E2BA873688388A0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 22/09/2010 16:29:46, Tim Kellers wrote: > The message while portupgrading bugzilla: >=20 > "bugzilla-3.6.2_1 depends on package: p5-DBD-mysql>=3D2.9003 - not foun= d > Verifying reinstall for p5-DBD-mysql>=3D2.9003 in > /usr/ports/databases/p5-DBD-mysql >=20 > p5-DBD-mysql-4.017 conflicts with installed package(s): > p5-DBD-mysql50-4.017 >=20 > They install files into the same place. > Please remove them first with pkg_delete(1)" >=20 > The problem in Makefile: >=20 > ".ifdef WITH_MYSQL > RUN_DEPENDS+=3D p5-DBD-mysql>=3D2.9003:${PORTSDIR}/databases/p5-DBD-m= ysql > USE_MYSQL=3D yes > IGNORE_WITH_MYSQL=3D 323 > .endif" >=20 >=20 > For MySQL 5.0, I simply changed the references to p5-DBD-mysql to > p5-DBD-mysql50 and the conflict was removed and portupgrade succeeded, > but there must be a more thorough and elegant way. If you use the >=3D$version construct in a DEPENDS line, it forces the ports system to check that a specific port is installed, as well as ensuring that the version requirement is met. Alternately, look at the databases/mytop port I maintain. There it uses the standard form of dependency checking, like so: RUN_DEPENDS=3D ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql= \ ie. it checks for the existence of a specific file. It doesn't matter what port provides that file -- if any -- so long as the file exists, the dependency is satisfied. Only if the file is missing will the port install the suggested databases/p5-DBD-mysql to fulfil that dependency. So you can install p5-DBD-mysql51 and mytop will happily co-exist if installed after it. Now, version 2.9003 of p5-DBD-mysql was current around April 2005 -- version 3.0000 came out on 30 June 2005. Is it still really necessary to protect against installing software incompatible with that version? Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enigBC37DA786E2BA873688388A0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyaV7cACgkQ8Mjk52CukIwiUwCfbHJQRH2JhAhfO787oyeZehMG 7m4An2bPr+bB2dFH2IHgZbngU1NNHzRa =djM/ -----END PGP SIGNATURE----- --------------enigBC37DA786E2BA873688388A0--