Date: Tue, 26 Sep 2006 23:59:20 -0700 From: steve@Watt.COM (Steve Watt) To: "Philip M. Gollucci" <pgollucci@p6m7g8.com> Cc: freebsd-ports@freebsd.org Subject: Re: p5-Apache-DBI 'make package' dependency strangeness Message-ID: <200609270659.k8R6xKke008040@wattres.watt.com> In-Reply-To: "Philip M. Gollucci" <pgollucci@p6m7g8.com> "Re: p5-Apache-DBI 'make package' dependency strangeness" (Sep 26, 23:05)
next in thread | previous in thread | raw e-mail | index | archive | help
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...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609270659.k8R6xKke008040>