ports/131870: databases/libgda2: Sybase backend doesn't get installed

Scot Hetzel swhetzel at gmail.com
Thu Feb 19 09:20:02 UTC 2009


>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 at 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:



More information about the freebsd-ports-bugs mailing list