rc1 profile

Neven Has haski at sezampro.yu
Mon Sep 10 16:48:30 PDT 2001


On Mon, Sep 10, 2001 at 11:04:00PM +0100, Mark Ellis wrote:
> Hi all, wanted to see how people have been handling a little problem I've
> encountered writing profiles for LFS-3.0-rc1 (or rc2). In the build of some
> packages, the first being bzip2, we're using CC=gcc -static. My first
> thought
> was the construct
> 
> param1="CC="gcc -static""
> 
> which i see is what others went for too. Does this actually work for you
> guys ?

It should, yes.

> I don't get substitution of " in the 'old' perl implementation, and
> can't
> come up with a way around this without an explicit setenv. Any thoughts ?

If you're talking about ALFS-0.0.7, try the attached patch.

I didn't look into this code for a very long time, since it become a bit
messy for my taste, so it's not guarantied that this (kinda silly) fix,
won't break something else. If it even works, that is. :)


Neven
-------------- next part --------------
diff --unified --recursive ALFS-0.0.7/ALFS/Message.pm ALFS-0.0.7-fixed/ALFS/Message.pm
--- ALFS-0.0.7/ALFS/Message.pm	Sun Feb 25 11:08:59 2001
+++ ALFS-0.0.7-fixed/ALFS/Message.pm	Tue Sep 11 01:21:19 2001
@@ -197,11 +197,11 @@
 sub unescape {
 	my $str = shift;
 
+	$str =~ s/&/&/g;
 	$str =~ s/"/"/g; #";
 	$str =~ s/'/'/g; #';
 	$str =~ s/>/>/g;
 	$str =~ s/</</g;
-	$str =~ s/&/&/g;
 
 	return $str;
 }


More information about the alfs-discuss mailing list