1. 22 2月, 2018 1 次提交
  2. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  3. 26 6月, 2017 1 次提交
    • A
      HACKING: Drop from the git repository · d6725518
      Andrea Bolognani 提交于
      Despite being a generated file, HACKING has been tracked in
      the git repository along with actual source files. As far as
      I'm aware, it's the only generated file for which that happens.
      
      Times and times again, people[1] have committed changes to
      the source file without refreshing the generated copy at the
      same time.
      
      The rationale for tracking the generated file is to help out
      people who just cloned the git repository looking to contribue;
      however, README-hacking already contains enough information to
      get perspective contributors to a place where they can simply
      look at docs/hacking.html instead.
      
      [1] Mostly me, to be honest
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      d6725518
  4. 23 5月, 2017 1 次提交
  5. 14 4月, 2017 1 次提交
    • A
      Drop autobuild.sh · 3bf3711a
      Andrea Bolognani 提交于
      The Test-AutoBuild project, that this script is supposed to
      be used with, hasn't seen any activity in ~6 years; libvirt's
      own CI is running on Jenkins with a completely independent
      setup that doesn't use the script at all.
      3bf3711a
  6. 11 1月, 2017 2 次提交
    • A
      NEWS: Reformat at generation time · 6a5b3127
      Andrea Bolognani 提交于
      Instead of encoding formatting information inside the
      corresponding XSLT stylesheet, use a Python script to reformat
      the text appropriately based on a few simple markers.
      
      Splitting the task between the XSLT stylesheet and the Python
      script allows us to keep both parts very simple.
      6a5b3127
    • A
      NEWS: Improve building pipeline · be36ea4b
      Andrea Bolognani 提交于
      Currently, building the NEWS file involves using a XSLT stylesheet
      to extract information from the same HTML file that's used on the
      libvirt website.
      
      The process works, but it's quite fiddly in that it requires the
      source HTML to be formatted in a very precise way, and a single
      missing newline can mess up the resulting plain text considerably.
      
      Moreover, the XSLT stylesheet itself encodes a lot of the details
      of converting to plain text in a way that's not necessarily easy
      to understand, tweak or fix.
      
      To improve the process, move all existing entries to a new XML
      file that contains exactly the information we care about in a
      simple structured format, and start generating both the HTML and
      plain text versions of the release notes using XSLT stylesheets
      that can now afford to be almost trivial.
      be36ea4b
  7. 30 6月, 2016 1 次提交
  8. 26 6月, 2016 1 次提交
  9. 24 6月, 2016 1 次提交
    • J
      build: increase xz compression level · b7200d72
      Ján Tomko 提交于
      Increase the default compression level to 9 from 6.
      
      This also increases decompression memory requirements
      from 9 MB to 65 MB.
      
      Also turn on verbosity.
      b7200d72
  10. 16 6月, 2016 1 次提交
  11. 14 5月, 2016 1 次提交
    • M
      tests: Introduce check-file-access.pl · 4b3a46ca
      Michal Privoznik 提交于
      This script will check output generated by virtestmock against a
      white list. All non matching records found are printed out. So
      far, the white list is rather sparse at the moment.
      This test should be ran only after all other tests finished, and
      should cleanup the temporary file before their execution. Because
      I'm unable to reflect these requirements in Makefile.am
      correctly, I've introduced new target 'check-access' under which
      this test is available.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      4b3a46ca
  12. 26 4月, 2016 1 次提交
  13. 21 4月, 2016 1 次提交
  14. 15 4月, 2016 1 次提交
    • E
      makefile: Move include/Makefile.am to include/libvirt/Makefile.am · ab517a5c
      Erik Skultety 提交于
      The reason for this is to fix the automatic rebuild of libvirt-common.h.in.
      All *.in files should be automatically rebuilt each time they're modified.
      It works well for makefiles and pkgconfig files, since they do have a valid
      dependency in the top-level Makefile. However, with libvirt-common.h.in
      there is no dependency in the top-level Makefile and there's no need for it
      either, so this rule
      
      include/libvirt/libvirt-common.h: $(top_builddir)/config.status \
              $(top_srcdir)/include/libvirt/libvirt-common.h.in
          cd $(top_builddir) && $(SHELL) ./config.status $@
      
      is never hit and should be moved to include/Makefile, but that's automake's
      job. According to GNU automake docs:
      
      "Files created by AC_CONFIG_FILES, be they
      Automake Makefiles or not, are all removed by ‘make distclean’. Their inputs
      are automatically distributed, unless they are the output of prior
      AC_CONFIG_FILES commands. Finally, rebuild rules are generated in the Automake
      Makefile existing in the subdirectory of the output file, if there is one, or
      in the top-level Makefile otherwise."
      
      Which means that if we want to have the rule for libvirt-common.h automatically
      generated by automake, the include/Makefile.am needs to be moved into libvirt/
      subdirectory and $SUBDIRS in the top-level Makefile need to be adjusted as
      well. This patch moves Makefile.am from include/ to include/libvirt, adjusting
      the prefixes accordingly as well as updates the top-level Makefile $SUBDIRS to
      properly hint automake to generate all rules at proper places.
      
      Best way to see the changes, use -M with 'git show'.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      ab517a5c
  15. 13 1月, 2016 1 次提交
  16. 10 1月, 2016 1 次提交
    • C
      examples: Use one top level makefile · da176bf6
      Cole Robinson 提交于
      Using one Makefile per example subdirectory essentially serializes 'make'
      calls. Convert to one example/Makefile that builds and distributes
      all the subdir files. This reduces example/ rebuild time from about 5.8
      seconds to 1.5 seconds on my machine.
      
      One slight difference is that we no longer ship Makefile.am with the
      examples in the rpm. This was virtually useless anyways since the Makefile
      was very specific to libvirt infrastructure, so wasn't generically
      reusable anyways.
      
      Tested with 'make distcheck' and 'make rpm'
      da176bf6
  17. 07 9月, 2015 1 次提交
  18. 04 9月, 2015 1 次提交
    • J
      examples: Add example polkit ACL rules · 29b51674
      Jiri Denemark 提交于
      Creating ACL rules is not exactly easy and existing examples are pretty
      simple. This patch adds a somewhat complex example which defines several
      roles. Admins can do everything, operators can do basic operations
      on any domain and several groups of users who act as operators but only
      on a limited set of domains.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      29b51674
  19. 28 6月, 2015 1 次提交
  20. 16 6月, 2015 3 次提交
    • M
      Revert "Example virt-admin" · 220393bf
      Martin Kletzander 提交于
      This reverts commit 4e7ccf87.
      
      I mistakenly pushed it along with the Admin API series.
      220393bf
    • M
      Example virt-admin · 4e7ccf87
      Martin Kletzander 提交于
      You had only one job.  That's what you can say about this example
      binary.  In future, parts of virsh that are usable for this binary
      should be split into separate shell-utils and virt-admin should gain all
      the cool features of virsh without too much code addition.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      4e7ccf87
    • M
      Add libvirt-admin library · 55e0c840
      Martin Kletzander 提交于
      Initial scratch of the admin library.  It has its own virAdmConnectPtr
      that inherits from virAbstractConnectPtr and thus trivially supports
      error reporting.
      
      There's pkg-config file added and spec-file adjusted as well.
      
      Since the library should be "minimalistic" and not depend on any other
      library, the list of files is especially crafted for it.  Most of them
      could've been put to it's own sub-libraries that would be LIBADD'd to
      libvirt_util, libvirt_net_rpc and libvirt_setuid_rpc_client to minimize
      the number of object files being built, but that's a refactoring that
      isn't the orginal aim of this commit.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      55e0c840
  21. 18 7月, 2014 1 次提交
    • M
      examples: Introduce domtop · 28d54aab
      Michal Privoznik 提交于
      There's this question on the list that is asked over and over again.
      How do I get {cpu, memory, ...} usage in percentage? Or its modified
      version: How do I plot nice graphs like virt-manager does?
      
      It would be nice if we have an example to inspire people. And that's
      what domtop should do. Yes, it could be written in different ways, but
      I've chosen this one as I think it show explicitly what users need to
      implement in order to imitate virt-manager's graphing.
      
      Note: The usage is displayed from host perspective. That is, how much
      host CPUs the domain is using. But it should be fairly simple to
      switch do just guest CPU usage if needed.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      28d54aab
  22. 23 6月, 2014 1 次提交
  23. 18 6月, 2014 1 次提交
  24. 30 4月, 2014 1 次提交
  25. 21 1月, 2014 1 次提交
    • Y
      Introduce Libvirt Wireshark dissector · 4f32c5f7
      Yuto KAWAMURA(kawamuray) 提交于
      Introduce Wireshark dissector plugin which adds support to Wireshark
      for dissecting libvirt RPC protocol.
      Added following files to build Wireshark dissector from libvirt source
      tree.
      * tools/wireshark/*: Source tree of Wireshark dissector plugin.
      
      Added followings to configure.ac or Makefile.am.
      configure.ac
      * --with-wireshark-dissector: Enable support for building Wireshark
        dissector.
      * --with-ws-plugindir: Specify wireshark plugin directory that dissector
        will installed.
      * Added tools/wireshark/{Makefile,src/Makefile} to  AC_CONFIG_FILES.
      Makefile.am
      * Added tools/wireshark/ to SUBDIR.
      4f32c5f7
  26. 25 12月, 2013 1 次提交
  27. 14 12月, 2013 1 次提交
  28. 05 12月, 2013 1 次提交
    • P
      examples: Remove broken bad example · 5eb4b042
      Peter Krempa 提交于
      The domsuspend example code is a really old and bad exmample of (how not
      to use) the libvirt API. Remove it as it's apparent that nobody tried to
      use it. It was broken and nobody complained.
      5eb4b042
  29. 26 11月, 2013 2 次提交
  30. 21 10月, 2013 1 次提交
    • D
      Don't link virt-login-shell against libvirt.so (CVE-2013-4400) · 3e2f27e1
      Daniel P. Berrange 提交于
      The libvirt.so library has far too many library deps to allow
      linking against it from setuid programs. Those libraries can
      do stuff in __attribute__((constructor) functions which is
      not setuid safe.
      
      The virt-login-shell needs to link directly against individual
      files that it uses, with all library deps turned off except
      for libxml2 and libselinux.
      
      Create a libvirt-setuid-rpc-client.la library which is linked
      to by virt-login-shell. A config-post.h file allows this library
      to disable all external deps except libselinux and libxml2.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      3e2f27e1
  31. 17 10月, 2013 1 次提交
    • G
      build: use the gnulib version of the .m4 files when present · 70dadfa7
      Giuseppe Scrivano 提交于
      prevent aclocal from preferring .m4 files under m4/ over the version
      provided by gnulib, by using only one directory.
      
      I have noticed this after './configure --help' gave me two different
      versions of "--enable-threads".  This was caused by aclocal that
      preferred the version of lock.m4 provided by autopoint instead of
      using the newer version distributed with gnulib.
      
      Having two different directories made sense back when we checked
      gnulib files into libvirt.git, but that was ages ago.
      Signed-off-by: NGiuseppe Scrivano <gscrivan@redhat.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      70dadfa7
  32. 24 9月, 2013 1 次提交
    • E
      build: ensure 'make check' sees up-to-date config.h · b0d9207b
      Eric Blake 提交于
      Nehal J. Wani reported on IRC a rather interesting build failure:
      
      In file included from util/virnetdevbridge.c:53:0:
      /usr/include/linux/in6.h:30:8: error: redefinition of 'struct in6_addr'
       struct in6_addr {
              ^
      
      I traced it to the fact that he ran 'git pull; make check' across
      commit e62e0094.  What happened is that the configure changes
      result in a new variable that was set to be defined on his system,
      but config.h was not regenerated to contain the value of that
      variable.  Running 'make' instead of 'make check' cleaned up the
      problem.  A bit more investigation, and I see that in Makefile.am,
      automake sticks rules that rebuild config.h as part of 'make all',
      and that we also had a dependency 'check-local: all'; BUT the
      rule for check-local is run only at the point when the top-level
      directory is visited.  Automake documents that SUBDIRS should
      contain an explicit '.' at the point the top-level should be
      visited (defaulting to last, if it doesn't appear).  Sure enough,
      with this patch, 'make check' now does the top-level 'all' rules,
      which regenerates 'config.h' BEFORE compiling any code that might
      depend on changed content of that file.
      
      * Makefile.am (SUBDIRS): Put '.' first, not last.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      b0d9207b
  33. 19 7月, 2013 1 次提交
    • E
      maint: split long lines in Makefiles · d21d40bf
      Eric Blake 提交于
      Makefiles are another easy file to enforce line limits.
      
      Mostly straightforward; interesting tricks worth noting:
      src/Makefile.am: $(confdir) was already defined, use it in more places
      tests/Makefile.am: path_add and VG required some interesting compression
      
      * cfg.mk (sc_prohibit_long_lines): Add another test.
      * Makefile.am: Fix offenders.
      * daemon/Makefile.am: Likewise.
      * docs/Makefile.am: Likewise.
      * python/Makefile.am: Likewise.
      * src/Makefile.am: Likewise.
      * tests/Makefile.am: Likewise.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      d21d40bf
  34. 21 5月, 2013 1 次提交
    • E
      maint: use LGPL correctly · d7f53c7b
      Eric Blake 提交于
      Several files called out COPYING or COPYING.LIB instead of using
      the normal boilerplate.  It's especially important that we don't
      call out COPYING from an LGPL file, since COPYING is traditionally
      used for the GPL.  A few files were lacking copyright altogether.
      
      * src/rpc/gendispatch.pl: Add missing copyright.
      * Makefile.nonreentrant: Likewise.
      * src/check-symfile.pl: Likewise.
      * src/check-symsorting.pl: Likewise.
      * src/driver.h: Likewise.
      * src/internal.h: Likewise.
      * tools/libvirt-guests.sh.in: Likewise.
      * tools/virt-pki-validate.in: Mention copyright in comment, not just code.
      * tools/virt-sanlock-cleanup.in: Likewise.
      * src/rpc/genprotocol.pl: Spell out license terms.
      * src/xen/xend_internal.h: Likewise.
      * src/xen/xend_internal.c: Likewise.
      * Makefile.am: Likewise.
      * daemon/Makefile.am: Likewise.
      * docs/Makefile.am: Likewise.
      * docs/schemas/Makefile.am: Likewise.
      * examples/apparmor/Makefile.am: Likewise.
      * examples/domain-events/events-c/Makefile.am: Likewise.
      * examples/dominfo/Makefile.am: Likewise.
      * examples/domsuspend/Makefile.am: Likewise.
      * examples/hellolibvirt/Makefile.am: Likewise.
      * examples/openauth/Makefile.am: Likewise.
      * examples/python/Makefile.am: Likewise.
      * examples/systemtap/Makefile.am: Likewise.
      * examples/xml/nwfilter/Makefile.am: Likewise.
      * gnulib/lib/Makefile.am: Likewise.
      * gnulib/tests/Makefile.am: Likewise.
      * include/Makefile.am: Likewise.
      * include/libvirt/Makefile.am: Likewise.
      * python/Makefile.am: Likewise.
      * python/tests/Makefile.am: Likewise.
      * src/Makefile.am: Likewise.
      * tests/Makefile.am: Likewise.
      * tools/Makefile.am: Likewise.
      * configure.ac: Likewise.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      d7f53c7b
  35. 18 12月, 2012 1 次提交
    • J
      build: Fix AUTHORS generation · 7f193f1f
      Jiri Denemark 提交于
      Using s/#authorslist#/$$out/ makes perl eat @domain part of all email
      addresses from $out since it tries to interpret them as array variables.
      I'm not sure if we can escape those in s/// but I know we can use print:
      
          s/#authorslist#// and print '$$out'
      
      to tell perl not to even look inside $out.
      
      This patch also fixes gen-AUTHORS so that it works in VPATH.
      7f193f1f
  36. 12 12月, 2012 1 次提交
    • E
      maint: mention when HACKING is rebuilt during make · cdf1a372
      Eric Blake 提交于
      I noticed that on Fedora 18, xlstproc decides to regenerate
      HACKING with additional whitespace.  I haven't figured out why
      that is happening (although fixing it would probably be a task
      for xlstproc), but in the process of investigating, I noticed
      that 'make HACKING' was completely silent, for no good reason.
      
      * Makefile.am (gen-ChangeLog, gen-AUTHORS, NEWS)
      ($(top_srcdir)/HACKING): Mention which files we are generating.
      cdf1a372