From owner-freebsd-ports@FreeBSD.ORG Wed Sep 27 06:59:21 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org 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 B4CB516A4E7 for ; Wed, 27 Sep 2006 06:59:21 +0000 (UTC) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (wattres.watt.com [66.93.133.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EECD43D46 for ; Wed, 27 Sep 2006 06:59:21 +0000 (GMT) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (localhost.watt.com [127.0.0.1]) by wattres.watt.com (8.13.8/8.13.6) with ESMTP id k8R6xKtx008041; Tue, 26 Sep 2006 23:59:20 -0700 (PDT) (envelope-from steve@wattres.watt.com) Received: (from steve@localhost) by wattres.watt.com (8.13.8/8.13.8/Submit) id k8R6xKke008040; Tue, 26 Sep 2006 23:59:20 -0700 (PDT) (envelope-from steve) Message-Id: <200609270659.k8R6xKke008040@wattres.watt.com> From: steve@Watt.COM (Steve Watt) Date: Tue, 26 Sep 2006 23:59:20 -0700 In-Reply-To: "Philip M. Gollucci" "Re: p5-Apache-DBI 'make package' dependency strangeness" (Sep 26, 23:05) X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: "Philip M. Gollucci" X-Archived: 1159340360.840689835@wattres.Watt.COM Cc: freebsd-ports@freebsd.org Subject: Re: p5-Apache-DBI 'make package' dependency strangeness X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Sep 2006 06:59:21 -0000 On Sep 26, 23:05, "Philip M. Gollucci" wrote: } Subject: Re: p5-Apache-DBI 'make package' dependency strangeness } Steve Watt wrote: } > I'm trying to build a package for p5-Apache-DBI in a mod_perl2 + } > apache22 system. } } I didn't seem to have trouble when I built it several hundred times on various FBSD boxes/versions. } 7.0-current and 6.2-PRERELEASE } } I do know there is an open PR pending ports/Mk/bsd.apache.mk } filed by me (may or may not be related) } } http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/101636 } } I assume you did cvsup your ports tree first ? Yep. I did forget to mention that it's on a 6.2-pre box. } $pgollucci@vegeta.p6m7g8.net /usr/ports 13 0>grep ^mod_perl2 INDEX-6 } mod_perl2-2.0.2_1,3|/usr/ports/www/mod_perl2|/usr/local|Embeds a Perl interpreter in the Apache2 [ ... ] } $ pgollucci@vegeta.p6m7g8.net /usr/ports 15 0>grep ^p5-Apache-DBI- INDEX-6 } p5-Apache-DBI-1.02|/usr/ports/www/p5-Apache-DBI|/usr/local|DBI persistent connection, authentication and [ ... ] } } I'm convinced thats anywhere near right, but I'm not sure how to update it -- I'll have to do some reading. } } /var/db/pkg> ls -ld apache* perl* p5-Apa* } drwxr-xr-x 2 root wheel - 512B Sep 25 08:22:20 2006 apache-event-2.2.3/ } drwxr-xr-x 2 root wheel - 512B Sep 25 13:55:26 2006 p5-Apache-DBI-1.02/ } drwxr-xr-x 2 root wheel - 512B Sep 25 13:56:51 2006 p5-Apache-Session-1.81/ } drwxr-xr-x 2 root wheel - 512B Sep 25 07:24:25 2006 perl-threaded-5.8.8/ } } I simply used: } $ grep APACHE_PORT /etc/make.conf } APACHE_PORT=www/apache22 } } cd /usr/ports/www/p5-Apache-DBI } sudo make WITH_MODPERL2=yes install clean And the magic bit that I hadn't figured out was setting APACHE_PORT that way. That makes it all work, and the dependencies for the package come out quite sensibly: Registering depends: mod_perl2-2.0.2,3 apache-2.2.3 libiconv-1.9.2_2 expat-2.0.0_1 p5-DBI-1.52 p5-Storable-2.15 perl-5.8.8. Gotta love versionitis. I know there's magic that almost gets it right, because it was finding my apache-2.2.3 dependency before (when I didn't specify APACHE_PORT), but was trying to add an apache20 or apache13 dependency as well. Speaking of APACHE_PORT... Is it documented somewhere that that's the variable needed for this stuff? It's not in the hints in /usr/ports/Mk/bsd.apache.mk, and what I do see implies that setting APACHE_VERSION to 22 should DTRT. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3" Internet: steve @ Watt.COM Whois: SW32-ARIN Free time? There's no such thing. It just comes in varying prices...