Package: mysql-dfsg-5.0
Version: 5.0.18
Severity: important
Tags: patch

Hi,

Since version 5.0.18, mysql-dfsg-5.0 fails to build from source on
GNU/kFreeBSD with the following error:

ERROR: versioned symbols are absent

It looks like versioned symbols are check for all architectures while
they are enable on GNU/Linux only.

Please find attached a patch that also enables it on GNU/kFreeBSD. I
think it would be even possible to enable it on GNU/* as it is the GNU
toolchain which supports versioned symbols, not the kernel. In that
case, just replace *linux* by *-gnu*. But it's up to you to decide.

Aurelien


-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Author: aurel32
Status: in BTS

diff -u mysql-dfsg-5.0-5.0.18/debian/patches/75_versioned_symbols.dpatch 
mysql-dfsg-5.0-5.0.18/debian/patches/75_versioned_symbols.dpatch
--- mysql-dfsg-5.0-5.0.18/debian/patches/75_versioned_symbols.dpatch
+++ mysql-dfsg-5.0-5.0.18/debian/patches/75_versioned_symbols.dpatch
@@ -43,7 +43,7 @@
 +# mixing-and-matching multiple lib versions; may be useful on other
 +# platforms that support symbol versioning (BSDs?)
 +case $SYSTEM_TYPE in
-+  *linux*)
++  *linux* | *kfreebsd*-gnu*)
 +       LINKER_SCRIPT="-Wl,--version-script=\$(srcdir)/libmysql.ver"
 +       ;;
 +  *) ;;

Reply via email to