Skip to content
Permalink
Browse files

xz: Remove comma at end of enumerator list

Fixes warning seen when compiling software in c89 mode that uses liblzma.
  • Loading branch information
ryandesign committed Mar 24, 2018
1 parent 9a6e4a8 commit d9517f3a86a0d8f26c0bf2ab6617ff7f2b8141a6
Showing with 16 additions and 1 deletion.
  1. +5 −1 archivers/xz/Portfile
  2. +11 −0 archivers/xz/files/c89.patch
@@ -4,6 +4,7 @@ PortSystem 1.0

name xz
version 5.2.3
revision 1
categories archivers
# some executables are GPL, libs and everything else are public domain
license {public-domain GPL-2+}
@@ -22,10 +23,13 @@ master_sites ${homepage}
use_bzip2 yes

checksums rmd160 343c42e8485b874f8b797c703ee8d2edc8812090 \
sha256 fd9ca16de1052aac899ad3495ad20dfa906c27b4a5070102a2ec35ca3a4740c1
sha256 fd9ca16de1052aac899ad3495ad20dfa906c27b4a5070102a2ec35ca3a4740c1 \
size 1207242

depends_lib port:libiconv port:gettext

patchfiles c89.patch

configure.args --with-libiconv-prefix=${prefix} --with-libintl-prefix=${prefix}

# document that we always need legacy symlinks now that "lzmautils" refers here
@@ -0,0 +1,11 @@
--- src/liblzma/api/lzma/base.h.orig 2016-12-30 05:08:20.000000000 -0600
+++ src/liblzma/api/lzma/base.h 2018-03-23 21:42:31.000000000 -0500
@@ -215,7 +215,7 @@
* applications a little.
*/

- LZMA_PROG_ERROR = 11,
+ LZMA_PROG_ERROR = 11
/**<
* \brief Programming error
*

0 comments on commit d9517f3

Please sign in to comment.
You can’t perform that action at this time.