From owner-freebsd-ports Sun Apr 14 0:40:19 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1849F37B405 for ; Sun, 14 Apr 2002 00:40:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3E7e3o13321; Sun, 14 Apr 2002 00:40:03 -0700 (PDT) (envelope-from gnats) Received: from main.v2project.com (cliente-212079143077.cm256.senpc.supercable.es [212.79.143.77]) by hub.freebsd.org (Postfix) with SMTP id 2DE9D37B41A for ; Sun, 14 Apr 2002 00:38:28 -0700 (PDT) Received: (qmail 51077 invoked by uid 1001); 14 Apr 2002 07:38:34 -0000 Message-Id: <20020414073834.51076.qmail@main.v2project.com> Date: 14 Apr 2002 07:38:34 -0000 From: Joseph King To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/37054: Problem report: (misc/flexbackup) doesnt work with FreeBSD tar Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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