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

Bug 214335

Summary: mail-mta/postfix with cdb use flag prefers installing dev-db/cbd over dev-db/tinycdb
Product: Gentoo Linux Reporter: Eray Aslan <eras>
Component: New packagesAssignee: Net-Mail Packages <net-mail+disabled>
Status: VERIFIED WONTFIX    
Severity: enhancement    
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Eray Aslan gentoo-dev 2008-03-23 03:40:18 UTC
ebuild prefers compiling with tinycdb (and I agree):

if use cdb ; then
        mycc="${mycc} -DHAS_CDB"
        CDB_LIBS=""

        # Tinycdb is preferred.
        if has_version dev-db/tinycdb ; then
            einfo "Building with dev-db/tinycdb"
            CDB_LIBS="-lcdb"
        else
            einfo "Building with dev-db/cdb"
            CDB_PATH="/usr/$(get_libdir)"
            for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
                CDB_LIBS="${CDB_LIBS} ${CDB_PATH}/${i}"
            done
        fi

But if neither cdb or tinycdb is installed, the ebuild will pull in cdb as a dependency instead of tinycdb.  Changing DEPEND to:

cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r1 ) )

will make tinycdb preferred over cdb.

Reproducible: Always
Comment 1 Eray Aslan gentoo-dev 2008-03-23 03:48:06 UTC
(In reply to comment #0)
> ebuild prefers compiling with tinycdb (and I agree):

The above should have read:

postfix-2.5.1.ebuild prefers compiling with tinycdb (and I agree):
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2009-01-04 18:50:14 UTC
tinycdb isn't tested or even keyworded on all architectures postfix has a stable keyword on, so this is a no-go for now. Plus I don't see a need why would *need* to change this as the now current behaviour is working for $years. WONTFIXing this one.
Comment 3 Eray Aslan gentoo-dev 2009-01-04 19:54:38 UTC
(In reply to comment #2)
> Plus I don't see a need why
> would *need* to change this as the now current behaviour is working for $years.

I don't think this is a valid reason

> tinycdb isn't tested or even keyworded on all architectures postfix has a
> stable keyword on, so this is a no-go for now.

but this one is.

Closing the bug.  Thanks for looking into it.