Source: webkit2gtk Version: 2.18.2-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
Hi Berto, This is my last patch for improving webkit2gtk cross buildability for now. It simply annotates the ruby build dependency with ":native". That means that ruby should be installed for the build architecture rather than the host architecture. Typically, you need libraries for the build architecture and binaries for the host architecture. Many packages containing executables are marked Multi-Arch: foreign, but for ruby (and other interpreters) the story is not as clear and they are marked Multi-Arch: allowed instead. Thus we need to choose the right one. In this case, webkit2gtk only uses ruby for some scripts generating source files, so the build architecture one is the one we need. After applying all three patches, webkit2gtk will not cross build. It won't even have satisfiable cross build depends. We don't have a solution for gobject-introspection. There is no known way to generate .typelib files in a pure cross compilation setting (i.e. without qemu). The only realistic way to cross compile webkit2gtk is to add a build profile that disables gobject-introspection. After doing so, you can make dh_auto_build succeed, but the -dev packages still contain .gir files that are no longer generated. Hector Oron is trying to find someone to help with this issue (which affects any package integrating with gobject-introspection). Thanks for your prompt responses and help with making webkit2gtk cross buildable. Helmut
diff --minimal -Nru webkit2gtk-2.18.2/debian/changelog webkit2gtk-2.18.2/debian/changelog --- webkit2gtk-2.18.2/debian/changelog 2017-10-27 15:05:15.000000000 +0200 +++ webkit2gtk-2.18.2/debian/changelog 2017-11-09 17:26:34.000000000 +0100 @@ -1,3 +1,10 @@ +webkit2gtk (2.18.2-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Annotate ruby build-depends with :native. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 09 Nov 2017 17:26:34 +0100 + webkit2gtk (2.18.2-1) unstable; urgency=medium * New upstream release. diff --minimal -Nru webkit2gtk-2.18.2/debian/control webkit2gtk-2.18.2/debian/control --- webkit2gtk-2.18.2/debian/control 2017-10-27 15:05:15.000000000 +0200 +++ webkit2gtk-2.18.2/debian/control 2017-11-09 17:26:34.000000000 +0100 @@ -29,7 +29,7 @@ gperf, bison, flex, - ruby, + ruby:native, libjpeg-dev, libpng-dev, libtasn1-6-dev,