From bf4243068ea059d48eaff87453199a8887754f56 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 29 Jan 2016 08:05:44 +0100 Subject: [PATCH] libzip: unbreak build on glibc. --- srcpkgs/libzip/patches/getopt.patch | 11 +++++++++++ srcpkgs/libzip/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libzip/patches/getopt.patch diff --git a/srcpkgs/libzip/patches/getopt.patch b/srcpkgs/libzip/patches/getopt.patch new file mode 100644 index 00000000000..5d6606ae166 --- /dev/null +++ b/srcpkgs/libzip/patches/getopt.patch @@ -0,0 +1,11 @@ +--- src/ziptool.c.orig 2016-01-29 08:04:37.465790156 +0100 ++++ src/ziptool.c 2016-01-29 08:04:56.296977874 +0100 +@@ -78,6 +78,8 @@ zip_t *za, *z_in[16]; + unsigned int z_in_count; + zip_flags_t stat_flags; + ++int optopt; ++ + static int + add(int argc, char *argv[]) { + zip_source_t *zs; diff --git a/srcpkgs/libzip/template b/srcpkgs/libzip/template index cbbe9919bb7..5ef70a85872 100644 --- a/srcpkgs/libzip/template +++ b/srcpkgs/libzip/template @@ -1,7 +1,7 @@ # Template file for 'libzip' pkgname=libzip version=1.1 -revision=1 +revision=2 build_style=gnu-configure hostmakedepends="perl" makedepends="zlib-devel"