Fix build failure after Oracle Java CPU for April 2022

i8 changed/i8/libbluray-1.0.2-3.el8.inferit
Arkady L. Shane 1 year ago
parent 090793fb7a
commit b42c311369
Signed by: tigro
GPG Key ID: 9C7900103E1C4F8B

@ -0,0 +1,34 @@
From 8d19e53681d70a59fb6fff19820360df58ad7870 Mon Sep 17 00:00:00 2001
From: tigro <arkadiy.sheyn@softline.com>
Date: Mon, 4 Dec 2023 22:36:30 +0300
Subject: [PATCH] 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 64c4c9e..b770edb 100644
--- a/src/libbluray/bdj/java/java/io/BDFileSystem.java
+++ b/src/libbluray/bdj/java/java/io/BDFileSystem.java
@@ -167,6 +167,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 (!f.isAbsolute()) {
logger.info("resolve relative file " + f.getPath());
--
2.43.0

@ -2,13 +2,14 @@
Name: libbluray Name: libbluray
Version: 1.0.2 Version: 1.0.2
Release: 3%{?dist} Release: 3%{?dist}.inferit
Summary: Library to access Blu-Ray disks for video playback Summary: Library to access Blu-Ray disks for video playback
License: LGPLv2+ License: LGPLv2+
URL: http://www.videolan.org/developers/libbluray.html URL: http://www.videolan.org/developers/libbluray.html
Source0: ftp://ftp.videolan.org/pub/videolan/%{name}/%{version}/%{name}-%{version}.tar.bz2 Source0: ftp://ftp.videolan.org/pub/videolan/%{name}/%{version}/%{name}-%{version}.tar.bz2
Patch0: libbluray-0.8.0-no_doxygen_timestamp.patch Patch0: libbluray-0.8.0-no_doxygen_timestamp.patch
Patch1: 0001-Fix-build-failure-after-Oracle-Java-CPU-for-April-20.patch
BuildRequires: ant BuildRequires: ant
BuildRequires: autoconf BuildRequires: autoconf
@ -58,6 +59,7 @@ developing applications that use %{name}.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .no_timestamp %patch0 -p1 -b .no_timestamp
%patch1 -p1 -b .fix_build
%build %build
@ -115,6 +117,9 @@ install -Dp -m755 .libs/bdj_test %{buildroot}%{_bindir}/bdj_test;
%{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}.pc
%changelog %changelog
* Mon Dec 4 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.0.2-3.inferit
- Fix build failure after Oracle Java CPU for April 2022
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.0.2-3 * Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.0.2-3
- Rebuilt for MSVSphere 8.8 - Rebuilt for MSVSphere 8.8

Loading…
Cancel
Save