Package: release.debian.org
Severity: normal
Tags: bullseye
User: release.debian....@packages.debian.org
Usertags: pu
X-Debbugs-Cc: sramac...@debian.org

[ Reason ]
The Oracle Java Update from April 2022 broke libbluray. The
corresponding FTBFS bug is reported as #1011716, but it also causes
runtime issues.

[ Impact ]
BD-J support in libbluray using applications stays broken.

[ Tests ]
The change is available in testing since June without regressions.

[ Risks ]
Given there were no regressions reports so far, the risks should be
pretty low.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

[ Changes ]
The changes are attached and only apply one upstream patch.

[ Other info ]
I have already uploaded the package to pu.

Cheers
-- 
Sebastian Ramacher
diff --git a/debian/changelog b/debian/changelog
index 40e3021..0e16de4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+libbluray (1:1.2.1-4+deb11u2) bullseye; urgency=medium
+
+  * debian/patches: Apply upstream fix for Oracle Java CPU from April 2022
+    (Closes: #1011716)
+
+ -- Sebastian Ramacher <sramac...@debian.org>  Wed, 21 Sep 2022 21:25:08 +0200
+
 libbluray (1:1.2.1-4+deb11u1) bullseye; urgency=medium
 
   * debian/gbp.conf: Switch to bullseye branch
diff --git 
a/debian/patches/0002-Fix-build-failure-after-Oracle-Java-CPU-for-April-20.patch
 
b/debian/patches/0002-Fix-build-failure-after-Oracle-Java-CPU-for-April-20.patch
new file mode 100644
index 0000000..2807977
--- /dev/null
+++ 
b/debian/patches/0002-Fix-build-failure-after-Oracle-Java-CPU-for-April-20.patch
@@ -0,0 +1,30 @@
+From: Fridrich Strba <fst...@suse.com>
+Date: Mon, 25 Apr 2022 14:28:58 +0300
+Subject: Fix build failure after Oracle Java CPU for April 2022
+
+---
+ src/libbluray/bdj/java/java/io/BDFileSystem.java | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+diff --git a/src/libbluray/bdj/java/java/io/BDFileSystem.java 
b/src/libbluray/bdj/java/java/io/BDFileSystem.java
+index 03add5d..fabe57b 100644
+--- a/src/libbluray/bdj/java/java/io/BDFileSystem.java
++++ b/src/libbluray/bdj/java/java/io/BDFileSystem.java
+@@ -227,6 +227,17 @@ public abstract class BDFileSystem extends FileSystem {
+         return fs.isAbsolute(f);
+     }
+ 
++    public boolean isInvalid(File f) {
++        try {
++            Method m = fs.getClass().getDeclaredMethod("isInvalid", new 
Class[] { File.class });
++            Object[] args = new Object[] {(Object)f};
++            Boolean result = (Boolean)m.invoke(fs, args);
++            return result.booleanValue();
++        } finally {
++            return false;
++        }
++    }
++
+     public String resolve(File f) {
+         if (!booted)
+             return fs.resolve(f);
diff --git a/debian/patches/series b/debian/patches/series
index 16342b0..83d4e1b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-Do-not-download-image-from-the-web.patch
+0002-Fix-build-failure-after-Oracle-Java-CPU-for-April-20.patch
 0003-Update-check-for-new-libudfread-pkg-config-file-name.patch

Reply via email to