Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87108 - app-cdr/cdbkup invokes tar with soon deprecated flag
Summary: app-cdr/cdbkup invokes tar with soon deprecated flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 All
: High trivial (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-29 06:19 UTC by Raimondo Giammanco
Modified: 2005-07-26 03:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raimondo Giammanco 2005-03-29 06:19:41 UTC
cdbkup is a nice application that is stable from a long time.

HOwever, from some time I see in my logs that the backups done with 
cdbkup give the following warning:

/bin/tar: Semantics of -l option will change in the future releases.
/bin/tar: Please use --one-file-system option instead.

It is sufficient (at least I think) to change three lines to fix the problem and future screams of horror, here I present the patch. 

####################
--- cdbkup      2005-03-29 16:08:10.000000000 +0200
+++ cdbkup.old  2005-03-29 16:04:26.000000000 +0200
@@ -298,10 +298,10 @@
 }

 $tarcmd = "cd ".esc_shell($dumpdir)." && $rgnutar -f - -cS";
-$tarcmd .= " --one-file-system " unless ($crossmp);
+$tarcmd .= "l" unless ($crossmp);
 unless( $ziphere) {
-       $tarcmd .= " -z" if( $compress eq 'gz');
-       $tarcmd .= " -j" if( $compress eq 'bz2');
+       $tarcmd .= "z" if( $compress eq 'gz');
+       $tarcmd .= "j" if( $compress eq 'bz2');
 }

 $tarcmd .= " --listed-incremental=$listed".
##########################

I realize this should go upstream, but in the meanwhile I am posting here.
Comment 1 Raimondo Giammanco 2005-07-26 03:20:07 UTC
It seems fixed now upstream, at least in gentoo 1.0-r1 is now ok.


Comment 2 Raimondo Giammanco 2005-07-26 03:21:05 UTC
Forgot to resolve the bug