From: Marc Fiuczynski Date: Sat, 28 Mar 2009 21:24:14 +0000 (+0000) Subject: use local libnl on centos5 X-Git-Tag: 4.2-rc28^2~18 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d2c8792bdd37c80417407dd78084027aba617ebf;p=build.git use local libnl on centos5 --- diff --git a/planetlab-tags-4.2.mk b/planetlab-tags-4.2.mk index 11114e6a..bb8a7467 100644 --- a/planetlab-tags-4.2.mk +++ b/planetlab-tags-4.2.mk @@ -9,6 +9,7 @@ linux-2.6-SVNPATH := http://svn.planet-lab.org/svn/linux-2.6/tags/linux-2.6-22- madwifi-SVNPATH := http://svn.planet-lab.org/svn/madwifi/tags/madwifi-0.9.4-3 util-vserver-SVNBRANCH := scholz util-vserver-SVNPATH := http://svn.planet-lab.org/svn/util-vserver/tags/util-vserver-0.30.215-6 +libnl-SVNPATH := http://svn.planet-lab.org/svn/libnl/tags/libnl-1.1-2 util-vserver-pl-SVNPATH := http://svn.planet-lab.org/svn/util-vserver-pl/tags/util-vserver-pl-0.3-16 NodeUpdate-SVNPATH := http://svn.planet-lab.org/svn/NodeUpdate/tags/NodeUpdate-0.5-3 PingOfDeath-SVNPATH := http://svn.planet-lab.org/svn/PingOfDeath/tags/PingOfDeath-2.2-1 diff --git a/planetlab.mk b/planetlab.mk index 09130ac8..36ef3449 100644 --- a/planetlab.mk +++ b/planetlab.mk @@ -72,12 +72,36 @@ util-vserver-RPMFLAGS:= --without dietlibc ALL += util-vserver IN_BOOTSTRAPFS += util-vserver +# +# libnl - local import +# we need either 1.1 or at least 1.0.pre6 +# rebuild this on centos5 - see kexcludes in build.common +# +local_libnl=false +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 +# HACK: leaving out kernel-headers for now +libnl-DEPEND-DEVEL-RPMS := kernel-devel # kernel-headers +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 +ifeq "$(local_libnl)" "true" +util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel +endif ALL += util-vserver-pl IN_BOOTSTRAPFS += util-vserver-pl