[gnome-sdk-images] Add patch to try to get WebKit building again



commit 028b7511a2a02fd058cfea6a340566b8c6c0b6ff
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Fri Dec 8 16:54:54 2017 -0600

    Add patch to try to get WebKit building again
    
    I can write a loop! With some difficulty.

 org.gnome.Sdk.json.in                          |    4 ++++
 webkitgtk-avoid-perl-file-copy-recursive.patch |   18 ++++++++++++++++++
 2 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/org.gnome.Sdk.json.in b/org.gnome.Sdk.json.in
index 3f9c58e..aea4ef2 100644
--- a/org.gnome.Sdk.json.in
+++ b/org.gnome.Sdk.json.in
@@ -799,6 +799,10 @@
                 {
                     "type": "patch",
                     "path": "webkitgtk-idle-inhibitor-debugging.patch"
+                },
+                {
+                    "type": "patch",
+                    "path": "webkitgtk-avoid-perl-file-copy-recursive.patch"
                 }
             ]
         },
diff --git a/webkitgtk-avoid-perl-file-copy-recursive.patch b/webkitgtk-avoid-perl-file-copy-recursive.patch
new file mode 100644
index 0000000..af47ef7
--- /dev/null
+++ b/webkitgtk-avoid-perl-file-copy-recursive.patch
@@ -0,0 +1,18 @@
+Index: /Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl
+===================================================================
+--- a/Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl
++++ b/Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl
+@@ -47,4 +47,13 @@
+     } elsif ($^O eq 'darwin') {
+         system('ditto', $source, $destination);
++    } elsif ($^O ne 'MSWin32') {
++        # Ditto copies the *contents* of the source directory, not the directory itself.
++        opendir(my $dh, $source) or die "Can't open $source: $!";
++        while (readdir $dh) {
++            if ($_ ne '..' and $_ ne '.') {
++                system('cp', '-R', "${source}/$_", $destination) or die "Failed to copy ${source}/$_ to 
$destination: $!";
++            }
++        }
++        closedir $dh;
+     } else {
+         die "Please install the PEP module File::Copy::Recursive";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]