Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 383007

Summary: New Ebuild for dev-db/freetds 0.91
Product: Gentoo Linux Reporter: Noel James <noel.james>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Noel James 2011-09-15 02:10:32 UTC
The latest ebuild for freetds is 0.82-r3 which is getting old-ish and has bugs when mssql has concurent connections...  Attached is a new ebuild for the latest stable 0.91

Reproducible: Always




EAPI="3"

inherit autotools flag-o-matic

KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~ppc-macos ~sparc-solaris ~x86-solaris"
DESCRIPTION="Tabular Datastream Library."
HOMEPAGE="http://www.freetds.org/"
SRC_URI="http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
IUSE="odbc iodbc mssql"
RESTRICT="test"

DEPEND="odbc? ( dev-db/unixODBC )
                iodbc? ( dev-db/libiodbc )"
RDEPEND="${DEPEND}"


src_prepare() {
        cp "${FILESDIR}/config.rpath" "${S}"
        sed -ie 's:with_iodbc/include":with_iodbc/include/iodbc":' configure.ac
        eautoreconf
}

src_configure() {
        myconf="--with-tdsver=7.0 $(use_enable mssql msdblib)"
        if use iodbc ; then
                myconf="${myconf} --enable-odbc --with-iodbc=${EPREFIX}/usr"
        elif use odbc ; then
                myconf="${myconf} --enable-odbc --with-unixodbc=${EPREFIX}/usr"
        fi
        use elibc_glibc || append-libs iconv
        econf $myconf || die "econf failed"
}

src_install() {
        emake DESTDIR="${D}" DOCDIR="doc/${PF}" install || die "make install failed"
}
Comment 1 Noel James 2011-09-15 02:44:38 UTC
Sorry I see #381341 please see that report.
Comment 2 Mike Gilbert gentoo-dev 2011-09-16 04:21:36 UTC

*** This bug has been marked as a duplicate of bug 381341 ***