1. 26 2月, 2014 3 次提交
    • E
      spec: require device-mapper-devel for storage-disk · 7cac3afa
      Eric Blake 提交于
      On Fedora 20, with the following in my ~/.rpmmacros:
      
      %_without_udev 1
      %_without_storage_mpath 1
      
      and with device-mapper-devel uninstalled, 'make rpm' fails with:
      
      checking for libdevmapper.h... no
      configure: error: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt
      error: Bad exit status from /var/tmp/rpm-tmp.Wo9pOG (%build)
      
      This is a rather late point to be issuing an error; better is
      to flag missing packages up front.  The fix is to match the logic
      in configure.ac on when devmapper is required (for both mpath and
      storage).  While at it, rbd storage is not dependent on mpath.
      With this patch applied, I now get:
      
      $ rpmbuild -ta libvirt-1.2.2.tar.gz
      error: Failed build dependencies:
             device-mapper-devel is needed by libvirt-1.2.2-1.fc20.x86_64
      
      until either installing the package or further modifying
      ~/.rpmmacros to add "%_without_storage_disk 1".
      
      * libvirt.spec.in (BuildRequires): Fix build when mpath is
      disabled.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      7cac3afa
    • E
      spec: explicitly avoid bhyve on Linux · fa293998
      Eric Blake 提交于
      Generally, we try to make the spec file tweakable via user
      variables, so that they can select a different subset of sub-rpms
      to build.  We also try to explicitly list all driver config
      options, rather than leaving the chance that the rpm build may be
      non-deterministic based on what the user had installed locally.
      But in the case of the recent bhyve hypervisor driver, there is
      no port of bhyve to Linux, so it is easier to just blindly
      disable it for now.  If someone ever does try to port bhyve to
      Fedora, we can make the spec file conditional at that point.
      
      * libvirt.spec.in (%configure): Don't try to build bhyve.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      fa293998
    • P
      spec: Use correct versions of libgfapi in RHEL builds · 72f7658b
      Peter Krempa 提交于
      RHEL still uses the 3.4.0 package of libgfapi and the package is built
      only for x86_64.
      72f7658b
  2. 13 2月, 2014 5 次提交
  3. 05 2月, 2014 1 次提交
    • E
      rpm: create libvirt-wireshark sub-package · f9ada9f3
      Eric Blake 提交于
      On Fedora 20, with wireshark-devel installed, 'make rpm' failed
      due to installed but unpackaged files related to wireshark.  As
      F20 is already released without wireshark, I chose to add a new
      sub-package that is enabled only for F21 and later.  Furthermore,
      all existing wireshark plugins belong to the wireshark package,
      so I got to invent behavior of how the first third-party wireshark
      module will behave.
      
      * libvirt.spec.in (with_wireshark): Add new conditional.
      * configure.ac (ws-plugindir): Improve wording.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      f9ada9f3
  4. 16 1月, 2014 1 次提交
    • D
      Release of libvirt-1.2.1 · 7b84b167
      Daniel Veillard 提交于
      * docs/news.html.in libvirt.spec.in: updated for the release
      * po/*.po*: updated localization from transifex and regenerated
      7b84b167
  5. 25 12月, 2013 1 次提交
  6. 17 12月, 2013 1 次提交
    • L
      specfile: fix make rpm when with_driver_modules is 1 · a13051b2
      Laine Stump 提交于
      Commit ff76566e moved around things in the specfiles to put
      driver-specific files into their appropriate sub-packages (when
      with_driver_modules == 1), but accidentally changed things so that the
      deamon-driver-network and daemon-config-network files were only
      included in a package when with_driver_modules == 0. This broke "make
      rpm" on fedora (where with_driver_modules == 1).
      
      This patch follows the pattern (already used for the files in other
      sub-modules) of duplicating the files for the main package
      (!with_driver_modules) and the sub-package (with_driver_modules).
      a13051b2
  7. 14 12月, 2013 1 次提交
  8. 12 12月, 2013 2 次提交
  9. 10 12月, 2013 1 次提交
    • M
      spec: clean up libvirtd and virtlockd service mgmt · 81764660
      Michael Chapman 提交于
      - systemctl and the %systemd_* RPM macros can take multiple unit names
        in the one invocation. Make use of this to avoid repeated systemd
        daemon reloads.
      
      - virtlockd was only properly enabled and disabled when using systemd,
        but when systemd RPM macros were not available (e.g. on Fedora < 18).
        Make sure it's enabled when systemd RPM macros are present, or when
        using initscripts.
      
      - Always use "reload" on virtlockd, not "condrestart". This allows it to
        cleanly re-execute itself without losing running state. Ignore any
        error should the reload fail.
      
      - Move the reloading of virtlockd and libvirtd via their initscripts
        into the daemon package's %postun scriptlet. These services must be
        restarted after all of the libvirt-daemon-driver-* packages have
        been upgraded during the same RPM transaction.
      
      - Add a %triggerpostun executed only when upgrading an older
        libvirt-daemon. As an older package would only reload libvirtd during
        %post, and the newer package would only reload libvirtd during
        %postun, such an upgrade would not reload libvirtd at all without the
        trigger.
      Signed-off-by: NMichael Chapman <mike@very.puzzling.org>
      81764660
  10. 07 12月, 2013 6 次提交
  11. 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
  12. 02 12月, 2013 1 次提交
    • D
      Release of libvirt-1.2.0 · 4e41a2a3
      Daniel Veillard 提交于
      * configure.ac docs/news.html.in libvirt.spec.in: update for release
      * po/*.po*: update and merge localizations from transifex
      4e41a2a3
  13. 26 11月, 2013 2 次提交
    • E
      storage: initial support for linking with libgfapi · 318ea3cb
      Eric Blake 提交于
      We support gluster volumes in domain XML, so we also ought to
      support them as a storage pool.  Besides, a future patch will
      want to take advantage of libgfapi to handle the case of a
      gluster device holding qcow2 rather than raw storage, and for
      that to work, we need a storage backend that can read gluster
      storage volume contents.  This sets up the framework.
      
      Note that the new pool is named 'gluster' to match a
      <disk type='network'><source protocol='gluster'> image source
      already supported in a <domain>; it does NOT match the
      <pool type='netfs'><source><target type='glusterfs'>,
      since that uses a FUSE mount to a local file name rather than
      a network name.
      
      This and subsequent patches have been tested against glusterfs
      3.4.1 (available on Fedora 19); there are likely bugs in older
      versions that may prevent decent use of gfapi, so this patch
      enforces the minimum version tested.  A future patch may lower
      the minimum.  On the other hand, I hit at least two bugs in
      3.4.1 that will be fixed in 3.5/3.4.2, where it might be worth
      raising the minimum: glfs_readdir is nicer to use than
      glfs_readdir_r [1], and glfs_fini should only return failure on
      an actual failure [2].
      
      [1] http://lists.gnu.org/archive/html/gluster-devel/2013-10/msg00085.html
      [2] http://lists.gnu.org/archive/html/gluster-devel/2013-10/msg00086.html
      
      * configure.ac (WITH_STORAGE_GLUSTER): New conditional.
      * m4/virt-gluster.m4: new file.
      * libvirt.spec.in (BuildRequires): Support gluster in spec file.
      * src/conf/storage_conf.h (VIR_STORAGE_POOL_GLUSTER): New pool
      type.
      * src/conf/storage_conf.c (poolTypeInfo): Treat similar to
      sheepdog and rbd.
      (virStoragePoolDefFormat): Don't output target for gluster.
      * src/storage/storage_backend_gluster.h: New file.
      * src/storage/storage_backend_gluster.c: Likewise.
      * po/POTFILES.in: Add new file.
      * src/storage/storage_backend.c (backends): Register new type.
      * src/Makefile.am (STORAGE_DRIVER_GLUSTER_SOURCES): Build new files.
      * src/storage/storage_backend.h (_virStorageBackend): Documet
      assumption.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      318ea3cb
    • D
      Remove python binding · a7a1244a
      Daniel P. Berrange 提交于
      The python binding now lives in
      
        http://libvirt.org/git/?p=libvirt-python.git
      
      that repo also provides an RPM which is upgrade compatible
      with the old libvirt-python sub-RPM.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      a7a1244a
  14. 25 11月, 2013 1 次提交
  15. 22 11月, 2013 2 次提交
  16. 20 11月, 2013 1 次提交
    • M
      spec: fix libvirt-docs subpackage on RHEL-6 · caaeb691
      Michael Chapman 提交于
      RHEL-6's rpmbuild wipes the docdir for a (sub-)package if any %doc
      directives are present, prior to copying in the marked documentation.
      This means we can't prepopulate this directory with the HTML
      documentation during the %install phase.
      
      Instead, move the HTML documentation to a temporary directory during
      %install and mark the contents of this temporary directory with %doc.
      
      This fixes a build regression introduced in
      
        commit e23216da
        Author: Cole Robinson <crobinso@redhat.com>
        Date:   Wed Sep 25 13:20:40 2013 -0400
      
          spec: Clean up distribution of ChangeLog (and others)
      
      where the libvirt-docs sub-RPM gained a %doc directive, thus
      triggering the RPM bug.
      Signed-off-by: NMichael Chapman <mike@very.puzzling.org>
      caaeb691
  17. 04 11月, 2013 1 次提交
    • D
      Release of libvirt-1.1.4 · a4a7c7e9
      Daniel Veillard 提交于
      * configure.ac docs/news.html.in libvirt.spec.in: update for the release
      * po/*.po*: update localizations from transifex and regenerate
      a4a7c7e9
  18. 29 10月, 2013 1 次提交
    • D
      Push RPM deps down into libvirt-daemon-driver-XXXX sub-RPMs · 23142ac9
      Daniel P. Berrange 提交于
      For inexplicable reasons, many of the 3rd party package deps
      were left against the 'libvirt-daemon' RPM when the drivers
      were split out. This makes a minimal install heavier that
      it should be. Push them all down into libvirt-daemon-driver-XXX
      so they're only pulled in when truly needed
      
      With this change applied, a minimal install of just the
      libvirt-daemon-driver-lxc RPM is reduced by 41 MB on a
      Fedora 19 host.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      23142ac9
  19. 21 10月, 2013 1 次提交
  20. 01 10月, 2013 1 次提交
    • D
      Release of libvirt-1.1.3 · a72940f9
      Daniel Veillard 提交于
      - configure.ac docs/news.html.in libvirt.spec.in: update for release
      - po/*.po*: updated localization and regenerated
      a72940f9
  21. 26 9月, 2013 1 次提交
  22. 18 9月, 2013 1 次提交
    • D
      Add support for using 3-arg pkcheck syntax for process (CVE-2013-4311) · 922b7fda
      Daniel P. Berrange 提交于
      With the existing pkcheck (pid, start time) tuple for identifying
      the process, there is a race condition, where a process can make
      a libvirt RPC call and in another thread exec a setuid application,
      causing it to change to effective UID 0. This in turn causes polkit
      to do its permission check based on the wrong UID.
      
      To address this, libvirt must get the UID the caller had at time
      of connect() (from SO_PEERCRED) and pass a (pid, start time, uid)
      triple to the pkcheck program.
      
      This fix requires that libvirt is re-built against a version of
      polkit that has the fix for its CVE-2013-4288, so that libvirt
      can see 'pkg-config --variable pkcheck_supports_uid polkit-gobject-1'
      Signed-off-by: NColin Walters <walters@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      922b7fda
  23. 05 9月, 2013 3 次提交
    • E
      spec: make client-only testing easier · 12509c79
      Eric Blake 提交于
      Several recent patches cleaned up 'make rpm' for the situation
      when client_only is true; these were done by manual spec file
      editing (since it's relatively hard to come by a RHEL 5 s390
      box).  Make it easier to do in the future via a simpler command
      line override.
      
      * libvirt.spec.in (client_only): Allow for override.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      12509c79
    • E
      spec: default vbox according to libvirtd build · c021f5ce
      Eric Blake 提交于
      Commit ba5f3c7c moved virtualBox support into libvirtd, but the spec
      file was still unconditionally requesting it even when not building
      the server side.  Thankfully there were no ill effects for a
      client_only build, as most uses of %{with_vbox} were guarded by
      %{with_libvirtd}; but we might as well avoid confusion by more
      closely matching the makefile.
      
      * libvirt.spec.in (with_vbox): Hoist to server conditionals.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      c021f5ce
    • E
      spec: fix rpm build when lxc disabled · d42906fd
      Eric Blake 提交于
      'make rpm' failed if ~/.rpmmacros contains '%_without_lxc 1',
      which simulates the case of not having lxc available.
      
      RPM build errors:
          File not found: /home/eblake/rpmbuild/BUILDROOT/libvirt-1.1.1-1.fc19.x86_64/etc/libvirt/virt-login-shell.conf
          File not found by glob: /home/eblake/rpmbuild/BUILDROOT/libvirt-1.1.1-1.fc19.x86_64/usr/share/man/man1/virt-login-shell.1*
          File not found: /home/eblake/rpmbuild/BUILDROOT/libvirt-1.1.1-1.fc19.x86_64/usr/bin/virt-login-shell
      make: *** [rpm] Error 1
      
      Reported by Dan Berrange.
      
      * libvirt.spec.in: Mark virt-login-shell as conditional on lxc.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      d42906fd
  24. 02 9月, 2013 1 次提交
    • D
      Release of libvirt-1.1.2 · 85240dab
      Daniel Veillard 提交于
      * configure.ac docs/news.html.in libvirt.spec.in: update for the release
      * po/*.po*: merged new localizations and regenerated
      85240dab