1. 07 4月, 2010 1 次提交
  2. 05 4月, 2010 1 次提交
    • D
      Clarified error message · 1bbe12de
      David Allan 提交于
      * Since the file pattern matches RNG schemas as well as C sources, the error message should mention both.
      1bbe12de
  3. 03 4月, 2010 2 次提交
    • E
      build: improve check for out-of-date .gnulib submodule · d002c250
      Eric Blake 提交于
      git reset --hard 96e5a2d4
      ./autogen.sh
      make -s
      git pull
      make -s    <-- expecting auto-bootstrap here, doesn't happen
      
      Use git diff to expose whether the submodule has untracked changes,
      which are typical on an incremental pull if .gnulib was updated but
      the user did not manually run 'git submodule update'.
      
      After this patch is applied, I encountered a new problem when
      following the reproducing pattern.  Basically, the change to .gnulib
      between libvirt's commit 96e5a2d4 and this patch introduced a change
      to sys_ioctl.in.h, but gnulib (intentionally) does not make the
      replacement headers depend on Makefile changes.  Therefore, I ended up
      with the generated replacement header being broken:
      gnulib/lib/sys/ioctl.h complained about a use of @.  But that seems
      like something that should be fixed upstream in gnulib's bootstrap
      script (that is, when doing a gnulib update, all files created from
      .in.h file should probably be deleted).  Without the benefit of that
      proposed gnulib fix, I worked around the problem by manually removing
      the stale gnulib/lib/sys/ioctl.h.
      
      * autogen.sh (t): Also run bootstrap if the gnulib submodule needs
      to be updated.
      * cfg.mk (_autogen): Likewise.
      Reported by Matthias Bolte.
      d002c250
    • E
      build: import latest gnulib · e7168f79
      Eric Blake 提交于
      A lot of syntax check rules have to be rewritten, but the
      result is easier to maintain.  I tested each syntax rule
      by intentionally introducing a temporary violation of the rule.
      Additionally, some false positives for unmarked_diagnostics
      crept in, and an improved copyright_format test caught some bugs.
      
      * .gnulib: Update to latest.
      * cfg.mk (sc_prohibit_test_minus_ao): Delete, it was moved into
      gnulib's maint.mk.
      (sc_avoid_write, sc_prohibit_strcmp_and_strncmp)
      (sc_prohibit_asprintf, sc_prohibit_strncpy, sc_prohibit_readlink)
      (sc_prohibit_gethostname, sc_prohibit_gettext_noop)
      (sc_prohibit_VIR_ERR_NO_MEMORY, sc_prohibit_nonreentrant)
      (sc_prohibit_ctype_h, sc_TAB_in_indentation)
      (sc_avoid_ctype_macros)
      (sc_prohibit_virBufferAdd_with_string_literal)
      (sc_prohibit_gethostby, sc_copyright_format): Rewrite in terms of
      new maint.mk macros.
      (sc_libvirt_unmarked_diagnostics): Fix whitespace.
      * .x-sc_unmarked_diagnostics: New file.
      * tests/object-locking.ml: Fix copyright.
      * tools/virt-pki-validate.in: Likewise.
      * tools/virt-xml-validate.in: Likewise.
      e7168f79
  4. 01 4月, 2010 1 次提交
    • E
      build: more fallout from test -a · a792bf24
      Eric Blake 提交于
      * cfg.mk (sc_prohibit_test_minus_ao): Also check for [.
      * docs/Makefile.am (%.html, html/index.html): Avoid non-portable
      test usage.
      * libvirt.spec.in (%post): Likewise.
      * tools/virt-pki-validate.in (servercert.pem): Likewise.
      * configure.ac (LOGNAME): Use test, not [, in files processed by
      autoconf.
      Detected by Matthias Bolte.
      a792bf24
  5. 31 3月, 2010 2 次提交
  6. 27 3月, 2010 1 次提交
    • E
      build: update gnulib · f0dc84d8
      Eric Blake 提交于
      Picks up fixes for gethostname compilation problems on mingw.
      
      * .gnulib: Update to latest.
      * build-aux/.gitignore: Regenerate.
      * cfg.mk (local-checks-to-skip): Avoid new test not relevent to
      libvirt.
      f0dc84d8
  7. 26 3月, 2010 2 次提交
  8. 24 3月, 2010 1 次提交
  9. 19 3月, 2010 1 次提交
  10. 18 3月, 2010 2 次提交
  11. 11 3月, 2010 2 次提交
    • E
      build: change to gnulib module list should rerun bootstrap · 3b04f3bb
      Eric Blake 提交于
      * autogen.sh (curr_status): Also include hash of bootstrap.conf
      when checking for changes that require bootstrap rerun.
      * cfg.mk (_update_required): Likewise.
      3b04f3bb
    • E
      build: enforce preprocessor indentation · 89a08ba6
      Eric Blake 提交于
      Since cppi is not part of Fedora Core 12, the check is conditional:
      without cppi, running 'make syntax-check' merely warns:
      
      $ make sc_preprocessor_indentation
      preprocessor_indentation
      maint.mk: skipping test sc_preprocessor_indentation: cppi not installed
      
      * cfg.mk (sc_preprocessor_indentation): New syntax-check rule.
      (preprocessor_exempt): New macro, with first exemption.
      89a08ba6
  12. 02 3月, 2010 1 次提交
  13. 25 2月, 2010 1 次提交
  14. 24 2月, 2010 1 次提交
  15. 22 1月, 2010 1 次提交
  16. 18 1月, 2010 1 次提交
    • J
      gnulib added a new syntax-check test: use $(VAR), not @VAR@ · eabb98b0
      Jim Meyering 提交于
      The latter is not officially "wrong", but *is* terribly anachronistic.
      I think automake documentation or comments call that syntax obsolescent.
      * cfg.mk (_makefile_at_at_check_exceptions): Exempt @SCHEMADIR@
      and @SYSCONFDIR@ uses -- there are no Makefile variables for those.
      * docs/Makefile.am: Use $(INSTALL), not @install@.
      * examples/dominfo/Makefile.am: Similar.
      * examples/domsuspend/Makefile.am: Similar.
      * proxy/Makefile.am: Similar.
      * python/Makefile.am: Similar.
      * python/tests/Makefile.am: Similar.
      * src/Makefile.am: Similar.
      * tests/Makefile.am: Similar.
      eabb98b0
  17. 26 10月, 2009 2 次提交
  18. 01 10月, 2009 1 次提交
    • J
      Fix build in separate build directory · 3bd4c7ba
      Jiri Denemark 提交于
      * cfg.mk: use $(srcdir)/ prefix for Makefile.nonreentrant include
      * examples/domain-events/events-c/Makefile.am tools/Makefile.am
        examples/hellolibvirt/Makefile.am: extend the include paths to
        use $(top_srcdir)/include too.
      3bd4c7ba
  19. 23 9月, 2009 2 次提交
  20. 17 7月, 2009 1 次提交
    • J
      build: submodule machinery now works also when no tag is reachable · 8f84fef2
      Jim Meyering 提交于
      The code in cfg.mk to detect when the git submodule was out of date
      worked most of the time, but not when checked out in a certain way.
      * cfg.mk: Extract submodule hash from command output and file,
      and compare only that, since the format of the full line may vary.
      Reported by Mike Burns, with some diagnosis by Daniel P Berrange.
      8f84fef2
  21. 16 7月, 2009 1 次提交
  22. 10 7月, 2009 1 次提交
    • J
      build: automatically rerun ./bootstrap when needed · f272378d
      Jim Meyering 提交于
      When "git pull" (or any other operation) brings in a new version of the
      gnulib git submodule, you must rerun the autogen.sh script.  With this
      change, "make" now fails and tells you to run ./autogen.sh, when needed.
      * autogen.sh: Maintain a new file, .git-module-status, containing
      the current submodule status.  If it doesn't exist or its content
      is different from what "git submodule status" prints, then run
      ./bootstrap
      * .gitignore: Add .git-module-status
      * cfg.mk: Diagnose out of date submodule and fail.
      * README-hacking: Update not to mention bootstrap.
      * Makefile.am (MAINTAINERCLEANFILES): Add .git-module-status,
      so that "make maintainerclean" will remove it.
      f272378d
  23. 08 7月, 2009 4 次提交
    • J
      use gnumakefile and maintainer-makefile modules from gnulib · bf773e04
      Jim Meyering 提交于
      * bootstrap (modules): Add gnumakefile and maintainer-makefile.
      * GNUmakefile: Remove file, now provided by gnulib.
      * Makefile.maint: Remove.  Replaced by maint.mk from gnulib.
      .gitignore: Add GNUmakefile and maint.mk.
      * cfg.mk (prev_version_file): Disable this feature.
      Setting this to /dev/null avoids an otherwise harmless diagnostic.
      bf773e04
    • J
      skip some of gnulib's new rules · 360194bf
      Jim Meyering 提交于
      * cfg.mk (local-checks-to-skip): Add these: sc_error_message_uppercase,
      sc_program_name, sc_require_test_exit_idiom, sc_makefile_check.
      360194bf
    • J
      Prepare to use maint.mk from gnulib · c120fcc0
      Jim Meyering 提交于
      Since Makefile.maint will soon come from gnulib's maint.mk,
      sync Makefile.maint to have the same contents (modulo minor
      things).  In syncing it, we have to remove some libvirt-specific
      rules.  Since we want to keep them (of course), put those in cfg.mk.
      * Makefile.maint: Merge from gnulib's maint.mk.
      * cfg.mk (sc_avoid_write): New rule.  From Makefile.cfg.
      (sc_prohibit_strcmp_and_strncmp): Likewise, and rename.
      (sc_prohibit_asprintf, sc_prohibit_VIR_ERR_NO_MEMORY): Likewise.
      (sc_prohibit_nonreentrant): Likewise.
      (sc_prohibit_ctype_h): Likewise.
      (sc_TAB_in_indentation, sc_avoid_ctype_macros): Likewise.
      (sc_prohibit_virBufferAdd_with_string_literal): Likewise.
      (sc_prohibit_gethostby): Likewise.
      (sc_libvirt_unmarked_diagnostics): Likewise.  Also, rename the
      rule, inserting "_libvirt", since this rule is a specialization of
      the one in gnulib.
      * GNUmakefile: Include cfg.mk, not Makefile.cfg
      * .x-sc_prohibit_strcmp_and_strncmp: New file.
      * Makefile.am (EXTRA_DIST): Add .x-sc_prohibit_strcmp_and_strncmp
      c120fcc0
    • J
      * Makefile.cfg: Rename to... · 96c807fe
      Jim Meyering 提交于
      * cfg.mk: ...this.  New file.
      96c807fe
  24. 03 2月, 2009 3 次提交
    • J
      build: enable redundant-const check · dff21147
      Jim Meyering 提交于
      * Makefile.cfg (local-checks-to-skip): Remove sc_redundant_const.
      * src/lxc_controller.c: Remove redundant "const"(s).
      * src/storage_backend_fs.c: Likewise.
      * src/util.h: Likewise.
      * src/xen_internal.c: Likewise.
      * tests/qparamtest.c: Likewise.
      dff21147
    • J
      syntax-check: enable more checks · 08f87e3d
      Jim Meyering 提交于
      * Makefile.cfg (local-checks-to-skip): Don't skip sc_m4_quote_check.
      Don't skip sc_prohibit_nonreentrant.
      * Makefile.nonreentrant (NON_REENTRANT): Comment out until we've
      remove all remaining uses of strerror.
      08f87e3d
    • J
      cleanup: remove useless if-before-VIR_FREE · c18ccff4
      Jim Meyering 提交于
      * Makefile.cfg (useless_free_options): Also check for VIR_FREE.
      * src/iptables.c (iptRulesFree): Remove useless if-before-VIR_FREE.
      * src/remote_internal.c (remoteAuthSASL): Likewise.
      * src/test.c (testOpenFromFile): Likewise.
      c18ccff4
  25. 29 1月, 2009 1 次提交
  26. 21 1月, 2009 1 次提交
  27. 15 5月, 2008 1 次提交
  28. 29 4月, 2008 1 次提交