| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
It was never needed before as the %meson_install macro would perform a
project rebuild. However, most recent versions of meson have changed the
%meson_install macro to use `--no-rebuild`, exposing then this issue on
our spec file.
Fixes: #43
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The changes needed in the spec files are not so intrusive.
One thing that has to be mentioned is the requirement for
mingw-filesystem >= 107 (which is only present on Fedora 30+) in order
to generate the mingw rpms for osinfo-db-tools. This huge bump in the
version happened because the `%mingw_ninja_install` was only recently
introduced to mingw-filesystem package.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
|
|
|
|
|
| |
None of the currently supported distributions need that. Last one which
did was EL5 (which, thankfully, is EOL now).
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
|
|
|
|
|
| |
This change has been part of Fedora spec file for a quite long time, but
it was never replicated upstream.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
|
|
|
|
|
| |
libosinfo examples are not working for some time. Let's remove them and,
later on, we can come up with a new set of functional ones.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
As we rely on libsoup to handle http://, https://, and ftp:// requests
there's no need to depend on gvfs anymore.
https://gitlab.com/libosinfo/libosinfo/issues/30
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As osinfo_media_create_from_location_with_flags_async() can handle
non-local cases, they'd end up relying on GVFS under the hood, which
would cause those APIs to not work when called from an app running as
root.
In order to avoid this situation, let's rely on libsoup for these cases.
https://gitlab.com/libosinfo/libosinfo/issues/30
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
|
|
|
|
|
|
|
|
| |
GVFS is required as g_file_new_from_path() and g_file_new_from_uri()
rely on GVFS.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Those tests are now part of osinfo-db.
With this change we can get rid of the curl dependency we have.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
|
|
|
|
|
|
|
|
| |
https://releases.pagure.org/libosinfo/... instead of
https://releases.pagure.io/libosinfo/...
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau@redhat.com>
|
|
|
|
|
|
|
|
| |
This commit brings upstream the changes done on Fedora on
42b96ea66d7b3e.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau@redhat.com>
|
|
|
|
|
|
|
| |
Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit brings upstream the changes done on Fedora on
61fea0d48407c0ee,
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
And "The Group: tag is not required in any live Fedora or EPEL release.
RHEL5 did need it, but EPEL5 did not as it was supplied automatically
via magic in the epel-rpm-macros package. The Packaging Guidelines have
indicated that the Group: tag should not be used since March of 2017."
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
This commit is bringing upstream the change done on Fedora on
4a678b2f4d59,
The change is related to
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_file_permissions
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau@redhat.com>
|
|
|
|
|
|
|
|
| |
intltool is outdated:
https://wiki.gnome.org/Initiatives/GnomeGoals/GettextMigration
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
|
|
|
|
|
|
|
|
| |
It was mainly meant to be used for automatic builds through
Test::AutoBuild, so it can be removed now.
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
GLib has shipped a testing framework for many years already, so we can
make use of it, replacing the external "check".
The conversion only switches framework without changing the structure of
the tests, making use of the more appropriate assertion in the various
places.
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
libsoup is used to check the validity of URLs in distributions in
osinfo-db; OTOH it supports only HTTP(S), so this limits the checks to
that protocol.
To overcome this limitation, switch to libcurl: while it requires
slightly more code to do the same task, it provides a bit more
flexibility, and support for other protocols. No version check is
performed, since the APIs used are old enough.
Adapt also the README, and the packaging files.
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
|
|
|
|
|
|
|
| |
To simplify libvirt Jenkins CI setup, rename the test directory
to tests, so its name matches that used in other virt projects.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
| |
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
| |
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
| |
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
| |
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
|
|
|
|
| |
autotools hides detailed test output by default, so we must
cat test-suite.log on failure to actually see what went
wrong.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
|
|
|
| |
Remove the database files and add a dependency on the
osinfo-db RPM
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
|
|
|
|
| |
Remove the osinfo-db-validate tool which is now available
via osinfo-db-tools. Add a RPM dep on osinfo-db-tools to
pull it in for upgradability.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
|
|
|
| |
The gobject introspection support is available for all
currently targetted platforms, so remove RPM conditionals.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently we have the option to download pci.ids/usb.ids or
symlink to the distro provided version given to configure.
Change configure so that it searches for the files in a
variety of expected locations. This ensures we always use
the external files, in any modern Linux distro, without
the user needing to give an arg. We look for them in
/usr/share/hwdata/{pci.ids,usb.ids} (RHEL/Fedora)
/usr/share/misc/{pci.ids,usb.ids} (Ubuntu/Debian/Gentoo)
/usr/share/{pci.ids,usb.ids} (SLES/OpenSuse)
Instead of loading the pci.ids/usb.ids files as part of
the main database file enumeration process, explicitly
load them from their expected location. This avoids the
need to symlink the distro provided files into the database
dir.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
|
|
|
|
| |
eg instead of platforms/qemu.org/qemu-1.2.0.xml we just have
platform/qemu.org/qemu-1.2.0. The top level directory name
now matches the entity name exactly
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
|
|
|
|
| |
The database directory name matches the object name, except in
the case of the platform object, where the directory is named
"hypevisors". Change the dir name to "platforms" to be consistent.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
New udev/blkid expose more ISO9660 properties that apps can grab and
set on install media for detection to work. As a result our udev rule
becomes redundant.
This improves system bootup time conciderably if there is an ISO9660
media inserted during bootup as our udev rule needed to parse the XML
etc and is therefore pretty slow (keeping in mind that a few seconds are
a long time in the land of modern udev/systemd).
|
|
|
|
|
|
| |
96c66b8 disabled building of the udev rule on newer Fedoras, however
the .spec still has a Requires: udev, which is not relevant
when the udev rule is not built.
|
|
|
|
|
|
|
| |
Most distros already ship copies of pci.ids/usb.ids. This commit
allows to make use of these rather than the ones shipped with
libosinfo. This is achieved through the use of
--with-usb-ids-path and --with-pci-ids-path configure flags.
|
|
|
|
|
|
|
|
|
| |
pod2man used to be in the default Fedora build root, but that's
changed in current rawhide.
The containing package is perl-podlators, but since that package
doesn't exist on F18 and earlier, it's easiest just to depend on
the needed binary.
|
|
|
|
| |
Changes in udev > 197 and libblkid > 2.22.2 have made this rule obsolete.
|
|
|
|
|
| |
Now that libosinfo has an official website, let's point the .spec
at it.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
For Fedora this adds a kickstart file template which self-adapts
to all Fedora versions 1-> 16
For Windows this adds two file templates, one using the legacy
SIF .ini file format for Win2k3 or earlier, and the other using
the modern unattended XML format for Win2k8 or newer
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
| |
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
|
|
|
|
|
| |
This introduces two new objects
- OsinfoInstallConfig - stores configuration parameters which get
substituted into the install script template.
- OsinfoInstallScript - provides a template and the mechanism for
turning it into an install script using XSLT
|
|
|
|
| |
This fixes the previous commit.
|
|
|
|
|
|
| |
%fedora is not defined when building for RHEL, so we need to use
%{?fedora} instead of %{fedora}. This commit also makes sure that
newer RHELs will build libosinfo with introspection support.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The osinfo-pciids-convert and osinfo-usbids-convert scripts
are no longer required, since we can load the data files
natively. Remove them to avoid a runtime dep on Perl.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable end users to search the database with a new osinfo-query
command. For example
$ osinfo-query --fields=short-id,name os vendor="Fedora Project"
Short ID | Name
----------------------+------------------
fedora1 | Fedora Core 1
fedora2 | Fedora Core 2
fedora3 | Fedora Core 3
fedora4 | Fedora Core 4
fedora5 | Fedora Core 5
fedora6 | Fedora Core 6
...
|
| |
|
|
|
|
|
|
| |
The osinfo-db-validate command takes a list of paths or URIs
on the command line and validates them against the RNG
schema
|
|
|
|
|
|
| |
Create an RNG schema that will be installed into
/usr/share/libosinfo/schemas/libosinfo.rng and can
be used to validate XML files
|