Mysql server dependency
Matthew Seaman
matthew at FreeBSD.org
Tue May 13 09:53:46 UTC 2014
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 at ... 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20140513/61394dc5/attachment.sig>
More information about the freebsd-pkg
mailing list