Ticket #645 (new bug) — at Initial Version

Opened 13 years ago

Last modified 13 years ago

[PATCH] remove "." from architecture names

Reported by: rrauenza Owned by:
Priority: normal Milestone:
Component: configure Version: 1.1.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform: unix

Description

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) {

Change History

Changed 13 years ago by rrauenza

Note: See TracTickets for help on using tickets.