1. 05 4月, 2019 1 次提交
  2. 15 3月, 2019 1 次提交
  3. 10 1月, 2019 1 次提交
  4. 08 1月, 2019 2 次提交
    • E
      examples: Avoid gnulib, have standalone examples · acf522e8
      Eric Blake 提交于
      Commit 0c6ad476 updated gnulib, which rearranged some of the
      conditions in gnulib wrapper headers such that compilation
      started failing on BSD systems when the normal system <unistd.h>
      tried to include another system header but instead got a
      gnulib wrapper header in an incomplete state; this is because
      gnulib headers only work if <config.h> is included first.
      
      Commit b6f78259 papered over the symptoms of that by including
      <config.h> in all the examples.  But this logic is backwards -
      if our examples are truly meant to be stand-alone, they should
      NOT depend on how libvirt was configured, and should NOT
      depend on the gnulib fixes for system quirks.  In particular,
      if an example does not need to link against libgnulib.la,
      then it also does not need to use -Ignulib in its compile
      flags, and likewise does not need to include <config.h> since
      none of the gnulib wrapper headers should be interfering.
      
      So, revert (most of) b6f78259 (except for the bogus pre-patch
      use of "config.h" in admin/logging.c: if config.h is included,
      it should be via <> rather than "", and must be before any
      system headers); then additionally nuke all mention of
      <config.h>, -Ignulib, and -llibgnu.la, making all of the
      examples truly standalone.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      acf522e8
    • E
      maint: Prefer AM_CPPFLAGS over INCLUDES · 1862a554
      Eric Blake 提交于
      Our use of INCLUDES in Makefile.am hearkens back to when we had to
      cater to automake 1.9.6 (thanks, RHEL 5) which lacked AM_CPPFLAGS.
      Modern Automake flags a warning that INCLUDES is deprecated, and
      now that we mandate RHEL 7 or better (see commit c1bc9c66), we no
      longer have to cater to the old spelling.  This change will also
      make it easier to do per-binary CPPFLAGS.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      1862a554
  5. 14 11月, 2018 2 次提交
  6. 20 12月, 2017 1 次提交
    • C
      virt-aa-helper: handle more disk images · 0f33025a
      Cédric Bosdonnat 提交于
      virt-aa-helper needs read access to the disk image to resolve symlinks
      and add the proper rules to the profile. Its profile whitelists a few
      common paths, but users can place their images anywhere.
      
      This commit helps users allowing access to their images by adding their
      own rules in apparmor.d/local/usr.lib.libvirt.virt-aa-helper.
      
      This commit also adds rules to allow reading files named:
        - *.raw as this is a rather common disk image extension
        - /run/libvirt/**[vd]d[a-z] as these are used by virt-sandbox
      0f33025a
  7. 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
  8. 15 12月, 2016 1 次提交
  9. 10 10月, 2016 1 次提交
  10. 26 6月, 2016 1 次提交
    • E
      examples: admin: Add some examples for the new admin APIs · fbb8205d
      Erik Skultety 提交于
      Some of the examples make use of asprintf and strtol functions (to keep
      things simple) which are prohibited to use within our code (enforced by
      syntax-check). Therefore besides adding some examples, this patch also updates
      cfg.mk to exclude examples directory from asprintf and strtol rules, as well as
      updates .gitignore to exclude all the new admin binaries created in the
      'examples' dir.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      fbb8205d
  11. 20 4月, 2016 1 次提交
    • M
      examples: Try harder to uninstall nwfilter · 25866ec6
      Michal Privoznik 提交于
      We have this code in our Makefile that tries to remove
      /etc/libvirt/nwfilter if directory is left empty after all our
      example nwfilters were uninstalled. However, the check for that
      is missing quotation marks thus rendering the test useless:
      
      test -z allow-arp.xml allow-dhcp-server.xml .. qemu-announce-self.xml || \
        rmdir "/some/path/libvirt.git/_install/etc/libvirt/nwfilter"
      /bin/sh: line 0: test: too many arguments
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      25866ec6
  12. 18 4月, 2016 1 次提交
  13. 13 1月, 2016 1 次提交
  14. 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