Bug 234172 - databases/mysql57-client: fix build with GCC-based architectures
Summary: databases/mysql57-client: fix build with GCC-based architectures
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mahdi Mokhtari
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-19 18:06 UTC by Piotr Kubaj
Modified: 2018-12-22 17:17 UTC (History)
2 users (show)

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


Attachments
patch (1.29 KB, patch)
2018-12-19 18:06 UTC, Piotr Kubaj
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2018-12-19 18:06:50 UTC
Created attachment 200277 [details]
patch

This port doesn't compile on GCC architectures, because MySQL believes only Clang is used on FreeBSD.

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-12-22 01:07:07 UTC
A commit references this bug:

Author: linimon
Date: Sat Dec 22 01:06:06 UTC 2018
New revision: 488036
URL: https://svnweb.freebsd.org/changeset/ports/488036

Log:
  Fix port not compiling on GCC-based architectures, because MySQL believed
  only that Clang was used on FreeBSD.

  PR:		234172
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Changes:
  head/databases/mysql57-client/Makefile
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-12-22 17:17:37 UTC
A commit references this bug:

Author: mmokhi
Date: Sat Dec 22 17:16:57 UTC 2018
New revision: 488110
URL: https://svnweb.freebsd.org/changeset/ports/488110

Log:
  databases/mysql57-client: Fix the build with GCC-based architectures
  This patch adds a condition to FreeBSD part of MySQL CMake-scripts
  to recognize gcc as well as Clang, while taking care of Unsupported compilers too.

  This is an enhancement on the initial patch by Piotr Kubaj <pkubaj@anongoth.pl> that
  committed by linimon on r488087.

  PR:		234172
  Sponsored by:	The FreeBSD Foundation

Changes:
  head/databases/mysql57-client/files/patch-cmake_os_FreeBSD.cmake