From owner-freebsd-ports@FreeBSD.ORG Fri Mar 18 15:08:43 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89EEE16A4CE; Fri, 18 Mar 2005 15:08:43 +0000 (GMT) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id D17C043D54; Fri, 18 Mar 2005 15:08:42 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 479FA5DE1; Fri, 18 Mar 2005 10:08:42 -0500 (EST) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03952-09; Fri, 18 Mar 2005 10:08:39 -0500 (EST) Received: from [192.168.1.3] (pool-68-161-53-96.ny325.east.verizon.net [68.161.53.96]) by pi.codefab.com (Postfix) with ESMTP id CDA555DB5; Fri, 18 Mar 2005 10:08:38 -0500 (EST) Message-ID: <423AEEC5.3070101@mac.com> Date: Fri, 18 Mar 2005 10:07:49 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Florian Hars References: <200503171912.j2HJC8wH090706@freefall.freebsd.org> <423ADA7A.2030400@bik-gmbh.de> In-Reply-To: <423ADA7A.2030400@bik-gmbh.de> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com cc: Doug Barton cc: freebsd-ports@FreeBSD.org Subject: Re: ports/78944: htdig depends on a very specific apache X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 15:08:43 -0000 Florian Hars wrote: > Doug Barton wrote: >> It actually doesn't depend on a specific apache, it depends on >> the value of ${APACHE_PORT}, which on the ports building >> cluster is (has to be) a specific value. > > I tried to install the package, and it did indeed require this and > only this version of apache, although it doesn't even need any > apache at all. The precompiled package of this port has a dependency on a specific version of Apache. That's the way precompiled software generally works, although some software is well-enough written to dynamicly check for and include optional dependencies at runtime. > This is a serious design error of the ports/packages system. Listing an optional dependency as being required was the choice of the port's maintainer. I don't know whether it is the right choice-- that depends on whether htdig+Apache results in a better or more useable version than htdig compiled alone, but perhaps Florian would be happier with: --- ports/textproc/htdig/Makefile~ Fri Mar 18 09:45:08 2005 +++ ports/textproc/htdig/Makefile Fri Mar 18 10:05:20 2005 @@ -17,11 +17,14 @@ MAINTAINER= DougB@FreeBSD.org COMMENT= A www indexing and searching system +.if defined(APACHE_PORT) RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/${APACHE_PORT} +.endif USE_LIBTOOL_VER=15 GNU_CONFIGURE= yes +.if defined(APACHE_PORT) CONFIGURE_ARGS= --with-config-dir=${PREFIX}/etc/htdig \ --with-default-config-file=${PREFIX}/etc/htdig/htdig.conf \ --with-common-dir=${PREFIX}/share/htdig/common \ @@ -32,6 +35,14 @@ --with-image-url-prefix=/icons/htdig \ --with-ssl \ --with-apache=${LOCALBASE}/sbin +.else +CONFIGURE_ARGS= --with-config-dir=${PREFIX}/etc/htdig \ + --with-default-config-file=${PREFIX}/etc/htdig/htdig.conf \ + --with-common-dir=${PREFIX}/share/htdig/common \ + --with-database-dir=${PREFIX}/share/htdig/database \ + --with-image-url-prefix=/icons/htdig \ + --with-ssl +.endif MAN1= htdig.1 htdig-pdfparser.1 htdump.1 htfuzzy.1 htload.1 \ htmerge.1 htnotify.1 htpurge.1 htsearch.1 htstat.1 rundig.1 I haven't tested this to any real extent, but htdig at least compiles without the dependency on Apache if that is what you want. Of course, you'll have to deal with integrating htdig with whatever other webserver you want to use yourself, rather than having the port do so by default. Seriously, it's not very useful to complain that a precompiled package generated by someone else isn't perfectly suitable to your needs: the tools are all there and you are welcome to customize things differently if you prefer. -- -Chuck