Currently the ebuild for cryptlib has USE flags for LDAP and odbc, however, all they control is dependencies. The makefile is using several scripts to detect whether LDAP / ODBC is installed, and then enabling support if it finds them installed. ex: (LDAP) FEATURES="-distcc" USE="-ldap" ebuild /usr/portage/dev-libs/cryptlib/cryptlib-3.3.3.ebuild clean compile >>> Downloading 'http://gentoo.netnitco.net/distfiles/cl333.zip' --2010-07-28 16:23:36-- http://gentoo.netnitco.net/distfiles/cl333.zip Resolving gentoo.netnitco.net... 216.176.132.235 Connecting to gentoo.netnitco.net|216.176.132.235|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 4530664 (4.3M) [application/zip] Saving to: `/usr/portage/distfiles/cl333.zip' 100%[==================================================================================================================================================================================================>] 4,530,664 2.60M/s in 1.7s 2010-07-28 16:23:38 (2.60 MB/s) - `/usr/portage/distfiles/cl333.zip' saved [4530664/4530664] * cl333.zip RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking cl333.zip ;-) ... [ ok ] * CPV: dev-libs/cryptlib-3.3.3 * REPO: gentoo * USE: amd64 elibc_glibc kernel_linux multilib python userland_GNU >>> Unpacking source... >>> Source unpacked in /var/tmp/portage/dev-libs/cryptlib-3.3.3/work >>> Preparing source in /var/tmp/portage/dev-libs/cryptlib-3.3.3/work ... * Applying cryptlib-3.3.2-ld.patch ... [ ok ] * Applying cryptlib-3.3.2-external-zlib.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-libs/cryptlib-3.3.3/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-libs/cryptlib-3.3.3/work ... make -j5 CC=x86_64-pc-linux-gnu-gcc 'CFLAGS=-O3 -march=nocona -pipe -fomit-frame-pointer -c -D__UNIX__ -DNDEBUG -I.' make directories make[1]: Entering directory `/var/tmp/portage/dev-libs/cryptlib-3.3.3/work' make[1]: Leaving directory `/var/tmp/portage/dev-libs/cryptlib-3.3.3/work' make toolscripts make[1]: Entering directory `/var/tmp/portage/dev-libs/cryptlib-3.3.3/work' make[1]: Leaving directory `/var/tmp/portage/dev-libs/cryptlib-3.3.3/work' LDAP interface detected, enabling LDAP support make[1]: Entering directory `/var/tmp/portage/dev-libs/cryptlib-3.3.3/work' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. make[2]: Entering directory `/var/tmp/portage/dev-libs/cryptlib-3.3.3/work' x86_64-pc-linux-gnu-gcc -O3 -march=nocona -pipe -fomit-frame-pointer -c -D__UNIX__ -DNDEBUG -I. -DDATA_LITTLEENDIAN -DHAS_LDAP -DHAS_RECURSIVE_MUTEX -DHAS_ROBUST_MUTEX -Wno-pointer-sign -Wno-strict-aliasing -std=gnu99 -fstack-protector -D_FORTIFY_SOURCE=2 -DOSVERSION=2 -D_REENTRANT -o ./static-obj/bn_add.o bn/bn_add.c x86_64-pc-linux-gnu-gcc -O3 -march=nocona -pipe -fomit-frame-pointer -c -D__UNIX__ -DNDEBUG -I. -DDATA_LITTLEENDIAN -DHAS_LDAP -DHAS_RECURSIVE_MUTEX -DHAS_ROBUST_MUTEX -Wno-pointer-sign -Wno-strict-aliasing -std=gnu99 -fstack-protector -D_FORTIFY_SOURCE=2 -DOSVERSION=2 -D_REENTRANT -o ./static-obj/bn_asm.o bn/bn_asm.c x86_64-pc-linux-gnu-gcc -O3 -march=nocona -pipe -fomit-frame-pointer -c -D__UNIX__ -DNDEBUG -I. -DDATA_LITTLEENDIAN -DHAS_LDAP -DHAS_RECURSIVE_MUTEX -DHAS_ROBUST_MUTEX -Wno-pointer-sign -Wno-strict-aliasing -std=gnu99 -fstack-protector -D_FORTIFY_SOURCE=2 -DOSVERSION=2 -D_REENTRANT -o ./static-obj/bn_ctx.o bn/bn_ctx.c I have a fix for this, and for bug 298461. Will post the updated ebuilds and diffs when they are finalized.
This should be addressed by the updated ebuild for cryptlib posted in bug 298461. buildall.sh also uses other scripts to decide whether or not to compile in support for other things (LDAP, ODBC). The changes to the ebuild circumvent the automagic / jobserver issues by calling the make target that buildall.sh will call directly, thus preventing any of the bash scripts from being used, keeping the jobserver working, and getting rid of the automagic.
Fixed in -r1. +*cryptlib-3.3.3-r1 (13 Oct 2010) + + 13 Oct 2010; Dane Smith <c1pher@gentoo.org> +cryptlib-3.3.3-r1.ebuild: + Revision bump. Address the QA issues wrt bugs #298461 and bug #330289. + Also + contains some cosmetic fixes. +