1 #################### status as of nov 29 2012
4 # in f16 gnuradio comes as 3.4 while f14 had 3.2:
5 # [2012.05.23--wtx-f14-64] ~ # rpm -q gnuradio
6 # gnuradio-3.2.2-9.fc14.x86_64
7 # [2012.05.23--wexlxc-f16-64] ~ # rpm -q gnuradio
8 # gnuradio-3.4.2-7.fc16.x86_64
10 # This causes bbn build crash
11 # our bbn comes from http://mirror.onelab.eu/third-party/bbn_80211-3.2.2.tar.gz
12 # and when built against gnuradio in f16, we're getting
13 # g++ -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/include/gnuradio -I/usr/include/python2.7 -g -O2 -Wall -Woverloaded-virtual -pthread -MT bbn.lo -M\
14 # D -MP -MF .deps/bbn.Tpo -c bbn.cc -fPIC -DPIC -o .libs/bbn.o
15 # In file included from bbn.cc:4108:0:
16 # bbn_tap.h:38:24: fatal error: omnithread.h: No such file or directory
18 # I could not at first sight easily locate a new bbn that would be numbered 3.4
19 # all they have seems to be a svn repo...
21 # we'll start with using plain lxc for orange and we'll see if that's a real issue
22 # might as well be just fine
25 # moving forward I face another issue with spectools
27 # gcc -I./ -g -O2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -c spectool_raw.c -o spectool_raw.o
28 # gcc spectool_container.o wispy_hw_gen1.o wispy_hw_24x.o wispy_hw_dbx.o spectool_net_client.o spectool_raw.o -o spectool_raw -lpthread -lm -lusb
29 # wispy_hw_dbx.o: In function `wispydbx_usb_open':
30 # /longbuildroot/BUILD/spectools-2009_06_R1/wispy_hw_dbx.c:635: undefined reference to `usb_debug'
31 # collect2: ld returned 1 exit status
32 # make[1]: *** [spectool_raw] Error 1
33 # make[1]: Leaving directory `/build/BUILD/spectools-2009_06_R1'
34 # error: Bad exit status from /longbuildroot/tmp/rpm-tmp.zqqEgL (%build)
36 # putting this aside as well for now
39 # with this distro we reach the bootstrapfs tarballs with these sizes for last attempt
40 # 2263306240 /var/www/html/boot/bootstrapfs-wexlxc-f16-x86_64.tar
41 # 639539315 /var/www/html/boot/bootstrapfs-wexlxc-f16-x86_64.tar.bz2
43 # related or not, rpm fails like this
44 # Checking for unpackaged file(s): /usr/lib/rpm/check-files /longbuildroot/BUILDROOT/nodeimage-wexlxc-f16-x86_64-2.1-2.2012.11.29.x86_64
45 # Wrote: /longbuildroot/RPMS/noarch/nodeimage-wexlxc-f16-x86_64-2.1-2.2012.11.29.noarch.rpm
46 # error: create archive failed on file /longbuildroot/BUILDROOT/nodeimage-wexlxc-f16-x86_64-2.1-2.2012.11.29.x86_64/var/www/html/boot/bootstrapfs-wexlxc-f16-x86_64.tar: cpio: Bad magic
47 # which suggests that the -plain packaging is failing;
48 # the fact that cpio has a known limitation to 2Gb could be the culprit here,
49 # although it seemed from other that the rpm we use didn't have that limitation...
51 # rpm-4.9.1.3-1.fc16.x86_64
53 # dropping this for now; one way out would be to stop building the plain package, not sure how bad it would be for tests
54 ########################################
56 # declare the packages to be built and their dependencies
57 # initial version from Mark Huang
58 # Mark Huang <mlhuang@cs.princeton.edu>
59 # Copyright (C) 2003-2006 The Trustees of Princeton University
60 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
68 bbn-MODULES := bbn_80211
69 bbn-SPEC := bbn_80211.spec
70 bbn-BUILD-FROM-SRPM := yes
71 # now from the stock repo
72 bbn-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel swig
73 #bbn-DEPEND-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel
80 crunchxml-MODULES := crunchxml
81 crunchxml-SPEC := crunchxml.spec
82 crunchxml-BUILD-FROM-SRPM := yes
83 crunchxml-DEVEL-RPMS := glib2-devel libxml-devel libxml2-devel scons gsl-devel
85 IN_NODEIMAGE += crunchxml
90 spectools-MODULES := spectools
91 spectools-SPEC := spectools.spec
92 spectools-BUILD-FROM-SRPM := yes
93 spectools-DEVEL-RPMS := gtk2-devel libusb-devel
95 #IN_NODEIMAGE += spectools
102 sge-BUILD-FROM-SRPM := yes
103 sge-DEVEL-RPMS += kdevelop-devel kdevelop kdevelop-libs java-1.6.0-openjdk
104 sge-DEVEL-RPMS += lesstif lesstif-devel
106 # turning this off - current focus is on deploying the sge box separately from myplc
107 # packaging is still broken, and we're exploring a ready-to-use distro on centos
109 # IN_NODEIMAGE += sge
111 ########################################
113 # lxctools: scripts for entering containers
115 lxctools-MODULES := lxctools
116 lxctools-SPEC := lxctools.spec
118 IN_NODEIMAGE += lxctools
121 # lxcsu: root context module for entering namespaces
123 lxcsu-MODULES := lxcsu
124 lxcsu-SPEC := lxcsu.spec
126 IN_NODEIMAGE += lxcsu
130 # transforward: root context module for transparent port forwarding
132 transforward-MODULES := transforward
133 transforward-SPEC := transforward.spec
135 IN_NODEIMAGE += transforward
138 # procprotect: root context module for protecting against weaknesses in /proc
140 procprotect-MODULES := procprotect
141 procprotect-SPEC := procprotect.spec
143 IN_NODEIMAGE += procprotect
146 # ipfw: root context module, and slice companion
148 ipfwroot-MODULES := ipfw
149 ipfwroot-SPEC := planetlab/ipfwroot.spec
151 IN_NODEIMAGE += ipfwroot
153 ipfwslice-MODULES := ipfw
154 ipfwslice-SPEC := planetlab/ipfwslice.spec
160 nodeupdate-MODULES := nodeupdate
161 nodeupdate-SPEC := NodeUpdate.spec
163 IN_NODEIMAGE += nodeupdate
168 ipod-MODULES := PingOfDeath
169 ipod-SPEC := ipod.spec
176 plnode-utils-MODULES := plnode-utils
177 plnode-utils-SPEC := plnode-utils-lxc.spec
179 IN_NODEIMAGE += plnode-utils
184 nodemanager-lib-MODULES := nodemanager
185 nodemanager-lib-SPEC := nodemanager-lib.spec
186 ALL += nodemanager-lib
187 IN_NODEIMAGE += nodemanager-lib
189 nodemanager-lxc-MODULES := nodemanager
190 nodemanager-lxc-SPEC := nodemanager-lxc.spec
191 ALL += nodemanager-lxc
192 IN_NODEIMAGE += nodemanager-lxc
197 sshd-MODULES := pl_sshd
198 sshd-SPEC := pl_sshd.spec
203 # codemux: Port 80 demux
205 codemux-MODULES := codemux
206 codemux-SPEC := codemux.spec
208 IN_NODEIMAGE += codemux
213 fprobe-ulog-MODULES := fprobe-ulog
214 fprobe-ulog-SPEC := fprobe-ulog.spec
216 IN_NODEIMAGE += fprobe-ulog
218 #################### libvirt on f16 is too old, sounds like f17 has something fine
220 ifeq "$(DISTRONAME)" "f16"
224 ifeq "$(local_libvirt)" "true"
228 libvirt-MODULES := libvirt
229 libvirt-SPEC := libvirt.spec
230 libvirt-BUILD-FROM-SRPM := yes
231 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
232 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
233 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
234 libvirt-DEVEL-RPMS += libudev-devel libpcap-devel libnl-devel ebtables scrub
235 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
236 --without storage-fs --without storage-lvm \
237 --without polkit --without sasl --without audit --with capng --with udev \
238 --without netcf --without avahi --without sanlock \
239 --without xen --without qemu --without hyperv --without phyp --without esx \
241 --define 'packager PlanetLab'
243 IN_NODEREPO += libvirt
244 IN_NODEIMAGE += libvirt
248 # DistributedRateLimiting
250 #DistributedRateLimiting-MODULES := DistributedRateLimiting
251 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
252 #ALL += DistributedRateLimiting
253 #IN_NODEREPO += DistributedRateLimiting
258 pf2slice-MODULES := pf2slice
259 pf2slice-SPEC := pf2slice.spec
263 ## PlanetLab Mom: Cleans up your mess
266 #mom-SPEC := pl_mom.spec
271 # inotify-tools - local import
272 # rebuild this on centos5 (not found) - see yumexclude
274 local_inotify_tools=false
275 ifeq "$(DISTRONAME)" "centos5"
276 local_inotify_tools=true
279 ifeq "$(DISTRONAME)" "sl6"
280 local_inotify_tools=true
283 ifeq "$(local_inotify_tools)" "true"
284 inotify-tools-MODULES := inotify-tools
285 inotify-tools-SPEC := inotify-tools.spec
286 inotify-tools-BUILD-FROM-SRPM := yes
287 IN_NODEIMAGE += inotify-tools
294 # openvswitch-MODULES := openvswitch
295 # openvswitch-SPEC := openvswitch.spec
296 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
297 # IN_NODEIMAGE += openvswitch
298 # # build only on f14 as f16 has this natively
299 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
307 vsys-SPEC := vsys.spec
308 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
309 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
310 ifeq "$(local_inotify_tools)" "true"
311 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
317 # vsyssh : installed in slivers
319 vsyssh-MODULES := vsys
320 vsyssh-SPEC := vsyssh.spec
321 IN_SLICEIMAGE += vsyssh
327 vsys-scripts-MODULES := vsys-scripts
328 vsys-scripts-SPEC := root-context/vsys-scripts.spec
329 IN_NODEIMAGE += vsys-scripts
335 bind_public-MODULES := bind_public
336 bind_public-SPEC := bind_public.spec
337 IN_SLICEIMAGE += bind_public
343 plcapi-MODULES := plcapi
344 plcapi-SPEC := PLCAPI.spec
351 drupal-MODULES := drupal
352 drupal-SPEC := drupal.spec
353 drupal-BUILD-FROM-SRPM := yes
358 # use the plewww module instead
360 plewww-MODULES := plewww
361 plewww-SPEC := plewww.spec
366 # www-register-wizard
368 www-register-wizard-MODULES := www-register-wizard
369 www-register-wizard-SPEC := www-register-wizard.spec
370 ALL += www-register-wizard
371 IN_MYPLC += www-register-wizard
376 pyaspects-MODULES := pyaspects
377 pyaspects-SPEC := pyaspects.spec
378 pyaspects-BUILD-FROM-SRPM := yes
384 nodeconfig-MODULES := nodeconfig
385 nodeconfig-SPEC := nodeconfig.spec
387 IN_MYPLC += nodeconfig
392 bootmanager-MODULES := bootmanager
393 bootmanager-SPEC := bootmanager.spec
395 IN_MYPLC += bootmanager
398 # pypcilib : used in bootcd
400 pypcilib-MODULES := pypcilib
401 pypcilib-SPEC := pypcilib.spec
403 IN_BOOTCD += pypcilib
408 pyplnet-MODULES := pyplnet
409 pyplnet-SPEC := pyplnet.spec
411 IN_NODEIMAGE += pyplnet
416 # OMF resource controller
418 omf-resctl-MODULES := omf
419 omf-resctl-SPEC := omf-resctl.spec
421 IN_SLICEIMAGE += omf-resctl
426 omf-expctl-MODULES := omf
427 omf-expctl-SPEC := omf-expctl.spec
433 bootcd-MODULES := bootcd build
434 bootcd-SPEC := bootcd.spec
435 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
436 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
437 bootcd-RPMDATE := yes
444 sliceimage-MODULES := sliceimage build
445 sliceimage-SPEC := sliceimage.spec
446 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
447 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
448 sliceimage-RPMDATE := yes
450 IN_NODEIMAGE += sliceimage
453 # lxc-specific sliceimage initialization
455 lxc-sliceimage-MODULES := sliceimage
456 lxc-sliceimage-SPEC := lxc-sliceimage.spec
457 lxc-sliceimage-RPMDATE := yes
458 ALL += lxc-sliceimage
459 IN_NODEIMAGE += lxc-sliceimage
464 nodeimage-MODULES := nodeimage build
465 nodeimage-SPEC := nodeimage.spec
466 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
467 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
468 nodeimage-RPMDATE := yes
470 IN_MYPLC += nodeimage
475 # all rpms resulting from packages marked as being in nodeimage and sliceimage
476 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
477 # replace space with +++ (specvars cannot deal with spaces)
479 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
481 noderepo-MODULES := nodeimage
482 noderepo-SPEC := noderepo.spec
483 # package requires all embedded packages
484 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
485 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
486 #export rpm list to the specfile
487 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
488 noderepo-RPMDATE := yes
495 # all rpms resulting from packages marked as being in vserver
496 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
497 # replace space with +++ (specvars cannot deal with spaces)
499 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
501 slicerepo-MODULES := nodeimage
502 slicerepo-SPEC := slicerepo.spec
503 # package requires all embedded packages
504 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
505 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
506 #export rpm list to the specfile
507 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
508 slicerepo-RPMDATE := yes
512 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
514 myplc-MODULES := myplc
515 myplc-SPEC := myplc.spec
516 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
519 # myplc-docs only contains docs for PLCAPI and NMAPI, but
520 # we still need to pull MyPLC, as it is where the specfile lies,
521 # together with the utility script docbook2drupal.sh
522 myplc-docs-MODULES := myplc plcapi nodemanager monitor
523 myplc-docs-SPEC := myplc-docs.spec
526 # using some other name than myplc-release, as this is a make target already
527 release-MODULES := myplc
528 release-SPEC := myplc-release.spec
529 release-RPMDATE := yes