[Libosinfo] [osinfo-db PATCH 1/1] Fix out-of-tree build

2019-04-15 Thread Fabiano Fidêncio
Let's set an ABS_TOPDIR and use it to run our tests, fixing then the out-of-tree build. https://gitlab.com/libosinfo/osinfo-db/issues/25 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4f6f8d4..a1bdcfe 100644 --- a/Makefile +++

[Libosinfo] [libosinfo PATCH] osinfo-detect: Improve --help wording

2019-04-15 Thread Fabiano Fidêncio
The "URL type" text leads to the misunderstanding that `osinfo-detect` only works for URLs and not for local medias as well. Let's change the wording in order to make it clearer. https://gitlab.com/libosinfo/libosinfo/issues/26 Signed-off-by: Fabiano Fidêncio --- tools/osinfo-de

[Libosinfo] [libosinfo PATCH 3/3] osinfo-query: Print os variants information

2019-04-15 Thread Fabiano Fidêncio
re's a drawback for this approach (which has also been documented in the man page), which is not being able to filter or sort for variants. https://gitlab.com/libosinfo/libosinfo/issues/24 Signed-off-by: Fabiano Fidêncio --- tools/osinfo-query.c | 44 +

[Libosinfo] [libosinfo PATCH 2/3] osinfo-query: Add real_prop to OsinfoLabel

2019-04-15 Thread Fabiano Fidêncio
::name, while we already search for Os::name. In order to solve this ambiguity, let's have a name that we can expose to the command line a and the real_prop that we could get whenever it's needed. https://gitlab.com/libosinfo/libosinfo/issues/24 Signed-off-by: Fabiano Fidêncio --- tools/osinfo

[Libosinfo] [libosinfo PATCH 0/3] Make osinfo-query aware of Os Variants

2019-04-15 Thread Fabiano Fidêncio
Fedora 29 Everything Details about the implementation can be seen in each one of the patches. https://gitlab.com/libosinfo/libosinfo/issues/24 Fabiano Fidêncio (3): osinfo-query: Add osinfo_os_list_func to OsinfoLabel osinfo-query: Add real_prop to OsinfoLabel osinfo-query: Print os variants

[Libosinfo] [libosinfo PATCH 1/3] osinfo-query: Add osinfo_os_list_func to OsinfoLabel

2019-04-15 Thread Fabiano Fidêncio
. https://gitlab.com/libosinfo/libosinfo/issues/24 Signed-off-by: Fabiano Fidêncio --- tools/osinfo-query.c | 64 +++- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/tools/osinfo-query.c b/tools/osinfo-query.c index 00f838b..045f3c1 100644

[Libosinfo] [libosinfo PATCH 1/1] osinfo-detect: print os variants info for env format

2019-04-12 Thread Fabiano Fidêncio
Similarly to what's been done for the plain format, let's also print os variants' information when using --format=env. Signed-off-by: Fabiano Fidêncio --- tools/osinfo-detect.c | 47 ++- 1 file changed, 37 insertions(+), 10 deletions(-) diff --git

Re: [Libosinfo] [libosinfo PATCH 1/3] db: Set the os to the detected tree

2019-04-12 Thread Fabiano Fidêncio
On Fri, Apr 12, 2019 at 10:23 AM Daniel P. Berrangé wrote: > > On Fri, Apr 12, 2019 at 10:19:52AM +0200, Fabiano Fidêncio wrote: > > When detecting a tree, let's also its OS. > > word missing ? Fixed locally. "When detecting a tree

Re: [Libosinfo] [libosinfo PATCH 3/3] osinfo-detect: Be aware of tree's os variants

2019-04-12 Thread Fabiano Fidêncio
On Fri, Apr 12, 2019 at 10:26 AM Daniel P. Berrangé wrote: > > On Fri, Apr 12, 2019 at 10:19:54AM +0200, Fabiano Fidêncio wrote: > > In the same way done for medias, make the tree detection aware of > > os-variants. > > > > https://gitlab.com/libosinfo/libosinf

[Libosinfo] [libosinfo PATCH 3/3] osinfo-detect: Be aware of tree's os variants

2019-04-12 Thread Fabiano Fidêncio
In the same way done for medias, make the tree detection aware of os-variants. https://gitlab.com/libosinfo/libosinfo/issues/25 Signed-off-by: Fabiano Fidêncio --- tools/osinfo-detect.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/tools

[Libosinfo] [libosinfo PATCH 0/3] Make osinfo-detect aware of trees' os variants

2019-04-12 Thread Fabiano Fidêncio
/fedora/linux/releases/29/Server/x86_64/os Tree is an installer for OS 'Fedora 29 Server' https://gitlab.com/libosinfo/libosinfo/issues/25 Fabiano Fidêncio (3): db: Set the os to the detected tree media,image,tree: Avoid critical errors when getting the os variants osinfo-detect: Be aware

[Libosinfo] [libosinfo PATCH 1/3] db: Set the os to the detected tree

2019-04-12 Thread Fabiano Fidêncio
When detecting a tree, let's also its OS. https://gitlab.com/libosinfo/libosinfo/issues/25 Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_db.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osinfo/osinfo_db.c b/osinfo/osinfo_db.c index 1089644..b7da2b7 100644

[Libosinfo] [libosinfo PATCH 2/3] media, image, tree: Avoid critical errors when getting the os variants

2019-04-12 Thread Fabiano Fidêncio
://gitlab.com/libosinfo/libosinfo/issues/25 Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_image.c | 4 osinfo/osinfo_media.c | 4 osinfo/osinfo_tree.c | 4 3 files changed, 12 insertions(+) diff --git a/osinfo/osinfo_image.c b/osinfo/osinfo_image.c index fcde244..621ebf0 100644

Re: [Libosinfo] libosinfo signatures

2019-04-11 Thread Fabiano Fidêncio
ld have just added 0xDACC177B Note taken for the next release. Here's the link for the key: http://hkps.pool.sks-keyservers.net/pks/lookup?search=0xDACC177B=on=index Best Regards, -- Fabiano Fidêncio ___ Libosinfo mailing list Libosinfo@redhat.com https://www.redhat.com/mailman/listinfo/libosinfo

[Libosinfo] [libosinfo PATCH 2/2] test-image: Expand the tests to consider variants

2019-04-11 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- tests/dbdata/os/libosinfo.org/test-db-image.xml | 9 + tests/test-image.c | 11 +++ 2 files changed, 20 insertions(+) diff --git a/tests/dbdata/os/libosinfo.org/test-db-image.xml b/tests/dbdata/os/libosinfo.org

[Libosinfo] [libosinfo PATCH 1/2] image: Add get_os_variants() API

2019-04-11 Thread Fabiano Fidêncio
osinfo-db schema allows that, but libosinfo never really had an API to support it. In order to add get_os_variants(), (get,set)_os APIs were also added. Signed-off-by: Fabiano Fidêncio --- osinfo/libosinfo.syms | 4 +++ osinfo/osinfo_image.c | 82

[Libosinfo] [libosinfo PATCH 1/2] loader: Properly load the arch value for images

2019-04-10 Thread Fabiano Fidêncio
am: assertion 'value != NULL' failed Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_loader.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osinfo/osinfo_loader.c b/osinfo/osinfo_loader.c index e30148b..84c25e5 100644 --- a/osinfo/osinfo_loader.c +++ b/osinfo/osinfo

Re: [Libosinfo] [osinfo-db PATCH] centos7: Add images info

2019-04-10 Thread Fabiano Fidêncio
On Wed, Apr 10, 2019 at 10:54 AM Fabiano Fidêncio wrote: > > CentOS provides qcow2 iamges for x86_64. s/iamges/images > > Signed-off-by: Fabiano Fidêncio > --- > data/os/centos.org/centos-7.0.xml.in | 4 > 1 file changed, 4 insertions(+) > > diff --git a/da

[Libosinfo] [osinfo-db PATCH] centos7: Add images info

2019-04-10 Thread Fabiano Fidêncio
CentOS provides qcow2 iamges for x86_64. Signed-off-by: Fabiano Fidêncio --- data/os/centos.org/centos-7.0.xml.in | 4 1 file changed, 4 insertions(+) diff --git a/data/os/centos.org/centos-7.0.xml.in b/data/os/centos.org/centos-7.0.xml.in index 9e38617..e6d7fe8 100644 --- a/data/os

Re: [Libosinfo] [osinfo-db PATCH 3/9] debian9: Add images info

2019-04-09 Thread Fabiano Fidêncio
On Tue, Apr 9, 2019 at 10:05 PM Cole Robinson wrote: > > On 4/9/19 7:25 AM, Fabiano Fidêncio wrote: > > Debian provides qcow2 and raw images for both x86_64 and aarch64. > > > > https://gitlab.com/libosinfo/osinfo-db/issues/10 > > > > Signed-off-by: Fa

[Libosinfo] [osinfo-db-tools PATCH 1/2] tests: Only run the tests if deps are installed

2019-04-09 Thread Fabiano Fidêncio
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 --- configure.ac | 23 +++ tests/Makefile.am | 6 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git

[Libosinfo] [osinfo-db-tools PATCH 2/2] spec: Add %check target (and the needed deps)

2019-04-09 Thread Fabiano Fidêncio
in case the deps are found in the system. Signed-off-by: Fabiano Fidêncio --- osinfo-db-tools.spec.in | 20 1 file changed, 20 insertions(+) diff --git a/osinfo-db-tools.spec.in b/osinfo-db-tools.spec.in index f0a5fcc..48f71c1 100644 --- a/osinfo-db-tools.spec.in +++ b/osinfo

[Libosinfo] [osinfo-db-tools PATCH 0/2] Dependency check for tests deps

2019-04-09 Thread Fabiano Fidêncio
checks do not look the cleanest solution ever and I'm open for suggestions on how to properly handle those deps on configure.ac Fabiano Fidêncio (2): tests: Only run the tests if deps are installed spec: Add %check target (and the needed deps) configure.ac| 23 +++

[Libosinfo] [osinfo-db PATCH 3/3] win2k*, 7, 8, 10: Add maximum RAM resources

2019-04-09 Thread Fabiano Fidêncio
2012R2: no info is provided, using the same value from 2012 - 4 TB - Windows Server 2016: 24 TB - Windows Server 2019: no info is provided, using the same value from 2016 https://gitlab.com/libosinfo/osinfo-db/issues/11 Signed-off-by: Fabiano Fidêncio --- data/os/microsoft.com/win-10.xml.in

[Libosinfo] [osinfo-db PATCH 1/3] rhel6*: Add maximum RAM resources

2019-04-09 Thread Fabiano Fidêncio
According to https://access.redhat.com/articles/rhel-limits: - 6.0 - 6.2: 1TB - 6.3 - 6.5: 3TB - 6.6: 6TB - 6.7+: 12TB https://gitlab.com/libosinfo/osinfo-db/issues/11 Signed-off-by: Fabiano Fidêncio --- data/os/redhat.com/rhel-6-unknown.xml.in | 4 data/os/redhat.com/rhel-6.0.xml.in

[Libosinfo] [osinfo-db PATCH 2/3] rhel7*: Add maximum RAM resources

2019-04-09 Thread Fabiano Fidêncio
According to https://access.redhat.com/articles/rhel-limits: - 7.0: 3TB - 7.1: 6TB - 7.2+: 12TB https://gitlab.com/libosinfo/osinfo-db/issues/11 Signed-off-by: Fabiano Fidêncio --- data/os/redhat.com/rhel-7-unknown.xml.in | 4 data/os/redhat.com/rhel-7.0.xml.in | 4 data/os

[Libosinfo] [osinfo-db PATCH 0/3] Add maximum RAM resources for RHEL and Windows

2019-04-09 Thread Fabiano Fidêncio
As requested by KubeVirt, let's add the maximum RAM resources supported by RHEL and Windows ... in the same way it's done by oVirt. Mind tho that I'm not splitting different variants of Windows and just going for the maximum value present. Fabiano Fidêncio (3): rhel6*: Add maximum RAM

[Libosinfo] [osinfo-db PATCH 8/9] ubuntu18.10: Add images info

2019-04-09 Thread Fabiano Fidêncio
Ubuntu provides: - qcow2 images: - x86_64 - aarch64 - armv7l - i686 - ppc64le - s390x - vmdk images: - x86_64 https://gitlab.com/libosinfo/osinfo-db/issues/10 Signed-off-by: Fabiano Fidêncio --- data/os/ubuntu.com/ubuntu-18.10.xml.in | 28 ++ 1 file

[Libosinfo] [osinfo-db PATCH 9/9] ubuntu19.04: Add images info

2019-04-09 Thread Fabiano Fidêncio
Ubuntu provides: - qcow2 images: - x86_64 - aarch64 - armv7l - i686 - ppc64le - s390x - vmdk images: - x86_64 https://gitlab.com/libosinfo/osinfo-db/issues/10 Signed-off-by: Fabiano Fidêncio --- data/os/ubuntu.com/ubuntu-19.04.xml.in | 27 ++ 1 file

[Libosinfo] [osinfo-db PATCH 7/9] ubuntu18.04: Add images info

2019-04-09 Thread Fabiano Fidêncio
Ubuntu provides: - qcow2 images: - x86_64 - aarch64 - armv7l - i686 - ppc64le - s390x - vmdk images: - x86_64 https://gitlab.com/libosinfo/osinfo-db/issues/10 Signed-off-by: Fabiano Fidêncio --- data/os/ubuntu.com/ubuntu-18.04.xml.in | 28 ++ 1 file

[Libosinfo] [osinfo-db PATCH 2/9] fedora29: Add images info

2019-04-09 Thread Fabiano Fidêncio
Fedora provides qcow2 images for both x86_64 and aarch64. https://gitlab.com/libosinfo/osinfo-db/issues/10 Signed-off-by: Fabiano Fidêncio --- data/os/fedoraproject.org/fedora-29.xml.in | 8 1 file changed, 8 insertions(+) diff --git a/data/os/fedoraproject.org/fedora-29.xml.in b

[Libosinfo] [osinfo-db PATCH 6/9] ubuntu16.04: Add images info

2019-04-09 Thread Fabiano Fidêncio
Ubuntu provides: - qcow2 images: - x86_64 - aarch64 - armv7l - i686 - ppc - ppc64le - s390x - vmdk images: - x86_64 - i686 https://gitlab.com/libosinfo/osinfo-db/issues/10 Signed-off-by: Fabiano Fidêncio --- data/os/ubuntu.com/ubuntu-16.04.xml.in | 41

[Libosinfo] [osinfo-db PATCH 5/9] opensuse15.0: Add images info

2019-04-09 Thread Fabiano Fidêncio
OpenSUSE provides qcow2 images for x86_64. https://gitlab.com/libosinfo/osinfo-db/issues/10 Signed-off-by: Fabiano Fidêncio --- data/os/opensuse.org/opensuse-15.0.xml.in | 4 1 file changed, 4 insertions(+) diff --git a/data/os/opensuse.org/opensuse-15.0.xml.in b/data/os/opensuse.org

[Libosinfo] [osinfo-db PATCH 4/9] debian-testing: Add images info

2019-04-09 Thread Fabiano Fidêncio
Debian provides qcow2 and raw images for both x86_64 and aarch64. https://gitlab.com/libosinfo/osinfo-db/issues/10 Signed-off-by: Fabiano Fidêncio --- data/os/debian.org/debian-testing.xml.in | 16 1 file changed, 16 insertions(+) diff --git a/data/os/debian.org/debian

[Libosinfo] [osinfo-db PATCH 0/9] Add images info for the major distros

2019-04-09 Thread Fabiano Fidêncio
This patch set adds images info for non-EOL releases of Fedora, Ubuntu, Debian, and OpenSUSE. https://gitlab.com/libosinfo/osinfo-db/issues/10 Fabiano Fidêncio (9): fedora28: Add images info fedora29: Add images info debian9: Add images info debian-testing: Add images info opensuse15.0

[Libosinfo] [osinfo-db PATCH 1/9] fedora28: Add images info

2019-04-09 Thread Fabiano Fidêncio
Fedora provides qcow2 images for both x86_64 and aarch64. https://gitlab.com/libosinfo/osinfo-db/issues/10 Signed-off-by: Fabiano Fidêncio --- data/os/fedoraproject.org/fedora-28.xml.in | 8 1 file changed, 8 insertions(+) diff --git a/data/os/fedoraproject.org/fedora-28.xml.in b

Re: [Libosinfo] [osinfo-db PATCH 2/2] openbsd6.4: Add entry

2019-04-09 Thread Fabiano Fidêncio
On Mon, Apr 8, 2019 at 6:04 PM Fabiano Fidêncio wrote: > > Signed-off-by: Fabiano Fidêncio I'm dropping part of this patch in favour of https://gitlab.com/libosinfo/osinfo-db/merge_requests/5 Still, content of openbsd-6.4.xml.in is the very same. > --- > data/os/openbsd.org

[Libosinfo] [osinfo-db PATCH 2/2] openbsd6.4: Add entry

2019-04-08 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- data/os/openbsd.org/openbsd-6.4.xml.in| 35 +++ .../openbsd/openbsd6.4/openbsd-6.4-amd64.txt | 29 +++ .../openbsd/openbsd6.4/openbsd-6.4-i386.txt | 29 +++ 3 files changed, 93 insertions(+) create mode

[Libosinfo] [osinfo-db PATCH 1/2] openbsd6.0/6.1/6.2: Adjust URLs to valid links

2019-04-08 Thread Fabiano Fidêncio
fastly.cdn.openbsd.org URLs have been removed, let's just point to ftp.eu.openbsd.org as done for old releases. Signed-off-by: Fabiano Fidêncio --- data/os/openbsd.org/openbsd-6.0.xml.in | 4 ++-- data/os/openbsd.org/openbsd-6.1.xml.in | 4 ++-- data/os/openbsd.org/openbsd-6.2.xml.in | 4

[Libosinfo] [osinfo-db PATCH 0/2] Update OpenBSD entries

2019-04-08 Thread Fabiano Fidêncio
This patch set does: - Update links for 6.0, 6.1, and 6.2 - Adds a new 6.4 entry Fabiano Fidêncio (2): openbsd6.0/6.1/6.2: Adjust URLs to valid links openbsd6.4: Add entry data/os/openbsd.org/openbsd-6.0.xml.in| 4 +-- data/os/openbsd.org/openbsd-6.1.xml.in| 4 +-- data/os

[Libosinfo] [osinfo-db PATCH 4/4] popos-18.*: Update RAM/Storage

2019-04-08 Thread Fabiano Fidêncio
According to PopOS website, for both 18.10 and 18.04: Requirements: 2 GB RAM, 16 GB storage, 64-bit processor Recommended: 4 GB RAM, 16 GB storage, 64-bit processor Signed-off-by: Fabiano Fidêncio --- data/os/system76.com/popos-18.04.xml.in | 6 +++--- data/os/system76.com/popos-18.10.xml.in

[Libosinfo] [osinfo-db PATCH 0/4] popos: Update info

2019-04-08 Thread Fabiano Fidêncio
.* entries Fabiano Fidêncio (4): popos: Remove dead links popos: Remove volume-size from medias popos: Remove os-variants popos-18.*: Update RAM/Storage data/os/system76.com/popos-17.10.xml.in | 13 - data/os/system76.com/popos-18.04.xml.in | 19 +++ data/os/system76

[Libosinfo] [osinfo-db PATCH 1/4] popos: Remove dead links

2019-04-08 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- data/os/system76.com/popos-17.10.xml.in | 2 -- data/os/system76.com/popos-18.04.xml.in | 2 -- data/os/system76.com/popos-18.10.xml.in | 2 -- 3 files changed, 6 deletions(-) diff --git a/data/os/system76.com/popos-17.10.xml.in b/data/os/system76.com/popos

[Libosinfo] [osinfo-db PATCH 2/4] popos: Remove volume-size from medias

2019-04-08 Thread Fabiano Fidêncio
Either we have regular updates on those medias, or the volume-size will make only one version of the PopOS to be recognized (the one that matches the volume-id). In order to have a broader support, let's remove the volume-sizes. Signed-off-by: Fabiano Fidêncio --- data/os/system76.com/popos

[Libosinfo] [osinfo-db PATCH 3/4] popos: Remove os-variants

2019-04-08 Thread Fabiano Fidêncio
As there's no way to properly distinguish the medias, let's remove the OS variants. Signed-off-by: Fabiano Fidêncio --- data/os/system76.com/popos-17.10.xml.in | 9 - data/os/system76.com/popos-18.04.xml.in | 9 - data/os/system76.com/popos-18.10.xml.in | 9 - 3 files

[Libosinfo] [osinfo-db-tools PATCH 0/2] Update README

2019-04-08 Thread Fabiano Fidêncio
Let's update README in order to add the optional deps for testing osinfo-db-tools and also a "Testing" section describing how to test the project. Fabiano Fidêncio (2): readme: Add optional testing dependencies readme: Add "Testing" section README | 18 ++

[Libosinfo] [osinfo-db PATCH 0/2] Update README

2019-04-08 Thread Fabiano Fidêncio
Let's update README in order to add the optional deps for testing osinfo-db and also a "Testing" section describing how to test the project. Fabiano Fidêncio (2): readme: Update optional dependencies readme: Add "Testing" section README | 21 +++--

[Libosinfo] [osinfo-db PATCH 2/2] readme: Add "Testing" section

2019-04-08 Thread Fabiano Fidêncio
Add info about testing osinfo-db, including how to run the network based tests. Signed-off-by: Fabiano Fidêncio --- README | 14 ++ 1 file changed, 14 insertions(+) diff --git a/README b/README index b59a0ab..3a836c5 100644 --- a/README +++ b/README @@ -50,4 +50,18 @@ homepage

[Libosinfo] [osinfo-db PATCH 1/2] readme: Update optional dependencies

2019-04-08 Thread Fabiano Fidêncio
xmllist is gone since 3234ab939 and the other dependencies have been added along this release cycle while the osinfo-db tests have been written. Signed-off-by: Fabiano Fidêncio --- README | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README b/README index f32c0c9

[Libosinfo] [osinfo-db-tools PATCH 2/2] readme: Add "Testing" section

2019-04-08 Thread Fabiano Fidêncio
Add info about testing osinfo-db-tools, including how to run the network based tests. Signed-off-by: Fabiano Fidêncio --- README | 14 ++ 1 file changed, 14 insertions(+) diff --git a/README b/README index c5516da..55e0cfe 100644 --- a/README +++ b/README @@ -42,4 +42,18

[Libosinfo] [osinfo-db-tools PATCH 0/7] Add tests for osinfo-db-tools

2019-04-05 Thread Fabiano Fidêncio
, but it's going to be done after we have this series reviewed. https://gitlab.com/libosinfo/osinfo-db-tools/issues/2 Fabiano Fidêncio (7): makefile: Add needed machinery for tests tests: Add util.py tests: Add tests data tests: Add osinfo-db-path tests tests: Add osinfo-db-validate tests

[Libosinfo] [osinfo-db-tools PATCH 4/7] tests: Add osinfo-db-path tests

2019-04-05 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- .gitignore | 2 ++ tests/Makefile.am| 5 ++- tests/test_osinfo_db_path.py | 70 3 files changed, 76 insertions(+), 1 deletion(-) create mode 100755 tests/test_osinfo_db_path.py diff --git

[Libosinfo] [osinfo-db-tools PATCH 5/7] tests: Add osinfo-db-validate tests

2019-04-05 Thread Fabiano Fidêncio
/osinfo-db-tools/issues/2 Signed-off-by: Fabiano Fidêncio --- tests/Makefile.am| 1 + tests/test_osinfo_db_validate.py | 76 2 files changed, 77 insertions(+) create mode 100755 tests/test_osinfo_db_validate.py diff --git a/tests/Makefile.am b/tests

[Libosinfo] [osinfo-db-tools PATCH 7/7] spec: Add %check target

2019-04-05 Thread Fabiano Fidêncio
Now that we have tests as part of osinfo-db-tools, let's enable them when preparing a RPM. https://gitlab.com/libosinfo/osinfo-db-tools/issues/2 Signed-off-by: Fabiano Fidêncio --- osinfo-db-tools.spec.in | 7 +++ 1 file changed, 7 insertions(+) diff --git a/osinfo-db-tools.spec.in b

[Libosinfo] [osinfo-db-tools PATCH 6/7] tests: Add osinfo-db-{export, import} tests

2019-04-05 Thread Fabiano Fidêncio
/libosinfo/osinfo-db-tools/issues/2 Signed-off-by: Fabiano Fidêncio --- tests/Makefile.am | 1 + tests/test_osinfo_db_export_import.py | 263 ++ 2 files changed, 264 insertions(+) create mode 100755 tests/test_osinfo_db_export_import.py diff --git a/tests

[Libosinfo] [osinfo-db-tools PATCH 2/7] tests: Add util.py

2019-04-05 Thread Fabiano Fidêncio
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 --- tests/Makefile.am | 5 ++ tests/util.py | 146 ++ 2 files

[Libosinfo] [osinfo-db-tools PATCH 3/7] tests: Add tests data

2019-04-05 Thread Fabiano Fidêncio
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

Re: [Libosinfo] [PATCH osinfo-db v2 0/3] rhel5: add entries

2019-04-04 Thread Fabiano Fidêncio
l.in | 7 +++ > data/os/redhat.com/rhel-5.9.xml.in | 7 +++ > data/schema/osinfo.rng.in | 6 +++--- > 9 files changed, 59 insertions(+), 3 deletions(-) Reviewed-by: Fabiano Fidêncio ___ Libosinfo mailing list Libosinfo@redhat.com https://www.redhat.com/mailman/listinfo/libosinfo

Re: [Libosinfo] [osinfo-db-tools PATCH 1/3] export: Fix wording in help output

2019-04-04 Thread Fabiano Fidêncio
On Thu, Apr 4, 2019 at 5:51 PM Pino Toscano wrote: > > On Thursday, 4 April 2019 17:47:42 CEST Fabiano Fidêncio wrote: > >{ "root", 0, 0, G_OPTION_ARG_STRING, , > > -N_("Installation root directory"), NULL, }, > > +N_

[Libosinfo] [osinfo-db-tools PATCH 0/3] A few fixes done while writing tests for osinfo-db-tools

2019-04-04 Thread Fabiano Fidêncio
Fabiano Fidêncio (3): export: Fix wording in help output validate: Do not leak the uri in validate_file_regular() util: Do not assume --root argument ends with '/' tools/osinfo-db-export.c | 10 +- tools/osinfo-db-util.c | 10 +- tools/osinfo-db-validate.c | 2

[Libosinfo] [osinfo-db-tools PATCH 1/3] export: Fix wording in help output

2019-04-04 Thread Fabiano Fidêncio
export never install anything, the wording used seems to a c from osinfo-db-import. Signed-off-by: Fabiano Fidêncio --- tools/osinfo-db-export.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/osinfo-db-export.c b/tools/osinfo-db-export.c index 8593d3c

[Libosinfo] [osinfo-db-tools PATCH 3/3] util: Do not assume --root argument ends with '/'

2019-04-04 Thread Fabiano Fidêncio
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: Fabian

Re: [Libosinfo] [libosinfo PATCH v2] gitignore: remove old entries, simplify existing ones

2019-04-02 Thread Fabiano Fidêncio
On Mon, Apr 1, 2019 at 10:38 AM Pino Toscano wrote: > > Remove patterns referring to old tests, and in general to files that do > not exist anymore. > > Simplify few existing patterns into more general ones. Reviewed-by: Fabiano Fidêncio (and pushed!) Best Regards, -- F

[Libosinfo] [libosinfo PATCH v3 3/6] db: Deal with "all" tree architectures

2019-04-02 Thread Fabiano Fidêncio
https://gitlab.com/libosinfo/libosinfo/issues/20 Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_db.c | 80 ++ 1 file changed, 52 insertions(+), 28 deletions(-) diff --git a/osinfo/osinfo_db.c b/osinfo/osinfo_db.c index 136cf79..0c89aef 100644 --- a/osin

[Libosinfo] [libosinfo PATCH v3 1/6] db: Rename tree to treeinfo in guess_os_from_tree()

2019-04-02 Thread Fabiano Fidêncio
It'll make clear that we're dealing with the treeinfo attributes and not with the tree ones. https://gitlab.com/libosinfo/libosinfo/issues/20 Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_db.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

[Libosinfo] [libosinfo PATCH v3 5/6] db: Deal with "all" media architecture

2019-04-02 Thread Fabiano Fidêncio
https://gitlab.com/libosinfo/libosinfo/issues/20 Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_db.c | 56 +- 1 file changed, 41 insertions(+), 15 deletions(-) diff --git a/osinfo/osinfo_db.c b/osinfo/osinfo_db.c index 0c89aef..1089644 100644 ---

[Libosinfo] [libosinfo PATCH v3 4/6] test-db: Add test for guessing tree from OS

2019-04-02 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- .../dbdata/os/libosinfo.org/test-db-tree.xml | 26 + tests/test-db.c | 58 +++ 2 files changed, 84 insertions(+) create mode 100644 tests/dbdata/os/libosinfo.org/test-db-tree.xml diff --git a/tests

[Libosinfo] [libosinfo PATCH v3 6/6] test-db: Add test to cover identifying a media with "unknown" arch

2019-04-02 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- .../dbdata/os/libosinfo.org/test-db-media.xml | 13 +++ tests/test-db.c | 22 +++ 2 files changed, 35 insertions(+) diff --git a/tests/dbdata/os/libosinfo.org/test-db-media.xml b/tests/dbdata/os

[Libosinfo] [libosinfo PATCH v3 2/6] db: Rename os_* to os_treeinfo_* in guess_os_from_tree()

2019-04-02 Thread Fabiano Fidêncio
It'll make clear that we're dealing with the treeinfo attributes and not with the tree ones. https://gitlab.com/libosinfo/libosinfo/issues/20 Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_db.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

[Libosinfo] [libosinfo PATCH v3 0/6] Use "all" arch as a fallback for media/tree detection

2019-04-02 Thread Fabiano Fidêncio
s in order to leave all the entries with "all" arch to be evaluated later. https://gitlab.com/libosinfo/libosinfo/issues/20 Fabiano Fidêncio (6): db: Rename tree to treeinfo in guess_os_from_tree() db: Rename os_* to os_treeinfo_* in guess_os_from_tree() db: Deal with "all" tre

[Libosinfo] [osinfo-db PATCH 0/2] Update/remove dead links

2019-04-02 Thread Fabiano Fidêncio
Those 2 patches have been pushed under "test breakage" rule. Fabiano Fidêncio (2): freebsd: Remove 10.4, 11.0, and 11.1 dead links fedora27: Update dead links data/os/fedoraproject.org/fedora-27.xml.in | 12 ++-- data/os/freebsd.org/freebsd-10.4.xml.in| 4 ---

[Libosinfo] [osinfo-db PATCH 2/2] fedora27: Update dead links

2019-04-02 Thread Fabiano Fidêncio
Fedora 27 links have been moved to archive. Signed-off-by: Fabiano Fidêncio --- data/os/fedoraproject.org/fedora-27.xml.in | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data/os/fedoraproject.org/fedora-27.xml.in b/data/os/fedoraproject.org/fedora-27.xml.in

[Libosinfo] [osinfo-db PATCH 1/2] freebsd: Remove 10.4, 11.0, and 11.1 dead links

2019-04-02 Thread Fabiano Fidêncio
Those links have been from their website. Signed-off-by: Fabiano Fidêncio --- data/os/freebsd.org/freebsd-10.4.xml.in | 4 data/os/freebsd.org/freebsd-11.0.xml.in | 4 data/os/freebsd.org/freebsd-11.1.xml.in | 4 3 files changed, 12 deletions(-) diff --git a/data/os/freebsd.org

[Libosinfo] [libosinfo PATCH] media: Fix usage of application id

2019-04-01 Thread Fabiano Fidêncio
Christophe Fergeau pointed this issue out during the review of 6d789033e and, even though, the bogus code ended up merged (sorry, mea culpa here!). Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_media.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osinfo

Re: [Libosinfo] [libosinfo PATCH v2 0/8] Use "all" arch as a fallback for media/tree detection

2019-04-01 Thread Fabiano Fidêncio
On Mon, Apr 1, 2019 at 9:13 PM Fabiano Fidêncio wrote: > > On Mon, Apr 1, 2019 at 8:36 PM Cole Robinson wrote: > > > > On 3/28/19 5:26 PM, Fabiano Fidêncio wrote: > > > This series has been written considering: > > > - https://www.redhat.com/archives/l

Re: [Libosinfo] [libosinfo PATCH v2 0/8] Use "all" arch as a fallback for media/tree detection

2019-04-01 Thread Fabiano Fidêncio
On Mon, Apr 1, 2019 at 8:36 PM Cole Robinson wrote: > > On 3/28/19 5:26 PM, Fabiano Fidêncio wrote: > > This series has been written considering: > > - https://www.redhat.com/archives/libosinfo/2019-February/msg00247.html > > > > Let's assume that trees and med

Re: [Libosinfo] [libosinfo PATCH] gitignore: remove old entries

2019-03-29 Thread Fabiano Fidêncio
tools/osinfo-install-script.1 > docs/reference/Libosinfo.types > po/Makefile.in.in > -- > 2.20.1 > > ___ > Libosinfo mailing list > Libosinfo@redhat.com > https://www.redhat.com/mailman/listinfo/libosinfo Leaving tools/osinfo-detect.exe, tools/osinfo-query.exe, and tools/osinfo-install-script.exe ... Reviewed-by: Fabiano Fidêncio ___ Libosinfo mailing list Libosinfo@redhat.com https://www.redhat.com/mailman/listinfo/libosinfo

[Libosinfo] [osinfo-db PATCH 0/3] Add network-install resources

2019-03-29 Thread Fabiano Fidêncio
to 1.5GB during installation and Fedora Silverblue needs 5GB! I'm aware that fedora-rawhide will also need some adjustment, but I was *not* able to successfully start an installation due to non related issues. So, it'll be updated at some point, later on. Fabiano Fidêncio (3): rhel7*: Add network

[Libosinfo] [osinfo-db PATCH 2/3] centos7: Add network-install resources

2019-03-29 Thread Fabiano Fidêncio
In order to perform a tree based installation, dracut will download the whole stage2 into memory, using them more memory than the recommended to run the system. The value used is the same one used for RHEL, 1.5GB. Signed-off-by: Fabiano Fidêncio --- data/os/centos.org/centos-7.0.xml.in | 4

[Libosinfo] [osinfo-db PATCH 1/3] rhel7*: Add network-install resources

2019-03-29 Thread Fabiano Fidêncio
stall requires at least 1.5 GB of RAM for the install procedure only." Signed-off-by: Fabiano Fidêncio --- data/os/redhat.com/rhel-7-unknown.xml.in | 4 data/os/redhat.com/rhel-7.0.xml.in | 4 data/os/redhat.com/rhel-7.1.xml.in | 4 data/os/redhat.com/rhel-7.2.xml.in

[Libosinfo] [osinfo-db PATCH 3/3] silverblue28 & 29: Add network-install resources

2019-03-29 Thread Fabiano Fidêncio
-by: Fabiano Fidêncio --- data/os/fedoraproject.org/silverblue-28.xml.in | 4 data/os/fedoraproject.org/silverblue-29.xml.in | 4 2 files changed, 8 insertions(+) diff --git a/data/os/fedoraproject.org/silverblue-28.xml.in b/data/os/fedoraproject.org/silverblue-28.xml.in index f747060..ccaa322

[Libosinfo] [osinfo-db PATCH 0/2] Update debian-8 URLS

2019-03-29 Thread Fabiano Fidêncio
Let's update debian-8 media URLs for the latest release and let's remove the dead trees as those were removed from debian's website. Fabiano Fidêncio (2): debian8: Update to latest release debian8: Remove dead trees data/os/debian.org/debian-8.xml.in | 22 +- 1 file

[Libosinfo] [osinfo-db PATCH 1/2] debian8: Update to latest release

2019-03-29 Thread Fabiano Fidêncio
The latest release for the main arches is 8.11.1 as they'll still be supported as LTS. For the secondary arches, 8.11.0 was the last one. Signed-off-by: Fabiano Fidêncio --- data/os/debian.org/debian-8.xml.in | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/data/os

[Libosinfo] [osinfo-db PATCH 2/2] debian8: Remove dead trees

2019-03-29 Thread Fabiano Fidêncio
Debian 8 trees have been removed from their website. Signed-off-by: Fabiano Fidêncio --- data/os/debian.org/debian-8.xml.in | 12 1 file changed, 12 deletions(-) diff --git a/data/os/debian.org/debian-8.xml.in b/data/os/debian.org/debian-8.xml.in index 744d05b..623be03 100644

Re: [Libosinfo] [PATCH osinfo-db 2/6] Add scripts/osinfo-db-add-iso.py

2019-03-29 Thread Fabiano Fidêncio
On Fri, Mar 29, 2019 at 4:46 PM Cole Robinson wrote: > > On 3/29/19 5:14 AM, Fabiano Fidêncio wrote: > > On Wed, 2019-03-27 at 21:08 -0400, Cole Robinson wrote: > >> This script simplifies the process of adding new iso data to the > >> test suite and

[Libosinfo] [osinfo-db PATCH] test: conftest: Set LC_ALL

2019-03-29 Thread Fabiano Fidêncio
e C locale. Also based on Dan's comment: "This isn't a freebsd problem. It will hit any user who is not using a UTF-8 locale.", let's adjust the comment explaining why we need to have LC_ALL and LC_CTYPE set. Signed-off-by: Fabiano Fidêncio --- tests/conftest.py | 3 ++- 1 file changed

Re: [Libosinfo] [PATCH osinfo-db 0/3] tests: push Makefile bits to conftest.py

2019-03-29 Thread Fabiano Fidêncio
(for the locale handling) and debian9 (for > the log-level=info handling) Reviewed-by: Fabiano Fidêncio Best Regards, -- Fabiano Fidêncio ___ Libosinfo mailing list Libosinfo@redhat.com https://www.redhat.com/mailman/listinfo/libosinfo

Re: [Libosinfo] [PATCH osinfo-db 0/6] Add scripts/osinfo-db-add-iso.py

2019-03-29 Thread Fabiano Fidêncio
> Remaining patches tweak debian media data detection and add some more > test cases... not strictly related to the first two patches but they > were my test cases to get this working Cole, I've left a comment for you in the second patch. For the whole series: Reviewed-by: Fabiano Fidêncio

Re: [Libosinfo] [PATCH osinfo-db 2/6] Add scripts/osinfo-db-add-iso.py

2019-03-29 Thread Fabiano Fidêncio
On Fri, 2019-03-29 at 10:14 +0100, Fabiano Fidêncio wrote: > On Wed, 2019-03-27 at 21:08 -0400, Cole Robinson wrote: > > This script simplifies the process of adding new iso data to the > > test suite and optionally filling in a block for the . > > Call it like > > &g

Re: [Libosinfo] [PATCH osinfo-db 2/6] Add scripts/osinfo-db-add-iso.py

2019-03-29 Thread Fabiano Fidêncio
On Wed, 2019-03-27 at 21:08 -0400, Cole Robinson wrote: > This script simplifies the process of adding new iso data to the > test suite and optionally filling in a block for the . > Call it like > > ./scripts/osinfo-db-add-iso.py SHORTID [--arch ARCH] ISOPATH > > It will print a block

Re: [Libosinfo] [libosinfo PATCH] spec: Add build_timestamp to the Release

2019-03-28 Thread Fabiano Fidêncio
On Thu, Mar 7, 2019 at 10:27 AM Fabiano Fidêncio wrote: > > The upstream spec file is used for anything else than local builds > and/or as a reference for the downstream spec file. > > Knowing that, let's add a build_timestamp to its Release tag so we could > generate builds (ei

[Libosinfo] [libosinfo PATCH v2 8/8] test-db: Add test to cover identifying a media with "unknown" arch

2019-03-28 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- .../dbdata/os/libosinfo.org/test-db-media.xml | 14 +++ tests/test-db.c | 25 +++ 2 files changed, 39 insertions(+) diff --git a/tests/dbdata/os/libosinfo.org/test-db-media.xml b/tests/dbdata/os

[Libosinfo] [libosinfo PATCH v2 1/8] db: Rename tree to treeinfo in guess_os_from_tree()

2019-03-28 Thread Fabiano Fidêncio
It'll make clear that we're dealing with the treeinfo attributes and not with the tree ones. https://gitlab.com/libosinfo/libosinfo/issues/20 Signed-off-by: Fabiano Fidêncio Reviewed-by: Cole Robinson --- osinfo/osinfo_db.c | 24 1 file changed, 12 insertions(+), 12

[Libosinfo] [libosinfo PATCH v2 4/8] db: Deal with "all" tree architectures

2019-03-28 Thread Fabiano Fidêncio
https://gitlab.com/libosinfo/libosinfo/issues/20 Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_db.c | 82 +- 1 file changed, 52 insertions(+), 30 deletions(-) diff --git a/osinfo/osinfo_db.c b/osinfo/osinfo_db.c index b6d9282..ff731ed 100644 ---

[Libosinfo] [libosinfo PATCH v2 2/8] db: Rename os_* to os_treeinfo_* in guess_os_from_tree()

2019-03-28 Thread Fabiano Fidêncio
It'll make clear that we're dealing with the treeinfo attributes and not with the tree ones. https://gitlab.com/libosinfo/libosinfo/issues/20 Signed-off-by: Fabiano Fidêncio Reviewed-by: Cole Robinson --- osinfo/osinfo_db.c | 24 1 file changed, 12 insertions(+), 12

[Libosinfo] [libosinfo PATCH v2 7/8] db: Deal with "all" media architecture

2019-03-28 Thread Fabiano Fidêncio
https://gitlab.com/libosinfo/libosinfo/issues/20 Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_db.c | 57 +- 1 file changed, 41 insertions(+), 16 deletions(-) diff --git a/osinfo/osinfo_db.c b/osinfo/osinfo_db.c index c7963ec..438d81b 100644 ---

[Libosinfo] [libosinfo PATCH v2 5/8] test-db: Add test for guessing tree from OS

2019-03-28 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- .../dbdata/os/libosinfo.org/test-db-tree.xml | 25 + tests/test-db.c | 53 +++ 2 files changed, 78 insertions(+) create mode 100644 tests/dbdata/os/libosinfo.org/test-db-tree.xml diff --git a/tests

[Libosinfo] [libosinfo PATCH v2 0/8] Use "all" arch as a fallback for media/tree detection

2019-03-28 Thread Fabiano Fidêncio
This series has been written considering: - https://www.redhat.com/archives/libosinfo/2019-February/msg00247.html Let's assume that trees and medias set with architecture "all" will be treated as fallback, always. https://gitlab.com/libosinfo/libosinfo/issues/20 Fabiano Fidêncio

[Libosinfo] [libosinfo PATCH v2 6/8] db: Consider the media arch when guess an OS from media

2019-03-28 Thread Fabiano Fidêncio
https://gitlab.com/libosinfo/libosinfo/issues/20 Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_db.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osinfo/osinfo_db.c b/osinfo/osinfo_db.c index ff731ed..c7963ec 100644 --- a/osinfo/osinfo_db.c +++ b/osinfo

Re: [Libosinfo] [libosinfo PATCH 4/8] db: Deal with "unknown" tree architectures

2019-03-27 Thread Fabiano Fidêncio
On Wed, Mar 27, 2019 at 12:42 PM Daniel P. Berrangé wrote: > > On Wed, Mar 27, 2019 at 12:24:26PM +0100, Fabiano Fidêncio wrote: > > https://gitlab.com/libosinfo/libosinfo/issues/20 > > Commit messages should be self-contained, fully describing why that are > doing wha

<    1   2   3   4   5   6   7   8   9   10   >