Subject: | [PATCH] ppd target gets ARCHITECTURE NAME wrong in 5.10 |
Attached patch fixes the ppd target generation in MM_Unix for perl
5.10.0 and above.
This code:
$archname .= "-". substr($Config{version},0,3);
adds -5.1 rather than -5.10 to $archname, which results in PPM not
finding the installation tarball.
Patch, based on code at at the start of the function, replaces that line
with:
my ($arch_ver) = join ".", (split (/\./, $Config{version}), (0)x2)[0..1];
$archname .= "-$arch_ver";
Regards,
Rob.
Subject: | MM_Unix.pm.patch |
--- MM_Unix.pm.orig Mon Dec 10 13:06:58 2007
+++ MM_Unix.pm Sat Feb 02 20:00:52 2008
@@ -3011,7 +3011,8 @@ PPD_OUT
# archname did not change from 5.6 to 5.8, but those versions may
# not be not binary compatible so now we append the part of the
# version that changes when binary compatibility may change
- $archname .= "-". substr($Config{version},0,3);
+ my ($arch_ver) = join ".", (split (/\./, $Config{version}), (0)x2)[0..1];
+ $archname .= "-$arch_ver";
}
$ppd_xml .= sprintf <<'PPD_OUT', $archname;
<OS NAME="$(OSNAME)" />