From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: wip spamassassin Date: Wed, 27 Jul 2016 00:50:58 +0200 Message-ID: <20160727005058.63ff3252@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSBBs-0002ZF-T8 for guix-devel@gnu.org; Tue, 26 Jul 2016 18:51:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSBBo-00066C-NF for guix-devel@gnu.org; Tue, 26 Jul 2016 18:51:07 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:36108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSBBo-00065g-GN for guix-devel@gnu.org; Tue, 26 Jul 2016 18:51:04 -0400 Received: from localhost (77.116.159.65.wireless.dyn.drei.com [77.116.159.65]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 4D8BD1CA057F for ; Wed, 27 Jul 2016 00:51:00 +0200 (CEST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hi, I'm trying to package spamassassin. I've got it to work with $ guix build -S spamassassin ... extract it $ guix environment --pure spamassassin $ perl Makefile.PL PREFIX=/gnu/store/37hdpcyz1b6y5jjwzdmxw14gd1xsf9fv-spamassassin-3.4.1 INSTALLDIRS=site $ make ... works fine. But $ guix package -i spamassassin fails with: ... checking for h_errno... yes checking for in_addr_t... yes checking for INADDR_NONE... yes checking for EX__MAX... yes checking for EAI_ADDRFAMILY... no checking for EAI_SYSTEM... (cached) no checking for EAI_NODATA... (cached) no configure: creating ./config.status ./configure: line 5848: /bin/sh: No such file or directory Makefile:1815: recipe for target 'spamc/Makefile' failed make: *** [spamc/Makefile] Error 1 phase `build' failed after 6.1 seconds builder for `/gnu/store/y604k3bqc40zxclhvja45f2fq8yz4jnz-spamassassin-3.4.1.drv' failed with exit code 1 guix package: error: build failed: build of `/gnu/store/y604k3bqc40zxclhvja45f2fq8yz4jnz-spamassassin-3.4.1.drv' failed Why? Patch: diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 6d47016..1d410cb 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -1326,3 +1326,41 @@ Khard can also be used from within the email client @command{mutt}.") (description "Mail::SPF is the Sender Policy Framework implemented in Perl.") (license bsd-3))) + +(define-public spamassassin + (package + (name "spamassassin") + (version "3.4.1") + (source (origin + (method url-fetch) + (uri (string-append "http://mirror.klaus-uwe.me/apache/spamassassin/source/" + "Mail-SpamAssassin-" version ".tar.bz2")) + (sha256 + (base32 + "0la6s5ilamf9129kyjckcma8cr6fpb6b5f2fb64v7106iy0ckhd0")))) + (build-system perl-build-system) + (inputs `(("perl-html-parser" ,perl-html-parser) + ("perl-net-dns" ,perl-net-dns) + ("perl-netaddr-ip" ,perl-netaddr-ip) + ("perl-digest-sha1" ,perl-digest-sha1) + ("perl-db-file" ,perl-db-file) + ("perl-mail-spf" ,perl-mail-spf) + ("perl-geo-ip" ,perl-geo-ip) + ("perl-net-cidr-lite" ,perl-net-cidr-lite) + ; FIXME find and re-add ("perl-razor2" ,perl-razor2) + ("perl-io-socket-inet6" ,perl-io-socket-inet6) + ("perl-io-socket-ssl" ,perl-io-socket-ssl) + ;; FIXME fix and re-add ("perl-mail-dkim" ,perl-mail-dkim) + ("perl-dbi" ,perl-dbi) + ; FIXME find and re-add ("perl-lwp-useragent" ,perl-lwp-useragent) + ("perl-http-date" ,perl-http-date) + ("perl-encode-detect" ,perl-encode-detect) + ("perl-net-patricia" ,perl-net-patricia) + ; FIXME find and re-add ("perl-net-dns-nameserver" ,perl-net-dns-nameserver) +)) + ; TODO optional binaries: gpg wget curl fetch + (synopsis "Spam Filter") + (description "SpamAssassin is a complete spam checker, featuring local tests, remote +tests, Bayesian filtering, and more.") + (home-page "http://spamassassin.apache.org/") + (license asl2.0))) It needs all the perl packages I've submitted lately, too.