The tool became completely unusable after the switch to Perl
5.26; workaround the issue while we wait for a proper solution.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
Using regexes to match regexes: it's regexception.
guests/tasks/kludges.yml | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/guests/tasks/kludges.yml b/guests/tasks/kludges.yml
index d0ff6cb..4dd06a4 100644
--- a/guests/tasks/kludges.yml
+++ b/guests/tasks/kludges.yml
@@ -46,3 +46,16 @@
command: cap_mkdb /etc/login.conf
when:
- loginconf.changed
+
+# FreeBSD switched to Perl 5.26, which makes a long existing warning in
+# intltool-update turn into an error and causes jobs to fail. While we
+# wait for the port to be fixed, we can patch things up ourselves.
+#
+# See
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227444
+- name: Fix intltool-update
+ replace:
+ path: /usr/local/bin/intltool-update
+ regexp: '^(.*) !~ /\\\$\{\?\$2\}\?/;$'
+ replace: '\1 !~ /\\$\\{?$2}?/;'
+ when:
+ - os_name == 'FreeBSD'
--
2.14.3