~ubuntu-branches/ubuntu/oneiric/libvirt/oneiric-updates

« back to all changes in this revision

Viewing changes to cfg.mk

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2011-05-11 12:29:51 UTC
  • mfrom: (1.2.10) (3.4.30 sid)
  • Revision ID: package-import@ubuntu.com-20110511122951-ku5fk1tv37o5aymm
Tags: 0.9.1-1ubuntu1
* Resynchronize and merge from Debian unstable (LP: #794378). Remaining
  changes:
  - debian/control:
    * set X-Python-Version to 2.7, as 2.6 is not in oneiric.
    * set ubuntu maintainer
    * Build-Depends:
      - remove [linux-any] from all dependencies
      - remove [!linux-any] deps
      - swap libxen to libxen3, qemu to qemu-kvm, and open-iscsi to
        open-iscsi-utils in Build-Depends
      - remove virtualbox-ose Build-Depends
      - add parted and libapparmor-dev Build-Depends
    * convert Vcs-Git to Xs-Debian-Vcs-Git
    * libvirt-bin Depends: move netcat-openbsd, bridge-utils, dnsmasq-base
      (>= 2.46-1), and iptables from Recommends to Depends
    * libvirt-bin Recommends: move qemu to Suggests
    * libvirt-bin Suggests: add apparmor
    * libvirt0 Recommands: move lvm2 to Suggests
  - keep debian/libvirt-bin.apport
  - keep debian/libvirt-bin.cron.daily
  - debian/libvirt-bin.dirs:
    * add apparmor, cron.daily, and apport dirs
  - debian/libvirt-bin.examples:
    * add debian/libvirt-suspendonreboot
  - debian/libvirt-bin.install:
    * add /etc/apparmor.d files
    * add apport hook
  - debian/libvirt-bin.manpages:
    * add debian/libvirt-migrate-qemu-disks.1
  - debian/libvirt-bin.postinst:
    * replace libvirt groupname with libvirtd
    * add each admin user to libvirtd group
    * call apparmor_parser on usr.sbin.libvirtd and
      usr.lib.libvirt.virt-aa-helper
    * call 'libvirt-migrate-qemu-disks -a' after
      libvirt-bin has started if migrating from
      older than 0.8.3-1ubuntu1
  - debian/libvirt-bin.postrm:
    * replace libvirt groupname with libvirtd
    * remove usr.sbin.libvirtd and
      usr.lib.libvirt.virt-aa-helper
  - keep added files under debian/:
    * libvirt-bin.upstart
    * libvirt-migrate-qemu-disks
    * libvirt-migrate-qemu-disks.1
    * libvirt-suspendonreboot
    * apparmor profiles
  - debian/README.Debian:
    * add 'Apparmor Profile' section
    * add 'Disk migration' section
  - debian/rules:
    * move include of debhelper.mk to top of file so DEB_HOST_ARCH_OS
      is defined.
    * don't build with vbox since virtualbox-ose is in universe
      - remove WITH_VBOX, add explicit --without-vbox
    * add --with-apparmor to DEB_CONFIGURE_EXTRA_FLAGS
    * set DEB_DH_INSTALLINIT_ARGS to '--upstart-only'
    * remove unneeded binary-install/libvirt-bin:: and clean::
      sections (they only deal with sysvinit stuff)
    * add build/libvirt-bin:: section to install
      - apparmor files
      - apport hooks
      - libvirt-migrate-qemu-disks
* debian/patches/series:
  - don't apply Disable-CHECKSUM-rule.patch: our iptables can do this
  - don't apply Debian-specific Debianize-libvirt-guests.patch (sysvinit only)
  - don't apply Disable qemu-disable-network.diff.patch
* debian/patches:
  - drop 9007-fix-daemon-conf-ftbfs.patch (looks like it may be fixed)
  - drop patches applied upstream:
    * 9022-drop-booton-when-kernel-specified.patch
    * 9023-fix-lxc-console-hangup.patch
    * 9024-fix-broken-commandtest.patch
    * 9025-Pass-virSecurityManagerPtr-to-virSecurityDAC-Set-Res.patch
    * 9026-security-avoid-memory-leak.patch
    * 9027-CVE-2011-1146.patch
  - keep patches:
    * 9000-delayed_iff_up_bridge.patch
    * 9001-dont_clobber_existing_bridges.patch
    * 9002-better_default_uri_virsh.patch
    * 9003-better-default-arch.patch
    * 9004-libvirtd-group-name.patch
    * 9005-increase-unix-socket-timeout.patch
    * 9006-default-config-test-case.patch
    * 9011-move-ebtables-script.patch (refreshed)
    * 9014-skip-nodeinfotest.patch (modified to make it apply)
    * 9020-lp545795.patch (modified to make it still apply)
    * 9021-fix-uint64_t.patch
    * 9022-allows-lxc-containers-with-lxcguest.patch (renamed, modified
      to make it still apply, and added DEP-3 tags).
  - new patches:
    * 9023-disable-test-poll.patch - don't run broken test-poll

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
  sc_useless_cpp_parens
67
67
 
68
68
# Files that should never cause syntax check failures.
69
 
VC_LIST_ALWAYS_EXCLUDE_REGEX = ^docs/news.html.in$$
 
69
VC_LIST_ALWAYS_EXCLUDE_REGEX = ^(HACKING|docs/news\.html\.in)$$
70
70
 
71
71
# Functions like free() that are no-ops on NULL arguments.
72
72
useless_free_options =                          \
73
73
  --name=VIR_FREE                               \
 
74
  --name=qemuCapsFree                           \
74
75
  --name=sexpr_free                             \
75
76
  --name=virBitmapFree                          \
76
77
  --name=virCPUDefFree                          \
106
107
  --name=virDomainSoundDefFree                  \
107
108
  --name=virDomainVideoDefFree                  \
108
109
  --name=virDomainWatchdogDefFree               \
 
110
  --name=virHashFree                            \
109
111
  --name=virInterfaceDefFree                    \
110
112
  --name=virInterfaceIpDefFree                  \
111
113
  --name=virInterfaceObjFree                    \
256
258
        halt='use virCommand for child processes'                       \
257
259
          $(_sc_search_regexp)
258
260
 
 
261
# access with X_OK accepts directories, but we can't exec() those.
 
262
# access with F_OK or R_OK is okay, though.
 
263
sc_prohibit_access_xok:
 
264
        @prohibit='access''(at)? *\(.*X_OK'                             \
 
265
        halt='use virFileIsExecutable instead of access''(,X_OK)'       \
 
266
          $(_sc_search_regexp)
 
267
 
259
268
# Similar to the gnulib maint.mk rule for sc_prohibit_strcmp
260
269
# Use STREQLEN or STRPREFIX rather than comparing strncmp == 0, or != 0.
261
270
sc_prohibit_strncmp:
325
334
# Ensure that no C source file, docs, or rng schema uses TABs for
326
335
# indentation.  Also match *.h.in files, to get libvirt.h.in.  Exclude
327
336
# files in gnulib, since they're imported.
 
337
space_indent_files=(\.(rng|s?[ch](\.in)?|html.in|py)|(daemon|tools)/.*\.in)
328
338
sc_TAB_in_indentation:
329
339
        @prohibit='^ *  '                                               \
330
 
        in_vc_files='(\.(rng|[ch](\.in)?|html.in)|(daemon|tools)/.*\.in)$$' \
331
 
        halt='use leading spaces, not TAB, in C, sh, html, and RNG schemas' \
 
340
        in_vc_files='$(space_indent_files)$$'                           \
 
341
        halt='indent with space, not TAB, in C, sh, html, py, and RNG schemas' \
332
342
          $(_sc_search_regexp)
333
343
 
334
344
ctype_re = isalnum|isalpha|isascii|isblank|iscntrl|isdigit|isgraph|islower\
339
349
        halt="don't use ctype macros (use c-ctype.h)"                   \
340
350
          $(_sc_search_regexp)
341
351
 
 
352
sc_avoid_strcase:
 
353
        @prohibit='\bstrn?case(cmp|str) *\('                            \
 
354
        halt="don't use raw strcase functions (use c-strcase instead)"  \
 
355
          $(_sc_search_regexp)
 
356
 
342
357
sc_prohibit_virBufferAdd_with_string_literal:
343
358
        @prohibit='\<virBufferAdd *\([^,]+, *"[^"]'                     \
344
359
        halt='use virBufferAddLit, not virBufferAdd, with a string literal' \
365
380
msg_gen_function =
366
381
msg_gen_function += ESX_ERROR
367
382
msg_gen_function += ESX_VI_ERROR
 
383
msg_gen_function += PHYP_ERROR
 
384
msg_gen_function += VIR_ERROR
 
385
msg_gen_function += VIR_ERROR0
 
386
msg_gen_function += VMX_ERROR
 
387
msg_gen_function += XENXS_ERROR
 
388
msg_gen_function += eventReportError
 
389
msg_gen_function += ifaceError
 
390
msg_gen_function += interfaceReportError
 
391
msg_gen_function += iptablesError
 
392
msg_gen_function += lxcError
 
393
msg_gen_function += libxlError
368
394
msg_gen_function += macvtapError
369
 
msg_gen_function += remoteError
370
 
msg_gen_function += lxcError
371
 
msg_gen_function += networkLog
372
395
msg_gen_function += networkReportError
373
 
msg_gen_function += oneError
 
396
msg_gen_function += nodeReportError
374
397
msg_gen_function += openvzError
 
398
msg_gen_function += pciReportError
375
399
msg_gen_function += qemuReportError
376
400
msg_gen_function += qemudDispatchClientFailure
377
401
msg_gen_function += regerror
 
402
msg_gen_function += remoteError
378
403
msg_gen_function += remoteDispatchFormatError
 
404
msg_gen_function += statsError
 
405
msg_gen_function += streamsReportError
 
406
msg_gen_function += usbReportError
379
407
msg_gen_function += umlReportError
380
408
msg_gen_function += vah_error
381
409
msg_gen_function += vah_warning
382
410
msg_gen_function += vboxError
383
411
msg_gen_function += virCommandError
384
412
msg_gen_function += virConfError
 
413
msg_gen_function += virCPUReportError
 
414
msg_gen_function += virEventError
385
415
msg_gen_function += virDomainReportError
 
416
msg_gen_function += virGenericReportError
386
417
msg_gen_function += virHashError
 
418
msg_gen_function += virHookReportError
 
419
msg_gen_function += virInterfaceReportError
 
420
msg_gen_function += virJSONError
387
421
msg_gen_function += virLibConnError
388
422
msg_gen_function += virLibDomainError
 
423
msg_gen_function += virLibDomainSnapshotError
 
424
msg_gen_function += virLibInterfaceError
 
425
msg_gen_function += virLibNetworkError
 
426
msg_gen_function += virLibNodeDeviceError
 
427
msg_gen_function += virLibNWFilterError
 
428
msg_gen_function += virLibSecretError
 
429
msg_gen_function += virLibStoragePoolError
 
430
msg_gen_function += virLibStorageVolError
389
431
msg_gen_function += virNetworkReportError
390
432
msg_gen_function += virNodeDeviceReportError
 
433
msg_gen_function += virNWFilterReportError
391
434
msg_gen_function += virRaiseError
392
435
msg_gen_function += virReportErrorHelper
393
436
msg_gen_function += virReportSystemError
 
437
msg_gen_function += virSecretReportError
394
438
msg_gen_function += virSecurityReportError
395
439
msg_gen_function += virSexprError
 
440
msg_gen_function += virSmbiosReportError
 
441
msg_gen_function += virSocketError
 
442
msg_gen_function += virStatsError
396
443
msg_gen_function += virStorageReportError
 
444
msg_gen_function += virUtilError
397
445
msg_gen_function += virXMLError
398
446
msg_gen_function += virXenInotifyError
399
447
msg_gen_function += virXenStoreError
402
450
msg_gen_function += xenapiSessionErrorHandler
403
451
msg_gen_function += xenUnifiedError
404
452
msg_gen_function += xenXMError
405
 
msg_gen_function += VIR_ERROR
406
 
msg_gen_function += VIR_ERROR0
407
453
 
408
454
# Uncomment the following and run "make syntax-check" to see diagnostics
409
455
# that are not yet marked for translation, but that need to be rewritten
478
524
        halt='do not mark these strings for translation'                \
479
525
          $(_sc_search_regexp)
480
526
 
481
 
# Ensure that the syntax_check_exceptions file list in Makefile.am
482
 
# stays in sync with corresponding files in the repository.
483
 
sce = syntax_check_exceptions
484
 
sc_x_sc_dist_check:
485
 
        @test "$$( ($(VC_LIST) | sed -n '/\.x-sc_/p'                    \
486
 
                     | sed 's|^$(_dot_escaped_srcdir)/||';              \
487
 
                   sed -n '/^$(sce) =[   ]*\\$$/,/[^\]$$/p'             \
488
 
                     $(srcdir)/Makefile.am                              \
489
 
                       | sed 's/^  *//;/^$(sce) =/d'                    \
490
 
                       | tr -s '\012\\' '  ' | fmt -1                   \
491
 
                   ) | sort | uniq -u)"                                 \
492
 
          && { echo 'Makefile.am: $(sce) mismatch' >&2; exit 1; } || :;
493
 
 
494
527
# We don't use this feature of maint.mk.
495
528
prev_version_file = /dev/null
496
529
 
547
580
 
548
581
# regenerate HACKING as part of the syntax-check
549
582
syntax-check: $(top_srcdir)/HACKING
 
583
 
 
584
# List all syntax-check exemptions:
 
585
exclude_file_name_regexp--sc_avoid_strcase = ^tools/virsh\.c$$
 
586
 
 
587
_src1=libvirt|fdstream|qemu/qemu_monitor|util/(command|util)|xen/xend_internal
 
588
exclude_file_name_regexp--sc_avoid_write = \
 
589
  ^(src/($(_src1))|daemon/libvirtd|tools/console)\.c$$
 
590
 
 
591
exclude_file_name_regexp--sc_bindtextdomain = ^(tests|examples)/
 
592
 
 
593
exclude_file_name_regexp--sc_po_check = ^docs/
 
594
 
 
595
exclude_file_name_regexp--sc_prohibit_VIR_ERR_NO_MEMORY = \
 
596
  ^(include/libvirt/virterror\.h|daemon/dispatch\.c|src/util/virterror\.c)$$
 
597
 
 
598
exclude_file_name_regexp--sc_prohibit_access_xok = ^src/util/util\.c$$
 
599
 
 
600
exclude_file_name_regexp--sc_prohibit_always_true_header_tests = \
 
601
  (^docs|^python/(libvirt-override|typewrappers)\.c$$)
 
602
 
 
603
exclude_file_name_regexp--sc_prohibit_asprintf = \
 
604
  ^(bootstrap.conf$$|po/|src/util/util\.c$$|examples/domain-events/events-c/event-test\.c$$)
 
605
 
 
606
exclude_file_name_regexp--sc_prohibit_can_not = ^po/
 
607
 
 
608
exclude_file_name_regexp--sc_prohibit_close = \
 
609
  (\.py$$|^docs/|(src/util/files\.c|src/libvirt\.c)$$)
 
610
 
 
611
exclude_file_name_regexp--sc_prohibit_doubled_word = ^po/
 
612
 
 
613
exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
 
614
  (^docs/api_extension/|^tests/qemuhelpdata/|\.(gif|ico|png)$$)
 
615
 
 
616
_src2=src/(util/util|libvirt|lxc/lxc_controller)
 
617
exclude_file_name_regexp--sc_prohibit_fork_wrappers = \
 
618
  (^docs|^($(_src2)|tests/testutils|daemon/libvirtd)\.c$$)
 
619
 
 
620
exclude_file_name_regexp--sc_prohibit_gethostname = ^src/util/util\.c$$
 
621
 
 
622
exclude_file_name_regexp--sc_prohibit_gettext_noop = ^docs/
 
623
 
 
624
exclude_file_name_regexp--sc_prohibit_nonreentrant = \
 
625
  ^((po|docs|tests)/|tools/(virsh|console)\.c$$)
 
626
 
 
627
exclude_file_name_regexp--sc_prohibit_readlink = ^src/util/util\.c$$
 
628
 
 
629
exclude_file_name_regexp--sc_prohibit_sprintf = ^(docs/|HACKING$$)
 
630
 
 
631
exclude_file_name_regexp--sc_prohibit_strncpy = \
 
632
  ^(src/util/util|tools/virsh)\.c$$
 
633
 
 
634
exclude_file_name_regexp--sc_prohibit_xmlGetProp = ^src/util/xml\.c$$
 
635
 
 
636
exclude_file_name_regexp--sc_require_config_h = ^examples/
 
637
 
 
638
exclude_file_name_regexp--sc_require_config_h_first = ^examples/
 
639
 
 
640
exclude_file_name_regexp--sc_trailing_blank = (^docs/|\.(fig|gif|ico|png)$$)
 
641
 
 
642
exclude_file_name_regexp--sc_unmarked_diagnostics = \
 
643
  ^(docs/apibuild.py|tests/virt-aa-helper-test)$$