Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/ding-libs/files/
Date: Sun, 30 Oct 2022 09:28:32
Message-Id: 1667121999.3e0de4c3b9bb72ac63c48349ea390b6586d4f9e5.sam@gentoo
1 commit: 3e0de4c3b9bb72ac63c48349ea390b6586d4f9e5
2 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
3 AuthorDate: Sun Oct 30 07:52:37 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 30 09:26:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e0de4c3
7
8 dev-libs/ding-libs: remove unused patch(es)
9
10 Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
11 Closes: https://github.com/gentoo/gentoo/pull/28034
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 .../0000-INI-Fix-detection-of-error-messages.patch | 47 ---------------------
15 .../0001-path_utils_ut-allow-single-as-well.patch | 36 ----------------
16 ...lidators_ut_check-Fix-fail-with-new-glibc.patch | 49 ----------------------
17 3 files changed, 132 deletions(-)
18
19 diff --git a/dev-libs/ding-libs/files/0000-INI-Fix-detection-of-error-messages.patch b/dev-libs/ding-libs/files/0000-INI-Fix-detection-of-error-messages.patch
20 deleted file mode 100644
21 index 62e436c7c92a..000000000000
22 --- a/dev-libs/ding-libs/files/0000-INI-Fix-detection-of-error-messages.patch
23 +++ /dev/null
24 @@ -1,47 +0,0 @@
25 -From 72c19bd018b107ecf5a80963b433e9922f7243fd Mon Sep 17 00:00:00 2001
26 -From: Lukas Slebodnik <lslebodn@××××××.com>
27 -Date: Wed, 3 Jan 2018 18:03:44 +0100
28 -Subject: [PATCH] INI: Fix detection of error messages
29 -MIME-Version: 1.0
30 -Content-Type: text/plain; charset=UTF-8
31 -Content-Transfer-Encoding: 8bit
32 -
33 -libc on BSD returns different error messages.
34 -
35 -Reviewed-by: Michal Židek <mzidek@××××××.com>
36 ----
37 - ini/ini_validators_ut_check.c | 11 +++++++++++
38 - 1 file changed, 11 insertions(+)
39 -
40 -diff --git a/ini/ini_validators_ut_check.c b/ini/ini_validators_ut_check.c
41 -index fa7105a..9ecde75 100644
42 ---- a/ini/ini_validators_ut_check.c
43 -+++ b/ini/ini_validators_ut_check.c
44 -@@ -607,6 +607,12 @@ START_TEST(test_ini_allowed_options_wrong_regex)
45 - "[rule/options_for_foo]: Cannot compile regular expression "
46 - "from option 'section_re'. "
47 - "Error: 'Unmatched [ or [^'");
48 -+ if (ret != 0) {
49 -+ ret = strcmp(errmsg,
50 -+ "[rule/options_for_foo]: Cannot compile regular expression "
51 -+ "from option 'section_re'. "
52 -+ "Error: 'brackets ([ ]) not balanced'");
53 -+ }
54 - fail_unless(ret == 0, "Got msg: [%s]", errmsg);
55 - ini_errobj_next(errobj);
56 -
57 -@@ -1028,6 +1034,11 @@ START_TEST(test_ini_allowed_sections_wrong_regex)
58 - ret = strcmp(errmsg,
59 - "[rule/section_list]: Validator failed to use regex "
60 - "[^foo\\(*$]:[Unmatched ( or \\(]");
61 -+ if (ret !=0) {
62 -+ ret = strcmp(errmsg,
63 -+ "[rule/section_list]: Validator failed to use regex "
64 -+ "[^foo\\(*$]:[parentheses not balanced]");
65 -+ }
66 - fail_unless(ret == 0, "Got msg: [%s]", errmsg);
67 - ini_errobj_next(errobj);
68 -
69 ---
70 -2.21.0
71 -
72
73 diff --git a/dev-libs/ding-libs/files/0001-path_utils_ut-allow-single-as-well.patch b/dev-libs/ding-libs/files/0001-path_utils_ut-allow-single-as-well.patch
74 deleted file mode 100644
75 index a9ca8e9edc2b..000000000000
76 --- a/dev-libs/ding-libs/files/0001-path_utils_ut-allow-single-as-well.patch
77 +++ /dev/null
78 @@ -1,36 +0,0 @@
79 -From 4236e323e8ab4f13770e1ac9e94666b304b693fb Mon Sep 17 00:00:00 2001
80 -From: Henrik Riomar <henrik.riomar@×××××.com>
81 -Date: Tue, 24 Jul 2018 21:59:36 +0000
82 -Subject: [PATCH 1/2] path_utils_ut: allow single / as well
83 -MIME-Version: 1.0
84 -Content-Type: text/plain; charset=UTF-8
85 -Content-Transfer-Encoding: 8bit
86 -
87 -From http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_266
88 - Multiple successive slashes are considered to be the same as one slash.
89 -
90 -When running the tests on a musl libc system
91 - get_dirname(p, PATH_MAX, "//foo//")
92 -actually results in a / and not //
93 -
94 -Reviewed-by: Michal Židek <mzidek@××××××.com>
95 ----
96 - path_utils/path_utils_ut.c | 2 +-
97 - 1 file changed, 1 insertion(+), 1 deletion(-)
98 -
99 -diff --git a/path_utils/path_utils_ut.c b/path_utils/path_utils_ut.c
100 -index 27c99b6..061abfb 100644
101 ---- a/path_utils/path_utils_ut.c
102 -+++ b/path_utils/path_utils_ut.c
103 -@@ -62,7 +62,7 @@ START_TEST(test_dirname)
104 - fail_unless_str_equal(p, "//foo");
105 -
106 - fail_unless(get_dirname(p, PATH_MAX, "//foo//") == SUCCESS);
107 -- fail_unless_str_equal(p, "//");
108 -+ fail_unless(!strcmp(p, "/") || !strcmp(p, "//"));
109 -
110 - fail_unless(get_dirname(p, PATH_MAX, "foo//bar") == SUCCESS);
111 - fail_unless_str_equal(p, "foo");
112 ---
113 -2.21.0
114 -
115
116 diff --git a/dev-libs/ding-libs/files/0002-validators_ut_check-Fix-fail-with-new-glibc.patch b/dev-libs/ding-libs/files/0002-validators_ut_check-Fix-fail-with-new-glibc.patch
117 deleted file mode 100644
118 index 0524a128d620..000000000000
119 --- a/dev-libs/ding-libs/files/0002-validators_ut_check-Fix-fail-with-new-glibc.patch
120 +++ /dev/null
121 @@ -1,49 +0,0 @@
122 -From 9f9a3ded23cc2bb917468939b745cc498cec523a Mon Sep 17 00:00:00 2001
123 -From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@××××××.com>
124 -Date: Wed, 1 Aug 2018 17:48:10 +0200
125 -Subject: [PATCH 2/2] validators_ut_check: Fix fail with new glibc
126 -
127 -Error message was slightly change from previous version
128 -of glibc which caused fails in validators unit tests.
129 -
130 -Reviewed-by: Jakub Hrozek <jhrozek@××××××.com>
131 ----
132 - ini/ini_validators_ut_check.c | 13 +++++++++++--
133 - 1 file changed, 11 insertions(+), 2 deletions(-)
134 -
135 -diff --git a/ini/ini_validators_ut_check.c b/ini/ini_validators_ut_check.c
136 -index 9ecde75..3af8551 100644
137 ---- a/ini/ini_validators_ut_check.c
138 -+++ b/ini/ini_validators_ut_check.c
139 -@@ -602,6 +602,8 @@ START_TEST(test_ini_allowed_options_wrong_regex)
140 - fail_unless(ret == 0, "Got msg: [%s]", errmsg);
141 - ini_errobj_next(errobj);
142 -
143 -+ /* Different versions of libc produce slightly different error strings
144 -+ * in this case. For simplicity compare against all of them. */
145 - errmsg = ini_errobj_get_msg(errobj);
146 - ret = strcmp(errmsg,
147 - "[rule/options_for_foo]: Cannot compile regular expression "
148 -@@ -609,10 +611,17 @@ START_TEST(test_ini_allowed_options_wrong_regex)
149 - "Error: 'Unmatched [ or [^'");
150 - if (ret != 0) {
151 - ret = strcmp(errmsg,
152 -- "[rule/options_for_foo]: Cannot compile regular expression "
153 -- "from option 'section_re'. "
154 -+ "[rule/options_for_foo]: Cannot compile regular "
155 -+ "expression from option 'section_re'. "
156 - "Error: 'brackets ([ ]) not balanced'");
157 - }
158 -+
159 -+ if (ret != 0) {
160 -+ ret = strcmp(errmsg,
161 -+ "[rule/options_for_foo]: Cannot compile regular "
162 -+ "expression from option 'section_re'. "
163 -+ "Error: 'Unmatched [, [^, [:, [., or [='");
164 -+ }
165 - fail_unless(ret == 0, "Got msg: [%s]", errmsg);
166 - ini_errobj_next(errobj);
167 -
168 ---
169 -2.21.0
170 -