Date: Wed, 22 Sep 2010 20:23:26 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Tim Kellers <timothyk@wallnet.com> Cc: ports@freebsd.org, Tim Kellers <kellers@njit.edu> Subject: Re: portupgrade bugzilla fails with mysql > 4 installed Message-ID: <4C9A57AE.7070101@infracaninophile.co.uk> In-Reply-To: <4C9A20EA.10701@wallnet.com> References: <4C9A20EA.10701@wallnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C9A57AE.7070101>