summaryrefslogtreecommitdiffstats
path: root/qt5
diff options
context:
space:
mode:
Diffstat (limited to 'qt5')
-rwxr-xr-xqt5/configure2
-rw-r--r--qt5/fix-webkit9
2 files changed, 8 insertions, 3 deletions
diff --git a/qt5/configure b/qt5/configure
index 78835fe..b805ca3 100755
--- a/qt5/configure
+++ b/qt5/configure
@@ -44,7 +44,7 @@ $relpath =~ s,\\,/,g;
# the current directory is the "build tree" or "object tree"
my $outpath = getcwd();
-system_v("perl fix-webkit") and die("Applying webkit patches failed");
+system_v("perl $relpath/fix-webkit") and die("Applying webkit patches failed");
ensureDir("$outpath/qtbase");
chdir("$outpath/qtbase");
diff --git a/qt5/fix-webkit b/qt5/fix-webkit
index 3e6fb47..813b203 100644
--- a/qt5/fix-webkit
+++ b/qt5/fix-webkit
@@ -1,6 +1,10 @@
#!/usr/bin/perl
use Cwd;
+use Cwd 'abs_path';
+use File::Basename;
+use File::Path;
+
# Find SHA1 of commit before $subject, else empty string
sub findWebKitSHA1
@@ -17,8 +21,9 @@ sub findWebKitSHA1
return "";
}
-my $current = getcwd();
-chdir("qtwebkit");
+my $current = dirname(abs_path($0));
+$current =~ s,\\,/,g;
+chdir("$current/qtwebkit");
if (!findWebKitSHA1("Removed modular references after support for the flag was removed")) {
if (system("git am --ignore-whitespace $current/patches/qtwebkit/*.patch")) {