Deprecated syntax used in perl libraries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
backuppc (Debian) |
Fix Released
|
Unknown
|
|||
backuppc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Interacting starting BackupPC using the init script result in the following warnings to be emitted:
* Starting backuppc...
Use of qw(...) as parentheses is deprecated at /usr/share/
Use of qw(...) as parentheses is deprecated at /usr/share/
This is easily fixed as done in Debian version 3.2.1-4. This means that right now, Quantal and Precise (maybe older) releases are affected by this.
# lsb_release -rd
Description: Ubuntu 12.04.2 LTS
Release: 12.04
# apt-cache policy backuppc
backuppc:
Installed: 3.2.1-2ubuntu1.1
Candidate: 3.2.1-2ubuntu1.1
Version table:
*** 3.2.1-2ubuntu1.1 0
500 http://
500 http://
100 /var/lib/
3.2.1-2ubuntu1 0
500 http://
Changed in backuppc (Ubuntu): | |
status: | New → Confirmed |
status: | Confirmed → Fix Released |
Changed in backuppc (Debian): | |
status: | Unknown → Fix Released |
If anyone is too lazy to apply those 2 patches, an easy way to correct it is with sed:
sed -i 's/\(^[ [:space: ]]\+foreach my \$param\) \(qw(BackupFile sOnly BackupFilesExcl ude)\) {$/\1 (\2) {/' /usr/share/ backuppc/ lib/BackupPC/ Lib.pm /usr/share/ backuppc/ lib/BackupPC/ Storage/ Text.pm