Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71836 - POPFile 0.22.1 ebuild
Summary: POPFile 0.22.1 ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Stuart Herbert (RETIRED)
URL:
Whiteboard:
Keywords:
: 75982 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-20 06:03 UTC by Dirkjan Ochtman (RETIRED)
Modified: 2006-02-27 15:05 UTC (History)
1 user (show)

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


Attachments
ebuild for DBD::SQLite2 (DBD-SQLite2-0.33.ebuild,545 bytes, text/plain)
2005-05-08 14:44 UTC, Robert T Childers
Details
ebuild for popfile-0.22.2 (popfile-0.22.2.ebuild,1.18 KB, text/plain)
2005-05-25 11:18 UTC, Robert T Childers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirkjan Ochtman (RETIRED) gentoo-dev 2004-11-20 06:03:16 UTC
Dependencies added. Seems to work for me.

Ebuild at http://office.xavamedia.nl/popfile-0.22.1.ebuild

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Kenyon Ralph 2004-12-28 21:03:03 UTC
I tried to install popfile-0.22.2 by just changing the filename of Manuzhai's ebuild above, but I ran into a bunch of problems.  It does the emerge successfully.  When I ran popfile.pl, it complained about not being able to find Loader.pm in @INC.  With the permissions set by the ebuild normal users can't read the /usr/share/popfile/POPFile directory, or anything else in /usr/share/popfile.  So I changed all the permissions.  Also I exported PERLLIB=/usr/share/popfile in my environment.  Then I ran it and it says this:
$ /usr/share/popfile/popfile.pl

POPFile Engine loading

    Loading... 
         {core:} 
         {classifier:} 
         {interface:} 
         {proxy:} 
         {services:} 

Can't call method "classifier" on an undefined value at /usr/share/popfile/POPFile/Loader.pm line 556.

It does this executing as root also.  I looked at this line and decided I better wait until the experts make this ebuild. :)  I guess I'll use 0.21.1 for now, but it would be nice to have the latest version.  Thanks!
Comment 2 Kenyon Ralph 2004-12-28 21:16:06 UTC
Actually I just re-read Bug 48031 Comment 4...  Started ./popfile.pl from /usr/share/popfile as root.  Gives this output:

# ./popfile.pl 

POPFile Engine loading

    Loading... 
         {core: config history logger mq} 
         {classifier: bayes wordmangle} 
         {interface: html xmlrpc} 
         {proxy: nntp pop3 smtp} 
         {services: imap} 

POPFile Engine v0.22.2 starting

    Initializing... 
         {core: config history logger mq} 
         {classifier: bayes wordmangle} 
         {interface: html xmlrpc} 
         {proxy: nntp pop3 smtp} 
         {services: imap} 

    Starting...     
         {core: config history logger mq} 
install_driver(SQLite2) failed: Can't locate DBD/SQLite2.pm in @INC (@INC contains: ./ /usr/share/popfile /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/5.8.6/i686-linux /usr/lib/perl5/vendor_perl/5.8.6 /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 (eval 35) line 3.
Perhaps the DBD::SQLite2 perl module hasn't been fully installed,
or perhaps the capitalisation of 'SQLite2' isn't right.
Available drivers: DBM, ExampleP, File, Proxy, SQLite, Sponge.
 at /Classifier/Bayes.pm line 729

So I guess I need to change the ebuild to require DBD/SQLite2...
Comment 3 Kenyon Ralph 2004-12-28 21:59:26 UTC
I installed DBD::SQLite2 with g-cpan.pl, and I have POPFile 0.22.2 running just fine now, installed by the renamed 0.22.1 ebuild.  I don't know how to make the ebuild do the g-cpan.pl thing, so I also made Bug 75982, a request for the 0.22.1 ebuild in the Portage tree.
Comment 4 Kenyon Ralph 2004-12-28 22:00:09 UTC
Correction, Bug 75982 is a request for 0.22.2.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-05-08 14:33:59 UTC
*** Bug 75982 has been marked as a duplicate of this bug. ***
Comment 6 Robert T Childers 2005-05-08 14:40:53 UTC
You need DBD::SQLite2 in order to run popfile 0.22.2
DBD::SQLite2 is DBD::SQLite renamed after version 0.31 to allow continued use of the sqlite-2.x api after DBD::SQLite went to version 1.0 using the sqlite-3.x api. In order to do this I used the ebuild from DBD-SQLite-0.31 to create the ebuild of DBD-SQLite2-0.33.ebuild with the change of checking to make sure that the version of DBD was >= 1.03.
Comment 7 Robert T Childers 2005-05-08 14:44:03 UTC
Created attachment 58402 [details]
ebuild for DBD::SQLite2

This is ebuild was created from DBD-SQLite-0.31
Comment 8 Robert T Childers 2005-05-25 11:18:36 UTC
Created attachment 59806 [details]
ebuild for popfile-0.22.2

Note, DIGEST-MD5 moved from dev-perl to perl-core. This ebuild takes that into
account. (orignally this build had dev-perl/DIGEST-MD5 as a dependency now it
has perl-core/DIGEST-MD5. Had to make that change today after syncing my
portage tree.
Comment 9 Robert T Childers 2005-05-25 13:41:00 UTC
Comment on attachment 59806 [details]
ebuild for popfile-0.22.2

># Copyright 1999-2004 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: /var/cvsroot/gentoo-x86/mail-filter/popfile/popfile-0.21.1.ebuild,v 1.4 2004/09/25 17:50:35 ticho Exp $
>
>IUSE=""
>
>S=${WORKDIR}
>DESCRIPTION="Anti-spam bayesian filter"
>HOMEPAGE="http://popfile.sourceforge.net/"
>SRC_URI="mirror://sourceforge/popfile/${P}.zip"
>
>SLOT="0"
>LICENSE="GPL-2"
>KEYWORDS="~x86 ~ppc"
>
>DEPEND=">=dev-lang/perl-5.8
>	perl-core/Digest-MD5
>	dev-perl/Text-Kakasi
>	perl-core/MIME-Base64
>	dev-perl/HTML-Tagset
>	dev-perl/DBD-SQLite2
>        dev-perl/HTML-Template
>        dev-perl/TimeDate
>	app-arch/unzip"
>
>src_compile() {
>	# do nothing
>	echo > /dev/null
>}
>
>src_install() {
>	# yes, this is crude, but it's a start
>
>	dodir /usr/share/popfile
>	find . -type f -print | xargs chmod 600
>	find . -type d -print | xargs chmod 700
>	tar -cf - * | ( cd ${D}/usr/share/popfile && tar -xf - )
>
>	fperms 0755 usr/share/popfile/popfile.pl
>	dodir /usr/share/popfile/corpus
>	dodir /usr/share/popfile/messages
>}
>
>pkg_postinst () {
>	einfo "To start popfile, run /usr/share/popfile/popfile.pl"
>	einfo
>	einfo "A /etc/init.d script will be added once popfile can support"
>	einfo "multiple users"
>}
Comment 10 Robert T Childers 2005-05-25 17:25:46 UTC
Well looks like MIME-Base64 and DIGEST-MD5 were the only ones moved from
dev-perl to perl-core.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-02-27 15:05:06 UTC
Hmm? In portage, closing a stale bug.