Opened 9 years ago

Closed 9 years ago

#49571 closed defect (fixed)

backuppc: cannot load the package BackupPC::Lib

Reported by: mojca (Mojca Miklavec) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: dbevans (David B. Evans), Ionic (Mihai Moldovan)
Port: backuppc

Description

I'm attaching the patch to bring backuppc up to Perl5.22 (#48365), but I'm unable to install the port:

Error loading BackupPC::Lib: syntax error at lib/BackupPC/Storage/Text.pm line 298, near "$param qw(BackupFilesOnly BackupFilesExclude)"
Global symbol "$param" requires explicit package name (did you forget to declare "my $param"?) at lib/BackupPC/Storage/Text.pm line 299.
Global symbol "$conf" requires explicit package name (did you forget to declare "my $conf"?) at lib/BackupPC/Storage/Text.pm line 299.
Global symbol "$param" requires explicit package name (did you forget to declare "my $param"?) at lib/BackupPC/Storage/Text.pm line 299.
Global symbol "$conf" requires explicit package name (did you forget to declare "my $conf"?) at lib/BackupPC/Storage/Text.pm line 300.
Global symbol "$param" requires explicit package name (did you forget to declare "my $param"?) at lib/BackupPC/Storage/Text.pm line 300.
Global symbol "$conf" requires explicit package name (did you forget to declare "my $conf"?) at lib/BackupPC/Storage/Text.pm line 300.
Global symbol "$param" requires explicit package name (did you forget to declare "my $param"?) at lib/BackupPC/Storage/Text.pm line 300.
Global symbol "$conf" requires explicit package name (did you forget to declare "my $conf"?) at lib/BackupPC/Storage/Text.pm line 301.
Global symbol "$param" requires explicit package name (did you forget to declare "my $param"?) at lib/BackupPC/Storage/Text.pm line 301.
Global symbol "$conf" requires explicit package name (did you forget to declare "my $conf"?) at lib/BackupPC/Storage/Text.pm line 302.
Global symbol "$param" requires explicit package name (did you forget to declare "my $param"?) at lib/BackupPC/Storage/Text.pm line 302.
Global symbol "$conf" requires explicit package name (did you forget to declare "my $conf"?) at lib/BackupPC/Storage/Text.pm line 302.
Global symbol "$param" requires explicit package name (did you forget to declare "my $param"?) at lib/BackupPC/Storage/Text.pm line 302.
syntax error at lib/BackupPC/Storage/Text.pm line 303, near "}"
lib/BackupPC/Storage/Text.pm has too many errors.
Compilation failed in require at lib/BackupPC/Storage.pm line 41.
BEGIN failed--compilation aborted at lib/BackupPC/Storage.pm line 41.
Compilation failed in require at lib/BackupPC/Lib.pm line 43.
BEGIN failed--compilation aborted at lib/BackupPC/Lib.pm line 43.
Compilation failed in require at (eval 19) line 2.
BEGIN failed--compilation aborted at (eval 19) line 2.

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.1.0
    ./configure.pl

Please try again.

I'm not sure if this is in any way related to the Perl upgrade (it is probably not).

Attachments (2)

backuppc.Portfile (7.7 KB) - added by mojca (Mojca Miklavec) 9 years ago.
backuppc against Perl5.22
backuppc.Portfile.diff (2.6 KB) - added by mojca (Mojca Miklavec) 9 years ago.
Patch for brining backuppc up to date with perl5.22

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by mojca (Mojca Miklavec)

Attachment: backuppc.Portfile added

backuppc against Perl5.22

Changed 9 years ago by mojca (Mojca Miklavec)

Attachment: backuppc.Portfile.diff added

Patch for brining backuppc up to date with perl5.22

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Port: backuppc added

comment:2 Changed 9 years ago by Ionic (Mihai Moldovan)

It's probably both.

The reason for this breakage is likely that newer perl versions are stricter than older ones and thus do not let you get away with defining global symbols "as-is" anymore.

It's pretty moot, though, because the port is outdated anyway. We should try to update it to the most recent version 3.3.1 first.

comment:3 Changed 9 years ago by mojca (Mojca Miklavec)

It would help a lot if we had someone who actually knows how to test this software. While we can adapt the software, it will be a lot of blind guessing whether it still works or not.

The last commit from "someone who knew what he was doing" (ie. maintainer) was on 2010-01-19.

comment:4 Changed 9 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: newclosed

I committed r144339, but I'll be surprized if this thing actually works.

Note: See TracTickets for help on using tickets.