Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107683 - two missing dependency packages: perl-ldap perl-encoder (missing USE-Flag "ldap"?)
Summary: two missing dependency packages: perl-ldap perl-encoder (missing USE-Flag "ld...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-30 01:14 UTC by Daniel
Modified: 2006-01-16 12:10 UTC (History)
0 users

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


Attachments
A too optimistic attempt to make the ebuild support USE=ldap (spamassassin-3.1.0.ebuild,6.42 KB, text/plain)
2006-01-02 11:06 UTC, Yuval Yaari (RETIRED)
Details
A too optimistic attempt to make the ebuild support USE=ldap (spamassassin-3.1.0.ebuild.diff,707 bytes, patch)
2006-01-02 11:14 UTC, Yuval Yaari (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2005-09-30 01:14:51 UTC
spamd and spamassass-milter work great (in standard-configuration) but:

I use spamd and spamassass-milter, configured to look up user-settings using
LDAP-calls.

LDAP-Calls won't work out of the box because two (or more) packages are not
emerged because there is no USE-Flag "ldap": here is a cut-out of my logfiles:

1.) perl-ldap
spamd[3363]: [Can't locate Encode/ConfigLocal.pm in @INC (@INC contains] lib
../lib /usr/lib/perl5/vendor_perl/5.8.6/i686-linux
/usr/lib/perl5/vendor_perl/5.8.6 /etc/perl
/usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6
/usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/local/lib/site_perl .)
at /usr/lib/perl5/5.8.6/i686-linux/Encode.pm line 52, <GEN4> line 2._
spamd[3363]: [processing message <11624.1128065664@www58.gmx.net> for root] 1000._
spamd[3363]: [clean message (0.0/6.0) for root] 1000 in 4.4 seconds, 1668 bytes._
spamd[3363]: [result] .  0 - AWL,FORGED_RCVD_HELO
scantime=4.4,size=1668,mid=<11624.1128065664@....>,autolearn=ham_

after I emerged "perl-ldap" the new log messages says:

spamd[3364]: [Can't locate Encode/ConfigLocal.pm in @INC (@INC contains] lib
../lib /usr/lib/perl5/vendor_perl/5.8.6/i686-linux
/usr/lib/perl5/vendor_perl/5.8.6 /etc/perl
/usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6
/usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/local/lib/site_perl .)
at /usr/lib/perl5/5.8.6/i686-linux/Encode.pm line 52, <GEN4> line 2._
spamd[3364]: [processing message <E1ELFgZ-00025a-Fa@.....> for root] 1000._
spamd[3364]: [clean message (0.2/6.0) for root] 1000 in 5.3 seconds, 2011 bytes._
spamd[3364]: [result] .  0 - FORGED_RCVD_HELO,NO_REAL_NAME
scantime=5.3,size=2011,mid=<E1ELFgZ-00025a-Fa@....>,autolearn=no


For perl-ldap there is already a gentoo-package available:
==> emerge perl-ldap

For Encode there is no gentoo-package available (or I havn't found it yet):
Sources are available from CPAN: http://search.cpan.org/~dankogai/Encode-2.12/

I don't know whether there will be even more dependencys missing, because I
wanted to ask you whether you'll update the spamassass-milter / spamd first
before installing these packages manually.

Thanks a lot!

Cheers Daniel



Reproducible: Always
Steps to Reproduce:
1. receive an email and let it be scanned...
2.
3.



Expected Results:  
ebuild of spamd or spamassass-milter should recognize the "ldap" USE-flag to
emerge the needed packages

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 Pentium III (Coppermine)
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/fax /usr/share/config /var/bind /var/qmail/control
/var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa apm arts audiofile avi bash-completion bcmath
berkdb bitmap-fonts bzlib cdb cdparanoia cdr cpdflib crypt ctype cups curl
curlwrappers directfb dvd dvdr eds emboss encode ethereal exif fam fbcon flash
foomaticdb fortran freetype ftp gd gdbm gif gpm gps gstreamer gtk2 iconv icq
ieee1394 imagemagick imlib ipv6 jabber java javascript jpeg kde ldap libg++
libwww lm_sensors mad mhash mikmod mime mng motif mp3 mpeg ncurses nls offensive
ogg oggvorbis opengl oss pam pcntl pcre pdflib perl png posix python qt
quicktime readline ruby sasl sdl slp snmp sockets socks5 spell ssl svg svgalib
symlink tcltk tcpd threads tidy tiff truetype truetype-fonts type1-fonts unicode
usb vorbis wmf xml xml2 xmlrpc xmms xpm xsl xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Daniel 2005-09-30 01:17:25 UTC
damn! :-) sorry, the first log entries should be:

1.)missing perl-ldap:

spamd[3362]: [Can't locate Net/LDAP.pm in @INC (@INC contains] lib ../lib
/usr/lib/perl5/vendor_perl/5.8.6/i686-linux /usr/lib/perl5/vendor_perl/5.8.6
/etc/perl /usr/lib/perl5/site_perl/5.8.6/i686-linux
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6
/usr/local/lib/site_perl .) at
/usr/lib/perl5/vendor_perl/5.8.6/Mail/SpamAssassin/Conf/LDAP.pm line 85, <GEN4>
line 2._
spamd[3362]: [processing message <13410.1128065127@....> for root] 1000._
spamd[3362]: [clean message (0.0/6.0) for root] 1000 in 1.8 seconds, 1673 bytes._
spamd[3362]: [result] .  0 - 
scantime=1.8,size=1673,mid=<13410.1128065127@....>,autolearn=ham_
Comment 2 Yuval Yaari (RETIRED) gentoo-dev 2006-01-02 11:04:25 UTC
Run
# enc2xs -C
For your Encode problem.
Comment 3 Yuval Yaari (RETIRED) gentoo-dev 2006-01-02 11:06:46 UTC
Created attachment 76007 [details]
A too optimistic attempt to make the ebuild support USE=ldap
Comment 4 Yuval Yaari (RETIRED) gentoo-dev 2006-01-02 11:08:50 UTC
Comment on attachment 76007 [details]
A too optimistic attempt to make the ebuild support USE=ldap

--- /usr/portage/mail-filter/spamassassin/spamassassin-3.1.0.ebuild     2005-11-21 19:35:50.000000000 +0200
+++ /usr/local/portage/mail-filter/spamassassin/spamassassin-3.1.0.ebuild       2006-01-02 20:34:46.882957448 +0200
@@ -13,7 +13,7 @@
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="alpha amd64 hppa ~ia64 ~mips ppc ppc64 sparc x86"
-IUSE="berkdb qmail ssl doc mysql tools"
+IUSE="berkdb qmail ssl doc mysql tools ldap"

 # To consider (not all may be in tree at this time - mcummings):
 # dev-perl/Net-SMTP
@@ -64,6 +64,9 @@
                dev-perl/DBI
                dev-perl/DBD-mysql
        )
+       ldap? (
+                 dev-perl/perl-ldap
+       )
 "

 src_compile() {
Comment 5 Yuval Yaari (RETIRED) gentoo-dev 2006-01-02 11:14:42 UTC
Created attachment 76008 [details, diff]
A too optimistic attempt to make the ebuild support USE=ldap
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2006-01-09 08:44:40 UTC
Actually, ConfigLocal.pm isn't part of the Encode package (checked). Best reference i can find is an xs file in grep ConfigLocal /var/db/pkg/dev-lang/perl-5.8.7-r1/CONTENTS 
obj /usr/lib/perl5/5.8.7/Encode/ConfigLocal_PM.e2x

see: http://lists.community.tummy.com/pipermail/linux-ha/2003-October/009499.html for the same info (run enc2xs -C to generate it).

Now...this begs the question, outside the scope of this bug, should we be generating that file for you when you emerge perl...

Generating /usr/lib/perl5/5.8.7/i686-linux/Encode/ConfigLocal.pm...

ldap useflag fixed btw
Comment 7 Daniel 2006-01-09 09:01:29 UTC
> http://lists.community.tummy.com/pipermail/linux-ha/2003-October/009499.html
> for the same info (run enc2xs -C to generate it).
Thanks a lot, worked fine for me!

> Now...this begs the question, outside the scope of this bug, should we be
> generating that file for you when you emerge perl...
I already made a note for myself, but if you can automate it - why not!? :-)
At least an einfo-Output would also be helpful.

> ldap useflag fixed btw
I've seen the patch - thx a lot!
Comment 8 Michael Cummings (RETIRED) gentoo-dev 2006-01-16 12:10:04 UTC
Future emerges of perl will run enc2xs -C now, closing this bug out since we've covered all that parts.