Date: Tue, 15 Dec 1998 09:42:07 -0600 (CST) From: Steve Price <sprice@hiwaay.net> To: John Baldwin <jobaldwi@vt.edu> Cc: freebsd-ports@FreeBSD.ORG Subject: Re: make index breaks at top level Message-ID: <Pine.OSF.4.02.9812150934380.28787-100000@fly.HiWAAY.net> In-Reply-To: <XFMail.981215001710.jobaldwi@vt.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Dec 1998, John Baldwin wrote: # -----BEGIN PGP SIGNED MESSAGE----- # # I do have perl5 installed, and I did patch the Makefile to expressly use perl5, # which worked for me. I don't know if it would break elegance, but here is the # simple patch that will let 2.2.x machines with perl5 installed make the index. # It does assume that perl5 is in the path, and I'm not sure that 3.x has a # /usr/bin/perl5. Oh, well. It's not that big of a deal. # [patch elided] How about this patch instead? Index: make_index =================================================================== RCS file: /home/ncvs/ports/templates/make_index,v retrieving revision 1.1 diff -u -r1.1 make_index --- make_index 1998/12/12 07:41:49 1.1 +++ make_index 1998/12/15 15:33:25 @@ -9,6 +9,8 @@ # fixes up the build-depends and run-depends list, and writes # out the new INDEX file. +require 5.002; + # Helper function to map a directory to a pkgname. sub by_path { my $name = shift; # Ahh.. so 'my' variables have scope similar to local (volatile?) Yes 'my' variable in perl are like local variables (those defined on the stack) in C. Not volatile though. Volatile is a flag to the compiler that a variable might be changed elsewhere (by a signal handler for instance) and to not get too overzealous with its optimization. # variables in C, while 'local' variables don't have a comparable # variable class in C? Yes. # Cool. I really should sit down and learn Perl. There are alot of people who hate the language. I for one like it, but then again I happen to like Python too. :) -steve # - --- # # John Baldwin <jobaldwi@vt.edu> -- http://members.freedomnet.com/~jbaldwin/ # PGP Key: http://members.freedomnet.com/~jbaldwin/pgpkey.asc # # Eat properly, get plenty of excercise ...and die anyway! # # # -----BEGIN PGP SIGNATURE----- # Version: 2.6.2 # # iQB1AwUBNnXvj4jYza302vYpAQENLQL+IdboLWAOx8oZH66FeE5Sn85g5X2/L1D3 # C/2Rrpd9se/DkNn3VfyJzUEdeDYCkK9anYbQ7SbcXNgvr/+tmFAeZgHu+OvyFZMf # qERmKfghKsK2OAz7jOEHofVB8ncC+kGH # =gogz # -----END PGP SIGNATURE----- # To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.02.9812150934380.28787-100000>