Bug 195750 - [PATCH] databases/mysql55-server fails to build on arm
Summary: [PATCH] databases/mysql55-server fails to build on arm
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-06 17:18 UTC by Mikael Urankar
Modified: 2015-01-01 22:42 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (ale)


Attachments
patch for mysql55-server or mysql56-server (792 bytes, patch)
2014-12-06 17:18 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Urankar freebsd_committer freebsd_triage 2014-12-06 17:18:32 UTC
Created attachment 150271 [details]
patch for mysql55-server or mysql56-server

The port fails on armv6:
/wrkdirs/usr/ports/databases/mysql55-server/work/mysql-5.5.40/sql/mysqld.cc:167:19:
error: cannot combine with previous 'type-name' declaration specifier
typedef fp_except fp_except_t;

mysql currently uses the deprecated FPU control interface (fpsetmask) that is
not available on ARM (and other arch, see r226607 for details). 

fedisableexception is available on ARM, so use that on this platform. It can be applied on other (all) arch but I don't know the consequences of such a change.

to apply the attached patch:
cd /usr/ports/databases/mysql55-server
patch < /path/to/patch

The same patch can be applied to databases/mysql56-server

build logs:
http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/mysql55-server-5.5.41.log
http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/mysql56-server-5.6.22.log
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-12-06 17:18:32 UTC
Auto-assigned to maintainer ale@FreeBSD.org
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-01-01 22:42:03 UTC
A commit references this bug:

Author: sbruno
Date: Thu Jan  1 22:41:58 UTC 2015
New revision: 376033
URL: https://svnweb.freebsd.org/changeset/ports/376033

Log:
  For ARMv6, declare FPSETMASK 0 and FEDISABLEEXCEPT 1.  This allows mysql server to
  build on ARMv6.

  No need to bump portrevision for everyone else here as this only affects ARM users.

  PR:		195750
  Submitted by:	mikael.urankar@gmail.com
  Approved by:	mentor (implicit)

Changes:
  head/databases/mysql55-server/Makefile
  head/databases/mysql55-server/files/extra-patch-config.h.cmake
  head/databases/mysql56-server/Makefile
  head/databases/mysql56-server/files/extra-patch-config.h.cmake