Bug#930877: nageru FTCBFS: cannot use bin2h as a generator

2019-06-21 Thread Steinar H. Gunderson
On Fri, Jun 21, 2019 at 09:48:58PM +0200, Helmut Grohne wrote:
> nageru fails to cross build from source, because meson refuses to run
> the host binary bin2h. As it happens, bin2h is not installed by nageru.
> Its behaviour is architecture-independent. For these reasons we can mark
> it native. After doing so, nageru cross builds successfully. Please
> consider applying the attached patch.

Hi,

Applied in upstream git, but won't be uploaded to Debian yet due to the
freeze. Thanks for the patch!

/* Steinar */
-- 
Homepage: https://www.sesse.net/



Bug#930877: nageru FTCBFS: cannot use bin2h as a generator

2019-06-21 Thread Helmut Grohne
Source: nageru
Version: 1.8.4-2
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

nageru fails to cross build from source, because meson refuses to run
the host binary bin2h. As it happens, bin2h is not installed by nageru.
Its behaviour is architecture-independent. For these reasons we can mark
it native. After doing so, nageru cross builds successfully. Please
consider applying the attached patch.

Helmut
--- nageru-1.8.4.orig/shared/meson.build
+++ nageru-1.8.4/shared/meson.build
@@ -31,7 +31,7 @@
include_directories: top_include,
link_with: [shared, protobuf_lib])
 
-bin2h = executable('bin2h', 'bin2h.cpp')
+bin2h = executable('bin2h', 'bin2h.cpp', native : true)
 bin2h_gen = generator(bin2h, \
   output: ['@PLAINNAME@.cpp'],
   arguments : ['@INPUT@', '@PLAINNAME@', '@OUTPUT@'])