Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2008 16:06:06 GMT
From:      Tom Evans <tevans.uk@googlemail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/124102: Patch to enable mysql40-{server, client} to build on FreeBSD 7 and above
Message-ID:  <200805291606.m4TG66m9092211@www.freebsd.org>
Resent-Message-ID: <200805291610.m4TGA5Ue024068@freefall.freebsd.org>

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

>Number:         124102
>Category:       misc
>Synopsis:       Patch to enable mysql40-{server,client} to build on FreeBSD 7 and above
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 29 16:10:05 UTC 2008
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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