about libnl
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 27 Sep 2008 15:43:21 +0000 (15:43 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 27 Sep 2008 15:43:21 +0000 (15:43 +0000)
- f8: use our own import (1.1 rather that 1.0)
- f9: use the fedora stock repos (1.1 is ok, and our version does not compile)
- centos5: using our local import
NOTE: this does not compile on centos5
  this is because libnl needs /usr/include/linux/if_vlan.h
  that comes with kernel-headers rather than kernel-devel
  so at build time we use the wrong version...

build.common
config.planetlab/devel.pkgs
onelab.mk
planetlab.mk

index c180d8d..30c3c0e 100644 (file)
@@ -58,14 +58,16 @@ function pl_getReleaseName () {
     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"
index bcc3ad1..4d3447a 100644 (file)
@@ -75,10 +75,16 @@ package: PyXML
 # 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
index 64922ca..23e711f 100644 (file)
--- a/onelab.mk
+++ b/onelab.mk
@@ -83,21 +83,34 @@ IN_BOOTSTRAPFS += util-vserver
 
 #
 # 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
 
index 4ec43fa..ed31bbb 100644 (file)
@@ -62,21 +62,36 @@ IN_BOOTSTRAPFS += util-vserver
 
 #
 # 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