Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-09-17 13:22:07 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-09-17 13:22:07 +0200
commit8b76109c7262ca1040299d93c97f71f6402e2904 (patch)
treecf92c4a1e927584706457b910d7f1750cabcc180
parent309945401798d5615fd1afe119737c2682bef9a9 (diff)
core/ding-libs: backported fix for test ini_validators_ut_check
-rw-r--r--core/ding-libs/PKGBUILD10
-rw-r--r--core/ding-libs/ding-libs-0.6.1-ini_validators_ut_check-glibc-2.28.patch35
2 files changed, 45 insertions, 0 deletions
diff --git a/core/ding-libs/PKGBUILD b/core/ding-libs/PKGBUILD
new file mode 100644
index 00000000..ef562218
--- /dev/null
+++ b/core/ding-libs/PKGBUILD
@@ -0,0 +1,10 @@
+# already fixed upstream, see https://github.com/SSSD/ding-libs/issues/7
+
+source+=('ding-libs-0.6.1-ini_validators_ut_check-glibc-2.28.patch')
+sha1sums+=('bec66945c3524a9edf4956f794e99ca4d3d144e0')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ patch -Np1 -i ../ding-libs-0.6.1-ini_validators_ut_check-glibc-2.28.patch
+}
diff --git a/core/ding-libs/ding-libs-0.6.1-ini_validators_ut_check-glibc-2.28.patch b/core/ding-libs/ding-libs-0.6.1-ini_validators_ut_check-glibc-2.28.patch
new file mode 100644
index 00000000..29234a70
--- /dev/null
+++ b/core/ding-libs/ding-libs-0.6.1-ini_validators_ut_check-glibc-2.28.patch
@@ -0,0 +1,35 @@
+diff -rauN ding-libs-0.6.1/ini/ini_validators_ut_check.c ding-libs-0.6.1-ini_validators_ut_check-glibc-2.28-patch/ini/ini_validators_ut_check.c
+--- ding-libs-0.6.1/ini/ini_validators_ut_check.c 2017-09-07 17:24:13.000000000 +0200
++++ ding-libs-0.6.1-ini_validators_ut_check-glibc-2.28-patch/ini/ini_validators_ut_check.c 2018-09-17 13:13:29.989999949 +0200
+@@ -602,11 +602,31 @@
+ fail_unless(ret == 0, "Got msg: [%s]", errmsg);
+ ini_errobj_next(errobj);
+
++ /* Different versions of libc produce slightly different error strings
++ * in this case. For simplicity compare against all of them. */
+ errmsg = ini_errobj_get_msg(errobj);
+ ret = strcmp(errmsg,
+ "[rule/options_for_foo]: Cannot compile regular expression "
+ "from option 'section_re'. "
+ "Error: 'Unmatched [ or [^'");
++ if (ret != 0) {
++ ret = strcmp(errmsg,
++ "[rule/options_for_foo]: Cannot compile regular expression "
++ "from option 'section_re'. "
++ "[rule/options_for_foo]: Cannot compile regular "
++ "expression from option 'section_re'. "
++ "Error: 'brackets ([ ]) not balanced'");
++ }
++ if (ret != 0) {
++ ret = strcmp(errmsg,
++ "[rule/options_for_foo]: Cannot compile regular "
++ "expression from option 'section_re'. "
++ "Error: 'Unmatched [, [^, [:, [., or [='");
++ }
++ fail_unless(ret == 0, "Got msg: [%s]", errmsg);
++ ini_errobj_next(errobj);
++
++
+ fail_unless(ret == 0, "Got msg: [%s]", errmsg);
+ ini_errobj_next(errobj);
+