return 0
}
+# we use libnl from fedora 9 stock;
+# on f8 and centos5 we build it locally
function pl_getKexcludes () {
distroname=$1; shift
case $distroname in
- f*)
+ f8|centos5)
echo 'kernel* util-vserver* iptables iproute inotify-tools* libnl*'
;;
- centos*)
- echo 'kernel* util-vserver* iptables iproute inotify-tools* libnl*'
+ f9)
+ echo 'kernel* util-vserver* iptables iproute inotify-tools*'
;;
*)
echo "pl_DISTRO_NAME=$pl_DISTRO_NAME not supported in getexcludes.sh"
# used to reference SOAPpy as well
# for pypcilib
package: pciutils-devel
+##########
# for vsys
package: ocaml ocaml-docs
## will be loaded from our build as needed
#package:inotify-tools-devel
+##########
## for util-vserver-pl
-## ditto
-#package: libnl libnl-devel
+# we can use the stock version with f9;
+# centos5 comes with something too old
+# use our version as well on f8 as it comes with some 1.0 - which would do however
+package: libnl libnl-devel
+package-f8: libnl libnl-devel
+package-centos5: libnl libnl-devel
#
# libnl - local import
-# the version available in centos 5.2 is too old
# we need either 1.1 or at least 1.0.pre6
+# rebuild this on f8 and centos5 - see kexcludes in build.common
#
+local_libnl=false
+ifeq "$(DISTRONAME)" "f8"
+local_libnl=true
+endif
+ifeq "$(DISTRONAME)" "centos5"
+local_libnl=true
+endif
+
+ifeq "$(local_libnl)" "true"
libnl-MODULES := libnl
libnl-SPEC := libnl.spec
libnl-BUILD-FROM-SRPM := yes
ALL += libnl
IN_BOOTSTRAPFS += libnl
+endif
#
# util-vserver-pl
#
util-vserver-pl-MODULES := util-vserver-pl
util-vserver-pl-SPEC := util-vserver-pl.spec
-util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core libnl libnl-devel
+util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
+ifeq "$(local_libnl)" "true"
+util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
+endif
ALL += util-vserver-pl
IN_BOOTSTRAPFS += util-vserver-pl
#
# libnl - local import
-# the version available in centos 5.2 is too old
# we need either 1.1 or at least 1.0.pre6
+# rebuild this on f8 and centos5 - see kexcludes in build.common
#
+local_libnl=false
+ifeq "$(DISTRONAME)" "f8"
+local_libnl=true
+endif
+ifeq "$(DISTRONAME)" "centos5"
+local_libnl=true
+endif
+
+ifeq "$(local_libnl)" "true"
libnl-MODULES := libnl
libnl-SPEC := libnl.spec
libnl-BUILD-FROM-SRPM := yes
+# this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
+libnl-DEPEND-DEVEL-RPMS := kernel-devel
ALL += libnl
IN_BOOTSTRAPFS += libnl
+endif
#
# util-vserver-pl
#
util-vserver-pl-MODULES := util-vserver-pl
util-vserver-pl-SPEC := util-vserver-pl.spec
-util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core libnl libnl-devel
+util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
+ifeq "$(local_libnl)" "true"
+util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
+endif
ALL += util-vserver-pl
IN_BOOTSTRAPFS += util-vserver-pl