(FWD) [PATCH] disable perl 5.8's spamming of /etc/make.conf
Anton Berezin
tobez at freebsd.org
Tue Aug 31 10:57:48 PDT 2004
On Sun, Aug 29, 2004 at 02:06:03AM -0700, David O'Brien wrote:
> tobez doesn't seem to be reading FreeBSD mail.
> Can anyone here comment on this?
Hi David,
Sorry I did not answer your mail before, since I was on vacation.
This patch would not do, since replacing -ge with -lt will lead to
use.perl port being executed automatically for 4.X, which we definitely
not want.
Actually, I am not entirely sure that use.perl is obsolete in 5.X and
6-CURRENT, since it also tinkers with /etc/manpath.config.
I think the right thing to do would be to make use.perl script slightly
more intelligent and _edit_ make.conf instead of appending to it.
Alternatively, we can get rid of use.perl for 5.X and 6-CURRENT, take
care of manpath.config in some other way (probably by properly
maintaining manpath.config in the system sources, which has its own
ugly side), and then do something like
if [ $osreldate -ge 500032 -a $osreldate -le 502100 ] ; then
in pkg-install, so that we still get the `traditional' behavior in older
5.X's.
What do you think?
> 1. 'use.perl port' does a poor job of editing /etc/make.conf -- old
> variable settings aren't removed.
> 2. When cleaning up the result of 10 invocations of 'use.perl port'
> over time, I inevitably miss one. And it of course is always not
> the current version. This causes me to hose my perl5.8 installation
> the next time I build a port that depends on perl.
> 3. I know some people using FreeBSD in appliances that have been very
> puzzled that their perl related changes in ports/Mk/bsd.port.mk would
> not take affect -- because they were unknowingly being overridden by
> 'use.perl port's /etc/make.conf values.
> 4. /etc/make.conf isn't cleaned out of turds on 'pkg_delete perl-5.8.5'
Cheers,
\Anton.
--
The moronity of the universe is a monotonically increasing function. --
Jarkko Hietaniemi
More information about the freebsd-perl
mailing list