Bug #21222 Patch to support GNU/kFreeBSD build
Submitted: 21 Jul 2006 18:12 Modified: 19 Sep 2006 16:42
Reporter: Christian Hammers (Silver Quality Contributor) (SCA) Email Updates:
Status: Closed
Category:Server: Compiling Severity:S4 (Feature request)
Version:5.0.23 OS:Linux (Debian GNU/Linux)
Assigned to: Magnus Blaudd Target Version:
Triage: D5 (Feature request)

[21 Jul 2006 18:12] Christian Hammers
Description:
Hello

The following patch was submitted for my Debian packages and are supposed to make it
possible to build MySQL on GNU/kFreeBSD which is a system with a Debian like Linux
userland with a FreeBSD kernel.
I'm not running it but the patch did no harm in the last month and Debian MySQL packages
are built and run on at least 12 different architectures :)

bye,

-christian-

How to repeat:
Build on GNU/kFreeBSD.

Suggested fix:
--- old/include/my_global.h.orig        2005-09-09 23:56:12.000000000 +0200
+++ new/include/my_global.h     2005-09-09 23:56:44.000000000 +0200
@@ -102,7 +102,7 @@

 /* Fix problem with S_ISLNK() on Linux */
-#if defined(TARGET_OS_LINUX)
+#if defined(TARGET_OS_LINUX) || defined(__GLIBC__)
 #undef  _GNU_SOURCE
 #define _GNU_SOURCE 1
 #endif
[23 Jul 2006 6:46] Valeriy Kravchuk
Thank you for this patch.
[26 Jul 2006 13:43] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/9588
[15 Sep 2006 22:21] Chad MILLER
Available in 5.1.12-beta.
[19 Sep 2006 16:42] Paul DuBois
No changelog entry needed.