Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174948 - <mail-mta/postfix-2.4.1 will not build with tinycdb support
Summary: <mail-mta/postfix-2.4.1 will not build with tinycdb support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 188611 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-17 18:31 UTC by Chris Smith
Modified: 2008-03-21 15:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2007-04-17 18:31:15 UTC
mail-mta/postfix-2.4.0 will not build with dev-db/tinycdb-0.76

the ebuild seems to assume that /usr/include/cdb.h doesn't exist (it does) and has a workaroiund that looks for /usr/include/tinycdb.h which doesn't exist

Reproducible: Always

Steps to Reproduce:
1.emerge =dev-db/tinycdb-0.76
2.USE="cdb" emerge =mail-mta/postfix-2.4.0
3.

Actual Results:  
>>> Unpacking postfix-2.4.0.tar.gz to /var/tmp/portage/mail-mta/postfix-2.4.0/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/mail-mta/postfix-2.4.0/work/postfix-2.4.0 ...
 * build with dev-db/tinycdb
cp: cannot stat `/usr/include/tinycdb.h': No such file or directory


Expected Results:  
should have emerged properly

if the tinycdb hack is edited out of the ebuild then it fails with:

cp libmaster.a ../../lib/libmaster.a
ranlib ../../lib/libmaster.a
i686-pc-linux-gnu-gcc -DHAS_PCRE -DHAS_LDAP -DUSE_TLS -DHAS_CDB -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix-2.4.0/readme\" -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.4.0/html\"  -O2 -march=pentium4 -fomit-frame-pointer -pipe -I. -I../../include -DLINUX2 -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o master_spawn.o master_service.o master_status.o master_listen.o master_vars.o master_wakeup.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -Wl,-z,now -L/usr/lib -lpcre -lcrypt -lpthread -lpam -lldap -llber -lssl -lcrypto -ltinycdb -ldb -lnsl -lresolv
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ltinycdb
collect2: ld returned 1 exit status
make: *** [master] Error 1
make: *** [update] Error 1
Comment 1 Fernando J. Pereda (RETIRED) gentoo-dev 2007-04-17 20:54:12 UTC
If you change CDB_LIBS="-ltinycdb" to CDB_LIBS="-lcdb", does it work ?

Cheers.

- ferdy
Comment 2 Chris Smith 2007-04-17 23:28:51 UTC
(In reply to comment #1)
> If you change CDB_LIBS="-ltinycdb" to CDB_LIBS="-lcdb", does it work ?

Yes. If I comment out:
cp /usr/include/tinycdb.h ${S}/src/util/cdb.h || die
and make the change you ecommend above it builds

Chris
Comment 3 Luca Longinotti (RETIRED) gentoo-dev 2007-04-24 19:29:12 UTC
This is fixed in Postfix-2.4.0-r1, please emerge --sync in a few hours to get it.
Best regards, CHTEKK.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-08-12 17:36:45 UTC
*** Bug 188611 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-08-12 17:40:16 UTC
Maybe someone could actually remove the nonsense in stable as well, or stabilize something newer.
Comment 6 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2008-03-21 15:06:21 UTC
(In reply to comment #5)
> Maybe someone could actually remove the nonsense in stable as well, or
> stabilize something newer.
> 

2.4.(x>0) is stable now and doesn't have the problem.