[Libosinfo] [osinfo-db-tools PATCH v2 07/16] tools: Don't import config.h

2019-07-09 Thread Fabiano Fidêncio
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

[Libosinfo] [osinfo-db-tools PATCH v2 05/16] cfg.mk: Remove exclude_file_name_regexp--sc_bindtextdomain

2019-07-09 Thread Fabiano Fidêncio
Let's run the check in all files. Signed-off-by: Fabiano Fidêncio --- cfg.mk | 2 -- 1 file changed, 2 deletions(-) diff --git a/cfg.mk b/cfg.mk index b7839c8..fc4b313 100644 --- a/cfg.mk +++ b/cfg.mk @@ -100,5 +100,3 @@ sc_bracket_spacing_check: # We don't use this feature of maint.mk.

[Libosinfo] [osinfo-db-tools PATCH v2 11/16] prepare-release: Adapt to use meson

2019-07-09 Thread Fabiano Fidêncio
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 --- prepare-release.sh | 78 ++ 1 file changed, 24 insertions(+), 54

[Libosinfo] [osinfo-db-tools PATCH v2 16/16] prepare-release: Add `ninja syntax-check`

2019-07-09 Thread Fabiano Fidêncio
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 --- prepare-release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prepare-release.sh b/prepare-release.sh index

[Libosinfo] [osinfo-db-tools PATCH v2 09/16] spec: Adapt to use meson

2019-07-09 Thread Fabiano Fidêncio
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

[Libosinfo] [osinfo-db-tools PATCH v2 04/16] cfg.mk: Remove exclude_file_name_regexp--sc_prohibit_strcmp

2019-07-09 Thread Fabiano Fidêncio
Let's run the check in all files. Signed-off-by: Fabiano Fidêncio --- cfg.mk | 2 -- 1 file changed, 2 deletions(-) diff --git a/cfg.mk b/cfg.mk index 5490603..b7839c8 100644 --- a/cfg.mk +++ b/cfg.mk @@ -101,6 +101,4 @@ sc_bracket_spacing_check: # We don't use this feature of maint.mk.

[Libosinfo] [osinfo-db-tools PATCH v2 08/16] Add support to meson build system

2019-07-09 Thread Fabiano Fidêncio
Meson build system is a way simpler and easier to understand build system that can provide (with some work-arounds here and there) the same functionalities currently available with our current build system (autotools). For now, as meson support is not fully complete* and requires a quite new

[Libosinfo] [osinfo-db-tools PATCH v2 13/16] Support `make syntax-check` without Makefile

2019-07-09 Thread Fabiano Fidêncio
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

[Libosinfo] [osinfo-db-tools PATCH v2 12/16] Drop autotools support

2019-07-09 Thread Fabiano Fidêncio
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,

[Libosinfo] [osinfo-db-tools PATCH v2 10/16] prepare-release: Remove non-valid configure options

2019-07-09 Thread Fabiano Fidêncio
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 --- prepare-release.sh | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git

[Libosinfo] [osinfo-db-tools PATCH v2 02/16] util: Indent includes/defines

2019-07-09 Thread Fabiano Fidêncio
By doing this, we can stop excluding files from sc_preprocessor_indentation check. Signed-off-by: Fabiano Fidêncio --- tools/osinfo-db-util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/osinfo-db-util.h b/tools/osinfo-db-util.h index 7b4e501..8d7a456 100644

[Libosinfo] [osinfo-db-tools PATCH v2 06/16] maint.mk: Update to the latest gnulib version

2019-07-09 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- maint.mk | 407 ++- 1 file changed, 255 insertions(+), 152 deletions(-) diff --git a/maint.mk b/maint.mk index 04a839a..16e9360 100644 --- a/maint.mk +++ b/maint.mk @@ -2,7 +2,7 @@ # This Makefile fragment

[Libosinfo] [osinfo-db-tools PATCH v2 14/16] Move files needed for `make syntax-check` to build-aux

2019-07-09 Thread Fabiano Fidêncio
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

[Libosinfo] [osinfo-db-tools PATCH v2 00/16] Add support to meson build system

2019-07-09 Thread Fabiano Fidêncio
The following patch series: - Add suppor to meson build system; - Drop support to autotools build system; If we decide to go for it, there's still work to be done in libvirt-jenkins-ci as it has to have meson support added there. Changes since v1:

[Libosinfo] [osinfo-db-tools PATCH v2 01/16] tests: Unset OSINFO_LOCAL_DIR envvar

2019-07-09 Thread Fabiano Fidêncio
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 --- tests/test_osinfo_db_path.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[Libosinfo] [osinfo-db-tools PATCH v2 03/16] cfg.mk: Remove exclude_file_name_regexp--sc_preprocessor_indentation

2019-07-09 Thread Fabiano Fidêncio
Let's run the check in all files. Signed-off-by: Fabiano Fidêncio --- cfg.mk | 2 -- 1 file changed, 2 deletions(-) diff --git a/cfg.mk b/cfg.mk index 570bbb2..5490603 100644 --- a/cfg.mk +++ b/cfg.mk @@ -101,8 +101,6 @@ sc_bracket_spacing_check: # We don't use this feature of maint.mk.

[Libosinfo] [osinfo-db-tools PATCH v2 15/16] meson: Add ninja syntax-check

2019-07-09 Thread Fabiano Fidêncio
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 --- build-aux/syntax-check | 5 + meson.build| 3 +++ 2 files

[Libosinfo] [libosinfo PATCH v2 1/2] tools, install-script: Add --config-file (-f) option

2019-07-09 Thread Fabiano Fidêncio
Let's add a new option so users can set their config from a file, instead of directly passing the values via command-line. Signed-off-by: Fabiano Fidêncio --- tools/osinfo-install-script.c | 103 +- 1 file changed, 102 insertions(+), 1 deletion(-) diff --git

[Libosinfo] [libosinfo PATCH v2 2/2] tools, install-script: Deprecate --config

2019-07-09 Thread Fabiano Fidêncio
Let's deprecate --config and warn out whenever a user or admin password is passed to osinfo-install-script. Signed-off-by: Fabiano Fidêncio --- tools/osinfo-install-script.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/osinfo-install-script.c b/tools/osinfo-install-script.c

[Libosinfo] [libosinfo PATCH v2 0/2] Do not expose user & admin password in the command line

2019-07-09 Thread Fabiano Fidêncio
Those two patches introduce a fix for a low impact CVE where both user & admin password would be passed to the osinfo-install-script via command line. In order to avoid doing so, let's introduce a --config-file and warn out whenever a password is passed via --config. Changes since v1:

[Libosinfo] [osinfo-db-tools PATCH] tests: Unset OSINFO_LOCAL_DIR envvar

2019-07-09 Thread Fabiano Fidêncio
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 --- tests/test_osinfo_db_path.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

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

2019-07-09 Thread Fabiano Fidêncio
As Debian 10 has been released, Debian 9 ISOs have been moved to the archive. Signed-off-by: Fabiano Fidêncio --- data/os/debian.org/debian-9.xml.in | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/data/os/debian.org/debian-9.xml.in

[Libosinfo] [osinfo-db PATCH 0/2] debian: Add Debian 10 info & update Debian 9 URLs

2019-07-09 Thread Fabiano Fidêncio
In this series let's: - Update the deadlinks from Debian 9 as, due to the Debian 10 release, its ISOs have been moved to the archive; - Add Debian 10 info; * Unattended installation on both jeos/desktop have been tested using Debian tree; Fabiano Fidêncio (2): debian9: Update dead links

[Libosinfo] [osinfo-db PATCH 2/2] debian10: Add info

2019-07-09 Thread Fabiano Fidêncio
Debian 10 has been released on July 6th, 2019. Signed-off-by: Fabiano Fidêncio --- data/os/debian.org/debian-10.xml.in | 203 ++ .../debian-10.0.0-amd64-DVD-1.iso.txt | 29 +++ .../debian-10.0.0-amd64-netinst.iso.txt | 29 +++