Skip site navigation (1)Skip section navigation (2)
Date:      14 Apr 2002 07:38:34 -0000
From:      Joseph King <king@v2project.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/37054: Problem report: (misc/flexbackup) doesnt work with FreeBSD tar
Message-ID:  <20020414073834.51076.qmail@main.v2project.com>

next in thread | raw e-mail | index | archive | help

>Number:         37054
>Category:       ports
>Synopsis:       Problem report: (misc/flexbackup) doesnt work with FreeBSD tar
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 14 00:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Joseph King
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD main.v2project.com 4.5-STABLE FreeBSD 4.5-STABLE #1: Fri Apr 5 02:33:49 CEST 2002 king@main.v2project.com:/usr/src/sys-altq/compile/MAIN i386


	
>Description:
	Flexbackup doesnt work with FreeBSD tar but yes with GNU gtar from (archivers/gtar), the program use the options "--no-recursion" ands fails with the mesasge :

	tar: unrecognized option `--no-recursion'
	tar: Unknown option.  Use 'tar --help' for a complete list of options.

>How-To-Repeat:
	Try to use flexbackup with the option "$type = 'tar';" in the flexbackup.conf
>Fix:

	Apply this patch to flexbackup perl script
	Todo: add a dependency of gtar in the flexbackup port Makefile


--- flexbackup.orig	Sun Apr 14 09:22:19 2002
+++ flexbackup	Sun Apr 14 09:25:06 2002
@@ -750,7 +750,7 @@
     $cmd .= "sed -e \"s%^\./%%\" ";
     $cmd .= "$main::exclude_cmd ";
     $cmd .= "| ";
-    $cmd .= "tar --create ";
+    $cmd .= "gtar --create ";
     $cmd .= "--files-from=- ";
     $cmd .= "--same-permissions ";
     $cmd .= "--same-order ";
@@ -875,7 +875,7 @@
         $cmd .= "-";
 
     } elsif ($cfg::type eq 'tar') {
-        $cmd .= "tar --list ";
+        $cmd .= "gtar --list ";
         $cmd .= "--totals ";
         $cmd .= "$main::tar_verb_flag ";
         $cmd .= "$main::tar_sparse_flag ";
@@ -964,7 +964,7 @@
         $cmd .= "-";
 
     } elsif ($cfg::type eq 'tar') {
-        $cmd .= "tar --extract ";
+        $cmd .= "gtar --extract ";
         if (defined($main::opt{'files'})) {
             $cmd .= "--files-from $newlist ";
         }
@@ -1041,7 +1041,7 @@
         $cmd .= "-";
 
     } elsif ($cfg::type eq 'tar') {
-        $cmd .= "tar --diff ";
+        $cmd .= "gtar --diff ";
         $cmd .= "--totals ";
         $cmd .= "$main::tar_blk_flag ";
         $cmd .= "$main::tar_sparse_flag ";
@@ -1799,7 +1799,7 @@
 
     } elsif ($cfg::type eq 'tar') {
 
-        &checkinpath('tar');
+        &checkinpath('gtar');
 
         # Echo record number
         $main::tar_recnum_flag = "";
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020414073834.51076.qmail>