[Pkg-libvirt-commits] [Git][libvirt-team/osinfo-db-tools][debian/sid] 507 commits: Initial commit with API definition, overview, and sample program.
Jeremy Bicha (@jbicha)
gitlab at salsa.debian.org
Fri Apr 15 18:42:06 BST 2022
Jeremy Bicha pushed to branch debian/sid at Libvirt Packaging Team / osinfo-db-tools
Commits:
431b0450 by Arjun Roy at 2009-11-06T12:42:27-08:00
Initial commit with API definition, overview, and sample program.
No implementation at all yet.
- - - - -
a4a11e88 by Arjun Roy at 2009-11-08T16:28:52-08:00
Added a few unit tests to the API for initializing/closing the
library and setting hypervisors.
No implementation yet.
- - - - -
ec95d8e9 by Arjun Roy at 2010-01-26T02:05:08-08:00
Initial working codebase.
- - - - -
695ae04e by Arjun Roy at 2010-01-26T02:33:14-08:00
Changed tests to accept data dir as a command line parameter.
- - - - -
0239ad3e by Arjun Roy at 2010-01-27T19:39:24-08:00
Updated README.
TODO:
1. Update docs
2. Better error handling and messages for reading XML data
3. More unit tests and more automation for unit tests.
- - - - -
283db641 by Jim Meyering at 2010-02-03T11:45:03-08:00
autoconfiscate
* Makefile.am: New file.
* configure.ac: New file.
* Makefile: Remove.
* .gitignore: List ignorable files.
- - - - -
f518d68f by Arjun Roy at 2010-02-03T12:28:03-08:00
Added autogen.sh
- - - - -
0c2bc32d by Arjun Roy at 2010-07-01T08:43:10-07:00
Moved over API to use glib/gobject.
API definitions have changed, though functionality remains identical.
Added new features to list classes.
TODO: Extensive testing. Codebase compiles and simplest test of
creating/destroying DB works, but more is required.
- - - - -
653e5994 by Daniel P. Berrange at 2010-08-25T13:38:11+01:00
Move all source & headers into osinfo/ directory
The GLib/GObject standard practice is to have all source and
header files in the same directory, named after the library
prefix. Move all headers from api/ and inc/ into src/, then
rename src/ to osinfo/
* src/*, api/*, inc/*: Move to osinfo/
* Makefile.am: Update build rules for changed locations
* configure.ac: change AC_CONFIG_SRCDIR
- - - - -
0dfb2bb2 by Daniel P. Berrange at 2010-08-25T13:40:20+01:00
Move Makefile.am into each sub-dir
Move Makefile.am into each sub-dir so that built objects end
up in the same directory as the sources, instead of polluting
the top level. This will also enable the gobject introspection
makefile rules to be imported later
* .gitignore: test-skeleton & test-skeleton.sh
* Makefile.am: Remove all build rules, add SUBDIRS
* osinfo/Makefile.am: Add build rules for library
* test/Makefile.am: Add build rules for tests
* test/test-skeleton.c: Update to reflect changed
current directory during test execution
- - - - -
dd8b9e0a by Daniel P. Berrange at 2010-08-25T13:45:28+01:00
Add decl for all _get_type() methods & enable warnings
Eliminate compile warnings about undeclared XXX_get_type()
methods, by adding declarations for all objects.
Switch to using standard GNOME m4 magic for compile
warnings. Force enablement of automake maintainer
mode, so that Makefile is re-generated if Makefile.am
ever changes. Enable silent build rules so that compile
warnings can be more easily spotted.
* Makefile.am: Whitespace tweak
* configure.ac: Remove -Wall, -Werror. Add
GNOME_COMPILE_WARNINGS, GNOME_MAINTAINER_MODE_DEFINES,
AM_MAINTAINER_MODE, AM_SILENT_RULES
* osinfo/*.h: Add XXX_get_type() declarations for all
objects
* osinfo/Makefile.am: Add $(WARN_CFLAGS) to build
- - - - -
62c14a0d by Daniel P. Berrange at 2010-08-25T16:51:14+01:00
Remove osinfo common module
Finally all objects are fully private and the common
code module can be banished.
* osinfo/osinfo_common.c, osinfo/osinfo_common.h: Delete
* osinfo/Makefile.am, osinfo/osinfo.h: Remove osinfo_common.h
* configure.ac: Use osinfo/osinfo_db.c in CONFIG_SRCDIR
* osinfo/osinfo_dataread.c, osinfo/osinfo_db.c,
osinfo/osinfo_db.h, osinfo/osinfo_device.h,
osinfo/osinfo_devicelist.h, osinfo/osinfo_entity.c,
osinfo/osinfo_entity.h, osinfo/osinfo_filter.c,
osinfo/osinfo_hypervisor.h, osinfo/osinfo_hypervisorlist.h,
osinfo/osinfo_list.h, osinfo/osinfo_os.c,
osinfo/osinfo_os.h, osinfo/osinfo_oslist.h: Add the
main object typedefs, previously in the common module.
Rename osinfoRelationship to OsinfoOsRelationship.
- - - - -
ea9ca19e by Daniel P. Berrange at 2010-08-25T16:51:14+01:00
Run configure at end of autogen.sh
It is usual practice to run configure at the end of
autogen.sh to save having to manually run it afterwards
* autogen.sh: Run configure
- - - - -
9e58672f by Daniel P. Berrange at 2010-08-25T17:15:02+01:00
Add proper ELF versioning
Rename library to libosinfo-1.0.la to allow parallel install if
we need to break ABI in the future. Add per-symbol version tagging
to allow fine grained automatic RPM dependancies. Make version
script portable to Win32
* configure.ac: Detect args for linker symbol file / format
* osinfo/Makefile.am: Rename library and use symbol versioning
* osinfo/libosinfo.syms: Symbol version script
- - - - -
e8c8b1e0 by Daniel P. Berrange at 2010-08-25T17:22:29+01:00
Use pkg-config for checking for libxml
Rather than creating huge amounts of m4 logic, just use pkg-config
to check for libxml2 library. Make libxml2 compulsory
* configure.ac: Simplify libxml2 check
- - - - -
79dbf4ac by Daniel P. Berrange at 2010-08-25T18:06:19+01:00
Add a pkg-config data file for building apps
* configure.ac: Generate libosinfo.pc
* osinfo/Makefile.am: Install pkg-config file
* osinfo/libosinfo-1.0.pc.in: Master pkg-config template
- - - - -
dcc8c7ef by Daniel P. Berrange at 2010-08-25T18:06:21+01:00
Add support for GObject introspection
Introspect the libosinfo API so that non-C language bindings
can be automagically generated
* osinfo/osinfo.h, osinfo/osinfo_dataread.c, osinfo/osinfo_db.h,
osinfo/osinfo_device.h, osinfo/osinfo_devicelist.h,
osinfo/osinfo_entity.h, osinfo/osinfo_filter.h,
osinfo/osinfo_hypervisor.h, osinfo/osinfo_hypervisorlist.h,
osinfo/osinfo_os.h, osinfo/osinfo_oslist.h: Add explicit
includes to match build dependancies, to satisfy g-ir-scanner
limitations. Rename enum values to allow them to be extracted
with correct names
- - - - -
e25ebbe0 by Daniel P. Berrange at 2010-08-25T18:21:51+01:00
Add formal RPM build infrastructure
* autogen.sh: Rewrite to use gnome-autogen.sh
* autobuild.sh: Automated RPM build control script
* configure.ac: Generate RPM specfiles
* Makefile.am: Distribute RPM specfile templates
* libosinfo.spec.in, mingw32-libosinfo.spec.in: RPM specs
* osinfo/Makefile.am, osinfo/libosinfo.syms: Fix Win32
portability problem
- - - - -
8b23102e by Daniel P. Berrange at 2010-08-25T18:29:50+01:00
Add LGPLv2+ header to all source files
* osinfo/*.h, osinfo/*.c: Add license header text
* COPYING.LIB: LGPLv2+ license
* libosinfo.spec.in, mingw32-libosinfo.spec.in,
Makefile.am: Use COPYING.LIB instead of COPYING
- - - - -
ec77425c by Daniel P. Berrange at 2010-08-26T11:28:11+01:00
Add missing AC_ARG_ENABLE declaration
The configure.ac script was missing the AC_ARG_ENABLE declaration
for the gobject introspection code
* configure.ac: Add AC_ARG_ENABLE
- - - - -
71917c5f by Daniel P. Berrange at 2010-08-27T18:10:46+01:00
Comprehensive test suite
This adds a comprehensive test suite. Each test case
fulls covers a single class. Combined, they provide
100% function and 99% line coverage. All important
code branches are also covered.
* Makefile.am: Target to generate code coverage reports
* osinfo/Makefile.am: Add code coverage flags
* configure.ac: Enable use of 'check' for test suite
and use of gcc coverage flags
* test/test-*.c: One test suite per class
* test/test-skeleton.c: Remove obsoleted test
* test/osinfo.suppression: supress valgrind warning for
static data in glib type system
* test/Makefile.am: Link tests against libcheck library
- - - - -
8501be83 by Daniel P. Berrange at 2010-08-27T18:14:07+01:00
Lots of code fixes based on results from testsuite
This fixes numerous memory leaks throughout the code
identified by valgrind. It also fixes the const-ness
of many parameters
* osinfo/osinfo_dataread.c: Rewrite from scratch using DOM
APIs instead of streaming APIs
* osinfo/osinfo_db.h, osinfo/osinfo_db.c: Remove 'libvirtVer' property
and declare all gchar * parameters to be const. Fix some mem leaks
* osinfo/osinfo_entity.c, osinfo/osinfo_entity.h: Remove some
unnecessary strdup()s and fix some mem leaks
* osinfo/osinfo_filter.c: Fix mem leaks
* osinfo/osinfo_hypervisor.c, osinfo/osinfo_os.c: Allow some
object parameters to be NULL. Fix some mem leaks
* osinfo/osinfo_list.c: Fix some mem leaks
* osinfo/osinfo_osfilter.c: Fix some mem leaks
- - - - -
a90cc85b by Daniel P. Berrange at 2010-08-27T18:20:52+01:00
Convert loader to use GIO
Direct use of POSIX/stdc I/O is deprecated in favour of
the GIO system. Re-write the OsinfoLoader to use GIO
for loading XML from arbitrary paths/uris.
* configure.ac: Check for GIO library
* osinfo/Makefile.am: Link to GIO
* osinfo/osinfo_loader.c, osinfo/osinfo_loader.h: Port
to GIO
* test/osinfo.suppression: Supress many GIO data types
* test/test-loader.c: update for new GIO api.
- - - - -
20a537be by Daniel P. Berrange at 2010-08-27T18:34:55+01:00
Ignore more test programs
- - - - -
1d9b38c8 by Daniel P. Berrange at 2010-08-27T18:40:56+01:00
Enable test suite during automated & RPM builds
* autobuild.sh: Enable tests
* configure.ac: Allow tests to be disabled for Win32
* libosinfo.spec.in: Enable tests
* libosinfo.spec.in: Disable tests
* test/test-loader.c, test/Makefile.am: Fix VPATH build
- - - - -
78c75172 by Daniel P. Berrange at 2010-09-01T12:06:09+01:00
Integrate gtk-doc into the build for API docs
* Makefile.am: Add docs subdir
* autogen.sh: Enable gtk-doc build by default
* configure.ac: Add check for gtk-doc
* doc/api.txt, doc/overview.txt: Remove inaccurate, outdated
docs
* docs/Makefile.am: Add reference/ subdir
* docs/reference/: bare template for gtk-doc content
- - - - -
efb1c50a by Daniel P. Berrange at 2010-09-01T12:12:14+01:00
Add API docs for all public methods
Add GTK-DOC api docs for all public methods, signals, objects,
enums, etc. Include annotations required for GObject Introspection
to get reference counting / memory allocation correct when doing
automatic language binding generation
* osinfo/*.c: Add API docs for all methods / signals / objects / enums
* osinfo/*.h: Ensure parameter names match those in the corresponding
.c file implementation to avoid confusing gtk-doc
- - - - -
b63a4c80 by Daniel P. Berrange at 2010-09-01T12:48:05+01:00
Ensure args can be passed to autogen.sh
Ensure that autogen.sh honours args passed to it, but passing
them on down to gnome-autogen.sh, enabling usage such as
./autogen.sh --enable-coverage
* autogen.sh: Pass command line args down to gnome-autogen.sh
- - - - -
9d411ef1 by Daniel P. Berrange at 2010-09-01T13:05:50+01:00
Add two examples using GObject introspection
Add two example programs using GObject introspection bindings
for Python (PyGObject) and Javascript (GJS)
* examples/demo.js: Javascript demo
* examples/demo.py: Python demo
* Makefile.am, configure.ac: Add examples Makefile
* examples/Makefile.am: Include demos in dist
* libosinfo.spec.in: Include demo programs + docs
* mingw32-libosinfo.spec.in: Kill docs
- - - - -
6ea56198 by Daniel P. Berrange at 2010-09-02T11:43:11+01:00
Introduce a new OsinfoProduct abstract class
It is neccessary to track upgrades/clones/derives relationships
for platforms as well as operating systems. Introduce a common
parent class for both called OsinfoProduct
* data/libosinfo-dummy-data.xml: Make platform XML use the
common product XML attributes/relationships
* docs/reference/Libosinfo-docs.xml, docs/reference/Libosinfo-sections.txt,
docs/reference/Libosinfo.types: Update for new/renamed classes
* osinfo/Makefile.am, osinfo/libosinfo.syms,
osinfo/osinfo.h: New OsinfoProduct class
* osinfo/osinfo_product.c, osinfo/osinfo_product.h,
osinfo/osinfo_productlist.h, osinfo/osinfo_productlist.c: New
classes
* osinfo/osinfo_os.c, osinfo/osinfo_os.h,
osinfo/osinfo_platform.c, osinfo/osinfo_platform.h: Change
to inherit from OsinfoProduct
* osinfo/osinfo_oslist.c, osinfo/osinfo_oslist.h,
osinfo/osinfo_platformlist.c, osinfo/osinfo_platformlist.h:
Change to inherit from OsinfoProductList
* osinfo/osinfo_db.c, osinfo/osinfo_db.h, osinfo/osinfo_loader.c:
Update for new class hierarchy
* osinfo/osinfo_osfilter.c, osinfo/osinfo_osfilter.h,
osinfo/osinfo_osfilter.h, osinfo/osinfo_productfilter.h: Rename
filter class
- - - - -
ae8d7f40 by Daniel P. Berrange at 2010-09-02T14:31:26+01:00
Introduce a OsinfoDeployment object
The supported devices for deploying an OS on a platform are
tracked as part of the main OS device list. This is not
sufficiently flexible because it does not allow for tracking
extra metadata against a (os, platform) pair. Introduce a
new "deployment" object to track the metadata for deploying
an OS on a platform.
* docs/object-model.fig: Illustrate the object model
* data/libosinfo-dummy-data.xml: Introduce deployment
metadata
* examples/demo.py, examples/demo.js: Update for new
APIs
* osinfo/Makefile.am, osinfo/libosinfo.syms,
osinfo/osinfo.h, osinfo/osinfo_db.c, osinfo/osinfo_db.h
osinfo/osinfo_db.h, osinfo/osinfo_deployment.h,
osinfo/osinfo_deploymentlist.c, osinfo/osinfo_deploymentlist.h,
osinfo/osinfo_devicelink.c, osinfo/osinfo_loader.c: Introduce
an explicit deployment object
* osinfo/osinfo_os.c, osinfo/osinfo_os.h, test/test-db.c,
test/test-os.c: Remove tracking of hypervisor preferred
devices
* osinfo/osinfo_devicelinkfilter.c,
osinfo/osinfo_devicelinkfilter.h: Allow filtering against
a link and its target device at the same time.
- - - - -
24df84d6 by Daniel P. Berrange at 2010-09-02T15:10:26+01:00
Add notes about possible data sources for populating the database
Add notes about the possible sources for finding device info
about operating systems and hypervisor platforms
* docs/data-sources.txt: Note data sources for OS and hypervisors
- - - - -
72b55e90 by Daniel P. Berrange at 2011-04-19T16:13:30+01:00
Pull down USB and PCI device IDs from sourceforge
Populate the database with all USB and PCI device IDs known
to the master sourceforge databases
- - - - -
81d79c89 by Daniel P. Berrange at 2011-04-19T16:13:30+01:00
Add some scripts for converting USB/PCI ID lists to XML
Add some scripts which are able to convert from the raw USB
and PCI device ID lists to the osinfo XML format. Do not
actually use these scripts by default though, because the
osinfo loader can read the native formats *much* faster
than reading the XML variant
- - - - -
d571833b by Daniel P. Berrange at 2011-06-01T14:06:26+01:00
Add some more realistic data files
Start on basic metadata for Fedora/RHEL and QEMU/Xen
- - - - -
0e73a4d3 by Zeeshan Ali (Khattak) at 2011-09-01T22:29:33+03:00
Add utility app that detects OS given a media
Given a path to a ISO9660 image/device, detects if media is bootable and
the relavent OS if media is an installer for it.
- - - - -
e2b698a2 by Zeeshan Ali (Khattak) at 2011-09-02T14:24:36+03:00
Add Udev support
If enabled, provide a udev rule to listen to insertion/removal of
ISO9660 media and sets some helpful (to apps) properties on the device
if media is bootable.
- - - - -
09bb7316 by Daniel P. Berrange at 2011-09-02T17:53:50+01:00
Add osinfo-detect.exe to the mingw32 RPM spec
- - - - -
6ea60c2d by Zeeshan Ali (Khattak) at 2011-09-22T20:53:27+03:00
Add udev rules file to RPM package
- - - - -
3dca930d by Zeeshan Ali (Khattak) at 2011-09-23T14:22:27+03:00
Better udev rule installation
Provide a configure option to set the udev rule directory. If this
option is not set, udev directory defaults to '$prefix/lib/udev/rules.d'
unless $prefix is '/usr' in which case it defaults to '/lib/udev/rules.d'.
- - - - -
3a679011 by Zeeshan Ali (Khattak) at 2011-10-05T17:13:46+03:00
Let there be Vala bindings!
Generate Vala bindings if vapigen tool is available, unless explicitly
asked not to.
- - - - -
283ae4fa by Zeeshan Ali (Khattak) at 2011-10-21T17:34:45+03:00
Improved README file
- - - - -
b3648822 by Zeeshan Ali (Khattak) at 2011-10-25T17:52:35+03:00
Update AUTHORS file
- - - - -
1a043272 by Zeeshan Ali (Khattak) at 2011-10-25T17:52:35+03:00
Add a MAINTAINERS file
- - - - -
b3805253 by Zeeshan Ali (Khattak) at 2011-10-25T17:52:36+03:00
Don't ignore the whole build-aux directory
- - - - -
6c25f80f by Zeeshan Ali (Khattak) at 2011-10-25T17:52:36+03:00
Generate ChangeLog from git history on dist
Stole the Makefile.am rule and gitlog-to-changelog from libvirt.
- - - - -
235f1686 by Zeeshan Ali (Khattak) at 2011-10-25T17:52:36+03:00
First public release
- - - - -
6548b7ef by Zeeshan Ali (Khattak) at 2011-11-16T17:36:36+02:00
Test for check if tests are enabled, not gir
- - - - -
bb23c795 by Daniel P. Berrange at 2011-11-21T14:09:24+00:00
Add homepage/mailing list / download links to README
- - - - -
18808aa8 by Zeeshan Ali (Khattak) at 2011-11-22T16:02:46+02:00
Release 0.0.2
- - - - -
18f4d574 by Zeeshan Ali (Khattak) at 2011-11-22T16:36:14+02:00
Remove contributors list from NEWS file
This release is out but doing this so I don't forget the rule of not
including contributors' list in next release announcement.
- - - - -
336bf3eb by Zeeshan Ali (Khattak) at 2011-11-24T00:35:49+02:00
Bump version
- - - - -
a56d4b2d by Daniel P. Berrange at 2011-11-24T13:45:32+00:00
Update RPM spec with tweaks from Fedora submission
- - - - -
048486db by Daniel P. Berrange at 2011-11-24T13:46:26+00:00
Also include libosinfo.spec in tar.gz
- - - - -
b6683cd5 by Daniel P. Berrange at 2011-11-24T13:48:48+00:00
Update to newer COPYING.LIB file with correct FSF address
- - - - -
3d294a3c by Zeeshan Ali (Khattak) at 2011-12-16T16:24:12+02:00
Release 0.0.3
- - - - -
ff508aa6 by Zeeshan Ali (Khattak) at 2011-12-19T18:20:12+02:00
Release 0.0.4
- - - - -
282d11c6 by Zeeshan Ali (Khattak) at 2012-01-10T21:14:59+02:00
Bump version
- - - - -
7bb79a60 by Zeeshan Ali (Khattak) at 2012-01-16T17:58:24+02:00
Release 0.0.5
- - - - -
4b420eb9 by Zeeshan Ali (Khattak) at 2012-01-19T02:19:29+02:00
Post release version bump
- - - - -
bebe153a by Zeeshan Ali (Khattak) at 2012-02-07T19:46:24+02:00
Release 0.1.0
- - - - -
ffaa01e2 by Zeeshan Ali (Khattak) at 2012-02-11T06:29:06+02:00
Post release version bump
- - - - -
7f262eaf by Daniel P. Berrange at 2012-02-21T16:47:21+00:00
Add test case for validating ISO detection
- - - - -
9feff1a9 by Daniel P. Berrange at 2012-02-22T11:25:18+00:00
Add test case for validating all URIs
- - - - -
7d554738 by Daniel P. Berrange at 2012-02-22T14:57:58+00:00
Fix make dist
* configure.ac: Require POSIX tar format for long filenames
* test/Makefile.am: Include isodata/ in dist
* test/test-isodetect.c: Fix VPATH builds
* test/test-mediauris.c: Skip network tests unless LIBOSINFO_NETWORK_TESTS is set
- - - - -
fdff1701 by Daniel P. Berrange at 2012-02-23T11:39:59+00:00
Update git ignore files
- - - - -
764715ae by Daniel P. Berrange at 2012-02-23T16:56:46+00:00
Add test for tree URIs
- - - - -
7d8b0bac by Daniel P. Berrange at 2012-02-24T13:56:23+00:00
Add an RNG schema for the libosinfo XML documents
Create an RNG schema that will be installed into
/usr/share/libosinfo/schemas/libosinfo.rng and can
be used to validate XML files
- - - - -
71495d06 by Daniel P. Berrange at 2012-02-24T13:57:30+00:00
Add an osinfo-db-validate command for verifying XML files
The osinfo-db-validate command takes a list of paths or URIs
on the command line and validates them against the RNG
schema
- - - - -
e60f80bb by Daniel P. Berrange at 2012-02-24T13:57:32+00:00
Add a test case which validates all schemas in tree
- - - - -
491cd2e5 by Daniel P. Berrange at 2012-02-24T13:57:32+00:00
Add a man page for the osinfo-detect command
- - - - -
d522bf7a by Daniel P. Berrange at 2012-02-24T15:28:02+00:00
Switch over to GNULIB's compiler warning code
- - - - -
3e64729f by Daniel P. Berrange at 2012-02-24T15:28:02+00:00
Death to TABs
- - - - -
33146c9a by Daniel P. Berrange at 2012-02-24T15:28:02+00:00
Fill out AUTHORS file
- - - - -
40e7731f by Daniel P. Berrange at 2012-02-24T15:28:02+00:00
Normalize whitespace at end of file
- - - - -
0d8def38 by Daniel P. Berrange at 2012-02-24T15:28:02+00:00
Add libosinfo.rng to mingw32 spec
- - - - -
cf2c3b17 by Daniel P. Berrange at 2012-02-24T15:28:03+00:00
Import GNULIB's syntax checking rules
- - - - -
d2f3e8c8 by Daniel P. Berrange at 2012-03-13T16:29:41+00:00
Update git ignore rules
- - - - -
8a26a1b5 by Daniel P. Berrange at 2012-03-13T16:29:41+00:00
Add a 'osinfo-query' command line tool
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
...
- - - - -
1abae55d by Daniel P. Berrange at 2012-03-14T11:34:12+00:00
Remove obsolete scripts for PCI/USB id conversion
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.
- - - - -
8e57d1cb by Daniel P. Berrange at 2012-03-15T11:07:24+00:00
Add osinfo-query man page to RPMs
- - - - -
273cd49b by Daniel P. Berrange at 2012-03-21T13:56:29+00:00
Move database files into $datadir/db instead of $datadir/data
- - - - -
b6dd2ec8 by Fabiano Fidêncio at 2012-03-23T13:03:45+00:00
Add missing initializers for OsinfoLabel structs
- - - - -
d25bbcbb by Christophe Fergeau at 2012-03-27T14:56:20+02:00
configure.ac: set VAPIGEN when --enable-vala is passed
It was only set when the vala detection was automatic (ie no
--enable-vala on the command line)
- - - - -
15646039 by Christophe Fergeau at 2012-03-27T14:56:21+02:00
configure.ac: don't error out when vala autodetection fails
When --enable-vala or --disable-vala are not passed to configure,
configure.ac automatically checks for vala availability. However,
in this case, it's erroring out when vapigen cannot be found instead
of silently disabling it.
- - - - -
cd018278 by Zeeshan Ali (Khattak) at 2012-04-12T05:02:26+03:00
Release notes for 0.1.1
- - - - -
cfc4b080 by Daniel P. Berrange at 2012-04-12T09:38:10+01:00
Don't generate man pages in source directory
- - - - -
20951ab3 by Zeeshan Ali (Khattak) at 2012-04-12T18:16:41+03:00
There is no libsoup-gnome-devel package
- - - - -
d5ff6114 by Zeeshan Ali (Khattak) at 2012-04-12T18:45:52+03:00
Post release version bump
- - - - -
09b27d9b by Christophe Fergeau at 2012-05-15T14:23:03+02:00
Fix spec file for RHEL builds
%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.
- - - - -
eff67564 by Christophe Fergeau at 2012-05-15T16:09:40+02:00
Add missing % to %{rhel} macro
This fixes the previous commit.
- - - - -
2a424172 by Christophe Fergeau at 2012-06-08T18:42:12+02:00
build: allow building with newer glibc-headers and -O0
Commit log and autoconf snippet written by Eric Blake for libvirt.
glibc 2.15 (on Fedora 17) coupled with explicit disabling of
optimization during development dies a painful death:
In file included from /usr/include/limits.h:27:0,
from /usr/lib/gcc/x86_64-redhat-linux/4.7.0/include/limits.h:169,.
from /usr/lib/gcc/x86_64-redhat-linux/4.7.0/include/syslimits.h:7,
from /usr/lib/gcc/x86_64-redhat-linux/4.7.0/include/limits.h:34,
from util/bitmap.c:26:
/usr/include/features.h:314:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
cc1: all warnings being treated as errors
Work around this by only conditionally defining _FORTIFY_SOURCE,
in the case where glibc can actually use it. The trick is using
AH_VERBATIM instead of AC_DEFINE.
* m4/libosinfo-compile-warnings.m4 (LIBOSINFO_COMPILE_WARNINGS): Squelch
_FORTIFY_SOURCE when needed to avoid glibc #warnings.
- - - - -
e9c9c710 by Zeeshan Ali (Khattak) at 2012-06-11T20:40:27+03:00
Release 0.1.2
- - - - -
5d7dcd77 by Zeeshan Ali (Khattak) at 2012-06-11T21:08:29+03:00
Post release version bump
- - - - -
5adeb333 by Daniel P. Berrange at 2012-06-14T17:44:48+01:00
Add Wanlong Gao to AUTHORS file
- - - - -
36159f00 by Daniel P. Berrange at 2012-06-20T15:57:19+01:00
Convert to build with mingw64 toolchain
- - - - -
c09689fd by Daniel P. Berrange at 2012-06-20T16:02:33+01:00
Fix source URL for mingw-libosinfo.spec.in
- - - - -
22e8c705 by Daniel P. Berrange at 2012-08-23T14:29:58+01:00
Misc Fedora review fixes to Mingw RPM specfile
- - - - -
7040ec43 by Daniel P. Berrange at 2012-08-23T15:16:52+01:00
Add APIs for dealing with installer automation scripts
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
- - - - -
d86e882f by Daniel P. Berrange at 2012-08-23T15:17:02+01:00
Add a command line tool for generating install scripts
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
fc248e22 by Daniel P. Berrange at 2012-08-23T15:17:02+01:00
Add data files for Fedora & Windows unattended installs
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 at redhat.com>
- - - - -
cae78b8c by Daniel P. Berrange at 2012-08-23T15:17:03+01:00
Update git ignore rules
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
fb539c6e by Fabiano Fidêncio at 2012-08-23T15:17:03+01:00
Update README file
Add dependencies needed by install scripts
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
d16a76e2 by Daniel P. Berrange at 2012-08-23T15:19:23+01:00
Bump version to 0.2.0 to recognise major new features
- - - - -
cb0192c5 by Zeeshan Ali (Khattak) at 2012-08-31T20:33:00+03:00
Release 0.2.0
- - - - -
c0663d41 by Michal Privoznik at 2012-09-28T04:37:39+03:00
RNG: Move product-attr and product-content to interleave
- - - - -
687f2e78 by Zeeshan Ali (Khattak) at 2012-10-02T20:35:59+03:00
Bump version
- - - - -
a7759438 by Zeeshan Ali (Khattak) at 2012-10-10T16:36:34+03:00
docs: Remove redundant .types file
Since we pass --rebuild-types to gtkdoc scanner, .types file is
generated for us and therefore we don't want to keep this in VCS.
- - - - -
f146f044 by Zeeshan Ali (Khattak) at 2012-10-12T17:13:53+03:00
Release 0.2.1
- - - - -
52c7dac3 by Michal Privoznik at 2012-10-19T11:42:23+02:00
AUTHORS: Add David to the authors file
as he contributed by fixing udev rule.
- - - - -
f5ba634a by Zeeshan Ali (Khattak) at 2012-10-26T04:25:54+03:00
Update .gitignore
- - - - -
2006e79f by Zeeshan Ali (Khattak) at 2012-10-26T18:58:21+03:00
Add translation framework
Note that we are calling bindtextdomain() from Loader's class init.
AFAICT, its a common practice in libraries without any main _init()
function to make this call in init of the most common/useful class (e.g
gdk-pixbuf and gdbus).
- - - - -
b6575e6d by Eric Blake at 2012-10-29T16:43:01+02:00
maint.mk: Resync from gnulib.
AUTHORS: Add myself.
- - - - -
3c8b90d5 by Zeeshan Ali (Khattak) at 2012-10-29T16:43:18+02:00
Mark obvious strings in DB for translation
Mark 'name' and 'vendor' in oses and hypervisor, and 'name' in devices
for translation.
This implies that now we generate the actual XML files to automatically
get translations inserted into them.
Co-author: Eric Blake <eblake at redhat.com>
- - - - -
40774865 by Zeeshan Ali (Khattak) at 2012-10-30T17:15:27+02:00
Update .gitignore
- - - - -
947a8330 by Zeeshan Ali (Khattak) at 2012-10-30T17:15:27+02:00
autogen: Remove redundant intltoolize call
gnome-autogen.sh calls this for us.
Thanks to Christophe Fergeau <cfergeau at redhat.com> for pointing this out.
- - - - -
a52a5c53 by Zeeshan Ali (Khattak) at 2012-10-31T16:34:01+02:00
Translate all (potentially) user visible strings
Make some strings more translator-friendly at the same time.
- - - - -
6a7338c6 by Zeeshan Ali (Khattak) at 2012-10-31T16:36:57+02:00
Steal libvirt magic for picking translation files
Since we don't keep a static LINGUAS file, we need to do this for
intltool to pick-up our translation (.po) files.
- - - - -
76cd7df8 by Eric Blake at 2012-11-06T13:56:03+01:00
maint: update to latest gnulib maint.mk
* maint.mk: Resynchronize from gnulib.
* cfg.mk (_gl_translatable_string_re): Reflect new gnulib naming.
- - - - -
e4a8c836 by Zeeshan Ali (Khattak) at 2012-11-08T01:43:13+01:00
Bump version
- - - - -
b5a4703e by Zeeshan Ali (Khattak) at 2012-11-10T17:57:44+01:00
Use glib-mkenums to register enums with glib
This commit adds the generation of osinfo_enum_types.[ch] using
glib-mkenums. These files will register the various enums that will get
added to osinfo header files with glib.
Commit message shamelessly stolen from a similar commit to libvirt-glib
by Christophe Fergeau <cfergeau at redhat.com>.
- - - - -
78474204 by Christophe Fergeau at 2012-12-01T18:53:47+01:00
Update .gitignore
Add generated enumeration C/H files
- - - - -
93fc6ea5 by Zeeshan Ali (Khattak) at 2012-12-10T19:38:02+02:00
Release 0.2.2
- - - - -
4fff090f by Zeeshan Ali (Khattak) at 2012-12-11T16:20:52+02:00
Post release version bump
- - - - -
da805013 by Christophe Fergeau at 2012-12-13T16:36:19+01:00
build-sys: Build data/ before test/
Some test cases use the in-tree database data. Since some database files
are transformed from .xml.in to .xml during build, it's better to
build data/ first to ensure they are there when tests try to use
this data.
- - - - -
4c2576a7 by Christophe Fergeau at 2012-12-13T17:18:48+01:00
win: Add language information to Windows medias
Now that libosinfo knows how to use the l10n-language OsinfoDB attribute,
we can add this data to the various Windows <media> definitions in
the database.
- - - - -
6ca20ba8 by Zeeshan Ali (Khattak) at 2013-01-02T19:36:50+02:00
configure: Use LINGUAS file
Setting ALL_LINGUAS in configure.in is obsolete according to po.m4 in
favor of LINGUAS file. This is the reason why all (as far as I can see)
GNOME modules use LINGUAS file.
Also the rule in configure.ac creates broken Makefile if there is more
than one translation files:
[zeenix at z-laptop libosinfo]$ make
Makefile:166: *** missing separator. Stop.
[zeenix at z-laptop libosinfo]$ head -n 166 Makefile|tail -n 2
ALL_LINGUAS = pl
uk
- - - - -
1461ecda by Zeeshan Ali (Khattak) at 2013-01-14T17:58:14+02:00
Fix `make syntax-check`
* Add Yuri Chornoivan to AUTHORS file.
* Remove osinfo/osinfo_install_config.c from translated sources.
- - - - -
ae846428 by Zeeshan Ali (Khattak) at 2013-01-14T18:30:44+02:00
Release 0.2.3
- - - - -
ccf361fe by Zeeshan Ali (Khattak) at 2013-01-15T19:27:48+02:00
Post-release version bump
- - - - -
8e41c221 by Daniel P. Berrange at 2013-01-15T18:24:42+00:00
Update RPM specs to include datamaps & locale files
- - - - -
fc4336e3 by Marc-André Lureau at 2013-01-21T14:15:41+01:00
build-sys: g_type_init() is deprecated in 2.36
- - - - -
899a1b21 by Michal Privoznik at 2013-01-22T20:03:05+01:00
Don't redefine _FORTIFY_SOURCE macro
If the _FORTIFY_SOURCE has been already defined, we unconditionally
redefine it, leaving us with warning/error thrown at compilation time.
- - - - -
cb494208 by Zeeshan Ali (Khattak) at 2013-02-07T05:09:55+02:00
Add Marc-André to AUTHORS
Fixes `make syntax-check`
- - - - -
ed39103e by Christophe Fergeau at 2013-02-11T16:11:55+01:00
spec: Switch URL to libosinfo.org
Now that libosinfo has an official website, let's point the .spec
at it.
- - - - -
58022a59 by Cole Robinson at 2013-02-11T16:11:55+01:00
install-script tool: Fix compiler warning
osinfo-install-script.c: In function 'main':
osinfo-install-script.c:245:19: error: 'dir' may be used uninitialized in this function [-Werror=maybe-uninitialized]
osinfo-install-script.c:196:12: note: 'dir' was declared here
And add me to AUTHORS to appease syntax-check
- - - - -
745af02f by Cole Robinson at 2013-02-11T16:11:56+01:00
.gitignore: Add latest hypervisors and oses
- - - - -
1dbbfc02 by Christophe Fergeau at 2013-02-19T23:43:20+02:00
spec: Disable udev rule on newer Fedoras
Changes in udev > 197 and libblkid > 2.22.2 have made this rule obsolete.
- - - - -
5fc497e6 by Zeeshan Ali (Khattak) at 2013-02-20T00:05:48+02:00
Release 0.2.4
- - - - -
1d6d73ae by Daniel P. Berrange at 2013-02-22T14:24:21+00:00
Fixes to mingw RPM spec from Fedora
Remove the .la files.
Remove the man pages
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
71236b6c by Daniel P. Berrange at 2013-02-22T16:16:58+00:00
Add pod2man dep to mingw-libosinfo.spec.in
- - - - -
9b720902 by Zeeshan Ali (Khattak) at 2013-03-04T19:08:21+02:00
Release 0.2.5
- - - - -
a8470318 by Cole Robinson at 2013-03-05T17:13:10+01:00
spec: Add explicit dep on pod2man
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.
- - - - -
b708dc27 by Christophe Fergeau at 2013-03-05T18:29:39+01:00
Allow to use system pci.ids/usb.ids files
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.
- - - - -
16abe173 by Christophe Fergeau at 2013-03-05T18:30:15+01:00
spec: Don't require udev on newer distros
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.
- - - - -
0415d7e4 by Zeeshan Ali (Khattak) at 2013-03-06T20:28:14+02:00
Post-release version bump
- - - - -
71a9a6f3 by Zeeshan Ali (Khattak) at 2013-03-18T18:07:11+02:00
Release 0.2.6
- - - - -
8d675267 by Christophe Fergeau at 2013-03-29T09:27:27+01:00
Add Andreas to AUTHORS
- - - - -
a7b5ef59 by Daniel P. Berrange at 2013-04-08T16:47:03+01:00
Disable static libraries by default
Every source file is currently built twice by libtool, once for
the shared library and once for the static library. Static libs
are not commonly packaged by distros and slow down compilation
time by almost 100% compared to a shared-only build time.
Time for non-parallel make
shared only: 22 secs
shared + static: 40 secs
Those few people who really want them, can pass --enable-static
to configure
Disabling them by default requires use of LT_INIT. We don't need
to support older libtool, so drop use of AM_PROG_LIBTOOL entirely.
Also add the 'win32-dll' flag, since that should have been there
already
- - - - -
2a3fa138 by Daniel P. Berrange at 2013-04-09T11:36:13+01:00
Auto-generate AUTHORS file from GIT logs
Rather than trying to manually keep track of authors,
just auto-generate the list from GIT logs
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
daa274f0 by Fabiano Fidêncio at 2013-04-09T21:49:06+02:00
Update .gitignore
- - - - -
ce0db618 by Zeeshan Ali (Khattak) at 2013-04-12T01:16:20+03:00
(Very late) post-release version bump
- - - - -
23d90aaa by Zeeshan Ali (Khattak) at 2013-05-13T23:47:24+03:00
Release 0.2.7
- - - - -
25a29a76 by Zeeshan Ali (Khattak) at 2013-09-09T19:48:16+03:00
build: Fix build against latest intltool
The use of IT_PROG_INTLTOOL and AM_GNU_GETTEXT together is not
supported anymore apparently.
Without this change you'll get this error at the end of configure script
run:
config.status: error: po/Makefile.in.in was not created by intltoolize.
- - - - -
fa19da92 by Zeeshan Ali (Khattak) at 2013-09-16T19:44:43+03:00
Update .gitignore
- - - - -
7f584e47 by Zeeshan Ali (Khattak) at 2013-09-16T19:44:43+03:00
Release 0.2.8
- - - - -
dccb955a by Christophe Fergeau at 2013-09-27T09:06:59+02:00
Use latest warnings.m4 from gnulib
The one we were using does not work properly with clang, causing
the build process to try to use -f/-W options that are not
supported by clang.
- - - - -
497020cc by Zeeshan Ali (Khattak) at 2013-10-04T00:58:18+03:00
Post release version bump
- - - - -
447f86c7 by Fabiano Fidêncio at 2013-10-16T10:50:07+02:00
configure: Fix mailing list address
- - - - -
fcf44f5b by Daniel P. Berrange at 2013-12-11T13:06:38+00:00
Add scripts for validating the libosinfo.syms file
Import two test scripts from libvirt code which validate that
all symbols in libosinfo.syms exist in the ELF binary, and
also validate the alphabetical sorting. These are hooked up
to run with 'make check'.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
c91be7ca by Zeeshan Ali (Khattak) at 2013-12-16T20:42:29+00:00
Release 0.2.9
- - - - -
6f1550ac by Ryan Lortie at 2014-01-17T16:11:33+00:00
Switch to using the upstream m4 macros for GObject-introspection
integration.
https://fedorahosted.org/libosinfo/ticket/11
- - - - -
6aba6dbe by Giuseppe Scrivano at 2014-02-28T21:37:00+01:00
README: fix mailing list URL
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
- - - - -
ab57a2f3 by Christophe Fergeau at 2014-03-14T09:11:13+01:00
README: Fix typo
This fixes a typo in the 'Patch submission' header
- - - - -
eacf7d06 by Zeeshan Ali (Khattak) at 2014-03-20T17:52:00+00:00
Release 0.2.10
- - - - -
076591f4 by Cole Robinson at 2014-03-26T15:35:02+01:00
Update .gitignore
It was missing mageia.xml. Ignore all xml files from data/oses as they will
be generated from .xml.in files in order to integrate translations.
Based on a patch from Cole Robinson.
- - - - -
956fc13e by Cole Robinson at 2014-04-16T16:59:34-04:00
Export OSINFO_*_VERSION values
There isn't any to get the version number when using libosinfo from
python. Export the VERSION macros, similar to what gtk does.
- - - - -
e3c42822 by Giuseppe Scrivano at 2014-06-04T14:00:41+02:00
tools: fix spacing to satisfy sc_bracket_spacing_check
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
- - - - -
388051fc by Giuseppe Scrivano at 2014-06-04T14:00:41+02:00
enforce bracket spacing with a syntax rule
The build-aux/bracket-spacing.pl script was copied from libvirt.
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
- - - - -
563fcd7d by Giuseppe Scrivano at 2014-08-06T12:05:38+02:00
maint.mk: update from gnulib
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
- - - - -
d97605a3 by Giuseppe Scrivano at 2014-08-06T12:05:38+02:00
cfg.mk: enable more syntax-check tests
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
- - - - -
68a71f5a by Giuseppe Scrivano at 2014-08-06T12:05:38+02:00
cfg.mk: enable and fix sc_space_tab
It checks that tab indentation is not used together with white spaces
indentation.
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
- - - - -
97dd4dff by Giuseppe Scrivano at 2014-08-06T12:05:38+02:00
cfg.mk: enable sc_prohibit_atoi_atof and skip it for tests
Avoid the usage of atoi and atof which are believed to be not safe, as
they don't do any error reporting.
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
- - - - -
d8ace3da by Zeeshan Ali (Khattak) at 2014-08-19T14:15:36+01:00
Release 0.2.11
- - - - -
a3640400 by Cole Robinson at 2014-09-21T18:33:39-04:00
m4: Update manywarnings from gnulib
Fixes these noisy errors on Fedora 21:
gcc: warning: switch '-Wmudflap' is no longer supported
- - - - -
d352e830 by Cole Robinson at 2014-09-22T13:00:35-04:00
gitignore: Ignore build-aux/compile
Which appears on f21
- - - - -
7e0b6ac0 by Zeeshan Ali (Khattak) at 2015-03-15T15:54:36+00:00
Bump version
- - - - -
eeb4b171 by Zeeshan Ali (Khattak) at 2015-05-07T17:19:54+01:00
build: Ignore 'strings exceeding C90 limit' warning
We don't really need to care about C90 compliance (it's pretty old
standard by now) to have to limit our strings to 509 characters.
- - - - -
ca247a45 by Zeeshan Ali (Khattak) at 2015-05-27T18:30:00+01:00
NEWS: Fix year for last 2 releases
- - - - -
25451de9 by Zeeshan Ali (Khattak) at 2015-05-27T18:30:50+01:00
Release 0.2.12
- - - - -
639f39bc by Zeeshan Ali (Khattak) at 2015-08-17T19:07:06+01:00
Bump version
- - - - -
1f1db6cb by Zeeshan Ali (Khattak) at 2015-08-26T13:13:38+01:00
Ditch udev rule
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).
- - - - -
53aed1c4 by Daniel P. Berrange at 2015-09-25T16:15:51+01:00
build: fix ChangeLog generation in VPATH build
When running 'make dist' from a VPATH, the ChangeLog file
is not generated because it doesn't find the .git directory
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
210fcae2 by Daniel P. Berrange at 2015-09-25T16:17:36+01:00
build: fix path to locale files in mingw RPM
The mingw RPM spec listed the locale files in the libdir
instead of datadir
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
9638c870 by Daniel P. Berrange at 2015-10-20T12:10:04+01:00
docs: describe entity URI ID scheme
Add a doc describing the best practice guidelines around
the format of URIs for various entities.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
46be986b by Daniel P. Berrange at 2015-10-20T12:11:03+01:00
docs: add document describing database organization
Add a document that sets out the desired end goal for the
database organization that the following patches will move
towards.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
8b0b1e3a by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: rename 'hypervisors' to 'platforms'
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 at redhat.com>
- - - - -
91e448e0 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split altlinux into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
69a73f8d by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split centos into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
226b60f0 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split debian into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
16bb6176 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split dos into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
72848e73 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split fedora into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
54bf3b3f by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split freebsd into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
87229e29 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split gnome into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
27161fa8 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split macos into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
4c41e671 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split mageia into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
fa7ba8a5 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split mandrake into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
a0050f04 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split netbsd into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
dbe614da by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split netware into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
68a68ae0 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split openbsd into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
e91975fe by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split opensuse into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
a1dc8bf1 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split rhel into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
bde9ab36 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split solaris into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
a54db14a by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split suse into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
9b9691a4 by Daniel P. Berrange at 2015-10-20T12:11:26+01:00
data: split ubuntu into one file per OS
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
4f16581a by Daniel P. Berrange at 2015-10-20T12:11:27+01:00
data: split kvm into one file per platform
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
d5ce3be5 by Daniel P. Berrange at 2015-10-20T12:11:27+01:00
data: split qemu into one file per platform
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
d854616f by Daniel P. Berrange at 2015-10-20T12:11:45+01:00
data: split rhel-xen into one file per platform
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
9ddda654 by Daniel P. Berrange at 2015-10-20T12:11:46+01:00
data: split xen into one file per platform
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
c375b71c by Daniel P. Berrange at 2015-10-20T12:11:46+01:00
data: split windows-lang into one file per datamap
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
019a91e2 by Daniel P. Berrange at 2015-10-20T12:11:46+01:00
data: split x11-keyboard into one file per datamap
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
ad9bb71f by Daniel P. Berrange at 2015-10-20T12:11:46+01:00
data: split debian into one file per install script
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
0b9ef38f by Daniel P. Berrange at 2015-10-20T12:11:46+01:00
data: split fedora into one file per install script
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
1eb65fdc by Daniel P. Berrange at 2015-10-20T12:11:46+01:00
data: split rhel into one file per install script
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
a913a3f1 by Daniel P. Berrange at 2015-10-20T12:11:46+01:00
data: split ubuntu into one file per install script
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
30f7feef by Daniel P. Berrange at 2015-10-20T12:11:46+01:00
data: split windows-* into one file per install script
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
d4d57cc0 by Daniel P. Berrange at 2015-10-20T12:11:47+01:00
data: split devices into one file per device
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
9d07d745 by Daniel P. Berrange at 2015-10-20T12:11:47+01:00
data: remove pluralization from data directories
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 at redhat.com>
- - - - -
5d7382ce by Daniel P. Berrange at 2015-10-20T12:11:47+01:00
Update ignore files for new database layout
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
60221ad0 by Daniel P. Berrange at 2015-10-20T12:19:48+01:00
loader: rework handling of pci.ids and usb.ids
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 at redhat.com>
- - - - -
f9cb81b4 by Daniel P. Berrange at 2015-10-20T12:28:41+01:00
loader: implement new semantics for entity overriding
This implements the new scheme for allowing entities to
be overridden. If an XML file relative path matches one
in an earlier datbase directory, the original file is
not loaded at all. Any files in a ENTITY-NAME.d will
now augment earlier data rather than replace it.
eg consider these files
1. /usr/share/libosinfo/db/os/fedoraproject.org/fedora-22.xml
2. /etc/libosinfo/db/os/fedoraproject.org/fedora-22.xml
3. $HOME/.config/libosinfo/db/os/fedoraproject.org/fedora-22.d/extra.xml
File #1 will not get loaded, because file #2 is detected
as a full override. File #2 will get loaded to define the
main Fedora 22 OS, and then file #3 will get loaded to
augment the main data.
Most of the PCI and USB device info in the local DB is
just augmenting the pci.ids and usb.ids master files,
so these need to move to .d directories now
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
d05e6656 by Christophe Fergeau at 2015-11-20T09:59:02+01:00
configure: bump libsoup version to 2.42
By bumping libsoup version, we are fixing a few deprecated warnings in
our tests (use SoupSession directly rather than SoupSessionAsync) and as
a side effect we don't need libsoup-gnome anymore.
Based on a patch from Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
a7c72946 by Daniel P. Berrange at 2015-12-16T16:46:17+00:00
Switch to 0.3.0 for next release
Since we have had a major change in the way we process the
libosinfo database files, this would be a good time to
switch to 0.3.0 for release numbers
- - - - -
f2f85d0f by Zeeshan Ali (Khattak) at 2016-01-08T19:17:58+00:00
Release 0.3.0
- - - - -
f4c1901e by Fabiano Fidêncio at 2016-01-11T13:48:38+01:00
Use GTask instead of GSimpleAsyncResult
Instead of using GSimpleAsyncResult, use the new GTask API, which is
much more straightforward.
For using the new GTask API, let's bump GIO (part of GLib) dependency
version to 2.36.
what is safe based on major distro support:
- Debian Jessie: glib-2.42
- RHEL-7.1: glib-2.40
- SLES12: glib-2.38
- Ubuntu LTS 14.04: glib-2.40
- - - - -
6c15fd4b by Fabiano Fidêncio at 2016-01-11T14:43:08+01:00
Remove checks/code for GLib older than 2.35.1
As now we depend on GLib 2.36, let's remove all checks/code that depend
on an older version than the one we require.
- - - - -
7abd2aac by Fabiano Fidêncio at 2016-01-11T14:44:46+01:00
Use GLIB_VERSION_MAX_ALLOWED
In order to avoid using a too new GLib API.
- - - - -
ce61c473 by Fabiano Fidêncio at 2016-01-11T14:47:18+01:00
Use SOUP_VERSION_MAX_ALLOWED
In order to avoid using a too new libsoup API.
- - - - -
a8d442fd by Fabiano Fidêncio at 2016-01-11T14:47:22+01:00
build: Don't set PKG_NAME
The following warning was shown when running autogen.sh:
***Warning*** PKG_NAME is deprecated, you may remove it from autogen.sh
- - - - -
81d264ac by Fabiano Fidêncio at 2016-01-11T14:47:22+01:00
build: Don't use USE_GNOME2_MACROS
The following warning was shown when running autogen.sh:
***Warning*** USE_GNOME2_MACROS is deprecated, you may remove it from
autogen.sh
- - - - -
81ee97f4 by Daniel P. Berrange at 2016-01-13T10:41:45+00:00
autobuild.sh: set a default value for AUTOBUILD_INSTALL_ROOT
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
01a2c4eb by Daniel P. Berrange at 2016-01-13T10:41:45+00:00
autobuild.sh: run parallel make for faster builds
Set MAKEFLAGS to use -j option matching number of available
CPUs.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
ef9bdce8 by Daniel P. Berrange at 2016-01-13T10:41:45+00:00
autobuild.sh: fix flag to turn on werror
In commit 97091136bd037aa44da13873ac910320b9ad7e6b we changed
to use gnulib's compiler warnings code, but forgot to change
the autobuild.sh flag to match. It should be --enable-werror
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
47a94880 by Daniel P. Berrange at 2016-01-13T11:23:06+00:00
autobuild.sh: enable gtk doc build when testing
- - - - -
2a41acee by Roman Bogorodskiy at 2016-04-19T10:01:43+02:00
README: update homepage
- - - - -
9b1b2143 by Roman Bogorodskiy at 2016-04-19T10:02:39+02:00
README: adjust wording a little.
- - - - -
79e6ecce by Fabiano Fidêncio at 2016-05-09T18:43:24+02:00
opensuse,installer: Add JEOS script
The script has been tested and works as expected for the most recent
releases of OpenSUSE (Leap 4.21 and Tumbleweed).
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Acked-by: Zeeshan Ali (Khattak) <zeeshanak at gnome.org>
- - - - -
1cfcbc64 by Fabiano Fidêncio at 2016-05-11T14:58:01+02:00
build: Fix "--no-undefined" linker's flag for OSX
Apple's linker doesn't have support to "--no-undefined" and we must use
something equivalent, like: "-undefined,error".
The patch was test by Programmingkid and his positive feedback can be
seen here:
https://www.redhat.com/archives/libosinfo/2016-May/msg00164.html
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1305016
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
- - - - -
c647421f by Andrew Stormont at 2016-05-11T15:27:31+02:00
build: Fix "--no-undefined" linker's flag for solaris
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1302339
Acked-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
21c91656 by Daniel P. Berrange at 2016-05-13T12:44:42+01:00
Fix build system after creating initial repository
The initial repository state was created from libosinfo
GIT at revision:
commit 501541a336cd29d3da48584f022ce329fef418dd
Author: Fabiano Fidêncio <fidencio at redhat.com>
Date: Thu May 12 18:54:58 2016 +0200
win,installer: Fix "Windwos" typo
It was initialized using the following commands:
$ git clone libosinfo osinfo-db-tools
$ cd osinfo-db-tools
$ git filter-branch --index-filter 'git rm -r --cached \
--ignore-unmatch src examples data db test \
docs/reference tools/osinfo-detect.c \
tools/osinfo-install-script.c \
tools/osinfo-query.c po osinfo' HEAD
$ git filter-branch -f --prune-empty HEAD
$ git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d
$ git reflog expire --expire=now --all
$ git gc --prune=now
This patch now edits the various build system files to
remove references to bits of the tree that were deleted,
and rename from libosinfo to osinfo-db-tools.
Currently this module contains a single command
osinfo-db-validate
It will later be augmented with tools for importing
and exporting database archives.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
fe982199 by Daniel P. Berrange at 2016-05-13T12:44:44+01:00
Import trimmed translations from libosinfo project
This set of trimmed translations was created using the
following commands
$ cp ../../libosinfo/*.po .
$ make osinfo-db-tools.pot
$ make update-po
This creates new .po files that only contain message
strings for the content needed by the new repo.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
f0448ee4 by Daniel P. Berrange at 2016-06-15T17:14:34+01:00
Add osinfo-db-import tool for unpacking an osinfo database archive
Add a new osinfo-db-import tool which takes an archive in the
tar (pax) format, with XZ compression and can extract its contents
into one of the standard libosinfo database locations.
This makes it easy for users to download new copies of the
database and unpack them in the right place.
eg
$ osinfo-db-import -v osinfo-db-2016-06-15.tar.xz
osinfo-db-import: d osinfo-db-2016-06-15/
osinfo-db-import: r osinfo-db-2016-06-15/pci.ids
osinfo-db-import: r osinfo-db-2016-06-15/usb.ids
osinfo-db-import: d osinfo-db-2016-06-15/datamaps/
osinfo-db-import: r osinfo-db-2016-06-15/datamaps/windows-lang.xml
osinfo-db-import: r osinfo-db-2016-06-15/datamaps/x11-keyboard.xml
osinfo-db-import: d osinfo-db-2016-06-15/devices/
osinfo-db-import: r osinfo-db-2016-06-15/devices/qemu-pci.xml
osinfo-db-import: r osinfo-db-2016-06-15/devices/qemu-ps2.xml
osinfo-db-import: r osinfo-db-2016-06-15/devices/qemu-usb.xml
osinfo-db-import: r osinfo-db-2016-06-15/devices/virtio-pci.xml
osinfo-db-import: r osinfo-db-2016-06-15/devices/xen.xml
...snip...
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
05b361a8 by Daniel P. Berrange at 2016-06-15T17:44:44+01:00
Add osinfo-db-export tool for packing an osinfo database archive
Add a new osinfo-db-export tool which creates an archive in the
tar (pax) format, with XZ compression and can filling it with the
database files from one of the standard libosinfo database locations,
or a custom directory.
This makes it easy for users to create their own local custom database
content and then distribute and import it on many machines. It will
also be used for creating official release archives of the libosinfo
database from upstream.
$ osinfo-db-export --verbose osinfo-db-2016-06-15.tar.xz
osinfo-db-export: d osinfo-db-2016-06-15/
osinfo-db-export: d osinfo-db-2016-06-15/datamaps
osinfo-db-export: r osinfo-db-2016-06-15/datamaps/windows-lang.xml
osinfo-db-export: r osinfo-db-2016-06-15/datamaps/x11-keyboard.xml
osinfo-db-export: d osinfo-db-2016-06-15/devices
osinfo-db-export: r osinfo-db-2016-06-15/devices/qemu-pci.xml
osinfo-db-export: r osinfo-db-2016-06-15/devices/qemu-ps2.xml
osinfo-db-export: r osinfo-db-2016-06-15/devices/qemu-usb.xml
osinfo-db-export: r osinfo-db-2016-06-15/devices/virtio-pci.xml
osinfo-db-export: r osinfo-db-2016-06-15/devices/xen.xml
osinfo-db-export: d osinfo-db-2016-06-15/hypervisors
osinfo-db-export: r osinfo-db-2016-06-15/hypervisors/kvm.xml
...snip...
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
e77f22ee by Daniel P. Berrange at 2016-06-28T12:35:32+01:00
Share code for getting database path locations
Both the osinfo-db-import and osinfo-db-export tools have
the same code for getting the database path locations. Pull
it out into a osinfo-db-util.c file for sharing.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
91243b4d by Daniel P. Berrange at 2016-06-28T12:35:32+01:00
Fix description of import/export commands
The command line option help was reporting the wrong description
for the import/export commands due to cut+paste mistake.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
672592bd by Daniel P. Berrange at 2016-07-08T13:32:42+01:00
Add a new osinfo-db-path tool for reporting db locations
Applications or system administrators accessing the osinfo
database directly (instead of via the libosinfo API) will
need a well defined means of getting the standard database
locations. The osinfo-db-tool is a trivial command that
can serve this purpose. eg
$ osinfo-db-path --system
/usr/local/share/libosinfo/db
$ osinfo-db-path --user
/home/berrange/.config/libosinfo/db
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
1bc7bff5 by Daniel P. Berrange at 2016-07-08T13:35:29+01:00
Find RNG schema in default database locations
With the split out database, the RNG schema will no longer
be installed by the code, instead it will be distributed
as part of the database. Thus we should look in the database
locations to find the schema.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
74578e74 by Daniel P. Berrange at 2016-07-08T13:35:30+01:00
Change osinfo-db-validate to default to a standard location
Instead of requiring a list of paths to be passed in, default
to validating files from the standard database locations.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
dbbe1336 by Daniel P. Berrange at 2016-07-08T13:35:30+01:00
Set a valid error domain for GError
GLib will print a warning if 0 is passed for the GQuark
error domain when setting a GError. Define a valid error
domain quark and use it.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
a9fcda51 by Daniel P. Berrange at 2016-07-08T13:35:30+01:00
Remove print of filenames when --verbose is not used
The osinfo-db-validate command has a --verbose arg to request
printing of filenames as they are validated. Remove the stray
g_print() that duplicated this
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
632ce2e6 by Daniel P. Berrange at 2016-07-08T13:35:30+01:00
Fix swapped file/directory permissions in tar file
Plain files were given mode 0755 while dirs got 0644, the exact
opposite of what they should have.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
8b2d8e6c by Daniel P. Berrange at 2016-07-08T13:35:30+01:00
Explicitly set timestamps on entries in created tar file
Always set a timestamp on entries in the created tar file
to reflect the time at which the tar was created. This
ensures when people import new versions of the database,
the files get newer timestamps.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
5540fbb9 by Daniel P. Berrange at 2016-07-08T13:35:30+01:00
Filter list of files included in created tar
Don't include hidden files or editor backup files in the
exported tar. Also whitelist to only include files with
a .xml, .rng or .ids suffix. This facilitates running
against a local git repo which may have other files such
as the automake/autoconf .in and .am files.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
f0078fa7 by Daniel P. Berrange at 2016-07-08T13:35:30+01:00
Fix source link in the RPM spec
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
a7d008fe by Daniel P. Berrange at 2016-07-08T13:35:30+01:00
Remove defattr from the RPM spec
The use of defattr is long since obsolete with RPM
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
481e71d2 by Daniel P. Berrange at 2016-07-08T13:36:38+01:00
tools: fix typo s/termsof/terms of/
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
939f3d4b by Daniel P. Berrange at 2016-07-18T16:03:43+01:00
osinfo-db-export: remove '-' in automatic version
Replace automatic version "2016-07-18" with "20160708" since
"-" is not a valid character in version numbers for RPM and
dates sort correctly without "-" being needed.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
ca83d681 by Daniel P. Berrange at 2016-07-18T16:05:04+01:00
osinfo-db-export: embed a file called "VERSION"
Although the version can be inferred from the archive
filename, once extracted this info is not available.
Populate the archive with a file called VERSION which
will be extracted into the root of the DB directory.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
7f03f96f by Daniel P. Berrange at 2016-07-25T13:06:37+01:00
osinfo-db-export: generate filename if none is given
Currently if no filename is given to the export command
the archive will be written to stdout, which is less than
helpful as default behaviour. Change it to generate a
suitable default filename. Export to stdout can still be
requested explicitly by giving a filename of '-'.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
0b69a29e by Daniel P. Berrange at 2016-07-25T13:06:37+01:00
osinfo-db-util: Update paths to be compliant with specification
Per the osinfo db layout spec we have
1. system location
env $OSINFO_SYSTEM_DIR, defaulting to /usr/share/osinfo
2. local location
env $OSINFO_LOCAL_DIR, defaulting to /etc/osinfo
3. user location
env $OSINFO_USER_DIR, defaulting to $XDG_CONFIG_DIR/osinfo
or $HOME/.config/osinfo
- - - - -
9220ab14 by Daniel P. Berrange at 2016-07-28T13:48:26+01:00
Post-release version bump to 1.1.0
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
0849d5dd by Daniel P. Berrange at 2016-08-02T14:46:16+01:00
Remove COPYING.LIB and clarify that this is GPL licensed
The COPYING.LIB file was a remnant from the libosinfo GIT
split. All the actual tools were under the GPLv2+, not the
LGPLv2+. Remove COPYING.LIB and fix spec file and README.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
985d4621 by Daniel P. Berrange at 2016-10-19T10:10:39+01:00
osinfo-db-export: add ability to include a license file
Add a "--license FILE-NAME" option to osinfo-db-export
which will add that reference FILE-NAME to the generated
archive as a file called "LICENSE" in the top level.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
5aee8af7 by Guido Günther at 2016-10-20T17:14:56+02:00
README: libarchive is required as well
- - - - -
86da39ad by Guido Günther at 2016-10-20T17:14:56+02:00
validate: correct help output
We validate files, don't install them
- - - - -
8cbd5297 by Daniel P. Berrange at 2016-10-26T08:47:30+02:00
Add release notes for 1.1.0
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
144b1baa by Daniel P. Berrange at 2016-10-26T10:42:55+02:00
Post release version bump to 1.2.0
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
d637cbc3 by Daniel P. Berrange at 2017-02-23T17:05:40+00:00
Remove references to fedorahosted.org from spec files
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
bfff2eb4 by Roman Bogorodskiy at 2017-04-18T11:28:13+01:00
Fix build with clang
The osinfo_db_import_create_reg() function implements error handling
via jumping to cleanup and returning, however, this way the return
value is not initialised. This breaks build with clang and probably
could lead to an undefined behavior for users of this function.
Fix by initialising ret with -1 by default.
- - - - -
1819a927 by Andrea Bolognani at 2017-09-21T10:00:08+01:00
configure: Look for Perl interpreter path
The $(PERL) variable is used in cfg.mk, but configure is not
actually looking for the Perl interpreter path, so it will always
end up being empty.
Reviewed-by: Daniel P. Berrange <berrange at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
50454ff8 by Andrea Bolognani at 2017-09-21T10:00:24+01:00
bracket-spacing: Don't hardcode Perl interpreter path
This is particularly useful on operating systems that don't ship
Perl as part of the base system (eg. FreeBSD) while still working
just as well as it did before on Linux.
Reviewed-by: Daniel P. Berrange <berrange at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
127c564d by Andrea Bolognani at 2017-09-21T10:00:28+01:00
maint: Drop autobuild.sh
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, which
also performs periodic builds of osinfo-db-tools, is running on
Jenkins with a completely independent setup that doesn't use the
script at all.
Reviewed-by: Daniel P. Berrange <berrange at redhat.com>
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
47233d0b by Daniel P. Berrange at 2017-10-26T13:14:31+01:00
Don't expand entities when parsing XML
The XML_PARSE_NOENT flag to libxml will cause it to expand all entities in the
input XML document when parsing. Doing this is bad practice if the XML input
file comes from an untrusted source, because it can cause the XML parser to load
arbitrary files that are readable by the user running XML parsing. This is does
not have an security consequences given the scenario in which osinfo-db-validate
is run since the intended usage is to validate files that are written by the
local user, or by the upstream libosinfo maintainers.
In the future though, libosinfo might be able to dynamically download data from
the website to refresh its local database, so it is wise to avoid entity
expansion as a hardening step.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
2c1d452f by Daniel P. Berrange at 2017-12-04T16:51:37+00:00
Refresh translations from zanata
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
- - - - -
e9942252 by Daniel P. Berrangé at 2018-06-20T10:58:49+01:00
Re-add script for doing releases
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
e8b28e8e by Daniel P. Berrangé at 2018-06-20T10:58:53+01:00
Update NEWS for 1.2.0 release
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
1bfb1d91 by Daniel P. Berrangé at 2018-06-20T11:00:43+01:00
Post release version bump
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
4952fc60 by Daniel P. Berrangé at 2018-09-05T11:40:11+01:00
Refresh translations from zanata
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
b6ef2a71 by Daniel P. Berrangé at 2018-09-05T16:38:01+01:00
Fix format specifier as glib2 requires libc compatible formats
PRId64 is the platform native format, but glib2 guarantees
libc compatible formats even on Windows. So code must use
the G_GUINT64_FORMAT macro instead.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
3bf75a25 by Fabiano Fidêncio at 2018-09-21T16:14:44+02:00
import: Add a "\n" to the error messages
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau at redhat.com>
- - - - -
c88eb093 by Fabiano Fidêncio at 2018-09-21T16:14:44+02:00
export: Don't call g_object_unref(NULL) in _create_file()
In osinfo_db_create_file() g_file_query_info() may fail which will leave
@info as a NULL and we'll try to free it in the cleanup causing:
(osinfo-db-export:32261): GLib-GObject-CRITICAL **: 11:00:08.488: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
In order to avoid that, let's only call g_object_unref() when @info is
not NULL.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau at redhat.com>
- - - - -
aee6202b by Fabiano Fidêncio at 2018-09-21T16:14:44+02:00
export: Add a "\n" to the error messages
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau at redhat.com>
- - - - -
7d1dbec4 by Fabiano Fidêncio at 2018-09-21T16:14:44+02:00
validate: Add a "\n" to the error messages
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau at redhat.com>
- - - - -
7cf3e5dd by Fabiano Fidêncio at 2018-09-21T16:14:44+02:00
path: Add a "\n" to the error message
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau at redhat.com>
- - - - -
5efef4e0 by Fabiano Fidêncio at 2018-09-24T14:30:31+02:00
import: update manpage
Mention in the manpage that if no ARCHIVE-FILE is passed or when
ARCHIVE-FILE is -, it'll be read from the standard input.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau at redhat.com>
- - - - -
b4b844b5 by Fabiano Fidêncio at 2018-10-09T17:10:43+02:00
authors,maintainers: Add all gitlab's group members
Let's update the list of authors/maintainers accordingly to the
libosinfo's gitlab group members.
The list has been put in alphabetical order on purpose.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
7270dcb4 by Fabiano Fidêncio at 2018-10-15T12:37:06+02:00
tools: Remove FSF address from source files
Let's follow what's already done in libosinfo and recommended from
http://www.gnu.org/licenses/gpl-howto.html and do not put FSF address in
the source files. Instead, just link to the FSF website.
Based on:
https://gitlab.com/libosinfo/libosinfo/commit/3343d0f9c1b0937824bee2527612047bc2e75f84
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
c9cef21c by Fabiano Fidêncio at 2018-12-19T13:40:34+01:00
import: Remove unused variable
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
976ad41c by Fabiano Fidêncio at 2018-12-19T14:00:53+01:00
import: Learn how to deal with URLs
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
bc594939 by Fabiano Fidêncio at 2018-12-19T14:00:56+01:00
import: Introduce "--latest" option
--latest option checks whether there's a new osinfo-db available from
the official libosinfo's release website, downloads and install it.
The download and installation is only then when the version available in
libosinfo's release website is newer than the version installed in the
(specified location in) system.
The file we query in order to get the "latest" available version
(https://db.libosinfo.org/latest.json) is a json that looks like:
{
"version": 1,
"release": {
"version": "20181203",
"archive": "https://releases.pagure.org/libosinfo/osinfo-db-20181203.tar.xz",
"signature": "https://releases.pagure.org/libosinfo/osinfo-db-20181203.tar.xz.asc"
}
}
The file will be automatically updated whenever a new release is done
(in a day interval).
This commit also introduces a new dependency: json-glib, which is used
to easily manipulate the queried file's content.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
87b89c1e by Daniel P. Berrangé at 2018-12-20T09:20:28+00:00
osinfo-db-import: fix loading of local files
When the argument can be either a URI or a local path, it the
g_file_new_for_commandline_arg constructor must be used. In
addition, when the GFile is a native path, we must not use the original
path, but instead call g_file_get_path(), so that file:/// URIs are
correctly handled by stripping the protocol.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
6d6af4c0 by Fabiano Fidêncio at 2019-01-04T11:28:12+01:00
README: Update download link
Let's point to pagure instead of referring to the already sunset
fedorahosted.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau at redhat.com>
- - - - -
41efaf36 by Fabiano Fidêncio at 2019-01-04T11:28:31+01:00
README: Reword the patch submission paragraph
Just mention that the libosinfo's mailing list is the *preferred* way to
send patches. More info, as the one about the project accepting Merge
Request, can be found in the project's website.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau at redhat.com>
- - - - -
48701c47 by Fabiano Fidêncio at 2019-01-09T15:45:28+01:00
README: Update download information
Let's point to https://libosinfo.org/download/ instead of pointing to
pagure, as it could change again in the future.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
a631cdd1 by Fabiano Fidêncio at 2019-02-01T16:51:44+01:00
Refresh translations from zanata
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
cec8ca90 by Fabiano Fidêncio at 2019-02-01T17:02:44+01:00
Update NEWS for 1.3.0 release
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
e7ef432a by Fabiano Fidêncio at 2019-02-01T17:26:28+01:00
Post release version bump to 1.4.0
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
1f13eea3 by Martin Blanchard at 2019-02-19T21:23:02+01:00
build: Prefer autoreconf over gnome-autogen
gnome-common is completely deprecated:
https://wiki.gnome.org/Projects/GnomeCommon/Migration
Reviewed-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
00abe3eb by Martin Blanchard at 2019-02-19T21:23:17+01:00
build: Prefer gettext over intltool
intltool is outdated:
https://wiki.gnome.org/Initiatives/GnomeGoals/GettextMigration
Reviewed-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
78561cb7 by Fabiano Fidêncio at 2019-03-01T17:14:10+01:00
Refresh translations from zanata
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
c2f0a807 by Fabiano Fidêncio at 2019-03-01T17:26:01+01:00
Update NEWS for 1.4.0 release
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
eb205a2b by Fabiano Fidêncio at 2019-03-01T17:38:57+01:00
Post release version bump to 1.5.0
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
a853e23c by Fabiano Fidêncio at 2019-03-05T10:21:55+01:00
mingw: Add mingw-json-glib as a dependency
Since 1.3.0 we depend on json-glib.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
7627aeaf by Fabiano Fidêncio at 2019-03-07T16:06:53+01:00
mingw: Use %find_lang macro
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau at redhat.com>
- - - - -
8166aaeb by Fabiano Fidêncio at 2019-03-07T16:06:55+01:00
spec: Add "BuildRequires: gcc"
This change is bringing upstream the changes done on Fedora on
5195c8b989be.
Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Pino Toscano <ptoscano at redhat.com>
- - - - -
dbc0260b by Fabiano Fidêncio at 2019-03-07T16:07:12+01:00
mingw,spec: Remove obsolete Group tag
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 at redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau at redhat.com>
Reviewed-by: Pino Toscano <ptoscano at redhat.com>
- - - - -
9b9911a0 by Fabiano Fidêncio at 2019-03-07T16:07:16+01:00
mingw,spec: Fix the Source URL
https://releases.pagure.org/libosinfo/... instead of
https://releases.pagure.io/libosinfo/...
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Pino Toscano <ptoscano at redhat.com>
- - - - -
b7cff5a7 by Fabiano Fidêncio at 2019-03-08T13:11:06+01:00
readme: Add json-glib as dependency
Since 1.3.0 we depend on json-glib.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau at redhat.com>
- - - - -
1d8b39c7 by Fabiano Fidêncio at 2019-03-27T08:40:58+01:00
Add a git-publish configuration file
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
275d007e by Fabiano Fidêncio at 2019-04-08T09:39:03+02:00
export: Fix wording in help output
export never install anything, the wording used seems to a c&p from
osinfo-db-import.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Pino Toscano <ptoscano at redhat.com>
- - - - -
a1cbb637 by Fabiano Fidêncio at 2019-04-08T09:39:50+02:00
validate: Do not leak the uri in validate_file_regular()
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
56da78d6 by Fabiano Fidêncio at 2019-04-08T09:39:54+02:00
util: Do not assume --root argument ends with '/'
Current situation is that whenever --root is passed its argument has to
finish with a '/' otherwise the system, local, or user dir would be
concatened to it as "%s%s".
Instead of building the filename by ourselves, let's just rely on
g_build_filename().
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
4c72b1c0 by Fabiano Fidêncio at 2019-04-08T09:39:59+02:00
makefile: Add needed machinery for tests
https://gitlab.com/libosinfo/osinfo-db-tools/issues/2
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
c2253803 by Fabiano Fidêncio at 2019-04-08T09:40:04+02:00
tests: Add util.py
util.py contains helpers for getting the path of both binaries and data
to be used in our tests.
https://gitlab.com/libosinfo/osinfo-db-tools/issues/2
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
7295baad by Fabiano Fidêncio at 2019-04-08T09:40:09+02:00
tests: Add tests data
The added data consists in:
- positive:
- valid data for validation, importing, exporting tests
- negative:
- invalid data for validation tests
- license:
- just a license file to be used for exporting tests
https://gitlab.com/libosinfo/osinfo-db-tools/issues/2
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
34ff01e6 by Fabiano Fidêncio at 2019-04-08T09:40:19+02:00
tests: Add osinfo-db-path tests
Add a set of functional tests to ensure osinfo-db-path works as
expected. The covered scenarios are:
- osinfo-db-path --system
- osinfo-db-path --local
- osinfo-db-oath --user
- osinfo-db-path --dir
- osinfo-db-path --root ROOT --system
https://gitlab.com/libosinfo/osinfo-db-tools/issues/2
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
59453568 by Fabiano Fidêncio at 2019-04-08T09:40:23+02:00
tests: Add osinfo-db-validate tests
Add a set of functional tests to ensure osinfo-db-validate works as
epxected. The covered scenarios are:
- osinfo-db-validate --system
- osinfo-db-validate --local
- osinfo-db-validate --user
- osindo-db-validate --dir
- For this, a negative test was also added
https://gitlab.com/libosinfo/osinfo-db-tools/issues/2
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
872632a6 by Fabiano Fidêncio at 2019-04-08T09:45:38+02:00
tests: Add osinfo-db-{export,import} tests
Add a set of functional tests to ensure osinfo-db-export and
osinfo-db-import work as expected. The covered scenearios are:
- osinfo-db-export DIR
- It's a negative test
- osinfo-db-export --system and osinfo-db-import --system
- osinfo-db-export --local FILENAME
- osinfo-db-import --local FILENAME
- cat FILENAME | osinfo-db-import -
- cat FILENAME | osinfo-db-import
- osinfo-db-export --user --license LICENSE --version VERSION
VERSIONED_FILENAME
- osinfo-db-import --root / --user VERSIONED_FILENAME
- osinfo-db-import --user URL
- osinfo-db-import --latest
The last two tests are only enabled when OSINFO_DB_TOOLS_NETWORK_TESTS
is set.
Last but not least, differently than the tests for osinfo-db-path and
osinfo-db-validate, those tests pretty much only make sense when taken
as pairs. So, we export a db, import it back and ensure the content is
the same.
https://gitlab.com/libosinfo/osinfo-db-tools/issues/2
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
7c95e8e3 by Fabiano Fidêncio at 2019-04-10T10:56:17+02:00
readme: Add optional testing dependencies
With the addition of the osinfo-db-tools tests, osinfo-db-tools has new
optional dependencies as:
- python3
- python3-pytest
- python3-requests
Knowing that, let's update our README to reflect the current state of
the project.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
50131158 by Fabiano Fidêncio at 2019-04-10T10:56:52+02:00
readme: Add "Testing" section
Add info about testing osinfo-db-tools, including how to run the network
based tests.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
2c0e1aa5 by Fabiano Fidêncio at 2019-04-15T21:03:32+02:00
tests: Only run the tests if deps are installed
Let's check whether we have all the deps installed in the system and
only run the tests if that's the case.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
53329e68 by Fabiano Fidêncio at 2019-04-15T21:03:36+02:00
spec: Add %check target (and the needed deps)
Now that we have tests as part of osinfo-db-tools, let's enable them
when building an RPM.
A new set of BuildRequires dependencies have been added as our tests
depend on python3, python3-pytest, and python3-requests.
The %check target has been added unconditionally the tests are only
executed in case the deps are found in the system.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
b380daf4 by Daniel P. Berrangé at 2019-04-16T13:35:55+01:00
configure: fix non-portable shell test syntax
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
f9971395 by Fabiano Fidêncio at 2019-04-23T09:27:56+02:00
spec: Require GVFS
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 at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
7cfd8d57 by Fabiano Fidêncio at 2019-04-25T16:46:22+02:00
configure: Fix EXECUTE_TESTS condition
When b380daf430 fixed the non-portable shell test syntax, a new `test`
should have been added so both conditions are properly evaluated.
Example:
[test "x$foo" = "xyes" && test "x$bar = "xyes"] instead of
[test "x$foo" = "yes" -a "x$bar" = "xyes"].
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Eric Blake <eblake at redhat.com>
- - - - -
7a34c22d by Fabiano Fidêncio at 2019-04-25T16:47:07+02:00
configure: Use "=" for `test` instead of "=="
`man test` only lists "=" instead of "==".
With that in mind, let's change how we compare the strings to always use
a single "=" sign.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Eric Blake <eblake at redhat.com>
- - - - -
1df4c0db by Fabiano Fidêncio at 2019-05-02T08:50:02+02:00
test_osinfo_db_path: Unset OSINFO_*_DIR envvars
Let's just unset the OSINFO_{SYSTEM,DATA,USER}_DIR environment variables
in our tests, in case those were externally set for some reason.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
237577f2 by Fabiano Fidêncio at 2019-05-06T12:22:29+02:00
Refresh translations from zanata
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
57ca844d by Fabiano Fidêncio at 2019-05-09T08:54:38+02:00
Update NEWS for 1.5.0 release
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
6e9bfd0d by Fabiano Fidêncio at 2019-05-09T11:25:47+02:00
Post release version bump to 1.6.0
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
07be7309 by Fabiano Fidêncio at 2019-05-22T13:23:39+02:00
import: Don't call unlink(NULL)
Although `man 3 unlink` doesn't mention what should be the unlink()
behaviour when NULL is passed to it, both coverity and clang complains
about that.
Error: FORWARD_NULL (CWE-476):
osinfo-db-tools-1.5.0/tools/osinfo-db-import.c:157: var_compare_op:
Comparing "*source_file" to null implies that "*source_file" might be
null.
osinfo-db-tools-1.5.0/tools/osinfo-db-import.c:181: var_deref_model:
Passing null pointer "*source_file" to "unlink", which dereferences it.
# 179| g_error_free(err);
# 180| if (ret != 0)
# 181|-> unlink(*source_file);
# 182|
# 183| return ret;
Error: CLANG_WARNING:
osinfo-db-tools-1.5.0/tools/osinfo-db-import.c:181:9: warning: Null
pointer passed as an argument to a 'nonnull' parameter
# unlink(*source_file);
# ^
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
2d747c63 by Fabiano Fidêncio at 2019-05-22T13:23:44+02:00
export: Remove unused variable
err is declared, set to NULL, but never used in
osinfo_db_export_create().
Error: DEADCODE (CWE-561):
osinfo-db-tools-1.5.0/tools/osinfo-db-export.c:410: assignment:
Assigning: "err" = "NULL".
osinfo-db-tools-1.5.0/tools/osinfo-db-export.c:448: null: At condition
"err", the value of "err" must be "NULL".
osinfo-db-tools-1.5.0/tools/osinfo-db-export.c:448: dead_error_condition:
The condition "err" cannot be true.
osinfo-db-tools-1.5.0/tools/osinfo-db-export.c:449: dead_error_line:
Execution cannot reach this statement: "g_error_free(err);".
osinfo-db-tools-1.5.0/tools/osinfo-db-export.c:449: effectively_constant:
Local variable "err" is assigned only once, to a constant value, making
it effectively constant throughout its scope. If this is not the intent,
examine the logic to see if there is a missing assigment that would make
"err" not remain constant.
# 447| archive_write_free(arc);
# 448| if (err)
# 449|-> g_error_free(err);
# 450| return ret;
# 451| }
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
7ac63b92 by Fabiano Fidêncio at 2019-05-22T13:23:46+02:00
validate: Don't leak "files"
Error: CLANG_WARNING:
osinfo-db-tools-1.5.0/tools/osinfo-db-validate.c:319:9: warning:
Potential leak of memory pointed to by 'files'
# g_printerr("%s\n", error->message);
# ^
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
69eb33ad by Fabiano Fidêncio at 2019-05-22T21:40:23+02:00
import: Don't call unlink(NULL) in _import_extract()
Similarly to the issue fixed by ae52b0fbc, here we're also potentially
passing NULL to unlink().
Error: FORWARD_NULL (CWE-476):
osinfo-db-tools-1.5.0/tools/osinfo-db-import.c:332: var_compare_op: Comparing "source_file" to null implies that "source_file" might be null.
osinfo-db-tools-1.5.0/tools/osinfo-db-import.c:374: var_deref_model: Passing null pointer "source_file" to "unlink", which dereferences it.
# 372| g_object_unref(file);
# 373| if (!file_is_native)
# 374|-> unlink(source_file);
# 375| g_free(source_file);
# 376| return ret;
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
1f92767b by Fabiano Fidêncio at 2019-06-03T08:39:28+02:00
test_osinfo_db_path: Unset XDG_CONFIG_HOME envvar
Similarly to what's been done as part of 1df4c0dbede91, let's just unset
XDG_CONFIG_HOME environment variable in our tests, in case those were
externally set for some reason.
https://gitlab.com/libosinfo/osinfo-db-tools/issues/3
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
9ca18f6f by Fabiano Fidêncio at 2019-07-11T21:51:16+02:00
tests: Unset OSINFO_LOCAL_DIR envvar
Commit 1df4c0dbede tried to unset all OSINFO_*_DIR envvars but instead
of unsetting OSINFO_LOCAL_DIR it unset OSINFO_DATA_DIR, which doesn't
exist.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
3917e5f4 by Fabiano Fidêncio at 2019-07-17T10:29:51+02:00
import: Use libsoup for http:// & https:// requests
As osinfo-db-import handles non-local requests, it'd end up relying on
GVFS under the hood, which would cause the app to not work when running
as root.
In order to avoid this situation, let's rely on libsoup for this case..
It's important to mention that glib minimum version has been bumped to
2.44 as that's the version where g_input_stream_read_all() has been
introduced.
https://gitlab.com/libosinfo/libosinfo/issues/30
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
18d1dfa5 by Fabiano Fidêncio at 2019-07-17T10:30:21+02:00
spec: Drop gvfs dependency
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 at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
ceac25aa by Fabiano Fidêncio at 2019-07-17T10:30:25+02:00
import: Use g_clear_*() functions
Let's use g_clear_object() & g_clear_error() as those two functions
avoid us checking whether the object is NULL or not and also sets the
object to NULL after unrefing it.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
f3315f12 by Fabiano Fidêncio at 2019-07-17T10:30:29+02:00
export: Simplify osinfo_db_export_create_dir()
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
d2766fd7 by Fabiano Fidêncio at 2019-07-17T10:30:34+02:00
export: use g_clear_*() functions
Let's use g_clear_object() & g_clear_error() as those two functions
avoid us checking whether the object is NULL or not and also sets the
object to NULL after unrefing it.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
83291be1 by Fabiano Fidêncio at 2019-07-17T10:30:37+02:00
path: Use g_clear_*() functions
Let's use g_clear_object() & g_clear_error() as those two functions
avoid us checking whether the object is NULL or not and also sets the
object to NULL after unrefing it.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
f32e2202 by Fabiano Fidêncio at 2019-07-17T10:30:41+02:00
validate: Simplify validate_file_directory()
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
43a4f527 by Fabiano Fidêncio at 2019-07-17T10:30:45+02:00
validate: Use g_clear_*() functions
Let's use g_clear_object() & g_clear_error() as those two functions
avoid us checking whether the object is NULL or not and also sets the
object to NULL after unrefing it.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
fc68b83d by Fabiano Fidêncio at 2019-07-17T10:30:49+02:00
util: Use g_clear_*() functions
Let's use g_clear_object() & g_clear_error() as those two functions
avoid us checking whether the object is NULL or not and also sets the
object to NULL after unrefing it.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
7433422d by Fabiano Fidêncio at 2019-07-26T17:05:29+02:00
spec,mingw: Add mingw*-libsoup as dependency
Commit 3917e5f4ae0e5 introduced libsoup dependency but forgot to add it
to the mingw spec files.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
69598a84 by Fabiano Fidêncio at 2019-07-26T21:57:19+02:00
Refresh translations from zanata
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
bfe03f57 by Fabiano Fidêncio at 2019-07-26T21:57:51+02:00
Update NEWS for 1.6.0 release
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
f1b11b38 by Fabiano Fidêncio at 2019-07-26T22:17:09+02:00
Post release version bump to 1.7.0
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
85254865 by Fabiano Fidêncio at 2019-08-01T11:11:43+02:00
configure: Relax gettext requirement
Since commit 00abe3eb4, we've added gettext 0.19.8 as a dependency for
osinfo-db-tools. However, it broke libosinfo build on Ubuntu 16.04 as
the gettext provided by them is 0.19.7.
Taking a look at the "noteworthy"* changes, seems that for our usecase we
can just depend 0.19.7 and keep building on Ubuntu 16.04
*: https://lists.gnu.org/archive/html/info-gnu/2016-06/msg00003.html
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
859244a7 by Fabiano Fidêncio at 2019-09-02T10:57:45+02:00
util: Indent includes/defines
By doing this, we can stop excluding files from
sc_preprocessor_indentation check.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
1b577a83 by Fabiano Fidêncio at 2019-09-02T11:00:11+02:00
cfg.mk: Remove exclude_file_name_regexp--sc_preprocessor_indentation
Let's run the check in all files.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
aebb4047 by Fabiano Fidêncio at 2019-09-02T11:00:18+02:00
cfg.mk: Remove exclude_file_name_regexp--sc_prohibit_strcmp
Let's run the check in all files.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
ef44c997 by Fabiano Fidêncio at 2019-09-02T11:00:24+02:00
cfg.mk: Remove exclude_file_name_regexp--sc_bindtextdomain
Let's run the check in all files.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
3d9356cc by Fabiano Fidêncio at 2019-09-02T11:00:29+02:00
maint.mk: Update to the latest gnulib version
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
1f75025f by Fabiano Fidêncio at 2019-09-02T11:00:35+02:00
tools: Don't import config.h
config.h file is only used in osinfo-db-tools for the GETTEXT_PACKAGE
macro. Fortunately, when AC_CONFIG_HEADER macro is dropped from
configure, -DGETTEXT_PACKAGE=... is automatically passed as a compilar
argument, allowing us then to drop the file.
Together with this change, let's also drop both sc_require_config_h and
sc_require_config_h_first checks from `make syntax-check`.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
ab3ab7b0 by Fabiano Fidêncio at 2019-09-02T11:00:44+02:00
Add support to meson build system
Meson build system is a "simpler and easier" to understand build system
that that can provide (with some work-arounds here and there) the same
functionalities currently available with our current build system
(autotools).
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
c109a783 by Fabiano Fidêncio at 2019-09-02T11:00:51+02:00
spec: Adapt to use meson
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 at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
c1e28b45 by Fabiano Fidêncio at 2019-09-02T11:00:58+02:00
prepare-release: Remove non-valid configure options
Those options have been added as the `prepare-release.sh` was copied
from the libosinfo project. However, those options are not valid for
osinfo-db-tools project.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
85e65c01 by Fabiano Fidêncio at 2019-09-02T11:01:04+02:00
prepare-release: Adapt to use meson
Let's adapt the prepare-release script to use meson build system instead
of autotools.
This change has been tested and is working fine on Fedora 30+.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
1018098a by Fabiano Fidêncio at 2019-09-02T11:01:09+02:00
Drop autotools support
Let's try to drop autotools support as meson is in place. There are a
few files that were not dropped though, as:
- cfg.mk
- maint.mk
- GNUmakefile
- build-aux/bracket-spacing.pl
- build-aux/gitlog-to-changelog
- build-aux/useless-if-before-free
- build-aux/vc-list-files
>From the list above, build-aux/gitlog-to-changelog is currently used by
meson as part of the `dist`.
All the other files, with a few changes, will be useful for meson as,
with a few changes, we will be able have `ninja syntax-check` working.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
4bfcee7c by Fabiano Fidêncio at 2019-09-02T11:01:17+02:00
Support `make syntax-check` without Makefile
A few dirty hacks have been done in GNUmakefile, cfg.mk, and maint.mk
in order to support running `make syntax-check` without having to have a
Makefile around.
GNUmakefile: set srcdir & top_srcdir and remove the parts that would
cause an error due to no presence of a Makefile.
cfg.mk: add sc_prohibit_always-defined_macros to the list of local
checks to skip as it looks for Makefile, which is generated after
running ./configure.
maint.mk: allow running `make syntax-check` without having a Makefile
generated.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
1dc47ca0 by Fabiano Fidêncio at 2019-09-02T11:01:23+02:00
Move files needed for `make syntax-check` to build-aux
Together with the changes, let's adapt GNUmakefile and maint.mk in order
to be able to run those files from build-aux.
GNUmakefile:
- changing both srcdir & top_srcdir, and adjusting the includes of
cfg.mk and maint.mk were enough to be able to run `make syntax-check`
from build-aux directory;
maint.mk:
- "ME" variable had to be changed to point to the right place;
- Some paths expecting cfg.mk in the top_srcdir had to be changed;
- tight-scope.mk target dependency has been changed from $(ME) to
maint.mk;
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
4f0898a1 by Fabiano Fidêncio at 2019-09-02T11:01:29+02:00
meson: Add ninja syntax-check
Let's take advantage of that we can run `make syntax-check` without the
need of having a Makefile around and add a `ninja syntax-check` target
that ends up calling `make syntax-check`.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
2c70ec65 by Fabiano Fidêncio at 2019-09-02T11:01:37+02:00
prepare-release: Add `ninja syntax-check`
Now that ninja has a `syntax-check` target, let's add it to
prepare-release script in a similar that `make syntax-check` was used
before.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
3e1a95ee by Fabiano Fidêncio at 2019-09-05T17:15:20+02:00
ci: Introduce CI
Let's introduce a basic CI, which basically runs a build with the tests,
running against the following systems:
- Fedora 29, Fedora 30, Fedora Rawhide;
- Debian 10, Debian Sid;
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
4adcc48d by Fabiano Fidêncio at 2019-09-12T09:21:23+02:00
ci: Make it as close as possible to libvirt-jenkins-ci
Which means having clearly steps about:
- Package build (native)
- Package syntax-check
- Package check
- Package rpm
- Package build (mingw32)
- Package build (mingw64)
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Blessed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
a7d0d012 by Fabiano Fidêncio at 2019-09-23T13:25:16+02:00
tests,meson: Remove syntax-check target
Let's remove the syntax-check target, making it part of `ninja test`.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
3643f10a by Fabiano Fidêncio at 2019-09-23T13:26:26+02:00
tests,meson: Allow to run a subset of tests
meson allow running specific tests by either specifying them by name or
by grouping them as parte of a 'suite'.
Let's group our unit tests as part of 'unit' suite and leave the
syntax-check test as part of 'style' suite.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
ddd68841 by Fabiano Fidêncio at 2019-09-23T13:26:31+02:00
tests,meson: Rename the tests to something simpler
Just because it's easier to type when running an individual test.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
- - - - -
988ecdc9 by Fabiano Fidêncio at 2019-09-25T16:43:31+02:00
Remove AUTHORS, MAINTAINERS, and ChangeLog* files
There's no reason for keeping generating and distributing AUTHORS,
MAINTAINERS, and Changelog files.
AUTHORS is explicitly required by autoconf, which is not used anymore.
MAINTAINERS is something that does not make much sense to have, as the
preferred way for people to report issues should be the one described in
libosinfo.org and never ever contacting a maintainer directly.
ChangeLog is also something that does not make much sense to have, as
`git log` can provide all the info needed, in case someone wants to dig
into the project's history.
*: It's important to mention that we never had any "ChangeLog" file, the
file was generated by gitlog-to-changelog script, which was also removed
and then put into the distributed tarball.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Cole Robinson <crobinso at redhat.com>
- - - - -
beaeaf61 by Fabiano Fidêncio at 2019-10-10T17:28:33+02:00
ci: Set NINJA environment variable
We'll start testing on CentOS 7, which doesn't have the "ninja" binary.
Knowing this, we better have a NINJA environment variable setting
accodingly.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
177cbe77 by Fabiano Fidêncio at 2019-10-10T18:17:02+02:00
ci: Deal with multilib path
When building a project using Meson, the project will be installed
respecting the multi-library path.
In order to get the right path we should do:
- Debian based machines:
- Use the value of `dpkg-architecture -q DEB_TARGET_MULTIARCH`
- RPM based machines:
- Use the value of `rpm --eval '%{_lib}'`
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
47de0c24 by Fabiano Fidêncio at 2019-10-10T18:22:33+02:00
ci: Keep the containers alphabetically sorted
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
0fe7f691 by Fabiano Fidêncio at 2019-10-10T18:22:39+02:00
ci: Add CentOS 7 container
We cannot run osinfo-db-tools-rpm job in the CentOS 7 container as it
doesn't have the needed meson macros.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
5ac87175 by Fabiano Fidêncio at 2019-10-10T18:22:39+02:00
ci: Add Debian 9 container
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
a734a70f by Fabiano Fidêncio at 2019-10-10T18:22:39+02:00
ci: Add Ubuntu 16 container
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
493f2830 by Fabiano Fidêncio at 2019-10-10T18:22:39+02:00
ci: Add Ubuntu 18 container
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
7aeff322 by Andrea Bolognani at 2019-11-11T13:36:36+01:00
ci: Add Fedora 31
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
c0370b06 by Andrea Bolognani at 2019-11-11T13:37:46+01:00
ci: Remove Fedora 29
The OS is no longer supported by the libvirt-jenkins-ci project
and the existing container images will be deleted shortly.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
136852a8 by Fabiano Fidêncio at 2019-11-29T14:08:03+01:00
Refresh translations from zanata
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
a25cafbf by Fabiano Fidêncio at 2019-11-29T14:09:01+01:00
Update NEWS for 1.7.0 release
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Reviewed-by: Ján Tomko <jtomko at redhat.com>
- - - - -
a55d4c56 by Fabiano Fidêncio at 2019-11-29T16:11:44+01:00
Post release version bump to 1.8.0
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
b25e2573 by Fabiano Fidêncio at 2019-12-02T13:30:36+01:00
mingw,spec: Add gcc as BuildRequires
meson requires both compiler and cross-compiler in order to perform a
cross build.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
1f05ca75 by Fabiano Fidêncio at 2019-12-02T13:30:40+01:00
spec: Use %autosetup
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
ab416d8a by Roman Bogorodskiy at 2019-12-08T10:56:20+01:00
meson: respect mandir option
There's an osinfo_db_tools_mandir setting that respects meson's 'mandir'
option. Use that for tools man installation dir instead of building
a path based on osinfo_db_tools_datadir.
Signed-off-by: Roman Bogorodskiy <bogorodskiy at gmail.com>
Reviewed-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
434d4488 by Roman Bogorodskiy at 2019-12-08T10:56:20+01:00
meson: fix GETTEXT_PACKAGE formatting
Properly specify placeholder value to get it replaced.
Signed-off-by: Roman Bogorodskiy <bogorodskiy at gmail.com>
Reviewed-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
bd0c50ef by Roman Bogorodskiy at 2019-12-08T10:56:20+01:00
meson: tests: make python3 really optional
As python3 is supposed to be optional, pass
'required: false' to python.find_installation(), otherwise when
it's missing, build fails with:
Program python found: NO
tests/meson.build:12:0: ERROR: python3 not found
Signed-off-by: Roman Bogorodskiy <bogorodskiy at gmail.com>
Reviewed-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
af424a04 by Andrea Bolognani at 2019-12-11T17:16:43+01:00
ci: Update name for Ubuntu images
The corresponding libvirt-jenkins-ci commit is f289e64a5fd9.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
4d48c267 by Fabiano Fidêncio at 2019-12-12T10:27:44+01:00
ci: Add CentOS 8 container
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
2a6e3d34 by Fabiano Fidêncio at 2019-12-17T16:00:20+00:00
meson: Require use of GCC or CLang compilers
Coming patches introducing the usage of g_auto* macros will force the
requirement of using either GCC or CLang, as g_auto* macros are no-op on
other compilers.
Something similar has been introduced to Libvirt some time ago by
24241c236, which mentions:
"""
We only ever test libvirt with GCC or Clang which provides a GCC
compatible compilation environment. Between them, these compilers cover
every important operating system platform, even Windows.
Mandate their use to make it explicit that we don't care about compilers
like Microsoft VCC or other UNIX vendor C compilers.
"""
And the reasoning is also true for osinfo-db-tools.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
886d8a3a by Fabiano Fidêncio at 2019-12-17T16:00:20+00:00
util: Use g_auto* macros
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
81673627 by Fabiano Fidêncio at 2019-12-17T16:00:20+00:00
path: Use g_auto* macros
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
ebe4c7ea by Fabiano Fidêncio at 2019-12-17T16:00:20+00:00
validate: Use g_auto* macros
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
ab034eb2 by Fabiano Fidêncio at 2019-12-17T16:00:20+00:00
import: Use g_auto* macros
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
aa768607 by Fabiano Fidêncio at 2019-12-17T16:00:20+00:00
export: Use g_auto* macros
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
58375c6c by Fabiano Fidêncio at 2019-12-18T13:27:47+00:00
Add CONTRIBUTING.md
Let's follow osinfo-db example and have a contributing guide, targetting
both contributors and commiters.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
0a215bc6 by Fabiano Fidêncio at 2019-12-18T13:27:47+00:00
ci: Add a job to enforce DCO Signed-off-by
This work is a copy-and-paste from what's been done by Daniel P. Berrangé
on https://gitlab.com/bichon-project/bichon
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
b115ee18 by Fabiano Fidêncio at 2020-01-06T23:35:29+01:00
po: Remove empty files
https://gitlab.com/libosinfo/osinfo-db-tools/issues/4
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
a6ed528e by Fabiano Fidêncio at 2020-01-09T22:59:04+01:00
ci: Add openSUSE 15.1 container
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
48383a2a by Fabiano Fidêncio at 2020-01-09T23:05:54+01:00
ci,centos8: Build the project's RPM
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
3effa34e by Antoni Bella Pérez at 2020-01-24T11:13:48+01:00
Translated using Weblate (Catalan)
Currently translated at 27.9% (12 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.stg.fedoraproject.org/projects/libosinfo/osinfo-db-tools/ca/
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
522ee4e1 by Julien Humbert at 2020-01-24T11:15:41+01:00
Translated using Weblate (French)
Currently translated at 100.0% (43 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.stg.fedoraproject.org/projects/libosinfo/osinfo-db-tools/fr/
Signed-off-by: Julien Humbert <julroy67 at gmail.com>
- - - - -
6480a91d by Andrea Bolognani at 2020-02-24T17:28:12+01:00
ci: Temporarily disable MinGW builds
We're going to use dedicated container images for them going
forward, but switching all at once would break CI so let's do it
in two steps: first disable the current builds, then enable the
new ones once the external requirements (container images) are
in place for a smoother transition.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
c6e291cd by Andrea Bolognani at 2020-02-24T18:28:37+01:00
ci: Perform MinGW builds in dedicated containers
Instead of using the same Fedora 30 container for both native and
MinGW builds, we are now building separate containers tailored for
each scenario. Re-introduce MinGW builds, and have them use the
new container images.
The corresponding libvirt-dockerfiles commit is ea6286acbbfd.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
b0feb74e by Andrea Bolognani at 2020-02-25T15:11:13+01:00
ci: Don't set $PKG_CONFIG_LIBDIR
The pkg-config binary used for MinGW builds is cross-compilation
aware, so it doesn't need us to point it in the right direction
when it comes to globally-installed .pc files.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
a015f3b6 by Fabiano Fidêncio at 2020-03-23T11:41:44+01:00
po: Import osinfo-db-tools.pot
Weblate requires the pot file to be commited, in order to be able to add
new translations to the project.
This file has to be updated every time a new string is added.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
9f8762a2 by Oğuz Ersen at 2020-03-26T17:23:47+01:00
Added translation using Weblate (Turkish)
Signed-off-by: Oğuz Ersen <oguzersen at protonmail.com>
- - - - -
d78dd576 by Oğuz Ersen at 2020-03-27T19:38:40+01:00
Translated using Weblate (Turkish)
Currently translated at 100.0% (43 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/tr/
Signed-off-by: Oğuz Ersen <oguzersen at protonmail.com>
- - - - -
0666b86c by Andrea Bolognani at 2020-03-30T17:21:40+02:00
gitlab: Don't define $NINJA
Since libvirt-jenkins-ci commit 27cfddee8835, paths to build tools
such as ninja and make are exported in the container's environment
and can be used directly.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
95984a43 by Andrea Bolognani at 2020-03-30T17:23:55+02:00
gitlab: Create job templates
These avoid having to repeat the same build steps over and over.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
c4519669 by Andrea Bolognani at 2020-03-30T17:24:49+02:00
gitlab: Enable ccache usage
The $PATH definition has always included a reference to the symlink
farm that is used to enable transparent ccache usage, but since the
directory itself does not exist in the container image it never did
anything.
Since libvirt-jenkins-ci commit 2563aebb6c5c, container images do
actually contain the symlink directory, so it's finally possible to
enable ccache usage. This requires including the correct directory
in $PATH, as well as telling 1) ccache where to store its data and
2) GitLab that this data should be preserved across jobs.
The exact cache size (50 MB) is sort of arbitrary, but it should
be enough to store build artifacts for both osinfo-db-tools and
libosinfo for the foreseeable future.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
9aa736a4 by Andrea Bolognani at 2020-04-17T23:40:26+02:00
gitignore: Minimize
Most of the entires are leftovers from before Meson was adopted;
the remaining ones are for things like editor backup files, which
belong in the user's own ignore file rather than in the project's..
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
ff476574 by Andrea Bolognani at 2020-04-17T23:40:31+02:00
prepare-release: Add empty line
Visually separate the cleanup phase from the build phase.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
11dc31a2 by Andrea Bolognani at 2020-04-17T23:40:33+02:00
prepare-release: Remove unnecessary cleanup
We already remove all of build/ at the beginning of the build
process, so there's no need to manually remove any of its subdirs
here.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
d86ebf3a by Andrea Bolognani at 2020-04-17T23:40:35+02:00
prepare-release: Drop RESULTS
This is a leftover from when the script was used to perform
automated tests: in that context, singling out the output of the
test suite made sense, but now we're no longer particularly
interested in it.
As a bonus, this allows us to drop a non-trivial chunk of fairly
obscure POSIX shell compatibility code.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
7316e623 by Andrea Bolognani at 2020-04-17T23:40:36+02:00
prepare-release: Ensure rpmbuild is executable
Using 'test -x' is more appropriate than 'test -r' for programs.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
a53d5fe4 by Andrea Bolognani at 2020-04-17T23:40:39+02:00
prepare-release: Use DESTDIR when installing
DESTDIR and --prefix are similar but serve distinct purposes: in
particular, the latter is intended for modifications that will
persist after installation, eg. storing binaries under /usr/bin
instead of /usr/local/bin, while the former is just a temporary
change that can be easily reverted, eg. stashing files in an
intermediate, unprivileged directory while building a package.
Our needs during the release process are closer to what DESTDIR is
designed for, so let's use that.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
331d70be by Andrea Bolognani at 2020-04-17T23:40:42+02:00
prepare-release: Use a local directory for installation
The current release process stores files inside the user's home
directory, which is just bad manners. Use a local directory instead.
Since we no longer have to care about the destination directory
looking like an actual root filesystem, we can make the paths used
when installing MinGW builds shorter.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
9a0ee742 by Andrea Bolognani at 2020-04-17T23:40:44+02:00
prepare-release: Use a local directory for rpmbuild
The current release process stores files inside the user's rpmbuild
directory, usually part of $HOME, which is just bad manners. Use a
local directory instead.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
5410c953 by Andrea Bolognani at 2020-04-17T23:40:46+02:00
prepare-release: Define BUILD_ROOT
This fits nicely with INSTALL_ROOT and the recently-introduced
RPMBUILD_ROOT; additionally, since $BUILD_ROOT is an absolute path,
we can use it directly as _sourcedir when calling rpmbuild.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
c0ff1855 by Andrea Bolognani at 2020-04-17T23:40:48+02:00
prepare-release: Define DIST_ROOT
This is the subdirectory of BUILD_ROOT where the release archive
is generated by Meson: it's already used multiple times, and we're
about to introduce another one, so let's give it its own variable.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
f2a47e41 by Andrea Bolognani at 2020-04-17T23:40:50+02:00
prepare-release: Move release archive out of DIST_ROOT
If the build has been successful, we can fish the release archive
out of DIST_ROOT and expose it in the top-level source directory,
just like autotools would do, for extra convenience.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
2244c188 by Andrea Bolognani at 2020-04-30T20:51:07+02:00
ci: Move MinGW builds from Fedora 30 to Fedora Rawhide
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
d9fc7dce by Andrea Bolognani at 2020-04-30T20:51:31+02:00
ci: Move builds from Fedora 30 to Fedora 32
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
2879b8d7 by Andrea Bolognani at 2020-04-30T20:51:32+02:00
ci: Move builds from Ubuntu 16.04 to Ubuntu 20.04
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
11d2937a by Andrea Bolognani at 2020-05-01T21:00:41+02:00
ci: Make RPM job skippable
We're sort of cheating by exiting right away when asked to skip
the RPM job, but we know that it's always going to be the last job
in a script and we currently have no need to skip any other job,
so let's start with the simplest possible implementation and
consider something more complex if and when the need arises.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
3def5139 by Andrea Bolognani at 2020-05-01T21:05:56+02:00
ci: Use RPM job again
This was dropped by mistake in
commit 95984a431f1bada0306f2d8b56a1e5adfa2f36fc
Author: Andrea Bolognani <abologna at redhat.com>
Date: Mon Mar 30 16:28:55 2020 +0200
gitlab: Create job templates
These avoid having to repeat the same build steps over and over.
We can't build RPMs on CentOS 7 and openSUSE 15.1 because those
targets lack the necessary Meson macros.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
a9e7ba9e by Andrea Bolognani at 2020-05-01T21:10:54+02:00
ci: Introduce pipeline stages
There's only a single stage for now.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
56767702 by Andrea Bolognani at 2020-05-01T21:11:18+02:00
ci: Move more information to the job templates
In particular, we can avoid repeating the parts of the container
image name that are always the same.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
0ece49f2 by Andrea Bolognani at 2020-05-01T21:29:54+02:00
ci: Split off mingw-environment
Follow the environment/script split, like we do everywhere else.
We can have a single environment that works both for mingw32 and
mingw64 builds because the only difference between the two is
which ABI they target, and we can obtain that piece of information
from the $ABI environment variable that's baked into the container
images.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
4db0b8cb by Andrea Bolognani at 2020-05-01T21:30:00+02:00
ci: Merge templates into mingw-build-job
The mingw32 and mingw64 templates are basically identical at this
point, so let's merge them into a generic one.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
b12dc5fb by Andrea Bolognani at 2020-05-01T21:30:11+02:00
ci: Introduce multilib
This is a bit yucky, but it's only temporary: like the target ABI,
this information is tied to the container image and as such should
be baked into it. When that happens, we can simply drop this
altogether, but in the meantime this bit of scripting allow us to
have a single environment instead of two.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
53a2c97c by Andrea Bolognani at 2020-05-01T21:30:16+02:00
ci: Merge templates into native-build-job
At this point, the only difference between the existing templates
is that one of them includes the RPM build job, and since we now
have a way to skip that part for specific targets, we can get rid
of the duplication and merge them into a single template.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
cee363bb by Andrea Bolognani at 2020-05-01T22:10:08+02:00
ci: Use 'check-dco' container for DCO checking
This container image, which has been created for this specific
purporse and is already used by many projects under the libvirt
umbrella, contains a nicer Python implementation of the
require-dco.sh script that's guaranteed to be kept up to date.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
a9f3da20 by Andika Triwidada at 2020-05-03T10:12:51+02:00
Translated using Weblate (Indonesian)
Currently translated at 100.0% (43 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/id/
Signed-off-by: Andika Triwidada <andika at gmail.com>
- - - - -
81a0e20b by Fabiano Fidêncio at 2020-05-04T08:47:02+00:00
README: MR is the preferred way to submit a patch
Unlikely of what our README mentioned, the preferred way to submit a
patch to osinfo-db-tools is opening a Merge Request against our GitLab
project.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
790b60e6 by Pino Toscano at 2020-05-13T13:12:00+02:00
Drop Zanata leftovers
osinfo-db-tools uses Weblate for translations.
Signed-off-by: Pino Toscano <ptoscano at redhat.com>
- - - - -
35cfd51a by Pino Toscano at 2020-05-13T13:12:42+02:00
po: update LINGUAS
Add tr.
Signed-off-by: Pino Toscano <ptoscano at redhat.com>
- - - - -
0af81336 by Weblate at 2020-05-20T22:03:56+02:00
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/
Signed-off-by: Weblate <noreply at weblate.org>
- - - - -
84c75051 by Manuela Silva at 2020-05-21T13:58:53+02:00
Added translation using Weblate (Portuguese (Portugal))
Signed-off-by: Manuela Silva <mmsrs at sky.com>
- - - - -
74f869bb by Manuela Silva at 2020-05-22T08:29:55+02:00
Translated using Weblate (Portuguese (Portugal))
Currently translated at 32.5% (14 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/pt_PT/
Signed-off-by: Manuela Silva <mmsrs at sky.com>
- - - - -
c185dd44 by Andrea Bolognani at 2020-05-28T19:04:01+02:00
ci: Use GitLab container registry
Instead of using pre-built containers hosted on Quay, build
containers as part of the GitLab CI pipeline and upload them to the
GitLab container registry for later use.
This does not slow down builds, because containers are only rebuilt
when the corresponding Dockerfile has been modified.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
a168b747 by Daniel P. Berrangé at 2020-05-29T08:47:19+00:00
build-aux: trim obsolete maint rules
Many rules in maint.mk are doing checks related to makefiles, or
autoconf, or gnulib, none of which are used by libosinfo. There
are also many misc rules related to publishing of releases that
are never used. Trimming this out makes the resulting file more
managable.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
0655aad8 by Fabiano Fidêncio at 2020-05-29T08:47:19+00:00
build-aux: merge cfg.mk into maint.mk
Since we took full ownership of a cut down maint.mk there's no
need to keep local additions separately in cfg.mk
This fixes a bug which caused the contents of cfg.mk to be
skipped since the moving of files into the build-aux dir
and switch to meson.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
06863746 by Fabiano Fidêncio at 2020-05-29T08:47:19+00:00
build-aux: remove GNUmakefile entirely
The only useful bits it still did were setting a couple of variables,
which can be moved into the main maint.mk file.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
dcd8c40b by Daniel P. Berrangé at 2020-05-29T08:47:19+00:00
build-aux: rename maint.mk to syntax-check.mk
This name aligns with what the makefile actally does.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
e0eb27d7 by Daniel P. Berrangé at 2020-05-29T08:47:19+00:00
build-aux: fix references to old maint.mk name
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
22a18a5f by Daniel P. Berrangé at 2020-05-29T08:47:19+00:00
build-aux: use gmake for syntax-check rules
Previously on FreeBSD the syntax-check rules would be a no-op because
its non-GNU make wouldn't see the GNUmakefile and would report no work
to do:
$ MESON_SOURCE_ROOT=`pwd` build-aux/syntax-check
`syntax-check' is up to date.
Since we moved everything into a syntax-check.mk that we call explicitly
though, we're the non-GNU make tries to execute rules that depend on
GNU make features.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
1d9fb534 by Fabiano Fidêncio at 2020-05-29T16:01:50+02:00
Update NEWS for 1.8.0 release
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
7ac1258e by Fabiano Fidêncio at 2020-06-02T11:45:21+02:00
Post release version bump to 1.9.0
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
37f8d9c6 by Andrea Bolognani at 2020-06-17T20:23:53+02:00
ci: Clean up refresh script a bit
Remove some repetition through refactoring and move the generic
generation command after the more specific ones.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
5f49e204 by Andrea Bolognani at 2020-06-17T20:24:17+02:00
ci: Move Dockerfiles to a subdir
This is consistent to how libvirt organizes its files, and ensures
things will remain tidy even as we introduce new features such as,
later on, Cirrus CI support.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
5c085f94 by Andrea Bolognani at 2020-06-17T20:24:17+02:00
ci: Refresh Dockerfiles
Starting with
commit 25c9da0aaa94fbca674dca6dec65f6348f335e7d
Author: Andrea Bolognani <abologna at redhat.com>
Date: Fri May 22 17:38:10 2020 +0200
lcitool: Generate MESON_OPTS in Dockerfiles
This serves the same purpose as CONFIGURE_OPTS: enable seamless
cross-compilation support, in this case for Meson-based projects.
Only MinGW cross-compilation targets are currently supported.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
lcitool will include a $MESON_OPTS environment variable, which can
be used to simplify our GitLab CI build rules, in the Dockerfiles
it generates.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
19bbfabd by Andrea Bolognani at 2020-06-17T20:24:17+02:00
ci: Use $MESON_OPTS
This information is part of the container image now.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
87b17411 by Andrea Bolognani at 2020-06-17T20:24:17+02:00
ci: Add CentOS Stream
Starting with
commit d35a7dba9cc8ac3bb0647171628731c625d4e14f
Author: Erik Skultety <eskultet at redhat.com>
Date: Thu Jun 4 16:17:36 2020 +0200
guests: Add CentOS Stream
The idea behind Stream is to get a preview of what the next RHEL-minor
will look like, thus getting newer versions of packages than regular
CentOS provides. It's supposed to be rolling, so currently it's based on
CentOS 8, but once RHEL-9 is out, it will point to the next RHEL-9
instead. However, unlike debian-sid it doesn't have a dedicated URL
resource (something like centos-stream), so we'll have to change it
manually once it's flipped to point to next RHEL-9.
Signed-off-by: Erik Skultety <eskultet at redhat.com>
lcitool supports CentOS Stream as a build target.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
1c9479dd by Andrea Bolognani at 2020-06-17T20:24:17+02:00
ci: Simplify rpmbuild command
We don't have to worry about cleaning up after ourselves, since
we're running the build inside an ephemeral container.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
346bda5c by Andrea Bolognani at 2020-06-17T20:24:17+02:00
ci: Check for rpmbuild availability
Only try to build RPMs if the rpmbuild command is present on the
system. This means we no longer have to use the RPM=skip trick on
Debian-based targets, and can limit it to cases where building
RPMs is actually broken for some reason.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
02505d9d by Andrea Bolognani at 2020-06-17T20:24:17+02:00
ci: Don't use RPM=skip for container builds
It only makes sense for actual build jobs.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
6169e905 by Rafael Fontenelle at 2020-07-11T08:49:07+02:00
Translated using Weblate (Portuguese (Brazil))
Currently translated at 44.1% (19 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/pt_BR/
Signed-off-by: Rafael Fontenelle <rafaelff at gnome.org>
Added translation using Weblate (Portuguese (Brazil))
Signed-off-by: Rafael Fontenelle <rafaelff at gnome.org>
- - - - -
f1fe8aae by Rafael Fontenelle at 2020-07-12T14:27:53+02:00
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (43 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/pt_BR/
Signed-off-by: Rafael Fontenelle <rafaelff at gnome.org>
- - - - -
e6654db8 by Pino Toscano at 2020-08-10T16:53:48+02:00
test_osinfo_db_export_import_system: fix on day change
In case the current day changes while osinfo-db-export is run, then
the test does not find the generated archive anymore: this is because
the filename of the generated archive has the timestamp of the date.
As workaround, build the filename for today and tomorrow, checking that
one of them must exist.
Fixes: #5
Signed-off-by: Pino Toscano <ptoscano at redhat.com>
- - - - -
d90c9304 by Daniel P. Berrangé at 2020-12-01T19:19:55+00:00
gitlab: re-generate container images from lcitool
This introduces Fedora 33 and removes some redundant packages.
RPM builds need to be skipped on CentOS 8/Stream due to using pip
installed meson now instead of distro packages.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
325d6338 by Daniel P. Berrangé at 2020-12-01T19:19:55+00:00
gitlab: refresh containers with lcitool for fully minimized base
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
ef3f894a by Daniel P. Berrangé at 2020-12-01T19:19:55+00:00
gitlab: adapt refresh script for changed host naming convention
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
95bcc48b by Daniel P. Berrangé at 2020-12-15T10:43:39+00:00
ci: refresh containers for CentOS-8 PowerTools repo rename
A recent CentOS-8 update renamed the "PowerTools" repo to "powertools"
and since dnf is case sensitive wrt repo names, this broke ability to
build new containers.
The refresh fixes the repo name and pulls in other misc improvements
to containers.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
bc63acb5 by Alexey Shabalin at 2020-12-15T12:00:19+01:00
Added translation using Weblate (Russian)
Co-authored-by: Alexey Shabalin <a.shabalin at gmail.com>
Signed-off-by: Alexey Shabalin <a.shabalin at gmail.com>
- - - - -
8b156f05 by Fabiano Fidêncio at 2021-02-02T20:33:51+01:00
Update NEWS for 1.9.0 release
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
8c137b44 by Fabiano Fidêncio at 2021-02-10T14:23:34+01:00
Post release version bump to 1.10.0
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
- - - - -
2a937db1 by Ricky Tigg at 2021-03-03T22:15:39+01:00
Translated using Weblate (Finnish)
Currently translated at 6.9% (3 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/fi/
Added translation using Weblate (Finnish)
Co-authored-by: Ricky Tigg <ricky.tigg at gmail.com>
Signed-off-by: Ricky Tigg <ricky.tigg at gmail.com>
- - - - -
bcf13b73 by Jan Kuparinen at 2021-03-03T22:15:39+01:00
Translated using Weblate (Finnish)
Currently translated at 100.0% (43 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/fi/
Co-authored-by: Jan Kuparinen <copper_fin at hotmail.com>
Signed-off-by: Jan Kuparinen <copper_fin at hotmail.com>
- - - - -
9840d7d8 by Hela Basa at 2021-03-03T22:15:39+01:00
Added translation using Weblate (Sinhala)
Co-authored-by: Hela Basa <r45xveza at pm.me>
Signed-off-by: Hela Basa <r45xveza at pm.me>
- - - - -
0c77cdce by simmon at 2021-04-04T10:01:55+02:00
Translated using Weblate (Korean)
Currently translated at 100.0% (43 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/ko/
Added translation using Weblate (Korean)
Co-authored-by: simmon <simmon at nplob.com>
Signed-off-by: simmon <simmon at nplob.com>
- - - - -
c882340c by simmon at 2021-04-07T07:01:56+02:00
Translated using Weblate (Korean)
Currently translated at 100.0% (43 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/ko/
Co-authored-by: simmon <simmon at nplob.com>
Signed-off-by: simmon <simmon at nplob.com>
- - - - -
70c3c9e4 by simmon at 2021-04-13T08:01:59+02:00
Translated using Weblate (Korean)
Currently translated at 100.0% (43 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/ko/
Co-authored-by: simmon <simmon at nplob.com>
Signed-off-by: simmon <simmon at nplob.com>
- - - - -
a30d1c67 by Daniel P. Berrangé at 2021-07-27T14:55:12+01:00
gitlab: use custom docker:dind image
The current docker:dind container has broken default seccomp filter that
results in clone3 being blocked, which in turn breaks Fedora 35 rawhide.
This custom image has a workaround that causes the seccomp filter to
return ENOSYS for clone3 instad of EPERM, thus triggering glibc to
fallback to clone correctly.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
3a9d0c7e by Daniel P. Berrangé at 2021-07-27T16:48:46+01:00
ci: refresh centos-stream container
It is no longer possible to just install an extra package to run regular
centos into centos stream.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
25adeb11 by Hela Basa at 2021-08-19T09:04:42+02:00
Translated using Weblate (Sinhala)
Currently translated at 2.3% (1 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/si/
Co-authored-by: Hela Basa <r45xveza at pm.me>
Signed-off-by: Hela Basa <r45xveza at pm.me>
- - - - -
fd29983b by Daniel P. Berrangé at 2021-09-03T15:22:24+01:00
gitlab: remove centos-7 build target
This platform is no longer supported by libvirt-ci.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
f3be0963 by Daniel P. Berrangé at 2021-09-03T15:23:12+01:00
gitlab: remove debian-9 build target
This platform is no longer supported by libvirt-ci.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
b11226f1 by Daniel P. Berrangé at 2021-09-03T15:23:18+01:00
ci: define a CI manifest file
This is to be used with the command "lcitool manifest ci/manifest.yml"
to re-generate all existing dockerfiles and gitlab CI config.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
57890428 by Daniel P. Berrangé at 2021-09-03T16:15:53+01:00
ci: re-generate containers/gitlab config from manifest
This uses the command "lcitool manifest ci/manifest.yml" to re-generate
all existing dockerfiles and gitlab CI config.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
b8c70fb0 by Daniel P. Berrangé at 2021-09-03T16:15:53+01:00
ci: remove obsolete refresh script and documentation
We now use lcitool's manifest feature to generate files.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
- - - - -
9971dab9 by Felipe Borges at 2021-10-06T12:57:43+02:00
import: Port to libsoup3
See https://blog.tingping.se/2021/02/23/future-of-libsoup.html
https://libsoup.org/libsoup-3.0/ch02.html
This will fallback to libsoup-2.4 when libsoup3 isn't available.
Signed-off-by: Felipe Borges <felipeborges at gnome.org>
- - - - -
2b354a16 by Andrea Bolognani at 2021-11-12T15:58:33+01:00
ci: Drop Fedora 33
It's going to be EOL in a matter of days, and lcitool already
dropped support for it.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
79fdb6d9 by Andrea Bolognani at 2021-11-12T15:59:20+01:00
ci: Refresh generated files
Notable differences:
* meson is now installed from the distro repositories
instead of PyPI on CentOS 8 and CentOS Stream 8. We
can finally do this because the version they ship
has been updated.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
cb9bb09d by Andrea Bolognani at 2021-11-12T16:02:00+01:00
ci: Enable RPM jobs on CentOS
Now that we have a recent version of meson installed from
distro packages instead of PyPI, RPM builds will no longer
fail.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
b032d0c5 by Andrea Bolognani at 2021-11-12T16:02:41+01:00
ci: Add new targets
lcitool now supports CentOS Stream 9, Debian 11 and Fedora 35.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
- - - - -
33de4196 by Ettore Atalan at 2021-12-28T23:16:23+01:00
Translated using Weblate (German)
Currently translated at 51.1% (22 of 43 strings)
Translation: libosinfo/osinfo-db-tools
Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/osinfo-db-tools/de/
Co-authored-by: Ettore Atalan <atalanttore at googlemail.com>
Signed-off-by: Ettore Atalan <atalanttore at googlemail.com>
- - - - -
365f4195 by Victor Toso at 2022-02-14T19:31:34+01:00
Update NEWS for 1.10.0 release
Signed-off-by: Victor Toso <victortoso at redhat.com>
- - - - -
08dd5c15 by Jeremy Bicha at 2022-04-15T08:49:48-04:00
debian/watch: Watch for .xz releases
Gbp-Dch: Ignore
- - - - -
d243c223 by Jeremy Bicha at 2022-04-15T08:50:39-04:00
Update debian/gbp.conf
- - - - -
1ee62991 by Jeremy Bicha at 2022-04-15T12:38:13-04:00
debian/upstream/signing-key.asc: Update
- - - - -
9296356f by Jeremy Bicha at 2022-04-15T13:16:30-04:00
New upstream version 1.10.0
- - - - -
b9202b96 by Jeremy Bicha at 2022-04-15T13:16:41-04:00
Update upstream source from tag 'upstream/1.10.0'
Update to upstream version '1.10.0'
with Debian dir a22bd51620f916c6b5acde1daa6cdd8a95a25062
- - - - -
a3d70c0d by Jeremy Bicha at 2022-04-15T13:19:34-04:00
New upstream release
- - - - -
683e103d by Jeremy Bicha at 2022-04-15T13:19:37-04:00
Build with meson
- - - - -
cd1b24bd by Jeremy Bicha at 2022-04-15T13:19:37-04:00
Build-Depend on debhelper-compat 13
- - - - -
c5f4e428 by Jeremy Bicha at 2022-04-15T13:22:26-04:00
Build-Depend on libjson-glib-dev & libsoup-3.0-dev
- - - - -
99ffce7c by Jeremy Bicha at 2022-04-15T13:23:40-04:00
Build-Depend on python3-pytest for build tests
- - - - -
6a6a391e by Jeremy Bicha at 2022-04-15T13:26:34-04:00
Build-Depend on python3-requests for build tests
- - - - -
9a28bc3e by Jeremy Bicha at 2022-04-15T13:28:48-04:00
Update Vcs fields for migration to Salsa
- - - - -
97a268aa by Jeremy Bicha at 2022-04-15T13:29:07-04:00
Drop obsolete Breaks/Replaces
- - - - -
ca21c347 by Jeremy Bicha at 2022-04-15T13:36:49-04:00
Set some standard build flags
- - - - -
d079dcc5 by Jeremy Bicha at 2022-04-15T13:36:56-04:00
Bump Standards-Version to 4.6.0
- - - - -
611e8e64 by Jeremy Bicha at 2022-04-15T13:38:37-04:00
Set Maintainer to libvirt team
- - - - -
4f7c0686 by Jeremy Bicha at 2022-04-15T13:40:53-04:00
releasing package osinfo-db-tools version 1.10.0-1
- - - - -
13 changed files:
- + .gitlab-ci.yml
- + .gitpublish
- + .mailmap
- − AUTHORS
- − AUTHORS.in
- + CONTRIBUTING.md
- − ChangeLog
- − GNUmakefile
- − INSTALL
- − Makefile.am
- − Makefile.in
- NEWS
- README
The diff was not included because it is too large.
View it on GitLab: https://salsa.debian.org/libvirt-team/osinfo-db-tools/-/compare/63516ac28425bdbae9cfc3c6ade1f83d58492c80...4f7c068657b11d591bc8d1383144852d4d01d25d
--
View it on GitLab: https://salsa.debian.org/libvirt-team/osinfo-db-tools/-/compare/63516ac28425bdbae9cfc3c6ade1f83d58492c80...4f7c068657b11d591bc8d1383144852d4d01d25d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-commits/attachments/20220415/2fb191c8/attachment-0001.htm>
More information about the Pkg-libvirt-commits
mailing list