Bug 57843 - misc/amanda-client still depends on gtar in source
Summary: misc/amanda-client still depends on gtar in source
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: jeh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-10 17:20 UTC by Kirk Strauser
Modified: 2003-10-24 00:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirk Strauser 2003-10-10 17:20:08 UTC
The misc/amanda-client port has been modified to remove dependency on
archivers/gtar since it is now included in the base system.  However, the
/usr/local/libexec/sendbackup program the amanda-client port still calls
"gtar" directly by name.  I discovered this when investigating why a backup
that seemed to have completed properly was missing a few filesystems from
FreeBSD servers.

Fix: As a workaround:

  # cd /usr/bin
  # ln -s tar gtar

A fix would look similar to below, although I haven't investigated whether
other programs are involved.  This hardcoded value sort of surprised me:



start_index(options->createindex, dumpout, mesgf, indexf, indexcmd);

-       my_argv[i++] = "gtar";
+       my_argv[i++] = "tar";
        my_argv[i++] = "--create";
        my_argv[i++] = "--file";
        my_argv[i++] = "-";--ry5fonxNJNOMKFqdrXfE0t6TeTORn4vZuHHqhyUcD8jB4FNk
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- sendbackup-gnutar.c-old     Fri Oct 10 11:08:07 2003
+++ sendbackup-gnutar.c Fri Oct 10 11:08:30 2003
@@ -480,7 +480,7 @@
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2003-10-15 06:02:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jeh

Over to maintainer.
Comment 2 jeh freebsd_committer freebsd_triage 2003-10-24 00:01:08 UTC
State Changed
From-To: open->analyzed

Change state
Comment 3 jeh freebsd_committer freebsd_triage 2003-10-24 00:35:39 UTC
State Changed
From-To: analyzed->closed

Submitted a modified version, thanks.