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

Re: Build-Depends on certain architecture



At 11:02 +0200 10/1/02, Daniel Lutz wrote:
>Hello
>
>A package of mine, `synergy', does compile on every platform
>except on hppa. hppa needs at least gcc 3.0. But this version
>of gcc seems to have a bug, synergy doesn't compile with it
>on hppa. So I need to use gcc 3.2 on hppa.
>
>Now I tried to figure out the correct statements for the
>`Build-Depends' field. On every platform, the default gcc
>should be used, except on hppa, where gcc-3.2 should be used.
>
>Here's the old field:
>
>  Build-Depends: debhelper (>> 3.0.0), xlibs-dev
>
>And here's the new one:
>
>  Build-Depends: g++-3.2 [hppa], debhelper (>> 3.0.0), xlibs-dev
>
>Is this correct?
>
>
>Then I will need to change debian/rules accordingly. How should
>I test for the architecture in this case?
>
>  dpkg-architecture -qDEB_BUILD_ARCH
>
>or
>
>  dpkg-architecture -qDEB_HOST_ARCH
>
>(I think the second one makes more sense.)
>

Hi,

All the work you are doing is to work around a bug in gcc 3.0 for HPPA,
that is fixed in gcc 3.2.

So just upgrade the HPPA gcc to 3.2.
Some day it has to be done away.


And the main reason for this simple answer is that
 I don't like special rules for a specific architecture.

See also
 http://www.gag.com/~bdale/talks/2002/debconf2/porting/html/mgp00013.html
and other pages of the same talk.


Geert St




Reply to: