Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2013 10:43:43 +0100
From:      Mark Knight <markk@knigma.org>
To:        stefan@FreeBSD.org
Cc:        freebsd-ports-bugs@FreeBSD.org, tmueller@sysgo.com
Subject:   Re: ports/178657: audio/squeezeboxserver: Start failure with mysql-server-5.0
Message-ID:  <5195FBCF.9050203@knigma.org>
In-Reply-To: <201305151602.r4FG2fLI062505@freefall.freebsd.org>
References:  <201305151602.r4FG2fLI062505@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------030106080701020700070908
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Thanks, approved, slightly tweaked patch file attached with correct 
white space. Apologies for breaking compatibility with old versions of 
mysql.

-- 
Mark Knight
Mobile: +44 7880 556751.  Home: +44 1223 858596
Email: markk@knigma.org.  Skype: knigma

On 15/05/2013 17:02, stefan@FreeBSD.org wrote:
> Synopsis: audio/squeezeboxserver: Start failure with mysql-server-5.0
>
> Responsible-Changed-From-To: freebsd-ports-bugs->stefan
> Responsible-Changed-By: stefan
> Responsible-Changed-When: Wed May 15 16:01:58 UTC 2013
> Responsible-Changed-Why:
> Take while waiting for maintainer's feedback.
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=178657
>


--------------030106080701020700070908
Content-Type: text/plain; charset=windows-1252;
 name="patch-178657-2.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="patch-178657-2.txt"

--- Makefile.orig	2013-05-17 10:27:59.000000000 +0100
+++ Makefile	2013-05-17 10:37:58.000000000 +0100
@@ -7,7 +7,7 @@
 
 PORTNAME=	squeezeboxserver
 PORTVERSION=	7.5.4
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	audio
 MASTER_SITES=	http://downloads.slimdevices.com/SqueezeboxServer_v${PORTVERSION}/
 DISTNAME=	${PORTNAME}-${PORTVERSION}-noCPAN
@@ -174,12 +174,16 @@
 	    -e 's|%%TMP_SLIMDIR%%|${TMP_SLIMDIR}|g' \
 		${WRKSRC}/scanner.pl \
 		${WRKSRC}/slimserver.pl
-	${REINPLACE_CMD} \
+	@${REINPLACE_CMD} \
 		-e 's/skip-locking/skip-external-locking/' \
 		-e 's/default-character-set/character-set-server/'\
-		-e 's/table_cache/table_open_cache/'\
 		-e 's/default-collation/collation-server/'  ${WRKSRC}/MySQL/my.tt
-	${REINPLACE_CMD} \
+# table_open_cache was known as table_cache in MySQL 5.1.2 and earlier
+	@if [ "$(MYSQL_VER)" != "50" ] ; then \
+		${REINPLACE_CMD} \
+			-e 's/table_cache/table_open_cache/' ${WRKSRC}/MySQL/my.tt ;\
+	fi
+	@${REINPLACE_CMD} \
 		-e 's/TYPE=InnoDB/ENGINE=InnoDB/' ${WRKSRC}/SQL/mysql/schema_*.sql
 
 do-build:

--------------030106080701020700070908--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5195FBCF.9050203>