[Pkg-virtualbox-devel] Bug#469882: Bug#469882: virtualbox-ose-source:

Philipp Kern pkern at debian.org
Mon Mar 10 11:20:48 UTC 2008


On Mon, Mar 10, 2008 at 12:00:51PM +0100, Michael Meskes wrote:
> My plan is to use the following code snippet in debian/rules instead with the next
> version:
> 
> # Set ARCH so we can cross compile Debian kernel
> ifneq ($(shell echo $(KVERS) | grep 86), )
>         ARCH := i386
> endif
> ifneq ($(shell echo $(KVERS) | grep amd64), )
>         ARCH := x86_64
> endif
> 
> This should do it. But could you please test?

Looking at `debian/rules' of fglrx, it just uses $(ARCH) without
defining it first.  (But that's just a short glance and grep, so I may
be wrong on this one.)  So maybe the build process already cares for
that.  Looking at your tests you probably already rely on this feature,
maybe you should add this fact to the comment.  It took me two glances
to see it.  Heh.

So that might work on vanilla kernels if ARCH is defined first, both
checks will fail and ARCH will not be redefined by your snipplet.  The
kX images for AMD processors on x86 were ditched with at least 2.6.24,
so that should work, too.

Sadly I do not have time today and at least tomorrow for doing more
reboot testings on that, sorry.  Looks good, if my assumptions above
hold.

Kind regards,
Philipp Kern
-- 
 .''`.  Philipp Kern                             Debian Developer
: :' :  http://philkern.de                       Debian Release Assistant
`. `'   xmpp:phil at 0x539.de
  `-    finger pkern/key at db.debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20080310/625bba8d/attachment-0001.pgp 


More information about the Pkg-virtualbox-devel mailing list