From owner-freebsd-pkg@FreeBSD.ORG Tue May 13 09:53:46 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 863C59A for ; Tue, 13 May 2014 09:53:46 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 12D0F23A5 for ; Tue, 13 May 2014 09:53:45 +0000 (UTC) Received: from seedling.local (31-221-87-81.cust-31.exponential-e.net [31.221.87.81] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.8/8.14.8) with ESMTP id s4D9ra7j074873 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 13 May 2014 10:53:38 +0100 (BST) (envelope-from matthew@FreeBSD.org) Authentication-Results: lucid-nonsense.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s4D9ra7j074873 Authentication-Results: smtp.infracaninophile.co.uk/s4D9ra7j074873; dkim=none reason="no signature"; dkim-adsp=none X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host 31-221-87-81.cust-31.exponential-e.net [31.221.87.81] (may be forged) claimed to be seedling.local Message-ID: <5371EB62.9090805@FreeBSD.org> Date: Tue, 13 May 2014 10:52:34 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-pkg@freebsd.org Subject: Re: Mysql server dependency References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Rbu2Fl9ppTOCJrBxuScsDmCG4SF3e5JjM" X-Virus-Scanned: clamav-milter 0.98.1 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2014 09:53:46 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Rbu2Fl9ppTOCJrBxuScsDmCG4SF3e5JjM Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 13/05/2014 08:55, Hamza Abdelkebir wrote: > Hi all, >=20 > I'm having trouble with the packaging of a port which should depend on > mysql56-server (requirement). >=20 > I use this in my Makefile : >=20 > .... >=20 > BUILD_DEPENDS+=3D ${LOCALBASE}/apache-tomcat-7.0:${PORTSDIR}/www/tom= cat7 > BUILD_DEPENDS+=3D > ${LOCALBASE}/apache-tomcat-7.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat= 7 No point in having two build dependencies on the same port. Also, you need a file rather than a directory in dependency lines, so choose the 2nd line above. > BUILD_DEPENDS+=3D > ${LOCALBASE}/bin/mysql:${PORTSDIR}/databases/mysql56-server > BUILD_DEPENDS+=3D > ${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql56-server In this case, you've already covered this by 'USE_MYSQL' below. No need to add any more dependencies. > RUN_DEPENDS+=3D ${LOCALBASE}/bin/mysql:${PORTSDIR}/databases/mysql56= -server > RUN_DEPENDS+=3D > ${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql56-server Same: the RUN_DEPENDS on mysql56-server is supplied via 'USE_MYSQL' > RUN_DEPENDS+=3D ${JAVAJARDIR}/servlet-api.jar:${PORTSDIR}/www/servle= t-api > RUN_DEPENDS+=3D > ${LOCALBASE}/apache-tomcat-7.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat= 7 Everything else there looks OK. > USE_MYSQL=3D server > WITH_MYSQL_VER=3D 56 >=20 If this is your own port, then you should be using WANT_MYSQL_VER=3D 56 inside the port's Makefile. WITH_MYSQL_VER is what you used to put in /etc/make.conf to set a system wide preference, but that has largely beed superceeded by the new "DEFAULT_VERSIONS+=3D mysql=3D5.6" style nowa= days. >=20 > Then, I create the package using *make package*. Try fixing the duplicates in your RUN_ and BUILD_DEPENDS first, and use WANT_MYSQL_VER rather than WITH_MYSQL_VER. Then if you're still having problems please do ask again -- although this is really a question for freebsd-ports@... It will help if you explain exactly which port you're dealing with -- if it's a new port not yet in the tree then please show us the code by putting it up on a pasteboard site. Also show us the output when you try and build a package. > Thank you for your help. Service is our only joy, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --Rbu2Fl9ppTOCJrBxuScsDmCG4SF3e5JjM 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.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJTcetqXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATXDwP/RPB4wuXmo8PV7JiwicPmrXo D+W/HiJ6zNC/hI1NAQFsZ/CnDFMStSOhjyK3QnsIwmYfAAHRRdYvP648aLGZ1ciV 5E9XPfCE9WZO/wPe9fu1yJA64Z+xTrDmLouXs9H+dVwwGrdYD7D4fTtRUneXju50 /GRbgXgT5B/px2eOkztSl0Lmj8lTwhX6eqvEEE1Z7rKlE5aLS39vkV+sLeki7szc j0MK+zVoTQLkAiUNvNl9sWQbNn1IhBjGgjDXlGtWG/BSpkKYUa5IUptz8Sz14876 GDgwUDS/5BsccdxT6gPt2wlyEaRCYO6gMCHZodpQGvjVigDepZJYXhYaDBRwAjt5 wArCJzMePeoMy9ZmkFaeu91sZLkWWXosfNmOCp7FLl2wgzcVOV4CAaz0Bf6eSd0g UP8fTHdbRDtXx92XTyD2IEDnzWgv3Lrv5sDBsbHWv0DE6+qLTX+5E5Am/uqqaALq cQtInEp1kjsN8hjWnZL/ZDdPUjH2Q49c6kCqGA3JqKE3tF3KqmV36CyKrS0Pl4BM OV7hivs+nDKMsvPBZYAoaOBevWNVh1py/usg9vdbtuMFRUvhfUQqSGmkCan2pyLa EqWma1eewKks+xlKY+hiAM/+XUYrc9DqfshonVrLeYiWYP4rpjZfXPhxPcQI3WE5 bwuQVCM4u8nfIOPOuUFO =zSSQ -----END PGP SIGNATURE----- --Rbu2Fl9ppTOCJrBxuScsDmCG4SF3e5JjM--