diff options
author | easimer | 2016-08-03 14:09:06 +0200 |
---|---|---|
committer | easimer | 2016-08-03 14:09:06 +0200 |
commit | 90ab680f6f2ed173f95c92bc98a01381ccb65d8a (patch) | |
tree | c742eceea468266a41b64ace981d8edac5a585be | |
parent | e056eb650418d27fef59fd2c17d322c644f30588 (diff) | |
download | aur-90ab680f6f2ed173f95c92bc98a01381ccb65d8a.tar.gz |
Add workaround patch for the EXT2_ECOMPR_FL bug.
* Add workaround patch for https://github.com/mackyle/xar/issues/10
-rw-r--r-- | PKGBUILD | 7 | ||||
-rw-r--r-- | xar-ext2-bug-workaround.patch | 14 |
2 files changed, 18 insertions, 3 deletions
@@ -5,18 +5,19 @@ pkgname=xar pkgver=1.6.1 -pkgrel=2 +pkgrel=3 pkgdesc='eXtensible ARchive format' arch=('i686' 'x86_64') url='http://mackyle.github.io/xar/' license=('custom:BSD') depends=('libxml2' 'openssl' 'bzip2') options=('!libtool') -source=("https://github.com/downloads/mackyle/xar/xar-1.6.1.tar.gz") -md5sums=('a624535d6a1e8fdf420b36a6b334047b') +source=('https://github.com/downloads/mackyle/xar/xar-1.6.1.tar.gz' 'xar-ext2-bug-workaround.patch') +md5sums=('a624535d6a1e8fdf420b36a6b334047b' '4d4c52b9fbd8861e1322257a1b365f01') build() { cd "$srcdir/${pkgname}-${pkgver}" + patch -p1 < "$srcdir/xar-ext2-bug-workaround.patch" ./autogen.sh --prefix=/usr --mandir=/usr/share/man make } diff --git a/xar-ext2-bug-workaround.patch b/xar-ext2-bug-workaround.patch new file mode 100644 index 000000000000..b3944257fee8 --- /dev/null +++ b/xar-ext2-bug-workaround.patch @@ -0,0 +1,14 @@ +--- a/lib/ext2.h ++++ b/lib/ext2.h +@@ -36,6 +36,11 @@ + + #ifndef _XAR_EXT2_H_ + #define _XAR_EXT2_H_ ++ ++#ifndef EXT2_ECOMPR_FL ++#define EXT2_ECOMPR_FL EXT4_ENCRYPT_FL ++#endif ++ + #define XAR_ATTR_FORK "attribute" + int xar_ext2attr_archive(xar_t x, xar_file_t f, const char* file, const char *buffer, size_t len); + int xar_ext2attr_extract(xar_t x, xar_file_t f, const char* file, char *buffer, size_t len); |