Bug#841827: liborc-0.4-dev: cannot run orcc during cross compilation of reverse dependencies

2016-10-24 Thread Andreas Cadhalpun
Hi Helmut,

On 23.10.2016 21:25, Helmut Grohne wrote:
> Control: affects -1 = src:pulseaudio
> 
> On Sun, Oct 23, 2016 at 09:03:46PM +0200, Andreas Cadhalpun wrote:
>> Are you sure this affects ffmpeg?
> 
> Actually, no. I only managed to reproduce it for pulseaudio now, though
> I vaguely remember another practical reproducer.
> 
>> As far as I can tell its build doesn't execute orcc.
>> The cross-build currently fails due to:
>> ERROR: tesseract not found using pkg-config
> 
> Yes, that's #841845.

I see. With the patch from that bug it still doesn't work, because
tesseract.pc requires lept.pc, which is also not in the multi-arch
location. I've filed #841968 about that.
With both these fixed, ffmpeg can be cross-built successfully,
so it is definitely not affected by #841827.

By the way, thanks for all your work on cross-build support!

Best regards,
Andreas



Bug#841827: liborc-0.4-dev: cannot run orcc during cross compilation of reverse dependencies

2016-10-23 Thread Helmut Grohne
Control: affects -1 = src:pulseaudio

On Sun, Oct 23, 2016 at 09:03:46PM +0200, Andreas Cadhalpun wrote:
> Are you sure this affects ffmpeg?

Actually, no. I only managed to reproduce it for pulseaudio now, though
I vaguely remember another practical reproducer.

> As far as I can tell its build doesn't execute orcc.
> The cross-build currently fails due to:
> ERROR: tesseract not found using pkg-config

Yes, that's #841845.

Helmut



Bug#841827: liborc-0.4-dev: cannot run orcc during cross compilation of reverse dependencies

2016-10-23 Thread Andreas Cadhalpun
Hi Helmut,

On 23.10.2016 17:48, Helmut Grohne wrote:
> Package: liborc-0.4-dev
> Version: 1:0.4.26-1
> Tags: patch
> User: helm...@debian.org
> Usertags: rebootstrap
> Control: affects -1 + src:buzztrax src:ffmpeg src:gnuradio src:gst-libav1.0 
> src:gst-plugins-base1.0 src:gst-plugins-good1.0 src:libquicktime src:lives 
> src:mplayer src:pulseaudio src:schroedinger src:uhd
> 
> Cross compiling the packages listed above results in a failure to
> execute orcc.

Are you sure this affects ffmpeg?

As far as I can tell its build doesn't execute orcc.
The cross-build currently fails due to:
ERROR: tesseract not found using pkg-config

Best regards,
Andreas



Bug#841827: liborc-0.4-dev: cannot run orcc during cross compilation of reverse dependencies

2016-10-23 Thread Helmut Grohne
Package: liborc-0.4-dev
Version: 1:0.4.26-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap
Control: affects -1 + src:buzztrax src:ffmpeg src:gnuradio src:gst-libav1.0 
src:gst-plugins-base1.0 src:gst-plugins-good1.0 src:libquicktime src:lives 
src:mplayer src:pulseaudio src:schroedinger src:uhd

Cross compiling the packages listed above results in a failure to
execute orcc. orcc resides in liborc-0.4-dev which is usually a host
architecture dependency and thus orcc also is a host architecture
executable, which cannot be run.

I propose splitting liborc-0.4-dev into liborc-0.4-dev-bin. The latter
would take over the binaries from liborc-0.4-dev. Since at least
orc-bugreport looks like it has architecture-dependent output, I don't
think we can mark it Multi-Arch: foreign. Thus I propose marking
liborc-0.4-dev-bin Multi-Arch: allowed and having liborc-0.4-dev depend
on liborc-0.4-dev-bin:any. Practically, this results in
liborc-0.4-dev-bin being installed for the build architecture and thus
fixing cross builds.

Please consider applying the attached patch.  If you have more insight
into what these binaries do, consider using Multi-Arch: foreign if that
is appropriate. You may have to adapt the versions listed in Breaks and
Replaces.

Helmut
diff --minimal -Nru orc-0.4.26/debian/changelog orc-0.4.26/debian/changelog
--- orc-0.4.26/debian/changelog 2016-08-31 12:13:32.0 +0200
+++ orc-0.4.26/debian/changelog 2016-10-23 17:27:50.0 +0200
@@ -1,3 +1,10 @@
+orc (1:0.4.26-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Split orcc into a separate M-A:allowed package. (Closes: #-1)
+
+ -- Helmut Grohne   Sun, 23 Oct 2016 17:27:31 +0200
+
 orc (1:0.4.26-1) unstable; urgency=medium
 
   * New upstream bugfix release.
diff --minimal -Nru orc-0.4.26/debian/control orc-0.4.26/debian/control
--- orc-0.4.26/debian/control   2015-06-24 22:22:16.0 +0200
+++ orc-0.4.26/debian/control   2016-10-23 17:31:20.0 +0200
@@ -40,6 +40,7 @@
 Section: libdevel
 Architecture: any
 Depends: liborc-0.4-0 (= ${binary:Version}),
+ liborc-0.4-dev-bin:any (= ${binary:Version}),
  ${misc:Depends},
  ${shlibs:Depends}
 Provides: liborc-dev
@@ -54,6 +55,24 @@
  This package contains the development headers and libraries, and should
  be installed to compile software that uses orc.
 
+Package: liborc-0.4-dev-bin
+Section: libdevel
+Architecture: any
+Multi-Arch: allowed
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Provides: liborc-dev-bin
+Breaks: liborc-0.4-dev (<< 1:0.4.26-1.1~)
+Replaces: liborc-0.4-dev (<< 1:0.4.26-1.1~)
+Description: Library of Optimized Inner Loops Runtime Compiler (development 
tools)
+ Orc is a library and set of tools for compiling and executing
+ very simple programs that operate on arrays of data.  The "language"
+ is a generic assembly language that represents many of the features
+ available in SIMD architectures, including saturated addition and
+ subtraction, and many arithmetic operations.
+ .
+ This package contains the development tools, and should not be
+ installed directly.
+
 Package: liborc-0.4-0-dbg
 Section: debug
 Architecture: any
diff --minimal -Nru orc-0.4.26/debian/liborc-0.4-dev-bin.install 
orc-0.4.26/debian/liborc-0.4-dev-bin.install
--- orc-0.4.26/debian/liborc-0.4-dev-bin.install1970-01-01 
01:00:00.0 +0100
+++ orc-0.4.26/debian/liborc-0.4-dev-bin.install2016-10-23 
17:27:05.0 +0200
@@ -0,0 +1,2 @@
+debian/tmp/usr/bin/orc-bugreport
+debian/tmp/usr/bin/orcc
diff --minimal -Nru orc-0.4.26/debian/liborc-0.4-dev.install 
orc-0.4.26/debian/liborc-0.4-dev.install
--- orc-0.4.26/debian/liborc-0.4-dev.install2015-06-24 22:22:16.0 
+0200
+++ orc-0.4.26/debian/liborc-0.4-dev.install2016-10-23 17:27:07.0 
+0200
@@ -1,5 +1,3 @@
-debian/tmp/usr/bin/orc-bugreport
-debian/tmp/usr/bin/orcc
 debian/tmp/usr/include/orc-0.4
 debian/tmp/usr/lib/*/liborc*-0.4.a
 debian/tmp/usr/lib/*/liborc*-0.4.so