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

Bug#115655: [ARCH][DPKG-ARCHITECTURE] outputs non-canonical GNU system type



On Sat, 22 Jan 2005, Scott James Remnant wrote:
> 4) Add a dependency on autotools-dev; promoting it all the way from
>    optional to Essential.

It is simple enough that this would be doable, BUT I don't think it is the
right way either.

> I don't think (3) fixes the problem and I don't think (4) is tenable.  I
> think the correct solutions to this bug are (1) and (2), which we
> already do.
> 
> I therefore declare this bug closed unless a (5) can be found.

(5)  dpkg-architecture are static values, known to all arches that are
supported.  One can:

5a) Use config.sub at build time (autotools-dev build dep, if one wants),
    to get the full GNU arch string

OR

5b) Just hardcode it like the rest.  I don't mean runtime-add a -gnu, I mean
    actually using config.sub at the time an arch is added to check what the
    correct string is, and add that to dpkg.

    IF we ever need to change that string, it is trivial to get it included
    as an alias at least on Debian's config.sub.


Still, since the whole madness IS currently fixed by autotools-dev, I don't
really care.  So, as far as I am concerned, we could just *document* that
what we return through dpkg-architecture is basically incomplete and needs
to be piped through config.sub to get the full string.

How to use it in a correct way is alredy documented by autotools-dev.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



Reply to: