# rsnapshot -D du /tmp require Lchown Lchown module not found ERROR: Permission denied which can be fixed when dev-perl/Lchown is installed.
if ($@) { $have_lchown = 0; if ($verbose >= 5) { print_msg('Lchown module not found', 5); } return(0); } it doesn't seem like it should be needed, it's actually loaded at runtime if present; does that -D enable perl debugging?
Actually there is no good debugging output as far as I saw. I was playing around to get used to it, and wanted some more verbose output, which I didn't got beyond -V. Nevertheless there should be a USE-dep or a real DEP on it, otherwise we have some automaGics here.
The way Perl, Python, Ruby and most other interpreted languages work, automatic deps _are_ part of the game… so are the autodetected dlopen()-based dependencies in C (much less in C++). You confuse it with automagic (it's found, and linked to, and will fail if it gets removed). On the other hand the Lchown dependency would still help.
FYI, I've added dev-perl/Lchown as an RDEPEND to Funtoo's ebuild. If not addressed, rsnapshot will typically return non-zero error codes which indicate backup failure: https://github.com/funtoo/funtoo-overlay/commit/86b531303669361db84cc4db67661b90269f86a3
Without Lchown then you get lots of these sorts of problems, which are logged (if you turn the logfile on): [13/Oct/2011:08:59:21] WARNING: Could not lchown() symlink "/backup/rsnapshot/daily.1/<FILE_NAME>" This error is covered here: http://rsnapshot.org/faq.html (Q: I get warnings like Could not lchown() symlink. Help?) I emerged dev-perl/Lchown and the errors go away. I don't think a USE flag is needed because it seems to be part of the core functionality. Without it you get warnings and symlinks will potentially have the wrong permissions. It is not a build time dependency - rsnapshot builds OK without it. Unless there's a good reason not to, please add that package as an RDEPEND.
Bump. I just hit this too (app-backup/rsnapshot-1.3.1-r1): "WARNING: Could not lchown() symlink" ... etc. +1 RDEPEND dev-perl/Lchown.
+*rsnapshot-1.3.1-r2 (25 Apr 2013) + + 25 Apr 2013; Justin Lecher <jlec@gentoo.org> +rsnapshot-1.3.1-r2.ebuild: + Add dev-perl/Lchown as dep, #342643 +