SPECS: svgalib.spec - fixed build on 2.6.x with new class_simple i...

qboosh qboosh at pld-linux.org
Wed Oct 12 19:46:45 CEST 2005


Author: qboosh                       Date: Wed Oct 12 17:46:45 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fixed build on 2.6.x with new class_simple interface (buggy test in Makefile)

---- Files affected:
SPECS:
   svgalib.spec (1.145 -> 1.146) 

---- Diffs:

================================================================
Index: SPECS/svgalib.spec
diff -u SPECS/svgalib.spec:1.145 SPECS/svgalib.spec:1.146
--- SPECS/svgalib.spec:1.145	Wed Oct 12 19:03:17 2005
+++ SPECS/svgalib.spec	Wed Oct 12 19:46:39 2005
@@ -322,7 +322,13 @@
 ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
 ln -sf %{_kernelsrcdir}/Module.symvers-up Module.symvers
 touch include/config/MARKER
+if grep -q class_simple_create %{_kernelsrcdir}/include/linux/device.h ; then
+	CLF=-DCLASS_SIMPLE=1
+else
+	CLF=
+fi
 %{__make} -C %{_kernelsrcdir} modules \
+	CLASS_CFLAGS="$CLF" \
 	SUBDIRS=`pwd` \
 	O=`pwd` \
 	V=1
@@ -348,6 +354,7 @@
 ln -sf %{_kernelsrcdir}/Module.symvers-smp Module.symvers
 touch include/config/MARKER
 %{__make} -C %{_kernelsrcdir} modules \
+	CLASS_CFLAGS="$CLF" \
 	SUBDIRS=`pwd` \
 	O=`pwd` \
 	V=1
@@ -454,6 +461,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.146  2005/10/12 17:46:39  qboosh
+- fixed build on 2.6.x with new class_simple interface (buggy test in Makefile)
+
 Revision 1.145  2005/10/12 17:03:17  qboosh
 - cleanups related to !dist_kernel
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/svgalib.spec?r1=1.145&r2=1.146&f=u




More information about the pld-cvs-commit mailing list