Bug#696664: uapi/asm-generic missing from linux-headers-3.7

2012-12-26 Thread Evgeni Golov
Control: tags -1 + patch

 The problem here is that arch/x86/include/asm/types.h has a include for 
 asm-generic/types.h. This file was moved from include/ to 
 include/uapi/ in 8a1ab3155c2ac7fbe5f2038d6e26efeb607a1498. include/uapi/ 
 is added to the include-path by the upstream Makefile just fine, but the 
 asm-generic subfolder is missing from linux-headers-3.7-trunk-common. 
 Copying the folder from the tarball to 
 /usr/src/linux-headers-3.7-trunk-common/include/uapi/asm-generic fixes 
 the build-issue for me.

The obvious patch is of course:
--- a/debian/rules.real
+++ b/debian/rules.real
@@ -237,6 +237,7 @@ install-headers_$(ARCH)_$(FEATURESET): 
$(STAMPS_DIR)/source_$(FEATURESET)
  find $$(find arch/$(KERNEL_ARCH) \( -name include -o -name 
scripts \) -type d -print) -print; \
  find include -name 'asm*' -prune -o -print; \
  find include/asm-generic -print; \
+ find include/uapi/asm-generic -print; \
) \
| \
cpio -pd --preserve-modification-time '$(CURDIR)/$(DIR)'

tp-smapi builds fine for me then, virtualbox needs some love, but that 
is 3.7 related (error: ‘VM_RESERVED’ undeclared (first use in this 
function)).

Greets
Evgeni

-- 
Bruce Schneier can read and understand Perl programs.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#696664: uapi/asm-generic missing from linux-headers-3.7

2012-12-26 Thread Stefan Lippers-Hollmann
Hi

On Wednesday 26 December 2012, Evgeni Golov wrote:
[…]
 tp-smapi builds fine for me then, virtualbox needs some love, but that 
 is 3.7 related (error: ‘VM_RESERVED’ undeclared (first use in this 
 function)).

I've supplied the patches needed for virtualbox in #696011,
http://bugs.debian.org/696011

Regards
Stefan Lippers-Hollmann


signature.asc
Description: This is a digitally signed message part.


Bug#696664: uapi/asm-generic missing from linux-headers-3.7

2012-12-25 Thread Evgeni Golov
Control: reassign -1 linux-headers-3.7-trunk-common
Control: found -1 3.7.1-1~experimental.1
Control: retitle -1 uapi/asm-generic missing from linux-headers-3.7

Hi Gregor,
Hi Debian kernel hackers,

On Tue, Dec 25, 2012 at 01:04:02PM +0100, gregor herrmann wrote:

 When I install linux-headers-3.7-trunk-amd64 3.7.1-1~experimental.1
 from experimental, I get:
 
 run-parts: executing /etc/kernel/postinst.d/dkms 3.7-trunk-amd64 
 /boot/vmlinuz-3.7-trunk-amd64
 Error! Bad return status for module build on kernel: 3.7-trunk-amd64 (x86_64)
 Consult /var/lib/dkms/tp-smapi/0.41/build/make.log for more information.

 DKMS make.log for tp-smapi-0.41 for kernel 3.7-trunk-amd64 (x86_64)
 Tue Dec 25 12:53:57 CET 2012
 make: Entering directory `/usr/src/linux-headers-3.7-trunk-amd64'
   LD  /var/lib/dkms/tp-smapi/0.41/build/built-in.o
   CC [M]  /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o
 In file included from 
 /usr/src/linux-headers-3.7-trunk-common/include/uapi/linux/types.h:4:0,
  from 
 /usr/src/linux-headers-3.7-trunk-common/include/linux/types.h:5,
  from 
 /usr/src/linux-headers-3.7-trunk-common/include/linux/kernel.h:8,
  from /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c:32:
 /usr/src/linux-headers-3.7-trunk-common/arch/x86/include/asm/types.h:4:31: 
 fatal error: asm-generic/types.h: No such file or directory
 compilation terminated.
 make[3]: *** [/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o] Error 1
 make[2]: *** [_module_/var/lib/dkms/tp-smapi/0.41/build] Error 2
 make[1]: *** [sub-make] Error 2
 make: *** [all] Error 2
 make: Leaving directory `/usr/src/linux-headers-3.7-trunk-amd64'

The problem here is that arch/x86/include/asm/types.h has a include for 
asm-generic/types.h. This file was moved from include/ to 
include/uapi/ in 8a1ab3155c2ac7fbe5f2038d6e26efeb607a1498. include/uapi/ 
is added to the include-path by the upstream Makefile just fine, but the 
asm-generic subfolder is missing from linux-headers-3.7-trunk-common. 
Copying the folder from the tarball to 
/usr/src/linux-headers-3.7-trunk-common/include/uapi/asm-generic fixes 
the build-issue for me.

Regards
Evgeni, mumbling something about breaking a fuck or unfucking a break... ;)

-- 
Bruce Schneier can read and understand Perl programs.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org