Date: Tue, 13 Sep 2005 19:44:04 +0100 (BST) From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: FreeBSD-gnats-submit@FreeBSD.org Cc: herve.quiroz@esil.univ-mrs.fr Subject: ports/86088: [maintainer] databases/mysql-connector-java improve installation of documentation Message-ID: <200509131844.j8DIi4Pa095757@lack-of-gravitas.thebunker.net> Resent-Message-ID: <200509131850.j8DIo3kL074751@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 86088 >Category: ports >Synopsis: [maintainer] databases/mysql-connector-java improve installation of documentation >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Sep 13 18:50:03 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Matthew Seaman >Release: FreeBSD 6.0-BETA3 i386 >Organization: Infracaninophile >Environment: System: FreeBSD lack-of-gravitas.thebunker.net 6.0-BETA3 FreeBSD 6.0-BETA3 #3: Tue Aug 30 13:36:31 BST 2005 root@lack-of-gravitas.thebunker.net:/usr/obj/usr/src/sys/LACK-OF-GRAVITAS i386 >Description: As suggested by Herve Quiroz in an e-mail conversation quite some time ago now, instead of using ${CP} -r to install javadocs, use ${FIND} with ${MKDIR} and ${INSTALL_DATA} to ensure that ownerships and permissions come out right when port is built as a mortal user then installed as root. >How-To-Repeat: >Fix: --- mysql-connector-java.diff begins here --- diff -Nur /usr/ports/databases/mysql-connector-java/Makefile mysql-connector-java/Makefile --- /usr/ports/databases/mysql-connector-java/Makefile Thu Jul 7 08:37:50 2005 +++ mysql-connector-java/Makefile Tue Sep 13 19:34:33 2005 @@ -89,7 +89,14 @@ .if !defined(NOPORTDOCS) @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." @${MKDIR} ${APIDOCSDIR} - @${CP} -r ${JAVADOCDIR}/* ${APIDOCSDIR} + @cd ${JAVADOCDIR} && for src in $$( ${FIND} . ) ; do \ + dst=${APIDOCSDIR}$${src#.} ; \ + if ${TEST} -d $$src ; then \ + ${MKDIR} $$dst ; \ + else \ + ${INSTALL_DATA} $$src $$dst ; \ + fi \ + done @for extradoc in ${EXTRADOCS} ; do \ ${INSTALL_DATA} ${INSTALL_WRKSRC}/$$extradoc ${DOCSDIR} ; \ done --- mysql-connector-java.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509131844.j8DIi4Pa095757>