Bug 13647 - gpsdrive-1.31.ebuild incorrectly configures mysql support
Bug#: 13647 Product:  Gentoo Linux Version: 1.4_rc1 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: latexer@gentoo.org Reported By: latexer@gentoo.org
Component: Ebuilds
URL: 
Summary: gpsdrive-1.31.ebuild incorrectly configures mysql support
Keywords:  
Status Whiteboard: 
Opened: 2003-01-10 11:07 0000
Description:   Opened: 2003-01-10 11:07 0000
hey jrray,

as pre the comment i'd had in the ebuild, the use of `use_enable mysql` doesn't
work, because the configure script interprets --enable-mysql as --disable-mysql.
i don't think this is a quirk from just my machine... 

-----snippet of configure script------
disablesql=false
if test "${enable_mysql+set}" = set; then
  enableval="$enable_mysql"

        echo "disable mysql support"
        disablesql=true

fi;

        SAVELIBS="$LIBS"
        SAVECFLAGS="$CFLAGS"


if test "$disablesql" = "true";then
        CFLAGS="$SAVECFLAGS"
        LIBS="$SAVELIBS"
        XLIBS="$SAVELIBS"

        echo "$as_me:$LINENO: result:
-----------------------------------------------------------------------------
***  MySQL support disabled by user option
-----------------------------------------------------------------------------" >
--snippet of configure script ------


either need to use

use mysql || myconf="${myconf} --disable-mysql"

or we can hack the configure script. the first option seems easier.

------- Comment #1 From J Robert Ray 2003-01-10 17:27:12 0000 -------
Forwarded a fix upstream for the autoconf script.  Removed has_version for now.

------- Comment #2 From Peter Johanson (RETIRED) 2003-02-05 00:08:47 0000 -------
gpsdrive-1.32 now builds in support for mysql automatically, w/o needing any
seperately installed libs or anything. marking this fixed