From owner-freebsd-ports Tue Aug 28 1:56:50 2001 Delivered-To: freebsd-ports@freebsd.org Received: from krusty.e-technik.uni-dortmund.de (krusty.E-Technik.Uni-Dortmund.DE [129.217.163.1]) by hub.freebsd.org (Postfix) with ESMTP id EE7A437B407 for ; Tue, 28 Aug 2001 01:56:46 -0700 (PDT) (envelope-from matthias.andree@stud.uni-dortmund.de) Received: from emma1.emma.line.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1]) by krusty.e-technik.uni-dortmund.de (Postfix) with ESMTP id 284CAA3827 for ; Tue, 28 Aug 2001 10:56:45 +0200 (CEST) Received: by emma1.emma.line.org (Postfix, from userid 500) id 30FA4A201F; Tue, 28 Aug 2001 10:56:44 +0200 (CEST) Date: Tue, 28 Aug 2001 10:56:44 +0200 From: Matthias Andree To: Pete Fritchman Cc: Matthias Andree , freebsd-ports@freebsd.org Subject: Re: How does a port's Makefile check for PERL_THREADED in /etc/make.conf? Message-ID: <20010828105644.C12369@emma1.> References: <20010828101753.A13679@emma1.> <20010828042238.D49755@databits.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010828042238.D49755@databits.net>; from petef@databits.net on Tue, Aug 28, 2001 at 04:22:38AM -0400 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 28 Aug 2001, Pete Fritchman wrote: > ++ 28/08/01 10:17 +0200 - Matthias Andree: > | What I'm saying is, don't build the Exim port on systems that use > | PERL_THREADED. > | > | What would be the canonical way for /usr/ports/mail/exim/Makefile to > | check if PERL_THREADED is enabled and commit suicide if it is? > > You (well, the exim maintainer) would probably want to add something like: The exim port maintainer referred me to this mailing list because he's short of time at the moment, so I'm doing a patch that he'll look over and commit if it looks good. :-) > .if defined(PERL_THREADED) > BROKEN= "exim does not work with a threaded perl" > .endif > in the Makefile. If you know why it doesn't work, or if the authors are > working on a fix, that would be useful information to include in the > BROKEN line too. I don't know specifics, Sheldon Hearn (Exim maintainer) said it was threaded perl, I confirmed that. > Hope this helps, Yes, it did. Now since I know what to look for, I dug around the /usr/src tree and came up with: # Exim will segfault with threaded perl, so refuse to build. .if defined(PERL_THREADED) && ${PERL_THREADED} == "true" BROKEN= "exim does not work with PERL_THREADED=true" .endif added to the port's Makefile to deal with the PERL_THREADED=false case without complaining. Your help has been appreciated. Thanks a lot. -- Matthias Andree To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message