From owner-freebsd-perl@FreeBSD.ORG Tue Jan 6 14:19:39 2004 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F88016A4CE; Tue, 6 Jan 2004 14:19:39 -0800 (PST) Received: from ms-smtp-01-eri0.southeast.rr.com (ms-smtp-01-lbl.southeast.rr.com [24.25.9.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id D774943D39; Tue, 6 Jan 2004 14:19:36 -0800 (PST) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (rrcs-midsouth-24-172-16-118.biz.rr.com [24.172.16.118]) i06MJTHG016715; Tue, 6 Jan 2004 17:19:29 -0500 (EST) Received: from [10.2.1.4] (vpn-client-4.marcuscom.com [10.2.1.4]) i06MJKxc003037; Tue, 6 Jan 2004 17:19:20 -0500 (EST) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Paul Seniura In-Reply-To: <20040106221530.CCACF5C29@techpc04.okladot.state.ok.us> References: <20031231234158.8EF1C5C29@techpc04.okladot.state.ok.us> <20031231234158.8EF1C5C29@techpc04.okladot.state.ok.us> <1073064581.779.10.camel@gyros> <20040106175238.4355C5C29@techpc04.okladot.state.ok.us> <1073412562.32632.3.camel@pyanfar.ece.cmu.edu> <20040106195108.D07EB5C29@techpc04.okladot.state.ok.us> <20040106221530.CCACF5C29@techpc04.okladot.state.ok.us> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-u6RS13yPCKAziY5GM3PI" Organization: MarcusCom, Inc. Message-Id: <1073427579.776.37.camel@gyros> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 06 Jan 2004 17:19:40 -0500 X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on creme-brulee.marcuscom.com X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd-gnome@freebsd.org cc: freebsd-perl@freebsd.org cc: freebsd-ports@freebsd.org cc: "Brandon S. Allbery KF8NH" Subject: Re: I need to clarify (Re: I'm having an awful time updating gdm2 and other ports) X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 22:19:39 -0000 --=-u6RS13yPCKAziY5GM3PI Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2004-01-06 at 17:15, Paul Seniura wrote: > Here is the scenario: >=20 > You don't have any p5-* pieces installed. > You've freshly switched to 'use.perl port' from 'system'. > Then comes a CVS update for x11/gdm2. > You need to upgrade x11/gdm2; it's already installed. > This time you need its configure/make/install scripts to run under perl-5= .8.x. > You hope gdm2's Makefile properly specifies what it requires, like other = ports do. > So you run portupgrade. > And it breaks during gdm2's 'install' phase. >=20 > What do you do? You read the FAQ at http://www.freebsd.org/gnome, and do the update correctly. It does work. Your problem is you tried to upgrade gdm2 on a system were all the other ports were not up-to-date already. Bad idea (for just about anything). Instead, you should have used portupgrade -ra to do things properly, and in the correct order. Had you done that, all your Perl dependencies would have been recorded correctly. Joe >=20 >=20 > Okay now allow me to expand on that scenario with some details, please. >=20 > I did the switch from perl-5.6.x to perl-5.8.x last week > without having any of the p5-* items installed beforehand. >=20 > Never needed any p5-* before -- the only items needing perl at this stage > are ports during their configure / make / install / run-time phases > (I myself haven't needed perl). >=20 > There's nothing _specifically_ telling you _what else_ to do > when you do this 'use.perl port' switch. Specifically. >=20 > I was 'assuming' that any port needing a perl module -- for whatever reas= on > e.g. configure / make / install / run-time -- would have appropriate entr= ies > in that port's Makefile (some '.if's around BUILD_DEPENDS, LIB_DEPENDS, e= tc., > as appropriate, based on PERL_VERSION or SITE_PERL (unsure?)). >=20 > Then came along some CTM deltas for x11/gdm2. > The next time I ran portupgrade is what got broke. > x11/gdm2's Makefile does *not* have checks for perl-anything > but it *did* require certain perl modules for it to be > installed successfully, as shown in my previous msgs > e.g. gdm2 clearly needs the XML::Parser module > during its install phase > so an appropriate item should've been added to > gdm2's Makefile -- probably in this case > to the RUN_DEPENDS string > (is there such a thing as INSTALL_DEPENDS ?). >=20 > Suitable mechanisms _are_ available in the Makefile > and many other ports use them, > but gdm2 didn't say what it needed > so I never got the requisite p5-* pieces it needed > e.g. gdm2's Makefile should've caused the textproc/p5-XML-Parser port > to be installed before gdm2 itself was installed. >=20 > So I needed a workaround. > To get those p5-* pieces needed by gdm2, I was 'hoping' > the p5-GnomePrint port would pull in those missing pieces > if _it_ had a correct Makefile. >=20 > There I go 'assuming' again... > (you know what 'assume' means... ;) >=20 > > Any time you run "use.perl", do "env FORCE_PKG_REGISTER=3D1 portupgrade= -f > > p5-\*". >=20 > It ran very quickly. > It only re-installed the p5-XML-Parser and p5-XML-Writer ports > because those were the only p5-* pieces I've managed to > figure out being required by gdm2 and/or other ports -- after my > assumption p5-GnomePrint properly pull in those missing pieces > as noted. >=20 > I'm running this portupgrade 'force' again on a list of ports that > failed when I tried to install p5-GnomePrint, hoping it'll eventually > fix other glitches, too. >=20 >=20 > I ought to open a PR for gdm2 to be fixed -- > because other ports do check for "which perl" and > adjust themselves accordingly. > Probably a lot of other ports need to similarly > check on other things besides "which perl", too. ;) >=20 >=20 >=20 > -- Paul Seniura > System Specialist > State of Okla. D.O.T. >=20 > _______________________________________________ > freebsd-gnome@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-gnome > To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@freebsd.org" --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-u6RS13yPCKAziY5GM3PI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQA/+zR7b2iPiv4Uz4cRAt4DAJ4jdnS6zQHBV4aTg4fIbOtRSsEZ2QCfTIzU pXpxPx68FEmxKTx/PrK1GZE= =r9zs -----END PGP SIGNATURE----- --=-u6RS13yPCKAziY5GM3PI--