Bug#715398: please add a bbswitch-source package

Vincent Cheng vincentc1208 at gmail.com
Thu Jul 11 10:43:50 UTC 2013


Control: tag -1 pending

Hi David,

On Mon, Jul 8, 2013 at 12:10 PM, David Kalnischkies
<kalnischkies+debian at gmail.com> wrote:
> Source: bbswitch
> Version: 0.7-1
> Severity: wishlist
>
> Hello bbswitch/NVIDIA Maintainers,
>
>
> Currently src:bbswitch builds only a bbswitch-dkms package for usage with
> dkms tools. It would be nice if you could add a bbswitch-source package
> for module-assistant so that users can build proper debian packages for
> the bbswitch module for the kernel they use.

Ack, thanks for the patch! To be honest I have no experience with
module-assistant at all, so I've pretty much just taken your patch
as-is (committed to git now, will make an upload shortly).

> (Bonus points if you use this then to build packages for the debian kernels
>  so that at least for those the buildds can do the dirty compile work just
>  like its done for the nvidia module.)

I guess that depends on exactly how much work this involves.

> Attached is (so to say) a proof of concept patch I am using currently,
> so you might want to change quiet a bit (and hence I am not tagging it):
>
> * Architecture: linux-any ; same as the -dkms package. I guess all would be
>   better to not waste buildd time, but you probably did it for a reason

IIRC Aron's rationale for changing it to linux-any instead of all (I
prefer the latter as well) is that bbswitch is only supported on
linux. I kind of find the point moot, since I doubt that many of the
dkms packages in debian today work on kfreebsd, and that if we wanted
to make bbswitch installable on archs where it would actually be used,
"Architecture: i386 amd64" would be a better choice (I don't think
nvidia optimus is supported on non-Intel archs).

> * both Descriptions are a straight copy&paste from the -dkms package again,
>   I guess they should all be rewritten to indicate what they actually contain

Done.

> * I am building a bz2 tarball. You might want to use xz instead now that
>   m-a is supporting it (you have to add a Breaks for it though)

bbswitch is small enough that xz wouldn't make any difference, and
that also makes it harder to backport.

> * m-a builds nvidia-kernel-<kernelversion>, but I have set it for bbswitch to
>   bbswitch-modules-<kernelversion> as it seems more consistent with others;
>   or bbswitch-<kernelversion> (the naming nvidia-kernel actually uses) …

You know m-a much better than I do, so I went with what you considered best.

> src:bumblebee depends need to be modified slightly to make this useful of
> course and I will bug you about that at some point I guess, but one tiny
> step at a time. :)

Ack, fixed in git and will upload bbswitch and bumblebee together.

Regards,
Vincent



More information about the pkg-nvidia-devel mailing list