1. 09 10月, 2019 1 次提交
  2. 07 10月, 2019 2 次提交
  3. 24 9月, 2019 1 次提交
    • D
      build: force a UTF-8 locale for python · ada26801
      Daniel P. Berrangé 提交于
      Python3 versions less than 3.7 have very unhelpful handling
      of the C locale where they assume data is 7-bit only. This
      violates POSIX which requires the C locale to be 8-bit clean.
      Python3 >= 3.7 now assumes that the C locale is always UTF-8.
      
      Set env variables to force LC_CTYPE to en_US.UTF-8 so that
      we get UTF-8 handling on all python versions. Note we do
      not use C.UTF-8 since not all C libraries support that.
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      ada26801
  4. 22 8月, 2019 3 次提交
  5. 14 8月, 2019 1 次提交
  6. 10 5月, 2019 1 次提交
  7. 07 5月, 2019 1 次提交
  8. 12 4月, 2019 1 次提交
    • D
      tests: add targets for building libvirt inside Docker containers · 89f8902a
      Daniel P. Berrangé 提交于
      The Travis CI system uses Docker containers for its build environment.
      These are pre-built and hosted under quay.io/libvirt so that developers
      can use them for reproducing problems locally.
      
      Getting the right Docker command syntax to use them, however, is not
      entirely easy. This patch addresses that usability issue by introducing
      some make targets. To run a simple build (aka 'make all') using the
      Fedora 28 container:
      
         make ci-build@fedora-28
      
      To also run unit tests
      
         make ci-check@fedora-28
      
      This is just syntax sugar for calling the previous command with a
      custom make target
      
         make ci-build@fedora-28 CI_MAKE_ARGS="check"
      
      To do a purely interactive build it is possible to request a shell
      
         make ci-shell@fedora-28
      
      To do a MinGW build, it is currently possible to use the fedora-rawhide
      image and request a different configure script
      
         make ci-build@fedora-rawhide CI_CONFIGURE=mingw32-configure
      
      It is also possible to do cross compiled builds via the Debian containers
      
         make ci-build@debian-9-cross-s390x
      
      In all cases the GIT source tree is cloned locally into a 'ci-tree/src'
      sub-directory which is then exposed to the container at '/src'. It is
      setup to use a separate build directory so the build takes place in a
      subdir '/src/build'. A source tree build can be requested instead
      by passing an empty string CI_VPATH= arg to make.
      
      The make rules are kept in a standalone file that is included into the
      main Makefile.am, so that it is possible to run them without having to
      invoke autotools first.
      
      It is neccessary to disable the gnulib submodule commit check because
      this fails due to the way we have manually cloned submodule repos as
      primary git repos with their own .git directory, instead of letting
      git treat them as submodules in the top level .git directory.
      
        make[1]: Entering directory '/src/build'
        fatal: Not a valid object name origin
        fatal: run_command returned non-zero status for .gnulib
        .
        maint.mk: found non-public submodule commit
        make: *** [/src/maint.mk:1448: public-submodule-commit] Error 1
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      89f8902a
  9. 11 4月, 2019 1 次提交
    • D
      build-aux: ensure all scripts are included in EXTRA_DIST · d5cbf85f
      Daniel P. Berrangé 提交于
      Few of the scripts in build-aux are included in EXTRA_DIST. This is not
      a serious problem since they are primarily tools intended for developers
      upstream, and downstream builds won't need them. Having them missing,
      however, complicates downstream patching because it means patches that
      are auto-exported from git will fail to apply if they include a change
      to a file in build-aux/.  By bundling all these scripts in the dist we
      make patching more straightforward.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      d5cbf85f
  10. 03 4月, 2019 2 次提交
    • A
      maint: Drop ChangeLog-old · be819ebe
      Andrea Bolognani 提交于
      This file contains the old school ChangeLog, which was manually
      updated for every set of changes before the switch to git.
      
      When libvirt was imported into git, however, *all* history was
      preserved, including the changes documented in this file, and
      can still be inspected using 'git log' just like more recent
      changes: the format might be slightly different, but that's not
      quite reason enough to treat this file any differently than the
      git-generated ChangeLog we just dropped.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      be819ebe
    • A
      maint: Stop generating ChangeLog from git · ce97c33a
      Andrea Bolognani 提交于
      Our ChangeLog is generated by basically redirecting the output
      of 'git log' into it so, as can be expected, it has only gotten
      bigger as development has progressed. As of today, its size has
      reached pretty much comical levels:
      
        $ du -sk ChangeLog
        11328 ChangeLog
      
      All of that for information *literally nobody* cares about: end
      users and distro maintainers have proper release notes lovingly
      compiled for them, while developers peruse the history either by
      calling 'git log' directly or through their favorite $EDITOR's
      git integration.
      
      Replacing the generated ChangeLog with a short message pointing
      interested parties to the git repository does not only reduce
      the size of the unpacked sources from 259904 KiB to 248576 KiB
      (~4% saving): from a quick test on my laptop, doing so reduces
      the size of the *compressed* release archive from 15140 KiB to
      12364 KiB (~18% saving) and also takes the time needed to run
      'make distcheck' down from 4:44 to 4:21 (~8% saving).
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      ce97c33a
  11. 15 3月, 2019 1 次提交
  12. 27 7月, 2018 1 次提交
    • M
      Forget last daemon/ dir artefacts · cfdc0c77
      Michal Privoznik 提交于
      The most important part is LIBVIRTD_PATH env var fix. It is used
      in virFileFindResourceFull() from tests. The libvirtd no longer
      lives under daemon/.
      
      Then, libvirtd-fail test was still failing (as expected) but not
      because of missing config file but because it was trying to
      execute (nonexistent) top_builddir/daemon/libvirtd which
      fulfilled expected outcome and thus test did not fail.
      
      Thirdly, lcov was told to generate coverage for daemon/ dir too.
      
      Fourthly, our compiling documentation was still suggesting to run
      daemonn/libvirtd.
      
      And finally, some comments in a systemtap file and a probes file
      were still referring to daemon/libvirtd.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      cfdc0c77
  13. 09 7月, 2018 1 次提交
  14. 14 3月, 2018 1 次提交
  15. 13 3月, 2018 1 次提交
  16. 22 2月, 2018 1 次提交
  17. 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
  18. 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
  19. 23 5月, 2017 1 次提交
  20. 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
  21. 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
  22. 30 6月, 2016 1 次提交
  23. 26 6月, 2016 1 次提交
  24. 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
  25. 16 6月, 2016 1 次提交
  26. 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
  27. 26 4月, 2016 1 次提交
  28. 21 4月, 2016 1 次提交
  29. 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
  30. 13 1月, 2016 1 次提交
  31. 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
  32. 07 9月, 2015 1 次提交
  33. 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
  34. 28 6月, 2015 1 次提交
  35. 16 6月, 2015 1 次提交