Re: quick question about dpkg-architecture
On Sun, 2017-08-06 at 04:36 +0100, Sérgio Basto wrote:
> On Wed, 2017-08-02 at 01:15 +0200, Guillem Jover wrote:
> > Hi!
> >
> > On Tue, 2017-08-01 at 13:01:55 +0100, Sérgio Basto wrote:
> > > On Mon, 2017-07-31 at 14:26 +0100, Sérgio Basto wrote:
> > > > I am the package maintainer of dpkg and debhelper on Linux
> > > > Fedora
> > > > .
> >
> > Yeah, we've interacted in the past. :)
> >
> > > > Question, can I add to /usr/share/dpkg/
> > > > abitable|cputable|ostable
> > > > > tupletable , any line that remove the warning ?
> >
> > The problem is that your compiler gives a different triplet than
> > the
> > one used by dpkg itself.
> >
> > > BTW if you are interested still failing on armv7
> > > [1] , I had report arm fail some months ago. The fail on arm is
> > > because
> > > dpkg-architecture -qDEB_BUILD_GNU_TYPE and dpkg-architecture
> > > -qDEB_HOST_GNU_TYPE have different results [2], any suggestion ?
> > >
> > > [2]
> > > + dpkg-architecture -qDEB_BUILD_GNU_TYPE
> > > arm-linux-gnu
> > > + dpkg-architecture -qDEB_HOST_GNU_TYPE
> > > arm-linux-gnueabi
> >
> > This looks indeed fishy. What's the output of:
> >
> > % dpkg --print-architecture
> > % $CC -dumpmachine
>
> I could get a test in arm yet , but on ppc64le (which failed) I got :
>
> + cd debhelper
> + dpkg-architecture -qDEB_BUILD_GNU_TYPE
> powerpc64le-linux-gnu
> + dpkg-architecture -qDEB_HOST_GNU_TYPE
> dpkg-architecture: warning: unknown CC system type ppc64le-redhat-
> linux, falling back to default (native compilation)
> powerpc64le-linux-gnu
> + cc -dumpmachine
> ppc64le-redhat-linux
>
> but not failed in aarch64 with:
>
> + cd debhelper
> + dpkg-architecture -qDEB_BUILD_GNU_TYPE
> aarch64-linux-gnu
> + dpkg-architecture -qDEB_HOST_GNU_TYPE
> aarch64-linux-gnu
> + cc -dumpmachine
> aarch64-redhat-linux
Fails in armv7 :
+ dpkg-architecture -qDEB_BUILD_GNU_TYPE
arm-linux-gnu
+ dpkg-architecture -qDEB_HOST_GNU_TYPE
arm-linux-gnueabi
+ dpkg --print-architecture
arm
+ cc -dumpmachine
armv7hl-redhat-linux-gnueabi
> Thanks,
>
--
Sérgio M. B.
Reply to: