Subject: [bug#27360] [core-updates] gnu: intltool: Fix a compatibility issue with Perl 5.26.0.

From: [email-masked] (Ludovic Courtès)
Date: Thu, 15 Jun 2017 10:06:42 +0200

Leo Famulari <[email-masked]> skribis:

> On Wed, Jun 14, 2017 at 11:44:59AM -0400, Leo Famulari wrote:
>> * gnu/packages/patches/intltool-perl-compatibility.patch: New file.
>> * gnu/local.mk (dist_patch_DATA): Add it.
>> * gnu/packages/glib.scm (intltool)[source]: Use it.
>
> Hm, seems this patch only fixes the build of glib. With this patch
> applied, at-spi2-core fails like this:
>
> ------
> starting phase `check'
> process 4420: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": No such file or directory
> See the manual page for dbus-uuidgen to correct this issue.
> Making check in po
> make[1]: Entering directory '/tmp/guix-build-at-spi2-core-2.24.1.drv-0/at-spi2-core-2.24.1/po'
> INTLTOOL_EXTRACT="/gnu/store/cgk7q1rix13xqdwnlf6bv19crkkcsn04-intltool-0.51.0/bin/intltool-extract" XGETTEXT="/gnu/store/rdmn68786vmi67g4rn4scj0993lqjgbb-gettext-minimal-0.19.8.1/bin/xgettext" srcdir=. /gnu/store/cgk7q1rix13xqdwnlf6bv19crkkcsn04-intltool-0.51.0/bin/intltool-update --gettext-package at-spi2-core --pot
> rm -f missing notexist
> srcdir=. /gnu/store/cgk7q1rix13xqdwnlf6bv19crkkcsn04-intltool-0.51.0/bin/intltool-update -m
> Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ?PACKAGE}?/ at /gnu/store/cgk7q1rix13xqdwnlf6bv19crkkcsn04-intltool-0.51.0/bin/intltool-update line 1071, <CONF> line 229.
> make[1]: *** [Makefile:154: check] Error 255
> make[1]: Leaving directory '/tmp/guix-build-at-spi2-core-2.24.1.drv-0/at-spi2-core-2.24.1/po'
> make: *** [Makefile:541: check-recursive] Error 1
> phase `check' failed after 0.2 seconds
> ------
>
> And, it seems like other packages will have similar problems:
>
> https://bugs.gentoo.org/show_bug.cgi?id=614698

Should we keep the previous version of Perl around (with the File::Path
patch that we currently have in ‘master’) for those packages that are
not ready yet?

Ludo’.