[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: thoughts on using multi-arch based cross-building

On Sun, Sep 30, 2012 at 03:34:18PM +0100, peter green wrote:
> I've been attempting to use multi-arch for cross-building packages
> for raspbian (a debian derivative I am working on for armv6
> hardfloat) and run into a few things which I thought i'd share
> and/or ask about.

I'm busy with uni, but I'll try to help.

> Build-depends installation:
> apt-get build-dep is fine if you are building an unmodified package
> from a repo but it's of no use if you have modified the
> build-dependencies to make them satisfiable.
> dpkg-checkbuilddeps doesn't tell me what architecture the packages
> need to be for and i'm not sure it can (since to do so it would need
> to know whether packages that are not installed are multi-arch
> foreign or not).
> Does a tool exist that can be told "install the build-depends needed
> to build the debianised source tree in directory x for architecture
> y"? if not IMO such a tool (or a new option in an existing tool)
> needs to be created.

The tool you're looking for is mk-build-deps from the devscripts package,
I'm not sure about how it handles multiarch, though. I'll have a look into it.

I think pbuilder comes with a similar script, but again, I'm not
sure it handles multiarch correctly.

Reply to: