From nobody@FreeBSD.org  Tue Nov 30 01:38:56 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 08CD716A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Nov 2004 01:38:54 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E943D43D4C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Nov 2004 01:38:53 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iAU1crkr041515
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Nov 2004 01:38:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iAU1crFO041512;
	Tue, 30 Nov 2004 01:38:53 GMT
	(envelope-from nobody)
Message-Id: <200411300138.iAU1crFO041512@www.freebsd.org>
Date: Tue, 30 Nov 2004 01:38:53 GMT
From: "Chad M. Fraleigh" <chadf@bookcase.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] ports/mail/p5-Sendmail-Milter does not compile with threaded perl installed
X-Send-Pr-Version: www-2.3

>Number:         74541
>Category:       ports
>Synopsis:       [patch] ports/mail/p5-Sendmail-Milter does not compile with threaded perl installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 30 01:40:27 GMT 2004
>Closed-Date:    Fri Feb 18 14:03:43 GMT 2005
>Last-Modified:  Fri Feb 18 14:03:43 GMT 2005
>Originator:     Chad M. Fraleigh
>Release:        4.8
>Organization:
>Environment:
ports collection as of Mon Nov 29 20:22:49 EST 2004

# $FreeBSD: ports/mail/p5-Sendmail-Milter/Makefile,v 1.3 2003/08/07 20:44:51 sobomax Exp $

>Description:
The p5-Sendmail-Milter port does not account for the WITH_THREADS option in the perl 5.8 port. It will always return the following error, even when a threaded perl has been installed:

===>  p5-Sendmail-Milter-0.18 Requires perl compiled manually with threads..

>How-To-Repeat:

cd /usr/ports/mail/p5-Sendmail-Milter
make

>Fix:
Patch for ports/mail/p5-Sendmail-Milter/Makefile:
  (also available upon request)

--- Makefile.orig       Sat Aug  9 22:00:52 2003
+++ Makefile    Mon Nov 29 20:07:07 2004
@@ -15,7 +15,13 @@
 MAINTAINER=    ports@FreeBSD.org
 COMMENT=       A module to write mail filters in Perl using sendmail's mail filter API
 
+.if !defined(PERL_THREADED)
+PERL_THREADED!=        perl -e 'use Config; if($$Config{usethreads}) { print "YES" }'
+.endif
+
+.if ${PERL_THREADED} != "YES"
 IGNORE=                "Requires perl compiled manually with threads."
+.endif
 
 PERL_CONFIGURE=        yes
 MAN3PREFIX=    ${PREFIX}/lib/perl5/${PERL_VERSION}

>Release-Note:
>Audit-Trail:

From: Tom Rhodes <trhodes@FreeBSD.org>
To: "Chad M. Fraleigh" <chadf@bookcase.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/74541: [patch] ports/mail/p5-Sendmail-Milter does not
 compile	with threaded perl installed
Date: Mon, 29 Nov 2004 20:47:39 -0500

 On Tue, 30 Nov 2004 01:38:53 GMT
 "Chad M. Fraleigh" <chadf@bookcase.com> wrote:
 
 [SNIPT]
 
 # $FreeBSD: ports/mail/p5-Sendmail-Milter/Makefile,v 1.3 2003/08/07 20:44:51 sobomax Exp $
 > 
 > >Description:
 > The p5-Sendmail-Milter port does not account for the WITH_THREADS option in the perl 5.8 port. It will always return the following error, even when a threaded perl has been installed:
 > 
 > ===>  p5-Sendmail-Milter-0.18 Requires perl compiled manually with threads..
 
 [SNIP]
 
 Heh, I usually just removed the error from the Makefile.  :)
 
 -- 
 Tom Rhodes
State-Changed-From-To: open->feedback 
State-Changed-By: vs 
State-Changed-When: Thu Dec 9 09:35:57 GMT 2004 
State-Changed-Why:  
I don't think this is going to work. Wait for confirmation from 
submitter. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74541 

From: "Volker Stolz" <vs@freebsd.org>
To: freebsd-gnats-submit@freebsd.org, chadf@bookcase.com,
	trhodes@freebsd.org
Cc:  
Subject: Re: ports/74541: [patch] ports/mail/p5-Sendmail-Milter does not compile with threaded perl installed
Date: Thu, 09 Dec 2004 10:35:26 +0100

 Somehow I feel that his isn't going to work since 'make' will try to run  
 'perl' before it gets to the point of installing it as a prerequisite:
 
 p5-Sendmail-Milter@menelaos [10:33:56]> make
 perl: not found
 "Makefile", line 20: warning: "perl -e 'use Config;  
 if($Config{usethreads}) { print "YES" }'" returned non-zero status
 ===>  Vulnerability check disabled
 => Sendmail-Milter-0.18.tar.gz doesn't seem to exist in  
 /usr/ports/distfiles/.
 perl: not found
 "Makefile", line 20: warning: "perl -e 'use Config;  
 if($Config{usethreads}) { print "YES" }'" returned non-zero status
 => Attempting to fetch from  
 ftp://sunsite.informatik.rwth-aachen.de/pub/FreeBSD/ports/distfiles/.
 Sendmail-Milter-0.18.tar.gz                   100% of   20 kB 1716 kBps
 ===>  Extracting for p5-Sendmail-Milter-0.18
 => Checksum OK for Sendmail-Milter-0.18.tar.gz.
 ===>   p5-Sendmail-Milter-0.18 depends on file: /usr/local/bin/perl5.6.1 -  
 not found
 
 Volker
State-Changed-From-To: feedback->closed 
State-Changed-By: krion 
State-Changed-When: Fri Feb 18 14:03:36 GMT 2005 
State-Changed-Why:  
No feedback from submitter. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74541 
>Unformatted:
