summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Translated using Weblate (German)masterEttore Atalan2022-01-181-35/+35
| | | | | | | | | | Currently translated at 81.8% (140 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/de/ Co-authored-by: Ettore Atalan <atalanttore@googlemail.com> Signed-off-by: Ettore Atalan <atalanttore@googlemail.com>
* Translated using Weblate (Finnish)Jan Kuparinen2022-01-181-14/+14
| | | | | | | | | | Currently translated at 73.0% (125 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/fi/ Co-authored-by: Jan Kuparinen <copper_fin@hotmail.com> Signed-off-by: Jan Kuparinen <copper_fin@hotmail.com>
* osinfo: use consistent include syntax for public headersDaniel P. Berrangé2022-01-1836-36/+36
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* osinfo: switch to '#pragma once'Daniel P. Berrangé2022-01-1850-514/+361
| | | | | | | | | | | | | | | | The current include files use the pattern #ifndef __OOSINFO_BLAH_H__ # define __OOSINFO_BLAH_H__ #endif /* __OOSINFO_BLAH_H__ */ Since we already mandated GCC + CLang, we can replace this with a simpler incantation #pragma once Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* osinfo: fix bad preprocessor indentationDaniel P. Berrangé2022-01-181-4/+4
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* loader: add check for unknown file typeVictor Toso2021-11-291-0/+5
| | | | | | | | | | | | | | | | | | | | So we can provide a meaningful error message in case the provided path is not accessible to running process. e.g: running HOME=/root osinfo-query os we would get `Error loading OS data: Unexpected file type` and now we get `Error loading OS data: Can't read path /root/.config/osinfo` This error was first hit with v2v [0] that was leaking $USER and $HOME of root user when osinfo-query as vsdm user with `sudo -c vdsm`. The example above is a simple way to show lack of permision of osinfo-query to read the root's $HOME. [0] https://bugzilla.redhat.com/show_bug.cgi?id=1901423 Related: https://bugzilla.redhat.com/show_bug.cgi?id=1902720 Signed-off-by: Victor Toso <victortoso@redhat.com>
* os: Add `_get_complete_firmware_list()`Fabiano Fidêncio2021-11-248-0/+296
| | | | | | | | | | After realising the mistake of only returning **supported** firmwares on `_get_firmware_list()`, let's work that limitation around by adding a new function, `osinfo_os_get_complete_firmware_list()`, which returns the complete list of firmwares, including both supported and unsupported ones. Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
* os: _get_firmware_list() returns supported FWsFabiano Fidêncio2021-11-241-11/+11
| | | | | | | | | | | Let's make sure we document that `_get_firmware_list()` returns **only** supported firmwares, rather than returning **all** the firmwares avaiable for an OS. As part of the documentation change, let's also adapt the internal functions to reflect that. Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
* os: Add missing docs for _add_firmware()Fabiano Fidêncio2021-11-241-0/+9
| | | | | | | osinfo_os_add_firmware() has been added as part of 1.7.0 release but, somehow, its documentation has been missing. Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
* ci: Add new targetsAndrea Bolognani2021-11-125-0/+215
| | | | | | lcitool now supports CentOS Stream 9, Debian 11 and Fedora 35. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
* ci: Enable RPM jobs on CentOSAndrea Bolognani2021-11-122-12/+2
| | | | | | | | 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@redhat.com>
* ci: Refresh generated filesAndrea Bolognani2021-11-1212-48/+14
| | | | | | | | | | | | | | | | 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. * intltool and itstool (which are used to build osinfo-db as part of the CI pipeline) are no longer included in the container images. osinfo-db-tools moved away from the former and never adopted the latter. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
* ci: Drop Fedora 33Andrea Bolognani2021-11-123-80/+0
| | | | | | | It's going to be EOL in a matter of days, and lcitool already dropped support for it. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
* Skip over entity reference checks if loading failedDaniel P. Berrangé2021-10-101-2/+2
| | | | | | | | | | If we fail to parse one of the XML files, we abort loading the database. We then carry on to do an entity reference check which will almost certainly fail due to not having loaded many XML files. We need to skip over the entity reference check on failure to avoid spamming the user with bogus errors. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Warn about unexpected files in the databaseDaniel P. Berrangé2021-10-101-3/+12
| | | | | | | | | | | | | | | | To help remind users that files must end in .xml, warn about any unusually named files. There are a couple of files we should not warn about since we expect them to be present - VERSION - LICENSE The entire 'schema' sub-directory should be ignored. Common editor backups "~" and ".bak" should be ignored. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Fix hiding of database entriesDaniel P. Berrangé2021-10-101-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | The osinfo-db documentation says that a local admin/user can hide an entity from the system location: [quote] If the file is zero-length or points to /dev/null, then this represents a black-out override. This indicates that the ENTITY-NAME.xml file from a lower priority directory MUST NOT be loaded. [/quote] This does not, however, work at all. If a zero length file is given, it tries to parse this as XML and fails, causing the entire DB loading process to be aborted. This leaves the DB with dangling references. If a symlink to /dev/null is given, it is entirely ignored because the file is a block device and we only try to load regular files. Instead of only loading regular files, we need to load any type of file that has a .xml extension. This appears to be broken since the very first impl of the new DB loading process, despite having written the spec at the same time. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* tree, media: Soup.Session.send_async now takes an IO priority argumentFelipe Borges2021-10-062-0/+6
| | | | | | See https://libsoup.org/libsoup-3.0/SoupSession.html#soup-session-send-async Signed-off-by: Felipe Borges <felipeborges@gnome.org>
* tree, media: SoupMessage is a private struct in libsoup3Felipe Borges2021-10-063-7/+12
| | | | | | | | | You can no longer directly access various structs such as SoupMessage. These are now accessed by getters and setters. See https://libsoup.org/libsoup-3.0/ch02.html Signed-off-by: Felipe Borges <felipeborges@gnome.org>
* tree, media: SOUP_SESSION_USER_AGENT isn't defined in libosup3Felipe Borges2021-10-062-2/+2
| | | | | | Let's use the literal "user-agent" instead. Signed-off-by: Felipe Borges <felipeborges@gnome.org>
* build: Require libsoup3Felipe Borges2021-10-061-1/+5
| | | | | | | | See https://blog.tingping.se/2021/02/23/future-of-libsoup.html This will fallback to libsoup-2.4 when libsoup3 isn't available. Signed-off-by: Felipe Borges <felipeborges@gnome.org>
* build: don't set glib version constraints for g-ir-scannerDaniel P. Berrangé2021-09-274-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add_project_arguments() sets flags that apply to all invokations of the C compiler toolchain by meson. On the surface it sounds fine to use this for setting -DGLIB_VERSION_MIN_REQUIRED=VER -DGLIB_VERSION_MAX_ALLOWED=VER as we want all our code to be constrained by these declared glib versions to prevent us accidentally using APIS from newer glib by mistake. A subtle problem was revealed with the arrival of gobject-introspection version 1.70. The g-ir-scanner program auto-generates some glib code for handling introspection, and this generated code uses glib APIs that are newer than our declared version and this triggers compile failures tmp-introspectg6xadxkr/Libosinfo-1.0.c:251:3: error: ‘G_TYPE_FLAG_FINAL’ is deprecated: Not available before 2.70 [-Werror=deprecated-declarations] 251 | if (G_TYPE_IS_FINAL (type)) | ^~ In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, from tmp-introspectg6xadxkr/Libosinfo-1.0.c:30: /usr/include/glib-2.0/gobject/gtype.h:1050:3: note: declared here 1050 | G_TYPE_FLAG_FINAL GLIB_AVAILABLE_ENUMERATOR_IN_2_70 = (1 << 6) | ^~~~~~~~~~~~~~~~~ tmp-introspectg6xadxkr/Libosinfo-1.0.c:251:13: error: Not available before 2.70 [-Werror] 251 | if (G_TYPE_IS_FINAL (type)) | ^~~~~~~~~~~~~~~~~ This is actually harmless, because systems with an older glib will also have older g-ir-scanner and thus not be using these new APIs. We need to exclude the glib version constraints from code generated by glib tools, and thus means we have to stop using add_project_arguments() and set cflags explicitly on each target. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Translated using Weblate (Portuguese (Brazil))Rafael Fontenelle2021-09-061-6/+4
| | | | | | | | | | Currently translated at 100.0% (171 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/pt_BR/ Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org> Signed-off-by: Rafael Fontenelle <rafaelff@gnome.org>
* Translated using Weblate (Finnish)Jan Kuparinen2021-09-061-2/+2
| | | | | | | | | | Currently translated at 65.4% (112 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/fi/ Co-authored-by: Jan Kuparinen <copper_fin@hotmail.com> Signed-off-by: Jan Kuparinen <copper_fin@hotmail.com>
* ci: remove obsolete refresh script and documentationDaniel P. Berrangé2021-09-032-43/+0
| | | | | | We now use lcitool's manifest feature to generate files. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* ci: re-generate containers/gitlab config from manifestDaniel P. Berrangé2021-09-0315-303/+462
| | | | | | | 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@redhat.com>
* ci: define a CI manifest fileDaniel P. Berrangé2021-09-031-0/+53
| | | | | | | | | | | | This is to be used with the command "lcitool manifest ci/manifest.yml" to re-generate all existing dockerfiles and gitlab CI config. In a slight change to the existing config, the manifest will always use the pre-build osinfo-db-tools package. Nothing in the libosinfo CI tasks, has a need to exercise latest git master for osinfo-db-tools. The latter is covered fine by osinfo-db CI jobs. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: remove debian-9 build targetDaniel P. Berrangé2021-09-032-82/+0
| | | | | | This platform is no longer supported by libvirt-ci. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: remove centos-7 build targetDaniel P. Berrangé2021-09-032-70/+0
| | | | | | This platform is no longer supported by libvirt-ci. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Translated using Weblate (Sinhala)Hela Basa2021-08-251-4/+7
| | | | | | | | | | Currently translated at 0.5% (1 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/si/ Co-authored-by: Hela Basa <r45xveza@pm.me> Signed-off-by: Hela Basa <r45xveza@pm.me>
* Translated using Weblate (Indonesian)Andika Triwidada2021-08-251-7/+5
| | | | | | | | | | Currently translated at 100.0% (171 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/id/ Co-authored-by: Andika Triwidada <andika@gmail.com> Signed-off-by: Andika Triwidada <andika@gmail.com>
* Translated using Weblate (Finnish)Jan Kuparinen2021-08-251-57/+60
| | | | | | | | | | | | | | | | | Currently translated at 64.9% (111 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/fi/ Translated using Weblate (Finnish) Currently translated at 33.9% (58 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/fi/ Co-authored-by: Jan Kuparinen <copper_fin@hotmail.com> Signed-off-by: Jan Kuparinen <copper_fin@hotmail.com>
* Translated using Weblate (Korean)simmon2021-08-051-5/+3
| | | | | | | | | | Currently translated at 100.0% (171 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/ko/ Co-authored-by: simmon <simmon@nplob.com> Signed-off-by: simmon <simmon@nplob.com>
* Translated using Weblate (Turkish)Oğuz Ersen2021-08-051-6/+4
| | | | | | | | | | Currently translated at 100.0% (171 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/tr/ Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com> Signed-off-by: Oğuz Ersen <oguzersen@protonmail.com>
* Translated using Weblate (Ukrainian)Yuri Chornoivan2021-08-051-10/+8
| | | | | | | | | | Currently translated at 100.0% (171 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/uk/ Co-authored-by: Yuri Chornoivan <yurchor@ukr.net> Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
* Translated using Weblate (Italian)Pino Toscano2021-08-051-7/+5
| | | | | | | | | | Currently translated at 100.0% (171 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/it/ Co-authored-by: Pino Toscano <toscano.pino@tiscali.it> Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
* Translated using Weblate (Polish)Piotr Drąg2021-08-051-10/+8
| | | | | | | | | | Currently translated at 100.0% (171 of 171 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/pl/ Co-authored-by: Piotr Drąg <piotrdrag@gmail.com> Signed-off-by: Piotr Drąg <piotrdrag@gmail.com>
* Update translation filesWeblate2021-08-0519-613/+723
| | | | | | | | | Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Co-authored-by: Weblate <noreply@weblate.org> Signed-off-by: Weblate <noreply@weblate.org> Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/ Translation: libosinfo/libosinfo
* Translated using Weblate (Finnish)Jan Kuparinen2021-08-051-15/+15
| | | | | | | | | | Currently translated at 32.3% (55 of 170 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/fi/ Co-authored-by: Jan Kuparinen <copper_fin@hotmail.com> Signed-off-by: Jan Kuparinen <copper_fin@hotmail.com>
* po: regenerate libosinfo.potPino Toscano2021-08-041-32/+36
| | | | Signed-off-by: Pino Toscano <ptoscano@redhat.com>
* ci: refresh centos-stream containerDaniel P. Berrangé2021-07-271-7/+7
| | | | | | | 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@redhat.com>
* gitlab: use custom docker:dind imageDaniel P. Berrangé2021-07-271-1/+2
| | | | | | | | | | | 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@redhat.com>
* Translated using Weblate (Korean)Seong-ho Cho2021-07-221-19/+20
| | | | | | | | | | Currently translated at 100.0% (170 of 170 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/ko/ Co-authored-by: Seong-ho Cho <darkcircle.0426@gmail.com> Signed-off-by: Seong-ho Cho <darkcircle.0426@gmail.com>
* Translated using Weblate (Korean)simmon2021-04-151-4/+4
| | | | | | | | | | Currently translated at 100.0% (170 of 170 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/ko/ Co-authored-by: simmon <simmon@nplob.com> Signed-off-by: simmon <simmon@nplob.com>
* Translated using Weblate (Korean)simmon2021-04-131-3/+3
| | | | | | | | | | Currently translated at 100.0% (170 of 170 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/ko/ Co-authored-by: simmon <simmon@nplob.com> Signed-off-by: simmon <simmon@nplob.com>
* Translated using Weblate (Korean)simmon2021-04-071-3/+3
| | | | | | | | | | Currently translated at 100.0% (170 of 170 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/ko/ Co-authored-by: simmon <simmon@nplob.com> Signed-off-by: simmon <simmon@nplob.com>
* Translated using Weblate (Korean)simmon2021-04-052-0/+762
| | | | | | | | | | | | Currently translated at 100.0% (170 of 170 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/ko/ Added translation using Weblate (Korean) Co-authored-by: simmon <simmon@nplob.com> Signed-off-by: simmon <simmon@nplob.com>
* Added translation using Weblate (Sinhala)Hela Basa2021-03-072-0/+753
| | | | | Co-authored-by: Hela Basa <r45xveza@pm.me> Signed-off-by: Hela Basa <r45xveza@pm.me>
* Translated using Weblate (Finnish)Ricky Tigg2021-03-071-14/+14
| | | | | | | | | | | | | | | | | Currently translated at 25.2% (43 of 170 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/fi/ Translated using Weblate (Finnish) Currently translated at 23.5% (40 of 170 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/fi/ Co-authored-by: Ricky Tigg <ricky.tigg@gmail.com> Signed-off-by: Ricky Tigg <ricky.tigg@gmail.com>
* Translated using Weblate (Finnish)Jan Kuparinen2021-03-071-3/+3
| | | | | | | | | | Currently translated at 19.4% (33 of 170 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/fi/ Co-authored-by: Jan Kuparinen <copper_fin@hotmail.com> Signed-off-by: Jan Kuparinen <copper_fin@hotmail.com>
* Translated using Weblate (Finnish)Ricky Tigg2021-03-071-8/+9
| | | | | | | | | | Currently translated at 18.8% (32 of 170 strings) Translation: libosinfo/libosinfo Translate-URL: https://translate.fedoraproject.org/projects/libosinfo/libosinfo/fi/ Co-authored-by: Ricky Tigg <ricky.tigg@gmail.com> Signed-off-by: Ricky Tigg <ricky.tigg@gmail.com>