[BackupPC-users] BackupPC_fixLinks.pl

2015-04-22 Thread gregrwm
i've used BackupPC_fixLinks.pl in the past with success, on RHEL.  i'm
trying to use it again, this time on ubuntu:

 # sudo -ubackuppc -H ./BackupPC_fixLinks.pl -f -q
 Use of qw(...) as parentheses is deprecated at
 /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
 Use of qw(...) as parentheses is deprecated at
 /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.
 String found where operator expected at ./BackupPC_fixLinks.pl line 243,
 near warnerr Can't read : $File::Find::name\n
 (Do you need to predeclare warnerr?)
 String found where operator expected at ./BackupPC_fixLinks.pl line 257,
 near warnerr Can't stat: $File::Find::name\n
 (Do you need to predeclare warnerr?)
 String found where operator expected at ./BackupPC_fixLinks.pl line 261,
 near warnerr Hole in pool chain at $root$prevsuffix
 (Do you need to predeclare warnerr?)
 String found where operator expected at ./BackupPC_fixLinks.pl line 269,
 near warnerr Parent not a file or unreadable: $File::Find::dir/$parent\n
 (Do you need to predeclare warnerr?)
 Global symbol %Conf requires explicit package name at
 ./BackupPC_fixLinks.pl line 55.
 Global symbol $dryrun requires explicit package name at
 ./BackupPC_fixLinks.pl line 90.
 Global symbol $dryrun requires explicit package name at
 ./BackupPC_fixLinks.pl line 94.
 Global symbol %Conf requires explicit package name at
 ./BackupPC_fixLinks.pl line 100.
 Global symbol %Conf requires explicit package name at
 ./BackupPC_fixLinks.pl line 224.
 Global symbol $dryrun requires explicit package name at
 ./BackupPC_fixLinks.pl line 232.
 syntax error at ./BackupPC_fixLinks.pl line 243, near warnerr Can't read
 : $File::Find::name\n
 syntax error at ./BackupPC_fixLinks.pl line 257, near warnerr Can't
 stat: $File::Find::name\n
 syntax error at ./BackupPC_fixLinks.pl line 261, near warnerr Hole in
 pool chain at $root$prevsuffix
 syntax error at ./BackupPC_fixLinks.pl line 269, near warnerr Parent not
 a file or unreadable: $File::Find::dir/$parent\n
 ./BackupPC_fixLinks.pl has too many errors.


any possible clues about an updated or ported version somewhere?
--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_fixLinks.pl

2015-04-22 Thread Holger Parplies
Hi,

gregrwm wrote on 2015-04-22 11:48:16 -0500 [[BackupPC-users] 
BackupPC_fixLinks.pl]:
 i've used BackupPC_fixLinks.pl in the past with success, on RHEL.  i'm
 trying to use it again, this time on ubuntu:
 
  # sudo -ubackuppc -H ./BackupPC_fixLinks.pl -f -q
  Use of qw(...) as parentheses is deprecated at
  /usr/share/backuppc/lib/BackupPC/Storage/Text.pm line 302.
  Use of qw(...) as parentheses is deprecated at
  /usr/share/backuppc/lib/BackupPC/Lib.pm line 1425.
  String found where operator expected at ./BackupPC_fixLinks.pl line 243,
  near warnerr Can't read : $File::Find::name\n
  (Do you need to predeclare warnerr?)

I believe the problem is in line 49:

49 use BackupPC::jLib;

Though there is no error message stating that jLib.pm was not found, this
would explain all of your error messages, both the non-predeclared warnerr and
the global variables. It would also be consistent with the fact that it does
not work on Ubuntu: you probably didn't copy jLib.pm (or perhaps an incorrect
version of it) to /usr/share/backuppc/lib/BackupPC ...

On the bright side, this reminds me of why there is no hLib.pm and there never
will be (at least not by me): I believe in self-contained scripts without
dependencies on some version of some non-standard library - almost impossible
to track. Yes, there will be code duplication. If you want to avoid that, roll
everything into one script which uses $0 to decide what to do ;-). Or
distribute everything as .deb packages (libbackuppc-jlib-perl and
backuppc-fixlinks perhaps?) and let rpm-based users figure out how to use
alien (or something equivalent) to install them :).

 any possible clues about an updated or ported version somewhere?

Yes, I've got a 0.3 version here dated something like 2010-12-10, but I can't
make much sense of the diff to your [apparently modified?] 0.2 without closer
investigation. I'll send it to you off-list (along with the advice to never
trust something someone sends you off-list without taking a close look). Note,
though, that that version has the same (implied) dependency on jLib.pm.

Regards,
Holger

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/