File slic3r-nowarn-datadir.patch of Package slic3r-prusa-edition
Index: Slic3r-1.2.9/lib/Slic3r.pm
===================================================================
--- Slic3r-1.2.9.orig/lib/Slic3r.pm
+++ Slic3r-1.2.9/lib/Slic3r.pm
@@ -35,13 +35,8 @@ BEGIN {
print "Debugging output enabled\n" if $debug;
}
-warn "Running Slic3r under Perl 5.16 is neither supported nor recommended\n"
- if $^V == v5.16;
-
-use FindBin;
-
# Let the XS module know where the GUI resources reside.
-set_var_dir(decode_path($FindBin::Bin) . "/var");
+set_var_dir('/usr/share/slic3r-prusa-edition/');
use Moo 1.003001;