id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	lang	patch	platform
645	"[PATCH]  remove ""."" from architecture names"	rrauenza		"This fixes arch.pm on hpux, which is built with the following architecture id's:

@INC:
    /usr/local/lib/perl5/5.10.0/IA64.ARCHREV_0
    /usr/local/lib/perl5/5.10.0
    /usr/local/lib/perl5/site_perl/5.10.0/IA64.ARCHREV_0
    /usr/local/lib/perl5/site_perl/5.10.0
   
The ""."" gets propagated into config.h as part of a #define identifier, which is illegal.  So I turn the ""."" into ""_"".  A more robust solution would be to check for any characters not allowed in a #define, but I'm reluctant to make that large of a change.


--- config/auto/arch.pm (revision 38492)
+++ config/auto/arch.pm (working copy)
@@ -39,6 +39,7 @@
     $verbose and print ""\n"";
 
     my $archname = $conf->data->get('archname');
+    $archname =~ s|\.|_|g;
     my ( $cpuarch, $osname ) = split( /-/, $archname );
 
     if ($verbose) {
"	bug	closed	normal		configure	1.1.0	medium	fixed				applied	unix
