Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e5eb5b552415
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 27d7502b185a
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jun 8, 2018

  1. libbluray: fix Java build

    kylewlacy committed Jun 8, 2018
    Copy the full SHA
    e534844 View commit details
  2. Merge pull request #41660 from kylewlacy/libbluray-fix-java-build

    libbluray: fix Java build
    Mic92 authored Jun 8, 2018
    Copy the full SHA
    27d7502 View commit details
Showing with 21 additions and 16 deletions.
  1. +21 −16 pkgs/development/libraries/libbluray/BDJ-JARFILE-path.patch
37 changes: 21 additions & 16 deletions pkgs/development/libraries/libbluray/BDJ-JARFILE-path.patch
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
diff -ru3 libbluray-0.8.0/configure.ac libbluray-0.8.0-new/configure.ac
--- libbluray-0.8.0/configure.ac 2015-04-10 09:48:23.000000000 +0300
+++ libbluray-0.8.0-new/configure.ac 2015-05-18 14:22:01.002075482 +0300
@@ -231,6 +231,7 @@
AC_DEFINE([USING_BDJAVA], [1], ["Define to 1 if using BD-Java"])
AC_DEFINE_UNQUOTED([JAVA_ARCH], ["$java_arch"], ["Defines the architecture of the java vm."])
AC_DEFINE_UNQUOTED([JDK_HOME], ["$JDK_HOME"], [""])
+ CPPFLAGS="${CPPFLAGS} -DJARDIR='\"\$(datadir)/java\"'"
diff --git a/configure.ac b/configure.ac
index 5fd3c8de..7ae343e0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -228,6 +228,10 @@ if test "x$use_bdjava_jar" = "xyes" && test "x$HAVE_ANT" = "xno"; then
AC_MSG_ERROR([BD-J requires ANT, but ant was not found. Please install it.])
fi
AM_CONDITIONAL([USING_BDJAVA], [ test $use_bdjava = "yes" ])

diff -ru3 libbluray-0.8.0/src/libbluray/bdj/bdj.c libbluray-0.8.0-new/src/libbluray/bdj/bdj.c
--- libbluray-0.8.0/src/libbluray/bdj/bdj.c 2015-04-06 19:25:09.000000000 +0300
+++ libbluray-0.8.0-new/src/libbluray/bdj/bdj.c 2015-05-18 14:22:59.241312808 +0300
@@ -228,6 +228,7 @@
#ifdef _WIN32
"" BDJ_JARFILE,
#else
+if test "x$use_bdjava_jar" = "xyes"; then
+ CPPFLAGS="${CPPFLAGS} -DJARDIR='\"\$(datadir)/java\"'"
+fi
+
AC_DEFINE_UNQUOTED([JAVA_ARCH], ["$java_arch"], ["Defines the architecture of the java vm."])
AC_DEFINE_UNQUOTED([JDK_HOME], ["$JDK_HOME"], [""])
AM_CONDITIONAL([USING_BDJAVA_BUILD_JAR], [ test $use_bdjava_jar = "yes" ])
diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 511ad533..e273b9e0 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -478,6 +478,7 @@ static const char *_find_libbluray_jar(BDJ_STORAGE *storage)
// pre-defined search paths for libbluray.jar
static const char * const jar_paths[] = {
#ifndef _WIN32
+ JARDIR "/" BDJ_JARFILE,
"/usr/share/java/" BDJ_JARFILE,
"/usr/share/libbluray/lib/" BDJ_JARFILE,