post-352 drivers

Luca Boccassi luca.boccassi at gmail.com
Wed Feb 3 09:21:47 UTC 2016


On Feb 3, 2016 08:54, "Andreas Beckmann" <anbe at debian.org> wrote:
>
> On 2016-02-03 02:40, Luca Boccassi wrote:
> > DKMS is passing down ARCH=<binary ABI triplet> when it calls make. But
> > conftest.sh uses $ARCH for the arch-specific Linux headers directory.
> > I solved it by simply unsetting ARCH in the dkms.conf, and now it's
> > building on all architectures, as upstream's Makefile will derive ARCH
> > from uname if it's not set.
>
> Are you sure that's dkms setting this variable? I haven't seen this here
> ... where amd64 built fine and armhf in a foreign-arch pbuilder
> environment as well. Anyway, thanks for the fix.

I assumed it was dkms because that's the top of the chain, and when
unsetting it there it wasn't defined anymore down the stack up to the
makefile. This is in a very basic sid chroot with nothing but build
dependencies installed, and tested by installing nvidia-kernel-dkms and
calling dkms install.

Any idea what else could be setting that var?

Note that I haven't tested running with this yet, only the module build in
all archs. I'll do that tonight.

> Maybe we should increase conftest verboseness in case it emits an #error
...

Unfortunately as far as I can see all tests individually redirect to
dev/null, so we'd have to patch every single one of them :-(

Kind regards,
Luca Boccassi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20160203/ea29df83/attachment.html>


More information about the pkg-nvidia-devel mailing list