From owner-freebsd-ports@FreeBSD.ORG Mon Oct 31 22:41:41 2011 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 F15BD106564A; Mon, 31 Oct 2011 22:41:40 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id ADF648FC08; Mon, 31 Oct 2011 22:41:40 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id CC07028423; Mon, 31 Oct 2011 23:41:38 +0100 (CET) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 757ED28422; Mon, 31 Oct 2011 23:41:37 +0100 (CET) Message-ID: <4EAF2420.1020201@quip.cz> Date: Mon, 31 Oct 2011 23:41:36 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Steven Kreuzer References: <4EAEFE14.4010000@quip.cz> <261037E9-164A-438A-9A8A-F39451CEA11E@FreeBSD.org> In-Reply-To: <261037E9-164A-438A-9A8A-F39451CEA11E@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org Subject: Re: innotop-1.8.0_2 and mytop-1.6_7 cannot be installed together 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, 31 Oct 2011 22:41:41 -0000 Steven Kreuzer wrote: > Hi Miroslav- > > On Oct 31, 2011, at 3:59 PM, Miroslav Lachman wrote: > >> Hi, >> >> I tried to install innotop and mytop together by portmaster command: >> >> portmaster databases/mytop databases/innotop >> >> ===>>> The following actions will be taken if you choose to proceed: >> Install databases/mytop >> Install databases/p5-DBD-mysql >> Install databases/p5-DBI >> Install devel/p5-Term-ReadKey >> Install databases/innotop >> Install databases/p5-DBD-mysql51 >> >> As you can see, there is problem with conflicting dependencies: p5-DBD-mysql vs. p5-DBD-mysql51 >> >> The portmaster installed p5-DBD-mysql and mytop first, then innotop installation failed with: >> >> ===> p5-DBD-mysql51-4.019 conflicts with installed package(s): >> p5-DBD-mysql-4.019 >> >> They will not build together. >> Please remove them first with pkg_delete(1). >> >> >> If innotop is installed separately first (with it's dependency p5-DBD-mysql51), then mytop will install OK and will use p5-DBD-mysql51 instead of default p5-DBD-mysql. >> > > Can you apply this patch to mytop and try one more time. http://exit2shell.com/~skreuzer/patches/mytop.patch No it doesn't work. I found that ${MYSQL_VER} is set in bsd.database.mk but it is not included unless Makefile has USE_MYSQL=yes. It is in bsd.port.mk: .if defined(USE_MYSQL) || defined(WANT_MYSQL_VER) || \ defined(USE_PGSQL) || defined(WANT_PGSQL_VER) || \ defined(USE_BDB) || defined(USE_SQLITE) || defined(USE_FIREBIRD) .include "${PORTSDIR}/Mk/bsd.database.mk" .endif It works with the following patch: --- Makefile.orig 2010-01-29 05:56:57.000000000 +0100 +++ Makefile 2011-10-31 23:22:15.000000000 +0100 @@ -7,14 +7,16 @@ PORTNAME= mytop PORTVERSION= 1.6 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= databases MASTER_SITES= http://jeremy.zawodny.com/mysql/mytop/ MAINTAINER= m.seaman@infracaninophile.co.uk COMMENT= A top clone for MySQL -RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql \ +USE_MYSQL=yes + +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql${MYSQL_VER} \ p5-DBI>=1.13:${PORTSDIR}/databases/p5-DBI \ p5-Term-ReadKey>=2.10:${PORTSDIR}/devel/p5-Term-ReadKey The port will have following dependencies # ports_tree.sh databases/mytop databases/mytop databases/mysql51-client databases/p5-DBD-mysql51 databases/mysql51-client databases/p5-DBI lang/perl5.8 lang/perl5.8 databases/p5-DBI lang/perl5.8 devel/p5-Term-ReadKey lang/perl5.8 lang/perl5.8 Innotop Makefile also has USE_MYSQL=yes (but I am not sure, if it is the right way - I am not ports maintainer) Miroslav Lachman