Bug 181407

Summary: [patch] Fix databases/mysql55-server build under 10-CURRENT
Product: Ports & Packages Reporter: Ryan Steinmetz <zi>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Ryan Steinmetz freebsd_committer freebsd_triage 2013-08-19 22:00:00 UTC
[ 49%] Building CXX object sql/CMakeFiles/sql.dir/item_func.cc.o
In file included from /var/ports/basejail/usr/ports/databases/mysql55-server/work/mysql-5.5.32/sql/item_func.cc:27:
In file included from /var/ports/basejail/usr/ports/databases/mysql55-server/work/mysql-5.5.32/include/my_global.h:351:
/usr/include/sys/timeb.h:42:2: warning: "this file includes <sys/timeb.h> which is deprecated" [-W#warnings]
#warning "this file includes <sys/timeb.h> which is deprecated"
 ^
/var/ports/basejail/usr/ports/databases/mysql55-server/work/mysql-5.5.32/sql/item_func.cc:2344:29: error: controlling expression type 'volatile double' not compatible with any generic
      association type
  else if (!dec_negative && my_isinf(value_mul_tmp))
                            ^~~~~~~~~~~~~~~~~~~~~~~
/var/ports/basejail/usr/ports/databases/mysql55-server/work/mysql-5.5.32/include/my_global.h:814:21: note: expanded from macro 'my_isinf'
#define my_isinf(X) isinf(X)
                    ^~~~~~~~
/usr/include/math.h:107:18: note: expanded from macro 'isinf'
#define isinf(x) __fp_type_select(x, __isinff, __isinf, __isinfl)
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/math.h:86:49: note: expanded from macro '__fp_type_select'
#define __fp_type_select(x, f, d, ld) _Generic((0,(x)),                 \
                                                ^~~~~
1 warning and 1 error generated.
*** Error code 1

Stop.
make: stopped in /var/ports/basejail/usr/ports/databases/mysql55-server/work/mysql-5.5.32
*** Error code 1

Fix: Add attached patch to files/

Patch attached with submission follows:
How-To-Repeat: Attempt to build databases/mysql55-server under 10-CURRENT
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-08-19 22:00:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 vsityz 2013-09-08 08:43:08 UTC
This patch work in *mysql-server-5.6.13 *also.

<root> uname -a
FreeBSD scorpion.kiev.ua 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Fri Aug 
23 00:05:21 EEST 2013
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2014-02-11 13:47:36 UTC
State Changed
From-To: open->closed

Fixed in 10-RELEASE.