diff --git a/debian/patches/fix-Rakefile-regex.patch b/debian/patches/fix-Rakefile-regex.patch
new file mode 100644
index 0000000000000000000000000000000000000000..af9b9e49d7688d56b7832cd9e5a74279a02d13c2
--- /dev/null
+++ b/debian/patches/fix-Rakefile-regex.patch
@@ -0,0 +1,17 @@
+Description: Fixes Rakefile regex
+ Replaces '-' to '*', since '-' means a range in ruby regex and not the
+ character itself.
+Author: Lucas Kanashiro <kanashiro@debian.org>
+Last-Updated: 2019-02-08
+
+--- a/Rakefile
++++ b/Rakefile
+@@ -31,7 +31,7 @@ def map_dependencies
+     basename = File.basename path
+     file = File.read path
+ 
+-    matchdata = file.match(/define\(\s*\[\s*([\"\.\/\,\w\s-\:]+)\]/m)
++    matchdata = file.match(/define\(\s*\[\s*([\"\.\/\,\w\s*\:]+)\]/m)
+ 
+     next if matchdata.nil?
+ 
diff --git a/debian/patches/series b/debian/patches/series
index cd2caa189808a1599d7f179bb808da892aaf37ae..5513a5c8badb7df09f37041cc47a2d4bab5c6df5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+fix-Rakefile-regex.patch
 fix-jquery-ui-check.patch
 engine-root.patch