ports/70806: oinkmaster use tar options incompatible to bsdtar

SANETO Takanori sanewo at ba2.so-net.ne.jp
Sun Aug 22 00:00:45 UTC 2004


>Number:         70806
>Category:       ports
>Synopsis:       oinkmaster use tar options incompatible to bsdtar
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 22 00:00:43 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     SANETO Takanori
>Release:        5.2-CURRENT as of Aug 16
>Organization:
an individual
>Environment:
FreeBSD muse.sanewo.ddo.jp 5.2-CURRENT FreeBSD 5.2-CURRENT #321: Mon Aug 16 23:41:11 JST 2004     root at muse.sanewo.ddo.jp:/export/usr/obj/usr/src/sys/MUSE  i386
>Description:
      oinkmaster uses option "tPf" to tar. It is OK for gtar, but bsdtar does not permit -P to be used with -t.
On -CURRENT, /usr/bin/tar is bsdtar by default (as of Jul 17), this is problem.
>How-To-Repeat:
      Run oinkmaster and you will get following error:

Loading /usr/local/etc/oinkmaster.conf
Downloading file from http://www.snort.org/dl/rules/snortrules-snapshot-2_1.tar.gz... done.
tar: Option -P is not permitted in mode -t

/usr/local/bin/oinkmaster: Error: could not list files in tar archive (is it broken?)

>Fix:
      Following fix solved the problem:

diff -u -r1.7 Makefile
--- Makefile    2 Jul 2004 07:54:15 -0000       1.7
+++ Makefile    21 Aug 2004 23:27:18 -0000
@@ -29,6 +29,7 @@

 post-patch:
        @${REINPLACE_CMD} -e 's,/usr/bin/perl,${PERL},g' \
+               -e 's,system("tar",system("gtar",g' \
                ${WRKSRC}/oinkmaster.pl

 do-install:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list