Bug 30693

Summary: VLC cannot play bluray due to missing libbluray-java package in mirrors
Product: Mageia Reporter: Benoît Audouard <baud123>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: luigiwalser
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: libbluray-1.3.1-1.mga9.src.rpm CVE:
Status comment:

Description Benoît Audouard 2022-08-02 17:32:54 CEST
Description of problem:

package libbluray-java is not available in the repository tree as there are errors when building it for version 1.3.1

It means that bluray cannot be read with VLC.

Version-Release number of selected component (if applicable):
Name        : libbluray-java
Version     : 1.3.1
Release     : 1.mga9


How reproducible:
when rebuilding libbluray version 1.3.1 there is 1 java error so that libbluray-java rpm is not generated

it's the same error as https://code.videolan.org/videolan/vlc-android/-/issues/2500 which is corrected with https://code.videolan.org/videolan/libbluray/-/commit/8f26777b1ce124ff761f80ef52d6be10bcea323e

Rather than patching the source, I went for version 1.3.2 available at https://www.videolan.org/developers/libbluray.html

see https://download.videolan.org/pub/videolan/libbluray/1.3.2/libbluray-1.3.2.tar.bz2

I modified the spec for libluray-1.3.1 in order to take account 1.3.2 version and it solved several other problems with VLC :

1- no more problems with setting JAVA_HOME (otherwise VLC would not find open-jdk8 or 11...)
2- BD-J works correctly so that bluray menus are available

_otherwise_, starting vlc in a terminal and trying to read a bluray would display: 
[00000000014fc5b0] main libvlc: Lancement de vlc avec l'interface par défaut. Utiliser « cvlc » pour démarrer VLC sans interface.
[000000000159af00] main playlist: playlist is empty
mmc.c:674: Drive does not support reading drive certificate
aacs.c:1039: Unable to read drive certificate
bdj.c:569: libbluray-j2se-1.2.1.jar not found.
bdj.c:756: BD-J check: Failed to load libbluray.jar
bdj.c:569: libbluray-j2se-1.2.1.jar not found.
bdj.c:756: BD-J check: Failed to load libbluray.jar
[00007f5628001160] libbluray demux: First play: 1, Top menu: 0
HDMV Titles: 48, BD-J Titles: 3, Other: 3

(well, there were other problems...), switching to libbluray version 1.3.2 solved them all :-)



Could you upgrade the version of libbluray to 1.3.2   -  as I did   -  so that bluray can be read correctly in VLC with Mageia Cauldron/9? I haven't seen dependencies on other libraries/components.
Comment 1 Benoît Audouard 2022-08-02 17:36:25 CEST
according to changelog, luigiwalser and daviddavid were packaging this lib.
Comment 2 David Walser 2022-08-03 01:19:49 CEST
The java subpackage is already there in Cauldron, so it's not missing, but I did update to 1.3.2.  Thanks for the heads up about that.

CC: (none) => luigiwalser
Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 3 Benoît Audouard 2022-08-05 15:00:29 CEST
Thanks for the reactivity, works ok for me with x86_64