Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594128 - <app-backup/backuppc-3.3.0-r5 ( Error loading BackupPC::Lib: Unescaped left brace in regex is illegal here in regex )
Summary: <app-backup/backuppc-3.3.0-r5 ( Error loading BackupPC::Lib: Unescaped left b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: needs stabilization
Keywords:
Depends on:
Blocks: perl-5.26
  Show dependency tree
 
Reported: 2016-09-17 21:19 UTC by William Cooke
Modified: 2017-09-08 13:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
04-perl-522-unescaped-regex.patch (04-perl-522-unescaped-regex.patch,841 bytes, patch)
2016-09-17 21:19 UTC, William Cooke
Details | Diff
backuppc-3.3.0-r2.ebuild.patch (backuppc-3.3.0-r2.ebuild.patch,533 bytes, patch)
2016-09-17 21:20 UTC, William Cooke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William Cooke 2016-09-17 21:19:31 UTC
Created attachment 446216 [details, diff]
04-perl-522-unescaped-regex.patch

Two errors are generated when running the hourly backuppc cron job after upgrading perl to version 5.22.

Cron Job command:
su backuppc -s /bin/sh -c "/usr/bin/BackupPC_sendEmail -u backupuser -c"

Errors:
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE (\w+)}(\+?)/ at /usr/lib/BackupPC/Lib.pm line 1268.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(.*)\${ <-- HERE (\w+)}(\+?)(.*)/ at /usr/lib/BackupPC/Lib.pm line 1273.

Debian and Ubuntu bug reports
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820110
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/1570987

Patches for backuppc-3.3.0-r2.ebuild and Lib.pm are attached.
Comment 1 William Cooke 2016-09-17 21:20:06 UTC
Created attachment 446218 [details, diff]
backuppc-3.3.0-r2.ebuild.patch
Comment 2 Marek Szuba archtester gentoo-dev 2016-09-22 07:58:35 UTC
Hello,

Unfortunately app-backup/backuppc has been without a maintainer for quite a while now. Would you perhaps be interested in becoming its proxied maintainer? You would then be the person responsible for this package, with someone from our dedicated team [1] committing your work to Portage for you.

[1] https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
Comment 3 Pacho Ramos gentoo-dev 2016-11-26 12:54:07 UTC
[master d53e5b6] app-backup/backuppc: Fix perl-5.22 compat (#580254 by Till Korten)
 2 files changed, 213 insertions(+)
 create mode 100644 app-backup/backuppc/backuppc-3.3.1-r3.ebuild
 create mode 100644 app-backup/backuppc/files/backuppc-3.3.1-perl522.patch
Comment 4 David Mudrák 2017-01-11 10:24:37 UTC
I am a bit confused now. This issue has been as resolved, yet I am still experiencing the thrown warnings with backuppc-3.3.1-r3

As far as I can say, the attached patch 04-perl-522-unescaped-regex.patch is not present in the portage tree. The patch backuppc-3.3.1-perl522.patch seems to address something different.

I can confirm that applying 04-perl-522-unescaped-regex.patch fixes the issue for me.

Same issue in Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/1570987
Comment 5 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-06-30 22:50:48 UTC
Indeed, this is now not only a warning, but a fatal error on Perl 5.26


>>> Preparing source in /var/tmp/portage/app-backup/backuppc-3.3.1-r4/work/BackupPC-3.3.1 ...
 * Applying 01-fix-configure.pl.patch ...                                                                                                                                                                                                                                     [ ok ]
 * Applying 02-fix-config.pl-formatting.patch ...                                                                                                                                                                                                                             [ ok ]
 * Applying 03-reasonable-config.pl-defaults.patch ...                                                                                                                                                                                                                        [ ok ]
 * Applying 04-add-docdir-marker.patch ...                                                                                                                                                                                                                                    [ ok ]
 * Applying 05-nicelevel.patch ...                                                                                                                                                                                                                                            [ ok ]
 * Applying backuppc-3.3.1-perl522.patch ...                                                                                                                                                                                                                                  [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-backup/backuppc-3.3.1-r4/work/BackupPC-3.3.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-backup/backuppc-3.3.1-r4/work/BackupPC-3.3.1 ...
>>> Source compiled.
>>> Test phase: app-backup/backuppc-3.3.1-r4
>>> Completed testing app-backup/backuppc-3.3.1-r4

>>> Install backuppc-3.3.1-r4 into /var/tmp/portage/app-backup/backuppc-3.3.1-r4/image/ category app-backup

Error loading BackupPC::Lib: Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE (\w+)}(\+?)/ at lib/BackupPC/Lib.pm line 1268.
Compilation failed in require at (eval 19) line 1.
BEGIN failed--compilation aborted at (eval 19) line 1.

BackupPC cannot load the package BackupPC::Lib, which is included in the
BackupPC distribution.  This probably means you did not cd to the
unpacked BackupPC distribution before running configure.pl, eg:

    cd BackupPC-3.3.1
    ./configure.pl

Please try again.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2017-07-07 22:37:29 UTC
This is fixed in app-backup/backuppc-3.3.1-r5
Comment 7 Pacho Ramos gentoo-dev 2017-09-08 13:17:14 UTC
that revision is being stabilized in bug 627388