Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 2014 10:52:34 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-pkg@freebsd.org
Subject:   Re: Mysql server dependency
Message-ID:  <5371EB62.9090805@FreeBSD.org>
In-Reply-To: <CA%2BQjPv4kuihvDhK1708Q8WnHX-4SXv4JM-te8g_Z2z01m3BWgg@mail.gmail.com>
References:  <CA%2BQjPv4kuihvDhK1708Q8WnHX-4SXv4JM-te8g_Z2z01m3BWgg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 13/05/2014 08:55, Hamza Abdelkebir wrote:
> Hi all,
> 
> I'm having trouble with the packaging of a port which should depend on
> mysql56-server (requirement).
> 
> I use this in my Makefile :
> 
> ....
> 
> BUILD_DEPENDS+=    ${LOCALBASE}/apache-tomcat-7.0:${PORTSDIR}/www/tomcat7
> BUILD_DEPENDS+=
> ${LOCALBASE}/apache-tomcat-7.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7

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+=
> ${LOCALBASE}/bin/mysql:${PORTSDIR}/databases/mysql56-server
> BUILD_DEPENDS+=
> ${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+=    ${LOCALBASE}/bin/mysql:${PORTSDIR}/databases/mysql56-server
> RUN_DEPENDS+=
> ${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql56-server

Same: the RUN_DEPENDS on mysql56-server is supplied via 'USE_MYSQL'

> RUN_DEPENDS+=    ${JAVAJARDIR}/servlet-api.jar:${PORTSDIR}/www/servlet-api
> RUN_DEPENDS+=
> ${LOCALBASE}/apache-tomcat-7.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7

Everything else there looks OK.

> USE_MYSQL=     server
> WITH_MYSQL_VER= 56
> 

If this is your own port, then you should be using

WANT_MYSQL_VER=	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+= mysql=5.6" style nowadays.

> 
> 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

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



[-- Attachment #2 --]
-----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-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5371EB62.9090805>