From nobody@FreeBSD.org  Thu May 29 16:07:47 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 98ABE106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 May 2008 16:07:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6FD938FC1C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 May 2008 16:07:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4TG66n9092212
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 May 2008 16:06:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m4TG66m9092211;
	Thu, 29 May 2008 16:06:06 GMT
	(envelope-from nobody)
Message-Id: <200805291606.m4TG66m9092211@www.freebsd.org>
Date: Thu, 29 May 2008 16:06:06 GMT
From: Tom Evans <tevans.uk@googlemail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Patch to enable mysql40-{server,client} to build on FreeBSD 7 and above
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         124102
>Category:       ports
>Synopsis:       Patch to enable databases/mysql40-server /client to build on FreeBSD 7 and above
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 29 16:10:05 UTC 2008
>Closed-Date:    Thu Jun 05 07:55:40 UTC 2008
>Last-Modified:  Thu Jun  5 08:00:02 UTC 2008
>Originator:     Tom Evans
>Release:        7-STABLE
>Organization:
Mintel
>Environment:
FreeBSD zoot.mintel.co.uk 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #6: Mon Feb  4 12:43:15 GMT 2008     root@zoot.mintel.co.uk:/data2/FreeBSD/RELENG_7/obj/data2/FreeBSD/RELENG_7/src/sys/ZOOT  i386
>Description:
MySQL 4.0 cannot be built on FreeBSD 7.0, solely due to not compiling with GCC 4.2
(Yes, its obsolete. It also handles our workloads better than MySQL 4.1/5.x (regularly tested))
>How-To-Repeat:
make -C /usr/ports/databases/mysql40-server
>Fix:
Apply attached patch.

Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/databases/mysql40-server/Makefile,v
retrieving revision 1.209
diff -u -r1.209 Makefile
--- Makefile	16 Sep 2007 15:07:30 -0000	1.209
+++ Makefile	29 May 2008 15:48:58 -0000
@@ -72,7 +72,7 @@
 .endif
 
 .if ${OSVERSION} >= 700000
-IGNORE=		obsolete and does not build with gcc4.2; use mysql 5 or later
+USE_GCC=3.4
 .endif
 .if defined(BUILD_OPTIMIZED)
 CFLAGS+=	-O3 -fno-omit-frame-pointer -fno-gcse


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu May 29 20:04:29 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124102 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Thu Jun 5 07:55:28 UTC 2008 
State-Changed-Why:  
Committed! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124102 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/124102: commit references a PR
Date: Thu,  5 Jun 2008 07:55:10 +0000 (UTC)

 ale         2008-06-05 07:55:04 UTC
 
   FreeBSD ports repository
 
   Modified files:
     databases/mysql40-server Makefile 
   Log:
   Re-enable build on FreeBSD >= 7, using gcc 3.4, since someone
   still prefers this EOL release.
   
   PR:             ports/124102
   Submitted by:   Tom Evans <tevans.uk@googlemail.com>
   
   Revision  Changes    Path
   1.210     +1 -1      ports/databases/mysql40-server/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
