Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jul 2011 11:21:37 +0930 (CST)
From:      Jarrod Sayers <jarrod@downtools.com.au>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/158754: [patch] databases/mysql-connector-java: Distribution not available as a .tar.gz archive, switch to .zip
Message-ID:  <201107100151.p6A1pbjh055152@burbank.downtools.com.au>
Resent-Message-ID: <201107100220.p6A2KAEl036862@freefall.freebsd.org>

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

>Number:         158754
>Category:       ports
>Synopsis:       [patch] databases/mysql-connector-java: Distribution not available as a .tar.gz archive, switch to .zip
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 10 02:20:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jarrod Sayers
>Release:        FreeBSD 8.1-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD burbank.downtools.com.au 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #7: Sat Dec 18 19:18:08 CST 2010 root@burbank.downtools.com.au:/usr/obj/usr/src/sys/BURBANK i386
>Description:
The distribution file for Connector/J 5.1.17 does not appear to be available in
.tar.gz format which prevents the port from being upgraded.  Offered below is a
patch which switches the port to the .zip format and corrects this issue.
>How-To-Repeat:
Attempt to source the distribution manually.

bender# fetch http://mysql.mirrors.ilisys.com.au/Downloads/Connector-J/mysql-connector-java-5.1.17.tar.gz
fetch: http://mysql.mirrors.ilisys.com.au/Downloads/Connector-J/mysql-connector-java-5.1.17.tar.gz: Not Found
bender# fetch http://mysql.he.net/Downloads/Connector-J/mysql-connector-java-5.1.17.tar.gz
fetch: http://mysql.he.net/Downloads/Connector-J/mysql-connector-java-5.1.17.tar.gz: Not Found
bender#
>Fix:
Patch offered below.
 
--- databases-mysql-connector-java-use_zip.diff begins here ---
diff -ruN ports/databases/mysql-connector-java.orig/Makefile ports/databases/mysql-connector-java/Makefile
--- ports/databases/mysql-connector-java.orig/Makefile	2011-07-10 03:33:01.000000000 +0930
+++ ports/databases/mysql-connector-java/Makefile	2011-07-10 11:08:53.000000000 +0930
@@ -16,6 +16,8 @@
 
 RUN_DEPENDS=	${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j
 
+USE_ZIP=	yes
+
 CONFLICTS=	mysql-connector-java*-5.0.*
 
 LICENSE=	GPLv2
diff -ruN ports/databases/mysql-connector-java.orig/distinfo ports/databases/mysql-connector-java/distinfo
--- ports/databases/mysql-connector-java.orig/distinfo	2011-07-10 03:33:01.000000000 +0930
+++ ports/databases/mysql-connector-java/distinfo	2011-07-10 11:09:29.000000000 +0930
@@ -1,2 +1,2 @@
-SHA256 (mysql-connector-java-5.1.17.tar.gz) = 43f10bc17283e0f155f9fb7a676ee4a0f372bad793da5d38251d5759eaed34ed
-SIZE (mysql-connector-java-5.1.17.tar.gz) = 3826020
+SHA256 (mysql-connector-java-5.1.17.zip) = b75121b22c12679fca4d152b922dc62fc52fa0b294b6a08cb9792c8e41d790b0
+SIZE (mysql-connector-java-5.1.17.zip) = 4055461
--- databases-mysql-connector-java-use_zip.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?201107100151.p6A1pbjh055152>