Package: vlc-nox
Version: 2.0.7-2
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the past)

Currently, hppa does not have bluray support as it depends on openjdk-6/7.
As result, vlc build from sources fails:

dpkg-buildpackage: source changed by Benjamin Drung <bdr...@debian.org>
 dpkg-source --before-build vlc-2.0.7
dpkg-buildpackage: host architecture hppa
dpkg-checkbuilddeps: Unmet build dependencies: libbluray-dev (>= 1:0.2.1)
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)

The attached patch fixes the issue for me.


-- System Information:
Debian Release: 7.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 3.10.0-rc6+ (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u debian.orig/control debian/control
--- debian.orig/control	2013-05-11 15:15:36.000000000 -0400
+++ debian/control	2013-06-22 16:53:41.000000000 -0400
@@ -22,7 +22,7 @@
                libavc1394-dev [linux-any],
                libavcodec-dev (>= 4:0.6),
                libavformat-dev (>= 4:0.6),
-               libbluray-dev (>= 1:0.2.1),
+               libbluray-dev (>= 1:0.2.1) [!hppa],
                libcaca-dev (>= 0.99.beta4),
                libcddb2-dev,
                libcdio-dev (>= 0.78.2),
Common subdirectories: debian.orig/patches and debian/patches
diff -u debian.orig/rules debian/rules
--- debian.orig/rules	2013-05-11 15:15:36.000000000 -0400
+++ debian/rules	2013-06-22 16:53:01.000000000 -0400
@@ -42,7 +42,6 @@
 confflags += \
 	--enable-a52 \
 	--enable-aa \
-	--enable-bluray \
 	--enable-bonjour \
 	--enable-caca \
 	--enable-dbus \
@@ -193,6 +192,14 @@
 removeplugins += neon
 endif
 
+# HPPA specific optimizations
+ifeq (,$(filter-out hppa,$(DEB_HOST_ARCH_CPU)))
+confflags += --disable-bluray
+removeplugins += bluray
+else
+confflags += --enable-bluray
+endif
+
 # PowerPC specific optimizations (excluding powerpcspe)
 ifeq (,$(filter-out powerpc,$(DEB_HOST_ARCH_CPU))$(filter powerpcspe,$(DEB_HOST_ARCH)))
 confflags += --enable-altivec
Common subdirectories: debian.orig/source and debian/source

Reply via email to