The 2.0.50 (and earlier) ebuilds have gdbm as a conditional dependency but they don't do anything based on if the USE flags include gdbm or not.
Regardless, apache is compiled to use gdbm.
The same problem also applies for sys-libs/db -- apache requires this no matter what the USE flags say.
Neither of these packages are lised as hard dependencies though.
Hopefully someone familiar with apache compilation can fix this.
(I'm trying to do a chroot jail and I really don't want these libraries unless I *NEED* them)
Steps to Reproduce:
1. USE="-gdbm -berkdb"
2. emerge apache
3. ldd `which apache2` | grep db
Apache2 is linked to libdb and libgdbm
Not used those, or those should have been in the ebuild's dependencies.
emerge info not relevant!
Just a note, this does occure with the apache1 ebuild as well.
could you please test if this still occurs with 1.3.33-r1 and 2.0.52-r3 (currently hard masked)
Closing. Please re-open if you experience this with newer (~arch) apache versions in portage.