FreeBSD Bugzilla – Attachment 216768 Details for
Bug 248267
misc/lv: Add support of compressed file by zstd(1)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file
misc_lv.patch (text/plain), 1.41 KB, created by
Yasuhiro Kimura
on 2020-07-25 16:48:35 UTC
(
hide
)
Description:
Patch file
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2020-07-25 16:48:35 UTC
Size:
1.41 KB
patch
obsolete
>Index: misc/lv/Makefile >=================================================================== >--- misc/lv/Makefile (revision 543232) >+++ misc/lv/Makefile (working copy) >@@ -4,7 +4,7 @@ > PORTNAME= lv > PORTVERSION= 4.51 > DISTVERSIONPREFIX= v >-PORTREVISION= 3 >+PORTREVISION= 4 > CATEGORIES= misc > > MAINTAINER= sue@iwmt.org >Index: misc/lv/files/patch-src_stream.c >=================================================================== >--- misc/lv/files/patch-src_stream.c (revision 543232) >+++ misc/lv/files/patch-src_stream.c (working copy) >@@ -1,15 +1,16 @@ >---- stream.c.orig 2003-11-13 03:08:19 UTC >+--- stream.c.orig 2016-05-31 18:08:16 UTC > +++ stream.c >-@@ -43,6 +43,8 @@ >+@@ -43,6 +43,9 @@ > > private byte *gz_filter = "zcat"; > private byte *bz2_filter = "bzcat"; > +private byte *lzma_filter = "lzcat"; > +private byte *xz_filter = "xzcat"; >++private byte *zstd_filter = "zstdcat"; > > private stream_t *StreamAlloc() > { >-@@ -75,6 +77,10 @@ public stream_t *StreamOpen( byte *file >+@@ -75,6 +78,12 @@ public stream_t *StreamOpen( byte *file ) > filter = gz_filter; > else if( !strcmp( "bz2", exts ) || !strcmp( "BZ2", exts ) ) > filter = bz2_filter; >@@ -17,6 +18,8 @@ > + filter = lzma_filter; > + else if( !strcmp( "xz", exts ) || !strcmp( "XZ", exts ) ) > + filter = xz_filter; >++ else if( !strcmp( "zst", exts ) || !strcmp( "ZST", exts ) ) >++ filter = zstd_filter; > } > if( NULL != filter ){ > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248267
: 216768 |
216824