comments on current status before moving on
[wextoolbox.git] / wexlxc.mk
1 #################### status as of nov 29 2012
2 #
3 ########## gnuradio
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
9 ###
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
17 #
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...
20 #
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
23 #
24 ########## spectools
25 # moving forward I face another issue with spectools
26 #
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)
35
36 # putting this aside as well for now
37 #
38 ########## nodeimage
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
42 #
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...
50 # # rpm -q rpm
51 # rpm-4.9.1.3-1.fc16.x86_64
52
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 ########################################
55 #
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
61 #
62 # see doc in Makefile  
63 #
64
65 #
66 # bbn
67 #
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
74 #ALL += bbn
75 #IN_NODEIMAGE += bbn
76
77 #
78 # crunchxml
79 #
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
84 ALL += crunchxml
85 IN_NODEIMAGE += crunchxml
86
87 #
88 # spectools
89 #
90 spectools-MODULES := spectools
91 spectools-SPEC := spectools.spec
92 spectools-BUILD-FROM-SRPM := yes
93 spectools-DEVEL-RPMS := gtk2-devel libusb-devel
94 #ALL += spectools
95 #IN_NODEIMAGE += spectools
96
97 #
98 # sge
99 #
100 sge-MODULES := sge
101 sge-SPEC := sge.spec
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
105
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
108 # ALL += sge
109 # IN_NODEIMAGE += sge
110
111 ########################################
112 #
113 # lxctools: scripts for entering containers
114 #
115 lxctools-MODULES := lxctools
116 lxctools-SPEC := lxctools.spec
117 ALL += lxctools
118 IN_NODEIMAGE += lxctools
119
120 #
121 # lxcsu: root context module for entering namespaces
122 #
123 lxcsu-MODULES := lxcsu
124 lxcsu-SPEC := lxcsu.spec
125 ALL += lxcsu
126 IN_NODEIMAGE += lxcsu
127
128 #
129 #
130 # transforward: root context module for transparent port forwarding
131 #
132 transforward-MODULES := transforward
133 transforward-SPEC := transforward.spec
134 ALL += transforward
135 IN_NODEIMAGE += transforward
136
137 #
138 # procprotect: root context module for protecting against weaknesses in /proc
139 #
140 procprotect-MODULES := procprotect
141 procprotect-SPEC := procprotect.spec
142 ALL += procprotect
143 IN_NODEIMAGE += procprotect
144
145 #
146 # ipfw: root context module, and slice companion
147 #
148 ipfwroot-MODULES := ipfw
149 ipfwroot-SPEC := planetlab/ipfwroot.spec
150 ALL += ipfwroot
151 IN_NODEIMAGE += ipfwroot
152
153 ipfwslice-MODULES := ipfw
154 ipfwslice-SPEC := planetlab/ipfwslice.spec
155 ALL += ipfwslice
156
157 #
158 # NodeUpdate
159 #
160 nodeupdate-MODULES := nodeupdate
161 nodeupdate-SPEC := NodeUpdate.spec
162 ALL += nodeupdate
163 IN_NODEIMAGE += nodeupdate
164
165 #
166 # ipod
167 #
168 ipod-MODULES := PingOfDeath
169 ipod-SPEC := ipod.spec
170 ALL += ipod
171 IN_NODEIMAGE += ipod
172
173 #
174 # plnode-utils
175
176 plnode-utils-MODULES := plnode-utils
177 plnode-utils-SPEC := plnode-utils-lxc.spec
178 ALL += plnode-utils
179 IN_NODEIMAGE += plnode-utils
180
181 #
182 # nodemanager
183 #
184 nodemanager-lib-MODULES := nodemanager
185 nodemanager-lib-SPEC := nodemanager-lib.spec
186 ALL += nodemanager-lib
187 IN_NODEIMAGE += nodemanager-lib
188
189 nodemanager-lxc-MODULES := nodemanager
190 nodemanager-lxc-SPEC := nodemanager-lxc.spec
191 ALL += nodemanager-lxc
192 IN_NODEIMAGE += nodemanager-lxc
193
194 #
195 # pl_sshd
196 #
197 sshd-MODULES := pl_sshd
198 sshd-SPEC := pl_sshd.spec
199 ALL += sshd
200 IN_NODEIMAGE += sshd
201
202 #
203 # codemux: Port 80 demux
204 #
205 codemux-MODULES := codemux
206 codemux-SPEC   := codemux.spec
207 ALL += codemux
208 IN_NODEIMAGE += codemux
209
210 #
211 # fprobe-ulog
212 #
213 fprobe-ulog-MODULES := fprobe-ulog
214 fprobe-ulog-SPEC := fprobe-ulog.spec
215 ALL += fprobe-ulog
216 IN_NODEIMAGE += fprobe-ulog
217
218 #################### libvirt on f16 is too old, sounds like f17 has something fine
219 local_libvirt=false
220 ifeq "$(DISTRONAME)" "f16"
221 local_libvirt=true
222 endif
223
224 ifeq "$(local_libvirt)" "true"
225 #
226 # libvirt
227 #
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 \
240                         --without libxl \
241                         --define 'packager PlanetLab'
242 ALL += libvirt
243 IN_NODEREPO += libvirt
244 IN_NODEIMAGE += libvirt
245 endif
246
247 #
248 # DistributedRateLimiting
249 #
250 #DistributedRateLimiting-MODULES := DistributedRateLimiting
251 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
252 #ALL += DistributedRateLimiting
253 #IN_NODEREPO += DistributedRateLimiting
254
255 #
256 # pf2slice
257 #
258 pf2slice-MODULES := pf2slice
259 pf2slice-SPEC := pf2slice.spec
260 ALL += pf2slice
261
262 ##
263 ## PlanetLab Mom: Cleans up your mess
264 ##
265 #mom-MODULES := Mom
266 #mom-SPEC := pl_mom.spec
267 #ALL += mom
268 #IN_NODEIMAGE += mom
269
270 #
271 # inotify-tools - local import
272 # rebuild this on centos5 (not found) - see yumexclude
273 #
274 local_inotify_tools=false
275 ifeq "$(DISTRONAME)" "centos5"
276 local_inotify_tools=true
277 endif
278
279 ifeq "$(DISTRONAME)" "sl6"
280 local_inotify_tools=true
281 endif
282
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
288 ALL += inotify-tools
289 endif
290
291 #
292 # openvswitch
293 #
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)"
300 # ALL += openvswitch
301 # endif
302
303 #
304 # vsys
305 #
306 vsys-MODULES := vsys
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
312 endif
313 IN_NODEIMAGE += vsys
314 ALL += vsys
315
316 #
317 # vsyssh : installed in slivers
318 #
319 vsyssh-MODULES := vsys
320 vsyssh-SPEC := vsyssh.spec
321 IN_SLICEIMAGE += vsyssh
322 ALL += vsyssh
323
324 #
325 # vsys-scripts
326 #
327 vsys-scripts-MODULES := vsys-scripts
328 vsys-scripts-SPEC := root-context/vsys-scripts.spec
329 IN_NODEIMAGE += vsys-scripts
330 ALL += vsys-scripts
331
332 #
333 # bind_public
334 #
335 bind_public-MODULES := bind_public
336 bind_public-SPEC := bind_public.spec
337 IN_SLICEIMAGE += bind_public
338 ALL += bind_public
339
340 #
341 # plcapi
342 #
343 plcapi-MODULES := plcapi
344 plcapi-SPEC := PLCAPI.spec
345 ALL += plcapi
346 IN_MYPLC += plcapi
347
348 #
349 # drupal
350
351 drupal-MODULES := drupal
352 drupal-SPEC := drupal.spec
353 drupal-BUILD-FROM-SRPM := yes
354 ALL += drupal
355 IN_MYPLC += drupal
356
357 #
358 # use the plewww module instead
359 #
360 plewww-MODULES := plewww
361 plewww-SPEC := plewww.spec
362 ALL += plewww
363 IN_MYPLC += plewww
364
365 #
366 # www-register-wizard
367 #
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
372
373 #
374 # pyaspects
375 #
376 pyaspects-MODULES := pyaspects
377 pyaspects-SPEC := pyaspects.spec
378 pyaspects-BUILD-FROM-SRPM := yes
379 ALL += pyaspects
380
381 #
382 # nodeconfig
383 #
384 nodeconfig-MODULES := nodeconfig
385 nodeconfig-SPEC := nodeconfig.spec
386 ALL += nodeconfig
387 IN_MYPLC += nodeconfig
388
389 #
390 # bootmanager
391 #
392 bootmanager-MODULES := bootmanager
393 bootmanager-SPEC := bootmanager.spec
394 ALL += bootmanager
395 IN_MYPLC += bootmanager
396
397 #
398 # pypcilib : used in bootcd
399
400 pypcilib-MODULES := pypcilib
401 pypcilib-SPEC := pypcilib.spec
402 ALL += pypcilib
403 IN_BOOTCD += pypcilib
404
405 #
406 # pyplnet
407 #
408 pyplnet-MODULES := pyplnet
409 pyplnet-SPEC := pyplnet.spec
410 ALL += pyplnet
411 IN_NODEIMAGE += pyplnet
412 IN_MYPLC += pyplnet
413 IN_BOOTCD += pyplnet
414
415 #
416 # OMF resource controller
417 #
418 omf-resctl-MODULES := omf
419 omf-resctl-SPEC := omf-resctl.spec
420 ALL += omf-resctl
421 IN_SLICEIMAGE += omf-resctl
422
423 #
424 # OMF exp controller
425 #
426 omf-expctl-MODULES := omf
427 omf-expctl-SPEC := omf-expctl.spec
428 ALL += omf-expctl
429
430 #
431 # bootcd
432 #
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
438 ALL += bootcd
439 IN_MYPLC += bootcd
440
441 #
442 # images for slices
443 #
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
449 ALL += sliceimage
450 IN_NODEIMAGE += sliceimage
451
452 #
453 # lxc-specific sliceimage initialization
454
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
460
461 #
462 # nodeimage
463 #
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
469 ALL += nodeimage
470 IN_MYPLC += nodeimage
471
472 #
473 # noderepo
474 #
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)
478 SPACE=$(subst x, ,x)
479 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
480
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
489 ALL += noderepo
490 IN_MYPLC += noderepo
491
492 #
493 # slicerepo
494 #
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)
498 SPACE=$(subst x, ,x)
499 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
500
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
509 ALL += slicerepo
510
511 #
512 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
513 #
514 myplc-MODULES := myplc
515 myplc-SPEC := myplc.spec
516 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
517 ALL += myplc
518
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
524 ALL += myplc-docs
525
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
530 ALL += release