diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-01-27 12:43:54 (GMT) |
---|---|---|
committer | Jesper Thomschutz <jesper.thomschutz@nokia.com> | 2010-01-28 15:07:16 (GMT) |
commit | aaa0ebb85766b79de019cdfb6b0ce09d723bb108 (patch) | |
tree | 5f46adcfbc73c9f4bd0a5404dd440de8ada1a26e | |
parent | bb8c4be0213d51647ffcdef4d2989e3dabca8db9 (diff) | |
download | Qt-aaa0ebb85766b79de019cdfb6b0ce09d723bb108.zip Qt-aaa0ebb85766b79de019cdfb6b0ce09d723bb108.tar.gz Qt-aaa0ebb85766b79de019cdfb6b0ce09d723bb108.tar.bz2 |
Added support for embedded sis name/uid patching for Symbian
Patch_capabilities.pl script now also patches any embedded sis
file entries in pkg to embed corresponding *_selfsigned.sis instead.
Also the script now removes dependencies to other packages from
patched pkg to reduce unnecessary warnings about missing dependencies
when said dependencies were installed via patched sises.
Reviewed-by: Janne Koskinen
(cherry picked from commit 0b2bde7af1ec6cec5c1bc674c9049b12fe0deb20)
-rwxr-xr-x | bin/patch_capabilities.pl | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/bin/patch_capabilities.pl b/bin/patch_capabilities.pl index b6bf5c3..9daa13e 100755 --- a/bin/patch_capabilities.pl +++ b/bin/patch_capabilities.pl @@ -111,12 +111,31 @@ if (@ARGV) # Parse each line. while (<PKG>) { + # Patch pkg UID my $line = $_; my $newLine = $line; - if ( $line =~ m/^\#.*\(0x[0-9|a-f|A-F]*\).*$/) + if ($line =~ m/^\#.*\(0x[0-9|a-f|A-F]*\).*$/) { $newLine =~ s/\(0x./\(0xE/; } + + # Patch embedded sis name and UID + if ($line =~ m/^@.*\.sis.*\(0x[0-9|a-f|A-F]*\).*$/) + { + $newLine =~ s/\(0x./\(0xE/; + if ($line !~ m/^.*_selfsigned.sis.*$/) + { + $newLine =~ s/\.sis/_selfsigned\.sis/i; + } + } + + # Remove all dependencies to other packages to reduce unnecessary error messages + # from depended packages that are also patched and therefore have different UID. + if ($line =~ m/^\(0x[0-9|a-f|A-F]*\).*\{.*\}$/) + { + $newLine = "" + } + print NEW_PKG $newLine; chomp ($line); |