ports/53561: patch to fix fail configure for mysql323 on fbsd 5.1
Erik Greenwald
erik at smluc.org
Fri Jun 20 18:00:26 UTC 2003
>Number: 53561
>Category: ports
>Synopsis: patch to fix fail configure for mysql323 on fbsd 5.1
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jun 20 11:00:24 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Erik Greenwald
>Release: FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD fenris 5.1-CURRENT FreeBSD 5.1-CURRENT #1: Mon Jun 16 23:12:44 CDT 2003 root at fenris:/usr/obj/usr/src/sys/FENRIS i386
>Description:
databases/mysql323-server and databases/mysql323-client fail to
configure on FreeBSD-5.1
root cause is a flaw in the configure script in which a file
pointer is opened via fopen() then closed via close(), causing
a segfault when linked with -pthread. (this patch fixes breakage
that was only made visible due to other breakage)
>How-To-Repeat:
upgrade to 5.1 or -current, try 'make configure' in one of
the databases/mysql323-* dirs
>Fix:
--- mysql.fix begins here ---
--- databases/mysql323-server.orig/files/patch-ag Fri Jun 20 12:28:09 2003
+++ databases/mysql323-server/files/patch-ag Fri Jun 20 12:47:28 2003
@@ -1,5 +1,5 @@
---- configure.orig Thu Mar 13 19:32:30 2003
-+++ configure Fri May 23 00:00:20 2003
+--- configure.orig Thu Mar 13 12:32:30 2003
++++ configure Fri Jun 20 12:45:47 2003
@@ -8059,6 +8059,7 @@
# This can be used to rebuild libtool when needed
@@ -138,6 +138,15 @@
mysql_cv_btype_last_arg_accept=none
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
+@@ -16935,7 +16879,7 @@
+ FILE *file=fopen("conftestval", "w");
+ f = (float) ll;
+ fprintf(file,"%g\n",f);
+- close(file);
++ fclose(file);
+ exit (0);
+ }
+ _ACEOF
@@ -19222,14 +19166,6 @@
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
--- mysql.fix ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list