On 2016-01-29 11:37, Steve Langasek wrote: > Package: slof > Version: 20151103+dfsg-1 > Severity: wishlist > Tags: patch > User: [email protected] > Usertags: origin-ubuntu xenial ubuntu-patch > > Hi Aurelien,
Hi Steve, > The slof package in Debian currently is only buildable on a powerpc host > system. Now that cross-compilers are more generally available in Debian, it > would be useful for the package to support cross-building. It would also be > useful for the Architecture: all package to declare its architecture > affinity, so that it can be autobuilt on Debian buildds when necessary. > There is a proposed field for this, XS-Build-Indep-Architecture, which is > supported already in Launchpad (support status in dak/wanna-build is unknown > to me). > > The attached patch adjusts the packaging of slof, so that it: > > - declares that it should be built on powerpc for autobuilding > - can be cross-built on any system, provided the gcc-powerpc-linux-gnu > package is installed. Thanks for the patch. The idea we had in mind is to create a qemu-firmwares source package, which build all the firmwares that QEMU needs at the same time. The point is that QEMU is relying on specific version (or even branch for SLOF) and thus we have to synchronize all the uploads. Also it would allow small firmwares to be built without creating dozen of small source packages. That's why currently spapr-rtas is built in SLOF, while the sources are actually maintained by QEMU, it's just that we don't want to create a new source package for a 20 bytes firmware... That's the reason we haven't switch to cross-compilers yet. > I assume that you want to preserve the ability to build this package > natively on powerpc, rather than just make it always build on amd64. > Therefore, I have not added a build-dependency on gcc-powerpc-linux-gnu > because that package is only available on *not* powerpc architectures. If > you prefer, it is certainly possible to uncomment the build-dependency and > drop the XS-Build-Indep-Architecture field instead, now that > gcc-powerpc-linux-gnu is available; this would also solve the auto-building > problem. But unfortunately there is no solution today that will support > both native and cross autobuilding in the archive for packages of this kind. If using a cross-compiler, I think it's actually better to use gcc-powerpc64-linux-gnu instead of relying on the multilib part of the powerpc cross-compiler. Then I guess it's possible to use Build-depends: gcc-powerpc64-linux-gnu [!powerpc !ppc64 !ppc64el] and allow the package to be built on all architectures. > With either of these solutions deployed, however, the Debian slof package > will be autobuildable in Launchpad (and, provided the necessary > infrastructure changes have been implemented, also in Debian), allowing us > to drop the delta for slof completely in Ubuntu. > > Thanks for considering this patch! I'll look at it and find a way to push the changes soon, before qemu-firmwares is ready. > P.S. the Debian git repository for this package appears to be about 6 months > out of date... Thanks for the notice. I pushed the tags, but forgot to push the branch. That should be fixed now. Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B [email protected] http://www.aurel32.net

