Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2009 09:17:42 GMT
From:      Scot Hetzel <swhetzel@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/131870: databases/libgda2: Sybase backend doesn't get installed
Message-ID:  <200902190917.n1J9HgKI021398@www.freebsd.org>
Resent-Message-ID: <200902190920.n1J9K1U4062749@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         131870
>Category:       ports
>Synopsis:       databases/libgda2: Sybase backend doesn't get installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 19 09:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Scot Hetzel
>Release:        8.0-CURRENT
>Organization:
>Environment:
FreeBSD hp010 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Feb  9 00:17:11 CST 2009     root@hp010:/usr/obj/usr/src/DV8135NR  amd64

>Description:
While running portmaster to reinstall databases/libgda2 due to the library bump of the openldap libraries, portmaster reported that several files were missing:

PREFIX/lib/libgda/providers/libgda-sybase.a
PREFIX/lib/libgda/providers/libgda-sybase.la
PREFIX/lib/libgda/providers/libgda-sybase.so

The reason for these missing libraries is due to the configure script has a check for "Sybase host system type".  This check only allows the Sybase backend to be build on linux systems.
>How-To-Repeat:
install databases/libgda2 as follows:

cd /usr/ports/databases/libgda2
make install -DWITH_FREETDS -DWITH_SYBASE

Then uninstall the port:

make deinstall

This will then report that these 3 files are missing:

PREFIX/lib/libgda/providers/libgda-sybase.a
PREFIX/lib/libgda/providers/libgda-sybase.la
PREFIX/lib/libgda/providers/libgda-sybase.so

>Fix:
The only fix I came up with is to mark the Sybase backend broken.

Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/databases/libgda2/Makefile,v
retrieving revision 1.86
diff -u -r1.86 Makefile
--- Makefile	2 Feb 2009 01:35:52 -0000	1.86
+++ Makefile	19 Feb 2009 09:14:06 -0000
@@ -67,9 +67,10 @@
 WITH_FREETDS=	yes
 .endif
 
-.if exists(${LOCALBASE}/lib/libsybdb.so)
-WITH_SYBASE=	yes
-.endif
+# Sybase backend is linux only
+#.if exists(${LOCALBASE}/lib/libsybdb.so)
+#WITH_SYBASE=	yes
+#.endif
 
 .if exists(${LOCALBASE}/lib/libmdbsql.so)
 WITH_MDB=	yes
@@ -132,6 +133,7 @@
 LIB_DEPENDS+=		sybdb.5:${PORTSDIR}/databases/freetds
 CONFIGURE_ARGS+=	--with-sybase=${LOCALBASE}
 PLIST_SUB+=		SYBASE:=""
+BROKEN=	Sybase backend is linux only
 .else
 CONFIGURE_ARGS+=	--without-sybase
 PLIST_SUB+=		SYBASE:="@comment "


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902190917.n1J9HgKI021398>