ports/158962: Make EXTRACT_CMD more flexible-- support uncompressed tars (bsd.port.mk)

Chris Rees crees at FreeBSD.org
Sat Jul 16 01:30:10 UTC 2011


>Number:         158962
>Category:       ports
>Synopsis:       Make EXTRACT_CMD more flexible-- support uncompressed tars (bsd.port.mk)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 16 01:30:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Chris Rees
>Release:        FreeBSD 8.2-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD zeus.bayofrum.net 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #0: Sat Apr 30 15:09:06 BST 2011 root at zeus.bayofrum.net:/usr/obj/usr/src/sys/ZEUS i386


	
>Description:
	ports/158403 downloads a plain tar file, which isn't supported by bsd.port.mk. Rather than define another USE_ flag, how about replacing gzip with cat? Our tar can handle that perfectly, and if it weren't for the suffix I'd also suggest doing the same for bzip2.
>How-To-Repeat:
	
>Fix:

	

--- bsd-port-mk-extract-using-cat.diff begins here ---
Index: bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.688
diff -u -r1.688 bsd.port.mk
--- bsd.port.mk	15 Jul 2011 08:26:30 -0000	1.688
+++ bsd.port.mk	16 Jul 2011 01:18:39 -0000
@@ -2390,7 +2390,7 @@
 .elif defined(USE_XZ)
 EXTRACT_CMD?=			${XZ_CMD}
 .else
-EXTRACT_CMD?=			${GZIP_CMD}
+EXTRACT_CMD?=			${CAT}
 .endif
 .endif
 
--- bsd-port-mk-extract-using-cat.diff ends here ---



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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



More information about the freebsd-ports-bugs mailing list