summaryrefslogtreecommitdiff
path: root/debian/patches/java_ignore_nonexistent_files.patch
diff options
context:
space:
mode:
authorLuca Falavigna <dktrkranz@ubuntu.com>2009-08-01 20:52:02 +0200
committerLuca Falavigna <dktrkranz@ubuntu.com>2009-08-01 20:52:02 +0200
commit4ef312e07bb9c774a89eb4b755feabfc151351a8 (patch)
treecbe5eac71a0b94ad96ac1dcbf21e5189a1555a10 /debian/patches/java_ignore_nonexistent_files.patch
parent51ed09d22b333546228172433dcc41af1ea02645 (diff)
Adhere to DEP3
Diffstat (limited to 'debian/patches/java_ignore_nonexistent_files.patch')
-rw-r--r--debian/patches/java_ignore_nonexistent_files.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/java_ignore_nonexistent_files.patch b/debian/patches/java_ignore_nonexistent_files.patch
new file mode 100644
index 0000000..5eb6a4a
--- /dev/null
+++ b/debian/patches/java_ignore_nonexistent_files.patch
@@ -0,0 +1,18 @@
+Description: Check for file/symlink existence before trying to use it in Java()
+Origin: Debian
+Bug-Debian: http://bugs.debian.org/338232
+Forwarded: http://scons.tigris.org/issues/show_bug.cgi?id=2207
+
+Index: scons-1.1.0/engine/SCons/Tool/javac.py
+===================================================================
+--- scons-1.1.0.orig/engine/SCons/Tool/javac.py 2008-10-11 18:11:46.083270910 +0200
++++ scons-1.1.0/engine/SCons/Tool/javac.py 2008-10-11 18:13:04.519739110 +0200
+@@ -94,6 +94,8 @@
+ version = env.get('JAVAVERSION', '1.4')
+ full_tlist = []
+ for f in slist:
++ if not os.path.exists(f.rfile().get_abspath()):
++ continue
+ tlist = []
+ source_file_based = True
+ pkg_dir = None