[libnative-platform-java] 12/13: New PosixFile_rename.patch to fix the renaming of PosixFile

Kai-Chung Yan seamlik-guest at moszumanska.debian.org
Wed Nov 2 10:08:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

seamlik-guest pushed a commit to branch master
in repository libnative-platform-java.

commit e69d170cbb0c4a3187c82747ea3438b1aac0c00c
Author: Kai-Chung Yan (殷啟聰) <seamlikok at gmail.com>
Date:   Thu Oct 27 23:02:54 2016 +0800

    New PosixFile_rename.patch to fix the renaming of PosixFile
---
 debian/additionalSrc/PosixFile.java   | 20 ++++++++++++++++++++
 debian/patches/PosixFile_rename.patch | 17 +++++++++++++++++
 debian/patches/series                 |  1 +
 3 files changed, 38 insertions(+)

diff --git a/debian/additionalSrc/PosixFile.java b/debian/additionalSrc/PosixFile.java
new file mode 100644
index 0000000..4e81b5a
--- /dev/null
+++ b/debian/additionalSrc/PosixFile.java
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2016 Kai-Chung Yan (殷啟聰)
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+package net.rubygrapefruit.platform;
+
+ at ThreadSafe
+public interface PosixFile extends PosixFileInfo {}
\ No newline at end of file
diff --git a/debian/patches/PosixFile_rename.patch b/debian/patches/PosixFile_rename.patch
new file mode 100644
index 0000000..e0aef0f
--- /dev/null
+++ b/debian/patches/PosixFile_rename.patch
@@ -0,0 +1,17 @@
+Description: native-helper 0.11 suddenly renamed PosixFile
+ This patch fixes the problem by reintroducing PosixFile and should be safe to
+ remove after Gradle is updated to 3.1.
+ See https://github.com/adammurdoch/native-platform/commit/bceb8b65fa12113551056d2ba7903345ae3247cb
+Author: Kai-Chung Yan (殷啟聰)
+Last-Update: 2016-10-27
+--- a/build.gradle
++++ b/build.gradle
+@@ -223,3 +223,7 @@
+         dep.appendNode('version', project.version)
+     }
+ }
++
++sourceSets.main.java { srcDir 'debian/additionalSrc' }
++compileJava.options.encoding = 'UTF-8'
++javadoc.options.encoding = 'UTF-8'
+\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
index b8bf22f..d4feaae 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 native_locator_usr_lib_first.patch
 libname.diff
 build_scripts.patch
+PosixFile_rename.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libnative-platform-java.git



More information about the pkg-java-commits mailing list