From 106d925b78058a1da62e6d97e06ef58d285437e1 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 30 2018 04:53:29 +0000 Subject: import ding-libs-0.6.1-32.el7 --- diff --git a/SOURCES/0001-INI-Silence-ini_augment-match-failures.patch b/SOURCES/0001-INI-Silence-ini_augment-match-failures.patch new file mode 100644 index 0000000..9743116 --- /dev/null +++ b/SOURCES/0001-INI-Silence-ini_augment-match-failures.patch @@ -0,0 +1,101 @@ +From a12ebfad6b808a85a70bb245a64f56724fc7a4c4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michal=20=C5=BDidek?= +Date: Mon, 30 Oct 2017 12:43:19 -0500 +Subject: [PATCH] INI: Silence ini_augment match failures +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Resolves: +https://pagure.io/SSSD/ding-libs/issue/3182 + +Reviewed-by: Michal Židek +Signed-off-by: Alexander Scheel +Merges: https://pagure.io/SSSD/ding-libs/pull-request/3183 +(cherry picked from commit be9ca3a2c26b061d1f22bd4a09009bba7a01f67b) + +DOWNSTREAM: +Resolves: rhbz#1507607 - ding-libs: libini_config: `ini_config_augment` reports errors on match failure +--- + ini/ini.d/merge.validator | 11 ----------- + ini/ini_augment.c | 13 +++++++------ + 2 files changed, 7 insertions(+), 17 deletions(-) + +diff --git a/ini/ini.d/merge.validator b/ini/ini.d/merge.validator +index 1defe8e78e598d903fa6b8c35a015076d5e5e43e..017c1cb8fb441fbe854d57ea9ea9f8476595d6bd 100644 +--- a/ini/ini.d/merge.validator ++++ b/ini/ini.d/merge.validator +@@ -1,17 +1,8 @@ +-File %s%s/merge.validator did not match provided patterns. Skipping. +-File %s%s/real8.conf did not match provided patterns. Skipping. +-File %s%s/new_line.conf did not match provided patterns. Skipping. +-File %s%s/real32be.conf did not match provided patterns. Skipping. +-File %s%s/real32le.conf did not match provided patterns. Skipping. +-File %s%s/real16be.conf did not match provided patterns. Skipping. +-File %s%s/real16le.conf did not match provided patterns. Skipping. +-File %s%s/foo.conf.in did not match provided patterns. Skipping. + Errors detected while parsing: %s%s/comment.conf. + Error (9) on line 22: Invalid space character at the beginning of the line. + Error (9) on line 24: Invalid space character at the beginning of the line. + Error (9) on line 26: Invalid space character at the beginning of the line. + Error (15) on line 32: Incomplete comment at the end of the file. +-No sections found in file %s%s/comment.conf. Skipping. + Section [section_a] found in file %s%s/first.conf is not allowed. + Section [section_c] found in file %s%s/first.conf is not allowed. + Section [section_b] found in file %s%s/first.conf is not allowed. +@@ -42,7 +33,6 @@ Error (9) on line 1: Invalid space character at the beginning of the line. + Error (9) on line 2: Invalid space character at the beginning of the line. + Error (9) on line 3: Invalid space character at the beginning of the line. + Error (9) on line 4: Invalid space character at the beginning of the line. +-No sections found in file %s%s/space.conf. Skipping. + Section [info] found in file %s%s/symbols.conf is not allowed. + Section [languages] found in file %s%s/symbols.conf is not allowed. + Section [text] found in file %s%s/symbols.conf is not allowed. +@@ -55,6 +45,5 @@ Error (9) on line 15: Invalid space character at the beginning of the line. + Error (9) on line 16: Invalid space character at the beginning of the line. + Error (9) on line 26: Invalid space character at the beginning of the line. + Error (9) on line 35: Invalid space character at the beginning of the line. +-No sections found in file %s%s/test.conf. Skipping. + %s%s/ipa.conf + %s%s/real.conf +diff --git a/ini/ini_augment.c b/ini/ini_augment.c +index af5c0b6959334d8072b4979ff568ffb1e2756d83..9d83ad9f09caa2d3d21fdeb7d93c57be27d43947 100644 +--- a/ini/ini_augment.c ++++ b/ini/ini_augment.c +@@ -32,6 +32,8 @@ + #include + #include + #include ++#define TRACE_LEVEL 7 ++#define TRACE_HOME + #include "trace.h" + #include "collection.h" + #include "collection_tools.h" +@@ -456,10 +458,9 @@ static int ini_aug_construct_list(char *dirname , + } + } + else { +- ini_aug_add_string(ra_err, +- "File %s did not match provided patterns." +- " Skipping.", +- fullname); ++ TRACE_INFO_STRING("File did not match provided patterns." ++ " Skipping:", ++ fullname); + } + } + +@@ -609,8 +610,8 @@ static int ini_aug_match_sec(struct ini_cfgobj *snip_cfg, + + /* Just in case check that we processed anything */ + if (section_count == 0) { +- ini_aug_add_string(ra_err, "No sections found in file %s. Skipping.", +- snip_name); ++ TRACE_INFO_STRING("No sections found in file. Skipping:", ++ snip_name); + *skip = true; + TRACE_FLOW_EXIT(); + return EOK; +-- +2.9.5 + diff --git a/SOURCES/0002-INI-Remove-definiton-of-TRACE_LEVEL.patch b/SOURCES/0002-INI-Remove-definiton-of-TRACE_LEVEL.patch new file mode 100644 index 0000000..63d950c --- /dev/null +++ b/SOURCES/0002-INI-Remove-definiton-of-TRACE_LEVEL.patch @@ -0,0 +1,36 @@ +From fded2a4f09a8c124f631a691f11ba5b87026cc6f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michal=20=C5=BDidek?= +Date: Wed, 15 Nov 2017 18:31:47 +0100 +Subject: [PATCH] INI: Remove definiton of TRACE_LEVEL + +Macros TRACE_LEVEL 7 and TRACE_HOME should only be defined +in testing builds where we want debug messages to be generated. + +The macros are leftovers from the previous patch where they +were improperly added for debug purposes. + +Resolves: +https://pagure.io/SSSD/ding-libs/issue/3182 + +Reviewed-by: Robbie Harwood +(cherry picked from commit a731d8c8c515e7e42a4fb448e0ecb6934d5bf99b) +--- + ini/ini_augment.c | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/ini/ini_augment.c b/ini/ini_augment.c +index 9d83ad9f09caa2d3d21fdeb7d93c57be27d43947..5a5a1736f65aaa1e1eb703c5e5548465707a11e6 100644 +--- a/ini/ini_augment.c ++++ b/ini/ini_augment.c +@@ -32,8 +32,6 @@ + #include + #include + #include +-#define TRACE_LEVEL 7 +-#define TRACE_HOME + #include "trace.h" + #include "collection.h" + #include "collection_tools.h" +-- +2.9.5 + diff --git a/SPECS/ding-libs.spec b/SPECS/ding-libs.spec index c0d02ae..cef9535 100644 --- a/SPECS/ding-libs.spec +++ b/SPECS/ding-libs.spec @@ -1,6 +1,6 @@ Name: ding-libs Version: 0.6.1 -Release: 29%{?dist} +Release: 32%{?dist} Summary: "Ding is not GLib" assorted utility libraries Group: Development/Libraries License: LGPLv3+ @@ -19,7 +19,12 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %global ini_config_version 1.3.1 ### Patches ### -Patch0001: ding-libs-fake-soname.patch +Patch0001: 0001-INI-Silence-ini_augment-match-failures.patch +Patch0002: 0002-INI-Remove-definiton-of-TRACE_LEVEL.patch + + +### Downstream only ### +Patch999: ding-libs-fake-soname.patch ### Dependencies ### # ding-libs is a meta-package that will pull in all of its own @@ -322,7 +327,10 @@ structure %prep %setup -q -%patch0001 -p1 -b .soname + +for p in %patches ; do + %__patch -p1 -i $p +done %build autoreconf -ivf @@ -357,6 +365,17 @@ rm -f */doc/html/installdox rm -rf $RPM_BUILD_ROOT %changelog +* Thu Jun 7 2018 Michal Židek - 0.6.1-32 +- Previous change in spec file broke the application of downstream only patch +- Related: rhbz#1507607 - ding-libs: libini_config: `ini_config_augment` reports errors on match failure + +* Thu Jun 7 2018 Michal Židek - 0.6.1-31 +- Resolves: rhbz#1507607 - ding-libs: libini_config: `ini_config_augment` reports errors on match failure + +* Thu Jun 07 2018 Michal Židek - 0.6.1-30 +- Adopting to use Downstream Helper for bellow BZ backport +- Related: rhbz#1507607 - ding-libs: libini_config: `ini_config_augment` reports errors on match failure + * Mon Jun 27 2016 Michal Židek - 0.6.1-29 - Fix rpmdiff failure for 'Binary stripping' - Resolves: rhbz#1480270 - Rebase ding-libs to the latest upstream release